bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected static void postDeliver(SessionDelegate sess, String consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer... | protected static void postDeliver(SessionDelegate sess, int consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we... | 51,927 |
protected static void preDeliver(SessionDelegate sess, String consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we ... | protected static void preDeliver(SessionDelegate sess, int consumerID, Message m, boolean isConnectionConsumer) throws JMSException { //If this is the callback-handler for a connection consumer we don... | 51,928 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,929 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,930 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,931 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,932 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,933 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,934 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,935 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,936 |
public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | public Message receive(long timeout) throws JMSException { if (listener != null) { throw new JBossJMSException("A message listener is already registered"); } receiverThread = Thread.currentThread(); long startTimestamp... | 51,937 |
public synchronized void setMessageListener(MessageListener listener) throws JMSException { // JMS consumer is single threaded, so it shouldn't be possible to set a MessageListener // while another thread is receiving if (receiverThread != null) { // Should never happen th... | public synchronized void setMessageListener(MessageListener listener) throws JMSException { // JMS consumer is single threaded, so it shouldn't be possible to set a MessageListener // while another thread is receiving if (receiverThread != null) { // Should never happen th... | 51,938 |
private void cleanup(Connection connection, Statement statement, ResultSet result) { if (result != null) { try { result.close(); } catch (SQLException ex) { log.error("Error closing resultset", ex); } } if (statement != null) { ... | protected void cleanup(Connection connection, Statement statement, ResultSet result) { if (result != null) { try { result.close(); } catch (SQLException ex) { log.error("Error closing resultset", ex); } } if (statement != null) { ... | 51,939 |
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, Context c) { inline.whitespace = WhitespaceStripper.getWhitespace(c.getCurrentStyle()); if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = pr... | private static void prepareBox(InlineBox prev_align, InlineTextBox inline, Context c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = 0... | 51,941 |
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first... | private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, Rectangle bounds, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first... | 51,942 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ... | 51,944 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = graph.getGraphLayoutCache().getMapping(cell, false); if(graph.getModel().isEdge(cell)) { ... | 51,945 |
protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ... | protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ... | 51,946 |
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ... | public synchronized void start(String containerConfig, boolean clearDatabase) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null,... | 51,949 |
public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ... | public synchronized void start(String containerConfig) throws Exception { if (isStarted()) { return; } log.debug("starting service container"); try { setEnvironmentServerIndex(serverIndex); sc = new ServiceContainer(containerConfig, null, serverIndex); ... | 51,950 |
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ... | protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ... | 51,952 |
protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ... | protected void init(Element function) { type = function.getAttribute("type"); try { setId(Integer.parseInt(function.getAttribute("id"))); } catch (NumberFormatException e) { } if (function.getAttribute("name") != null) { name = function.getAttribute("name"); ... | 51,953 |
public void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; } ... | public synchronized void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; ... | 51,954 |
public void onMessage(Message message) { try { log.trace("Received message"); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; } ... | public void onMessage(Message message) { try { log.trace("Received message " + this); TextMessage tm = (TextMessage)message; if (!tm.getText().equals("testing testing")) { failed = true; }... | 51,955 |
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo... | public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo... | 51,958 |
public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connCo... | public void testSimple() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connConsumer.start(); Session sessCons = c... | 51,959 |
public long getLastModified() throws IOException { throw new UnsupportedOperationException("not yet implemented"); } | public long getLastModified() throws IOException { Date now = new Date(); return now.getTime(); } | 51,960 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | 51,961 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | 51,962 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | 51,963 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | 51,964 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | 51,965 |
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc... | 51,966 |
public static void paintFixed(Context c, Box block, boolean restyle) { //Uu.p("painting fixed"); Rectangle rect = c.getFixedRectangle(); int by = c.getBlockFormattingContext().getY(); int bx = c.getBlockFormattingContext().getX(); // the offset is equal to the bfc origin m... | public static void paintFixed(Context c, Box block, boolean restyle) { //Uu.p("painting fixed"); Rectangle rect = c.getFixedRectangle(); int by = c.getBlockFormattingContext().getY(); int bx = c.getBlockFormattingContext().getX(); // the offset is equal to the bfc origin m... | 51,967 |
public static void paintFixed(Context c, Box block, boolean restyle) { //Uu.p("painting fixed"); Rectangle rect = c.getFixedRectangle(); int by = c.getBlockFormattingContext().getY(); int bx = c.getBlockFormattingContext().getX(); // the offset is equal to the bfc origin m... | public static void paintFixed(Context c, Box block, boolean restyle) { //Uu.p("painting fixed"); Rectangle rect = c.getFixedRectangle(); int by = c.getBlockFormattingContext().getY(); int bx = c.getBlockFormattingContext().getX(); // the offset is equal to the bfc origin m... | 51,968 |
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = c.getCurrentStyle().getMarginWidth(width, height, c.getCtx()); Rectangle bounds = new Rectangle(block.x + margin.left, bloc... | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); Border margin = block.getMarginWidth(c, width); Rectangle bounds = new Rectangle(block.x + margin.left, block.y + margin.top, ... | 51,969 |
public MalformedLinkException() { super(); } | public MalformedLinkException() { super(); } | 51,970 |
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); } | public boolean canInitialize(String workflowName, int initialState) { return new BasicWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); } | 51,971 |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).canModifyEntryState(id, newState); } | public boolean canModifyEntryState(long id, int newState) { return new BasicWorkflow(getRemoteUser()).canModifyEntryState(id, newState); } | 51,972 |
public int[] getAvailableActions(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getAvailableActions(id); } | public int[] getAvailableActions(long id) { return new BasicWorkflow(getRemoteUser()).getAvailableActions(id); } | 51,973 |
public List getCurrentSteps(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getCurrentSteps(id); } | public List getCurrentSteps(long id) { return new BasicWorkflow(getRemoteUser()).getCurrentSteps(id); } | 51,974 |
public int getEntryState(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getEntryState(id); } | public int getEntryState(long id) { return new BasicWorkflow(getRemoteUser()).getEntryState(id); } | 51,975 |
public List getHistorySteps(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getHistorySteps(id); } | public List getHistorySteps(long id) { return new BasicWorkflow(getRemoteUser()).getHistorySteps(id); } | 51,976 |
public PropertySet getPropertySet(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getPropertySet(id); } | public PropertySet getPropertySet(long id) { return new BasicWorkflow(getRemoteUser()).getPropertySet(id); } | 51,977 |
public List getSecurityPermissions(long id) throws WorkflowException { return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id); } | public List getSecurityPermissions(long id) { return new BasicWorkflow(getRemoteUser()).getSecurityPermissions(id); } | 51,978 |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return new BasicWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); } | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { return new BasicWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); } | 51,979 |
public String getWorkflowName(long id) throws StoreException { return new BasicWorkflow(getRemoteUser()).getWorkflowName(id); } | public String getWorkflowName(long id) { return new BasicWorkflow(getRemoteUser()).getWorkflowName(id); } | 51,980 |
public String[] getWorkflowNames() throws FactoryException { return new BasicWorkflow(getRemoteUser()).getWorkflowNames(); } | public String[] getWorkflowNames() { return new BasicWorkflow(getRemoteUser()).getWorkflowNames(); } | 51,981 |
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this throw new Error("not implemented"); } | public Shape createStrokedShape(Shape s) { // FIXME: Implement this throw new Error("not implemented"); } | 51,984 |
public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this throw new Error("not implemented"); } | public Shape createStrokedShape(Shape s) throws NotImplementedException { // FIXME: Implement this PathIterator pi = s.getPathIterator( new AffineTransform() ); if( dash == null ) return solidStroke( pi ); return dashedStroke( pi ); } | 51,985 |
public void tearDown() throws Exception { connection.close(); //ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { connection.close(); //ServerManagement.deInit(); super.tearDown(); } | 51,986 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,987 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,988 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,989 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,990 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,991 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,992 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,993 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,994 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,995 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 51,996 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 51,997 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 51,998 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 51,999 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,000 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,001 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,002 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,003 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,004 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,005 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,006 |
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 52,007 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 52,008 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 52,009 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 52,010 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 52,011 |
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 52,012 |
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 52,013 |
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 52,014 |
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 52,015 |
public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int)border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int)border.left()) - ((sides & RIGHT) == 0 ? ... | public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int)border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int)border.left()) - ((sides & RIGHT) == 0 ? ... | 52,016 |
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session... | public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() ... | 52,017 |
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session... | public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session... | 52,018 |
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session... | public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Session... | 52,019 |
public void mouseDragged(MouseEvent e) { if(e.getComponent() instanceof HTMLPanel) { panel = (HTMLPanel)e.getComponent(); Box box = panel.findBox(e.getX(),e.getY()); if(box == null) return; //u.p("pressed " + box); // if box is text node then start selec... | public void mouseDragged(MouseEvent e) { if(e.getComponent() instanceof HTMLPanel) { panel = (HTMLPanel)e.getComponent(); Box box = panel.findBox(e.getX(),e.getY()); if(box == null) return; //u.p("pressed " + box); // if box is text node then start selec... | 52,021 |
protected void remove(DequeNode node) { if (head == node) { if (node.next != null) { head = node.next; } else { head = null; } } if (tail == node) { if (node.prev != null) { tail = node.p... | private void remove(DequeNode node) { if (head == node) { if (node.next != null) { head = node.next; } else { head = null; } } if (tail == node) { if (node.prev != null) { tail = node.pre... | 52,025 |
public ToolBarUI() { // TODO } // ToolBarUI() | public ToolBarUI() { // TODO } // ToolBarUI() | 52,026 |
public static Border getBorder( Context c, Box box ) { //u.p("checking box: " + box); //if text but parent is not block, then do border // if block then do border // if text but parent is block, then no border if(isBlockOrInlineElementBox(c,box)) { //u.p("doing border fo... | publicstaticBordergetBorder(Contextc,Boxbox){//u.p("checkingbox:"+box);//iftextbutparentisnotblock,thendoborder//ifblockthendoborder//iftextbutparentisblock,thennoborderif(isBlockOrInlineElementBox(c,box)){//u.p("doingborderfor:"+box);//u.p("hascode="+box.hashCode());if(box.border==null){//if(boxinstanceofBlockBox){box... | 52,027 |
public static boolean isBlockOrInlineElementBox(Context c, Box box) { if((box.node.getNodeType()==Node.TEXT_NODE && !InlineLayout.isBlockNode(box.getRealElement(),c)) || box.isElement()) { return true; } return false; } | public static boolean isBlockOrInlineElementBox(Context c, Box box) { if((box.node.getNodeType()==Node.TEXT_NODE && !DefaultLayout.isBlockNode(box.getRealElement(),c)) || box.isElement()) { return true; } return false; } | 52,028 |
Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; } | Resource getResource(String name) { try { File file = new File(dir, name).getCanonicalFile(); if (file.exists()) return new FileResource(this, file); } catch (IOException e) { // Fall through... } return null; } | 52,030 |
void cancelAllDeliveries() throws JMSException { if (trace) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List toCancel = new A... | void cancelAllDeliveries() throws JMSException { if (trace) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List toCancel = new A... | 52,031 |
public MessageProxy getMessageNow(boolean wait) throws JMSException { synchronized (channel) { try { grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); ... | public MessageProxy getMessageNow(boolean wait) throws JMSException { synchronized (channel) { try { grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); ... | 52,032 |
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... | 52,033 |
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + reference.getMessageID() + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects reference with ID " + reference.getMessageID... | 52,034 |
public ImageWriteParam(Locale locale) { this.locale = locale; } | protected ImageWriteParam() { this.locale = locale; } | 52,036 |
public ImageWriteParam(Locale locale) { this.locale = locale; } | public ImageWriteParam(Locale locale) { } | 52,037 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Rectangle r = a.getBounds(); childAllocation(childIndex, r); Shape result = child.modelToView(po... | 52,038 |
public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As... | public Shape modelToView(int pos, Shape a, Position.Bias bias) throws BadLocationException { int childIndex = getViewIndex(pos, bias); if (childIndex != -1) { View child = getView(childIndex); Shape result = child.modelToView(pos, a, bias); if (result == null) throw new As... | 52,039 |
public void computeRelativeUnit( Context context, XRElement ownerElement, String propName ) { if ( ValueConstants.isAbsoluteUnit(cssValue()) ) { sDbgLogger.info( "Was asked to convert a relative value, but value is absolute. Call isAbsolute() first." ); return; } float rel... | public void computeRelativeUnit( Context context, XRElement ownerElement, String propName ) { if ( ValueConstants.isAbsoluteUnit(cssValue()) ) { sDbgLogger.info( "Was asked to convert a relative value, but value is absolute. Call isAbsolute() first." ); return; } float rel... | 52,043 |
public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color... | public void writeXML(PrintWriter writer, int indent) { XMLUtil.printIndent(writer, indent); StringBuffer buf = new StringBuffer(); buf.append("<connector "); buf.append("id=\"").append(id).append('\"'); buf.append(" linewidth=\"").append(lineWidth).append('\"'); buf.append(" color=\"").append(color... | 52,046 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.