bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public synchronized long getAtime() { return Ext2Utils.get32(data, 8); } | public synchronized long getAtime() { return Ext2Utils.get32(data, 8); } | 23,006 |
public synchronized long getBlocks() { return Ext2Utils.get32(data, 28); } | public synchronized long getBlocks() { return Ext2Utils.get32(data, 28); } | 23,007 |
public synchronized long getCtime() { return Ext2Utils.get32(data, 12); } | public synchronized long getCtime() { return Ext2Utils.get32(data, 12); } | 23,008 |
public byte[] getDataBlock(long i) throws IOException { return fs.getBlock( getDataBlockNr(i) ); } | public byte[] getDataBlock(long i) throws IOException { return fs.getBlock( getDataBlockNr(i) ); } | 23,009 |
private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | 23,010 |
private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | private long getDataBlockNr(long i) throws IOException { final long blockCount = getAllocatedBlockCount(); final int indirectCount = getIndirectCount(); if(i > blockCount-1) throw new IOException( "Trying to read block "+i+" (counts from 0), while"+ " INode contains only "+blockCount+" blocks"); //get... | 23,011 |
public synchronized long getDirACL() { return Ext2Utils.get32(data, 108); } | public synchronized long getDirACL() { return Ext2Utils.get32(data, 108); } | 23,012 |
public synchronized long getDtime() { return Ext2Utils.get32(data, 20); } | public synchronized long getDtime() { return Ext2Utils.get32(data, 20); } | 23,013 |
public Ext2FileSystem getExt2FileSystem() { return fs; } | public Ext2FileSystem getExt2FileSystem() { return fs; } | 23,014 |
public synchronized long getFAddr() { return Ext2Utils.get32(data, 112); } | public synchronized long getFAddr() { return Ext2Utils.get32(data, 112); } | 23,015 |
public synchronized long getFileACL() { return Ext2Utils.get32(data, 104); } | public synchronized long getFileACL() { return Ext2Utils.get32(data, 104); } | 23,016 |
public synchronized long getFlags() { return Ext2Utils.get32(data, 32); } | public synchronized long getFlags() { return Ext2Utils.get32(data, 32); } | 23,017 |
public synchronized long getGeneration() { return Ext2Utils.get32(data, 100); } | public synchronized long getGeneration() { return Ext2Utils.get32(data, 100); } | 23,018 |
public synchronized int getGid() { return Ext2Utils.get16(data, 24); } | public synchronized int getGid() { return Ext2Utils.get16(data, 24); } | 23,019 |
protected long getGroup() { return desc.getGroup(); } | protected long getGroup() { return desc.getGroup(); } | 23,020 |
protected int getINodeNr() { return desc.getINodeNr(); } | protected int getINodeNr() { return desc.getINodeNr(); } | 23,021 |
private final int getIndirectCount() { return fs.getSuperblock().getBlockSize() >> 2; //a block index is 4 bytes long } | private final int getIndirectCount() { return fs.getSuperblock().getBlockSize() >> 2; //a block index is 4 bytes long } | 23,022 |
public synchronized int getLinksCount() { return Ext2Utils.get16(data, 26); } | public synchronized int getLinksCount() { return Ext2Utils.get16(data, 26); } | 23,023 |
public synchronized int getMode() { int iMode=Ext2Utils.get16(data, 0); //log.debug("INode.getIMode(): "+Ext2Print.hexFormat(iMode)); return iMode; } | public synchronized int getMode() { int iMode=Ext2Utils.get16(data, 0); //log.debug("INode.getIMode(): "+Ext2Print.hexFormat(iMode)); return iMode; } | 23,024 |
public synchronized long getMtime() { return Ext2Utils.get32(data, 16); } | public synchronized long getMtime() { return Ext2Utils.get32(data, 16); } | 23,025 |
public synchronized long getOSD1() { return Ext2Utils.get32(data, 36); } | public synchronized long getOSD1() { return Ext2Utils.get32(data, 36); } | 23,026 |
public synchronized long getSize() { return Ext2Utils.get32(data, 4); } | public synchronized long getSize() { return Ext2Utils.get32(data, 4); } | 23,027 |
public long getSizeInBlocks() { return (long)Math.ceil((double)getSize()/(double)getExt2FileSystem().getBlockSize()); } | public long getSizeInBlocks() { return (long)Math.ceil((double)getSize()/(double)getExt2FileSystem().getBlockSize()); } | 23,028 |
public synchronized int getUid() { return Ext2Utils.get16(data, 2); } | public synchronized int getUid() { return Ext2Utils.get16(data, 2); } | 23,029 |
public synchronized void incLocked() { ++locked; } | public synchronized void incLocked() { ++locked; } | 23,030 |
private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | 23,031 |
private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | 23,032 |
private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | private final void indirectFree(long dataBlockNr, long offset, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectFree(datablockNr="+dataBlockNr+", offset="+offset+", ind="+indirectionLevel+")"); if(indirectionLevel==0) { fs.freeBlock( dataBlockNr ); return; } byte[] dat... | 23,033 |
private final long indirectRead(long dataBlockNr, long offset, int indirectionLevel) throws IOException{ byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) //data is a (simple) indirect block return Ext2Utils.get32(data, (int)offset*4); long blockIndex = offset / (long)Math.pow(getIndire... | private final long indirectRead(long dataBlockNr, long offset, int indirectionLevel) throws IOException{ byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) //data is a (simple) indirect block return Ext2Utils.get32(data, (int)offset*4); long blockIndex = offset / (long)Math.pow(getIndire... | 23,034 |
private final long indirectRead(long dataBlockNr, long offset, int indirectionLevel) throws IOException{ byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) //data is a (simple) indirect block return Ext2Utils.get32(data, (int)offset*4); long blockIndex = offset / (long)Math.pow(getIndire... | private final long indirectRead(long dataBlockNr, long offset, int indirectionLevel) throws IOException{ byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) //data is a (simple) indirect block return Ext2Utils.get32(data, (int)offset*4); long blockIndex = offset / (long)Math.pow(getIndire... | 23,035 |
private final long indirectRead(long dataBlockNr, long offset, int indirectionLevel) throws IOException{ byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) //data is a (simple) indirect block return Ext2Utils.get32(data, (int)offset*4); long blockIndex = offset / (long)Math.pow(getIndire... | private final long indirectRead(long dataBlockNr, long offset, int indirectionLevel) throws IOException{ byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) //data is a (simple) indirect block return Ext2Utils.get32(data, (int)offset*4); long blockIndex = offset / (long)Math.pow(getIndire... | 23,036 |
private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | 23,037 |
private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | 23,038 |
private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | 23,039 |
private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | private final void indirectWrite(long dataBlockNr, long offset, long allocatedBlocks, long value, int indirectionLevel) throws IOException, FileSystemException { log.debug("indirectWrite(blockNr="+dataBlockNr+", offset="+offset+"...)"); byte[] data = fs.getBlock( dataBlockNr ); if(indirectionLevel==1) { //... | 23,040 |
public boolean isDirty() { return dirty; } | public boolean isDirty() { return dirty; } | 23,041 |
public synchronized boolean isLocked() { return locked>0; } | public synchronized boolean isLocked() { return locked>0; } | 23,042 |
public void read(byte[] data){ System.arraycopy(data, 0, this.data, 0, INODE_LENGTH); setDirty(false); } | public void read(byte[] data){ System.arraycopy(data, 0, this.data, 0, INODE_LENGTH); setDirty(false); } | 23,043 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,044 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,045 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,046 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private if (i < 12) { Ext2Utils.set32(data, 40 + (int) i * 4, blockNr); return; } final if (i < 12) { Ext2Utils.set32(data, 40 + (int) i * 4, blockNr); return; } void if (i < 12) { Ext2Utils.set32(data, 40 + (int) i * 4, blockNr); return; } registerBlockIndex(long if (i < 12) { Ext2Utils.set32(data, 40 + (int) i * 4, ... | 23,047 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,048 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,049 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private byte[] zeroes = new byte[fs.getBlockSize()]; Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte) 0); fs.writeBlock(indirectBlockNr, zeroes, false); } else indirectBlockNr = Ext2Utils.get32(data, 40 + 12 * 4); final byte[] zeroes = new byte[fs.getBlockSize()]; Arrays.fill(zeroes, 0, fs.getBlockSize(), (byte) 0); ... | 23,050 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,051 |
private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | private final void registerBlockIndex(long i, long blockNr) throws FileSystemException, IOException{ final long blockCount = getSizeInBlocks(); final int indirectCount = getIndirectCount(); long allocatedBlocks = i; if(i != blockCount) throw new FileSystemException( "Trying to register block "+i+" (counts from ... | 23,052 |
public synchronized void setAtime(long atime) { Ext2Utils.set32(data, 8, atime); setDirty(true); } | public synchronized void setAtime(long atime) { Ext2Utils.set32(data, 8, atime); setDirty(true); } | 23,053 |
public synchronized void setBlocks(long count) { log.debug("setBlocks("+count+")"); Ext2Utils.set32(data, 28, count); setDirty(true); } | public synchronized void setBlocks(long count) { log.debug("setBlocks("+count+")"); Ext2Utils.set32(data, 28, count); setDirty(true); } | 23,054 |
public synchronized void setCtime(long ctime) { Ext2Utils.set32(data, 12, ctime); setDirty(true); } | public synchronized void setCtime(long ctime) { Ext2Utils.set32(data, 12, ctime); setDirty(true); } | 23,055 |
public synchronized void setDirACL(long acl) { Ext2Utils.set32(data, 108, acl); setDirty(true); } | public synchronized void setDirACL(long acl) { Ext2Utils.set32(data, 108, acl); setDirty(true); } | 23,056 |
public void setDirty(boolean b) { dirty = b; } | public void setDirty(boolean b) { dirty = b; } | 23,057 |
public synchronized void setDtime(long dtime) { Ext2Utils.set32(data, 20, dtime); setDirty(true); } | public synchronized void setDtime(long dtime) { Ext2Utils.set32(data, 20, dtime); setDirty(true); } | 23,058 |
public synchronized void setFAddr(long faddr) { Ext2Utils.set32(data, 112, faddr); setDirty(true); } | public synchronized void setFAddr(long faddr) { Ext2Utils.set32(data, 112, faddr); setDirty(true); } | 23,059 |
public synchronized void setFileACL(long acl) { Ext2Utils.set32(data, 104, acl); setDirty(true); } | public synchronized void setFileACL(long acl) { Ext2Utils.set32(data, 104, acl); setDirty(true); } | 23,060 |
public synchronized void setFlags(long flags) { Ext2Utils.set32(data, 32, flags); setDirty(true); } | public synchronized void setFlags(long flags) { Ext2Utils.set32(data, 32, flags); setDirty(true); } | 23,061 |
public synchronized void setGeneration(long gen) { Ext2Utils.set32(data, 100, gen); setDirty(true); } | public synchronized void setGeneration(long gen) { Ext2Utils.set32(data, 100, gen); setDirty(true); } | 23,062 |
public synchronized void setGid(int gid) { Ext2Utils.set16(data, 24, gid); setDirty(true); } | public synchronized void setGid(int gid) { Ext2Utils.set16(data, 24, gid); setDirty(true); } | 23,063 |
public synchronized void setLinksCount(int lc) { Ext2Utils.set16(data, 26, lc); setDirty(true); } | public synchronized void setLinksCount(int lc) { Ext2Utils.set16(data, 26, lc); setDirty(true); } | 23,064 |
public synchronized void setMode(int imode) { Ext2Utils.set16(data, 0, imode); setDirty(true); } | public synchronized void setMode(int imode) { Ext2Utils.set16(data, 0, imode); setDirty(true); } | 23,065 |
public synchronized void setMtime(long mtime) { Ext2Utils.set32(data, 16, mtime); setDirty(true); } | public synchronized void setMtime(long mtime) { Ext2Utils.set32(data, 16, mtime); setDirty(true); } | 23,066 |
public synchronized void setOSD1(long osd1) { Ext2Utils.set32(data, 36, osd1); setDirty(true); } | public synchronized void setOSD1(long osd1) { Ext2Utils.set32(data, 36, osd1); setDirty(true); } | 23,067 |
public synchronized void setSize(long size) { Ext2Utils.set32(data, 4, size); setDirty(true); } | public synchronized void setSize(long size) { Ext2Utils.set32(data, 4, size); setDirty(true); } | 23,068 |
public synchronized void setUid(int uid) { Ext2Utils.set16(data, 2, uid); setDirty(true); } | public synchronized void setUid(int uid) { Ext2Utils.set16(data, 2, uid); setDirty(true); } | 23,069 |
protected synchronized 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); } } | protected synchronized 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); } } | 23,070 |
public void writeDataBlock(long i, byte[] data) throws IOException{ //see if the block is already reserved for the inode long blockCount = getAllocatedBlockCount(); if(i < blockCount) { long blockIndex = getDataBlockNr(i); //overwrite the block fs.writeBlock(blockIndex, data, false); } else throw new Una... | public void writeDataBlock(long i, byte[] data) throws IOException{ //see if the block is already reserved for the inode long blockCount = getAllocatedBlockCount(); if(i < blockCount) { long blockIndex = getDataBlockNr(i); //overwrite the block fs.writeBlock(blockIndex, data, false); } else throw new Una... | 23,071 |
protected final void handleStartTag(TagElement tag) { htmlAttributeSet attributes = gnu.getAttributes(); if (tag.fictional()) attributes.addAttribute(ParserCallback.IMPLIED, Boolean.TRUE); callBack.handleStartTag(tag.getHTMLTag(), attributes, hTag.where.startPos... | protected final void handleStartTag(TagElement tag) { SimpleAttributeSet attributes = gnu.getAttributes(); if (tag.fictional()) attributes.addAttribute(ParserCallback.IMPLIED, Boolean.TRUE); callBack.handleStartTag(tag.getHTMLTag(), attributes, hTag.where.startP... | 23,072 |
protected boolean removeEldestEntry(Map.Entry eldest) { if(size()>MAX_SIZE) { ((Block)eldest.getValue()).flush(); return true; } else return false; } | protected boolean removeEldestEntry(Map.Entry eldest) { if(size()>MAX_SIZE) { ((Block)eldest.getValue()).flush(); return true; } else return false; } | 23,073 |
public Object next() { //log.debug("next: offset=" + offset); if (nextEntry == null) { //log.debug("next: islast"); throw new NoSuchElementException(); } else { final IndexEntry result = nextEntry; final int size = nextEntry.getSize(); //lo... | public IndexEntry next() { //log.debug("next: offset=" + offset); if (nextEntry == null) { //log.debug("next: islast"); throw new NoSuchElementException(); } else { final IndexEntry result = nextEntry; final int size = nextEntry.getSize(); ... | 23,074 |
public final Class getCategory() { return RequestingUserName.class; } | public Class getCategory() { return RequestingUserName.class; } | 23,075 |
public final String getName() { return "requesting-user-name"; } | public String getName() { return "requesting-user-name"; } | 23,076 |
public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN); getToolkit().getSystemEventQueue().postEvent(ce); } } | public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN); getToolkit().getSystemEventQueue().postEvent(ce); } } | 23,077 |
public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; invalidate(); ComponentEvent ce = new ComponentEvent(this,ComponentEvent.COMPONENT_HIDDEN); getToolkit().getSystemEventQueue().postEvent(ce); } } | public void hide() { if (isVisible()) { if (peer != null) peer.setVisible(false); this.visible = false; Container currentParent = parent; if (currentParent != null) { currentParent.invalidate(); currentParent.repaint(); } ComponentEvent ce = new ComponentEve... | 23,078 |
public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if... | public void show() { // We must set visible before showing the peer. Otherwise the // peer could post paint events before visible is true, in which // case lightweight components are not initially painted -- // Container.paint first calls isShowing () before painting itself // and its children. if... | 23,079 |
protected void fireDragGestureRecognized(int dragAction, Point p) throws NotImplementedException { throw new Error("not implemented"); } | protected void fireDragGestureRecognized(int dragAction, Point p) { throw new Error("not implemented"); } | 23,081 |
protected void fireDragGestureRecognized(int dragAction, Point p) throws NotImplementedException { throw new Error("not implemented"); } | protected void fireDragGestureRecognized(int dragAction, Point p) throws NotImplementedException { if(dragGestureListener != null) dragGestureListener.dragGestureRecognized (new DragGestureEvent(this, dragAction, p, events)); } | 23,082 |
public void resetRecognizer() throws NotImplementedException { throw new Error("not implemented"); } | public void resetRecognizer() throws NotImplementedException { events = new ArrayList(); } | 23,083 |
public DefaultEditor(JSpinner spinner) { this.spinner = spinner; spinner.addChangeListener(this); } | ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); ftf = new JFormattedTextField(); add(ftf); ftf.setValue(spinner.getValue()); publicftf = ... | 23,084 |
public JFormattedTextField getTextField() { return null; } /* TODO */ | public JFormattedTextField getTextField() { return null; } /* TODO */ | 23,085 |
public void layoutContainer(Container parent) { } /* TODO */ | public void layoutContainer(Container parent) { } /* TODO */ | 23,086 |
public Dimension minimumLayoutSize(Container parent) { return null; } /* TODO */ | public Dimension minimumLayoutSize(Container parent) { return null; } /* TODO */ | 23,087 |
public Dimension preferredLayoutSize(Container parent) { return null; } /* TODO */ | public Dimension preferredLayoutSize(Container parent) { return null; } /* TODO */ | 23,088 |
protected JComponent createEditor(SpinnerModel model) { return new StubEditor(this); } /* TODO */} | protected JComponent createEditor(SpinnerModel model) { return new StubEditor(this); } /* TODO */} | 23,089 |
public void run() { drainEvents(); } | public void run() { drainEvents(); } | 23,090 |
public void run() { running = true; try { sleep(initialDelay); while (running) { try { sleep(delay); } catch (InterruptedException e) { return; } queueEvent(); if (logTimers) System.out.println("... | public void run() { running = true; try { sleep(initialDelay); while (running) { try { sleep(delay); } catch (InterruptedException e) { return; } queueEvent(); if (logTimers) System.out.println("... | 23,091 |
public void run() { running = true; try { sleep(initialDelay); while (running) { try { sleep(delay); } catch (InterruptedException e) { return; } queueEvent(); if (logTimers) System.out.println("... | running = false; running = false; running = false; running = false; public running = false; void running = false; run() running = false; running = false; running = false; running = false; { running = false; running = false; running = false; running = false; running = false; running = false; running running ... | 23,092 |
private void drainEvents() { synchronized (queueLock) { if (isCoalesce()) { if (queue > 0) fireActionPerformed(); } else { while (queue > 0) { fireActionPerformed(); queue--; ... | private void drainEvents() { synchronized (queueLock) { if (isCoalesce()) { if (queue > 0) fireActionPerformed(); } else { while (queue > 0) { fireActionPerformed(); queue--; ... | 23,094 |
private void drainEvents() { synchronized (queueLock) { if (isCoalesce()) { if (queue > 0) fireActionPerformed(); } else { while (queue > 0) { fireActionPerformed(); queue--; ... | private void drainEvents() { synchronized (queueLock) { if (isCoalesce()) { if (queue > 0) fireActionPerformed(); } else { while (queue > 0) { fireActionPerformed(); queue--; ... | 23,095 |
protected void fireActionPerformed(ActionEvent event) { ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(event); } | protected void fireActionPerformed(ActionEvent event) { ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(event); } | 23,096 |
protected void fireActionPerformed(ActionEvent event) { ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].actionPerformed(event); } | protected void fireActionPerformed(ActionEvent event) { ActionListener[] listeners = getActionListeners(); for (int i = 0; i < listeners.length; i++) listeners [ i ].actionPerformed(event); } | 23,097 |
private void queueEvent() { synchronized (queueLock) { queue++; if (queue == 1) SwingUtilities.invokeLater(drainer); } } | private void queueEvent() { synchronized (queueLock) { queue++; if (queue == 1) SwingUtilities.invokeLater(drainer); } } | 23,098 |
public void start() { if (isRunning()) return; waker = new Waker(); waker.start(); } | public void start() { if (isRunning()) return; waker = new Waker(); waker.start(); } | 23,099 |
public void compose(Raster src, Raster dstIn, WritableRaster dstOut) { // TODO: This implementation is very general and highly inefficient. There // are two possible ways to optimize this: // 1. Special cased implementations for common ColorModels and transfer // types. // 2. Native implementation.... | public void compose(Raster src, Raster dstIn, WritableRaster dstOut) { // TODO: This implementation is very general and highly inefficient. There // are two possible ways to optimize this: // 1. Special cased implementations for common ColorModels and transfer // types. // 2. Native implementation.... | 23,100 |
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | 23,101 |
public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | public float[] getNormalizedComponents (Object pixel, float[] normComponents, int normOffset) { // subclasses has to implement this method. throw new UnsupportedOperationException(); } | 23,102 |
public int hashCode () { // FIXME: Check what SUN calculates here. return super.hashCode (); } | public int hashCode () { // FIXME: Check what SUN calculates here. long hashCode = Double.doubleToLongBits(get(position())) + 31; long multiplier = 1; for (int i = position() + 1; i < limit(); ++i) { multiplier *= 31; hashCode += (Double.doubleToLongBits(get(i)) + 30)*multiplier; } return ((int)hashCode); } | 23,103 |
final public static DoubleBuffer wrap (double[] array, int offset, int length) { return new DoubleBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | public static final DoubleBuffer wrap (double[] array, int offset, int length) { return new DoubleBufferImpl (array, 0, array.length, offset + length, offset, -1, false); } | 23,104 |
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | 23,105 |
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | 23,106 |
private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | private synchronized void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException{ Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec=null; while(it... | 23,107 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.