bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 51,026 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 51,027 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 51,028 |
void waitForLatch(long timeout) throws Exception { latch.attempt(timeout); //Thread.sleep(2000); //Enough time for postdeliver to complete } | voidwaitForLatch(longtimeout)throwsException{latch.attempt(timeout);//Thread.sleep(2000);//Enoughtimeforpostdelivertocomplete} | 51,030 |
public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | 51,031 |
public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | public static void paintBackground( Context c, Box box ) { Box block = box; // cache the background color getBackgroundColor( c, block ); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty( CSSName.BACKGROUND_I... | 51,032 |
private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.width) { int extra = (tableBox.width - sum) / ... | private static void fixWidths(TableBox tableBox, int borderSpacingHorizontal) { int sum = borderSpacingHorizontal; for (int i = 0; i < tableBox.columns.length; i++) sum += tableBox.columns[i] + borderSpacingHorizontal; if (sum < tableBox.width) { int extra = (tableBox.width - sum) / ... | 51,034 |
private static void layoutCells(List cells, Context c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext();) { TableCellContent tcc = (TableCellContent) i.next(); CellBox cellBox = new CellBox(); ... | private static void layoutCells(List cells, Context c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext();) { TableCellContent tcc = (TableCellContent) i.next(); CellBox cellBox = new CellBox(); ... | 51,035 |
public void closeCurrentWorkflow() { WorkflowGraph graph = graphTabs.getCurrentGraph(); if(graph != null) { deleteWorkflow(graph.getDescriptor().getName()); } //graphTabs.removeGraph(graphTabs.getCurrentGraph()); } | public void closeCurrentWorkflow() { WorkflowGraph graph = graphTabs.getCurrentGraph(); if(graph != null) { graphTabs.removeGraph(graph); } //graphTabs.removeGraph(graphTabs.getCurrentGraph()); } | 51,036 |
public void deleteWorkflow(String workflowName) { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().deleteWorkflow(workflowName); } | public void deleteWorkflow(String workflowName) throws FactoryException { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().deleteWorkflow(workflowName); } | 51,037 |
public void deleteWorkflow(String workflowName) { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().deleteWorkflow(workflowName); } | public void deleteWorkflow(String workflowName) { graphTabs.removeGraph(workflowName); navigator.removeWorkflow(workflowName); manager.getCurrentWorkspace().removeWorkflow(workflowName); } | 51,038 |
private boolean intersectsLine(CssContext cssCtx, Shape clip) { Rectangle result = new Rectangle( getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight); return clip.intersects(result); } | private boolean intersectsLine(CssContext cssCtx, Shape clip) { Rectangle result = new Rectangle( getAbsX(), getAbsY() + paintingTop, contentWidth, paintingHeight); return clip.intersects(result); } | 51,040 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obj... | 51,042 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 51,043 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 51,044 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 51,045 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 51,046 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 51,047 |
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); BlockBoxing.count++; Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNex... | 51,048 |
public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)pm).start(); ms = new PagingMessageStore("store1");... | public void setUp() throws Exception { super.setUp(); sc = new ServiceContainer("all,-remoting,-security"); sc.start(); pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager()); ((JDBCPersistenceManager)pm).start(); ms = new SimpleMessageStore("store1");... | 51,049 |
public void test8_NDC() throws Throwable { Channel channel1 = new Queue(1, ms, pm, true, FULL_SIZE1, PAGE_SIZE1, 0); State state1 = new ChannelState(channel1, pm, true, true, FULL_SIZE1, PAGE_SIZE1, 0); //Add some persistent messages, restart server and make sure state loads up ok ... | public void test8_NDC() throws Throwable { Channel channel1 = new Queue(1, ms, pm, true, FULL_SIZE1, PAGE_SIZE1, 0); State state1 = new ChannelState(channel1, pm, true, true, FULL_SIZE1, PAGE_SIZE1, 0); //Add some persistent messages, restart server and make sure state loads up ok ... | 51,050 |
public synchronized long getId() throws JMSException { if (nextID == high) { getNextBlock(); } long id = nextID++; if (log.isTraceEnabled()) { log.trace("Getting next message id=" + id); } return id; } | public synchronized long getId() throws JMSException { if (nextID == high) { getNextBlock(); } if (log.isTraceEnabled()) { log.trace("Getting next message id=" + id); } return id; } | 51,051 |
protected void getNextBlock() throws JMSException { IdBlock block = cd.getIDBlock(blockSize); nextID = block.getLow(); high = block.getHigh(); if (trace) { log.trace("Got block of IDs from server, low=" + nextID + " high=" + high); } } | protected void getNextBlock() throws JMSException { IdBlock block = cfd.getIdBlock(blockSize); nextID = block.getLow(); high = block.getHigh(); if (trace) { log.trace("Got block of IDs from server, low=" + nextID + " high=" + high); } } | 51,052 |
public void testExpirationOnReceive() throws Exception { expectedMessage = new JBossMessage(123456); queueProducer.send(queueProducerSession.createMessage(), DeliveryMode.NON_PERSISTENT, 4, 2000); // allow the message to expire Thread.sleep(3000); final Latch latch = new Latch(); // b... | public void testExpirationOnReceive() throws Exception { expectedMessage = new JBossMessage(123456); queueProducer.send(queueProducerSession.createMessage(), DeliveryMode.NON_PERSISTENT, 4, 2000); // allow the message to expire Thread.sleep(3000); final Latch latch = new Latch(); // b... | 51,053 |
public NameNotFoundException() { super(); } | public NameNotFoundException() { super(); } | 51,055 |
public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = ne... | public JMSRemotingConnection(String serverLocatorURI) throws Throwable { callbackManager = new CallbackManager(); id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = ne... | 51,056 |
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" ... | protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" ... | 51,058 |
public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = lab.getInsets(); FontMetrics fm = lab.getToolkit().getFontMetrics(lab.getFont()); layoutCL(lab, fm, la... | public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = lab.getInsets(); FontMetrics fm = lab.getFontMetrics(lab.getFont()); layoutCL(lab, fm, lab.getText(), ... | 51,060 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.calculateInnerArea(c, vr); if... | 51,061 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | 51,062 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Font saved_font = g.getFont(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); vr = SwingUtilities.... | 51,063 |
public BlockFormattingContext(Box master, Context c) { int parent_width = (int) c.getExtents().getWidth(); CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = sty... | public BlockFormattingContext(Box master, Context c) { int parent_width = (int) c.getExtents().getWidth(); CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = mas... | 51,064 |
public void addRightFloat(Box block) { //Uu.p("adding a right float: " + block); right_floats.add(block); offset_map.put(block, getOffset()); } | public void addRightFloat(Box block) { //Uu.p("adding a right float: " + block); right_floats.add(block); offset_map.put(block, getOffset()); } | 51,065 |
private int getFloatDistance(Box line, List float_list) { return this._float_manager.getFloatDistance(line,float_list, this); } | private int getFloatDistance(Box line, List float_list) { return this._float_manager.getFloatDistance(line,float_list, this); } | 51,066 |
public FloatManager getFloatManager() { return this._float_manager; } | public FloatManager getFloatManager() { return this._float_manager; } | 51,067 |
public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | 51,068 |
public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | 51,069 |
public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | 51,070 |
public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | 51,071 |
public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | public Box getLeftFloatX(Box box) { //Uu.p("in old bfc.getLeftFloatX( " + box + " ) "); // count backwards through the floats int x = 0; for (int i = left_floats.size() - 1; i >= 0; i--) { Box floater = (Box) left_floats.get(i); //Uu.p("box = " + box); // Uu.p("... | 51,072 |
public Point getOffset(Box box) { return (Point) offset_map.get(box); } | public Point getOffset(Box box) { return (Point) offset_map.get(box); } | 51,073 |
public int getRightFloatDistance(LineBox line) { ///Uu.p("get right float distance: " + line); return getFloatDistance(line, right_floats); } | public int getRightFloatDistance(LineBox line) { ///Uu.p("get right float distance: " + line); return getFloatDistance(line, right_floats); } | 51,074 |
public Box getRightFloatX(Box box) { //Uu.p("get right float x : " + box); // count backwards through the floats int x = 0; for (int i = right_floats.size() - 1; i >= 0; i--) { Box floater = (Box) right_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing a... | public Box getRightFloatX(Box box) { //Uu.p("get right float x : " + box); // count backwards through the floats int x = 0; for (int i = right_floats.size() - 1; i >= 0; i--) { Box floater = (Box) right_floats.get(i); // Uu.p("box = " + box); // Uu.p("testing a... | 51,075 |
public Box newGetLeftFloatX(Box box) { return FloatManager.newGetLeftFloatX(box,left_floats,this); } | public Box newGetLeftFloatX(Box box) { return FloatManager.newGetLeftFloatX(box,left_floats,this); } | 51,076 |
public Box pushDownRight(Box box) { //Uu.p("push Down Right : " + box); return pushDownLeftRight(box, right_floats); } | public Box pushDownRight(Box box) { //Uu.p("push Down Right : " + box); return pushDownLeftRight(box, right_floats); } | 51,077 |
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { ConsumerDelegate cons = (ConsumerDelegate)invocation.invokeNext(); DelegateSupport delegate = (DelegateSupport)cons; delegate.init(); SessionState sessState = (SessionState)getState(invocation... | public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { ConsumerDelegate cons = (ConsumerDelegate)invocation.invokeNext(); DelegateSupport delegate = (DelegateSupport)cons; delegate.init(); SessionState sessState = (SessionState)getState(invocation... | 51,080 |
private synchronized void completeLayout() { u.p("layout thread ending"); done = true; graphics = null; panel.repaint(); } | private synchronized void completeLayout() { done = true; graphics = null; panel.repaint(); } | 51,082 |
public ClientProducerDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientProducerDelegate(String objectID) { super(objectID, locator); } | 51,083 |
public ClientProducerDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); } | public ClientProducerDelegate(String objectID, InvokerLocator locator) { super(objectID); } | 51,084 |
public JTextPane() { setEditorKit(createDefaultEditorKit()); setDocument(null); } | public JTextPane() { setEditorKit(createDefaultEditorKit()); setDocument(null); } | 51,085 |
public void send(Message message) throws JMSException { // by default the message never expires send(message, -1, -1, Long.MIN_VALUE); } | public void send(Message message) throws JMSException { // by default the message never expires send(message, -1, -1, 0); } | 51,086 |
public Object getResult() { return new JobTimings(-1, -1); } | public JobResult getResult() { return new JobTimings(-1, -1); } | 51,087 |
public Object getResult() { return new JobTimings(-1, -1); } | public Object getResult() { JobResult res = new JobResult(); res.failed = failed; if (failed) { res.throwables = new Throwable[] { throwable }; } return res; } | 51,088 |
public void run() { Connection conn = null; int count = 0; try { super.setup(); log.info("Running drain job ==============="); conn = cf.createConnection(); if (clientID != null) { try { ... | public void run() { Connection conn = null; int count = 0; try { super.setup(); log.info("Running drain job ==============="); conn = cf.createConnection(); if (clientID != null) { try { ... | 51,089 |
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean clearedPage = false; int clearDelta = 0; if (block.getStyle().isForcePageBreakBefore() || ... | 51,092 |
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | 51,093 |
private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | private static void positionFloatOnPage( final LayoutContext c, FloatedBlockContent content, LineBox curr_line, FloatedBlockBox block, boolean movedVertically) { boolean didRelayout = false; if (block.getStyle().isForcePageBreakBefore() || (block.getStyle... | 51,094 |
public static void paint(RenderingContext c, Box box) { Box block = (Box) box; if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block); } else { //set the current style /* CascadedStyle style = null; if (!styl... | public static void paint(RenderingContext c, Box box) { Box block = (Box) box; if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block); } else { //set the current style /* CascadedStyle style = null; if (!styl... | 51,095 |
public void insertString(int offs, String str, AttributeSet atts) throws BadLocationException { String string = str; if (Boolean.TRUE.equals(getProperty("filterNewlines"))) string = str.replaceAll("\n", " "); super.insertString(offs, string, atts); } | public void insertString(int offs, String str, AttributeSet atts) throws BadLocationException { String string = str; if (str != null && Boolean.TRUE.equals(getProperty("filterNewlines"))) string = str.replaceAll("\n", " "); super.insertString(offs, string, atts); } | 51,097 |
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { reindex(); super.insertUpdate(event, attributes); } | protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { reindex(); super.insertUpdate(event, attributes); } | 51,098 |
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { reindex(); super.insertUpdate(event, attributes); } | protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { int offset = event.getOffset(); int end = offset + event.getLength(); int elementIndex = rootElement.getElementIndex(offset); Element firstElement = rootElement.getElement(elementIndex); Element[] removed = new Element[1]; Eleme... | 51,099 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 51,101 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p0 + event.ge... | 51,102 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 51,103 |
protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | protected void removeUpdate(DefaultDocumentEvent event) { super.removeUpdate(event); int p0 = event.getOffset(); int len = event.getLength(); int p1 = len + p0; // check if we must collapse some elements int i1 = rootElement.getElementIndex(p0); int i2 = rootElement.getElementIndex(p1); if (i... | 51,104 |
public Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; } | public final Object getProperty(Object key) { // FIXME: make me thread-safe Object value = null; if (properties != null) value = properties.get(key); return value; } | 51,105 |
public void tearDown() throws Exception { ServerManagement.deInit(); TransactionManagerImpl.getInstance().setState(TransactionManagerImpl.OPERATIONAL); super.tearDown(); } | public void tearDown() throws Exception { TransactionManagerImpl.getInstance().setState(TransactionManagerImpl.OPERATIONAL); super.tearDown(); } | 51,106 |
public static boolean isReplaced( Node node ) { // all images are replaced (because they have intrinsic sizes) if ( node.getNodeName().equals( "img" ) ) { return true; } if ( node.getNodeName().equals( "select" ) ) { return true; } if ( node.getNodeNam... | public static boolean isReplaced( Node node ) { // all images are replaced (because they have intrinsic sizes) if ( node.getNodeName().equals( "img" ) ) { return true; } if ( node.getNodeName().equals( "select" ) ) { return true; } if ( node.getNodeNam... | 51,107 |
public List remoteBrowse(PeerIdentity originator, Filter filter) { if (getPeerIdentity().equals(originator)) { // ignore my own requests return Collections.EMPTY_LIST; } if (log.isTraceEnabled()) { log.trace(this + " got remote browse request" + (filter == null ? "" : ", filter ... | public List remoteBrowse(PeerIdentity originator, Filter filter) { if (getPeerIdentity().equals(originator)) { // ignore my own requests return Collections.EMPTY_LIST; } if (log.isTraceEnabled()) { log.trace(this + " got remote browse request" + (filter == null ? "" : ", filter ... | 51,108 |
public boolean unregister(Serializable category) { synchronized(servers) { return servers.remove(category) != null; } } | public boolean unregister(Serializable category, ServerFacade subordinate) { synchronized(servers) { return servers.remove(category) != null; } } | 51,109 |
public boolean unregister(Serializable category) { synchronized(servers) { return servers.remove(category) != null; } } | public boolean unregister(Serializable category) { synchronized(servers) { Object o = servers.get(category); if (o == null) { return false; } if (o instanceof Set) { Set equivalents = (Set)o; return equivalents.remove(subordinate); } else { if (o != subordinate) { return false; } servers.remove(... | 51,110 |
public View create(Element element) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equa... | public View create(Element element) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equa... | 51,111 |
public View create(Element element) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equa... | else throw new AssertionError("Unknown Element type: " + element.getClass().getName() + " : " + name); else throw new AssertionError("Unknown Element type: " + element.getClass().getName() + " : " + name); else throw new AssertionError("Unknown Element type: " + element.getClass().getName() + " : " + name); else throw ... | 51,112 |
public void addFirstRow( Context c, Node row ) { addRow(c, row, true, 0 ); } | public void addFirstRow( Context c, Node row ) { addRow(c, row, true, 0 ); } | 51,113 |
public void addRow( Context c, Node row, int y ) { addRow(c, row, false, y ); } | public void addRow( Context c, Node row, int y ) { addRow(c, row, false, y ); } | 51,114 |
public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | 51,115 |
public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | 51,116 |
public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | public void addTable( Context c, Element elem ) { // for each tr NodeList rows = elem.getChildNodes(); boolean first_row = true; int row_count = 0; for ( int i = 0; i < rows.getLength(); i++ ) { Node row = rows.item( i ); // NOTE: JMM 11/19/04 ... | 51,117 |
public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change body of catch s... | public XMLResource getXMLResource(String uri) { uri = resolveURI(uri); if (uri != null && uri.startsWith("file:")) { File file = null; try { file = new File(new URI(uri)); } catch (URISyntaxException e) { e.printStackTrace(); //To change ... | 51,118 |
public Context() { font_resolver = new FontResolver(); /* // set up text rendering code TextRendererFactory text_renderer_factory = TextRendererFactory.newOversamplingInstance(); text_renderer = text_renderer_factory.newTextRenderer(); String text_renderer_quality = System.... | public Context() { font_resolver = new FontResolver(); /* // set up text rendering code TextRendererFactory text_renderer_factory = TextRendererFactory.newOversamplingInstance(); text_renderer = text_renderer_factory.newTextRenderer(); String text_renderer_quality = System.... | 51,121 |
protected Document loadDocument( final URL url ) throws Exception { /* CLEAN * XRDocument xrDoc = XRDocumentFactory.loadDocument(null, url); * return xrDoc.getDOMDocument(); */ DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); DocumentBuilder bui... | protected Document loadDocument( final URL url ) throws Exception { /* CLEAN * XRDocument xrDoc = XRDocumentFactory.loadDocument(null, url); * return xrDoc.getDOMDocument(); */ DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance(); DocumentBuilder bui... | 51,122 |
public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | 51,123 |
public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | public synchronized boolean accept(Routable routable) { try { JBossMessage mess = (JBossMessage)routable; // Set the identifiers values Iterator i = identifiers.values().iterator(); while (i.hasNext()) { Identifier id = (Identifier) i.next(); ... | 51,124 |
private Object getHeaderFieldReferences(JBossMessage mess, String idName) throws JMSException { // JMS 3.8.1.1 -- Message header field references are restricted to: // JMSDeliveryMode, JMSPriority, JMSMessageID, // JMSTimeStamp, JMSCorrelationID and JMSType //... | private Object getHeaderFieldReferences(Message mess, String idName) throws JMSException { // JMS 3.8.1.1 -- Message header field references are restricted to: // JMSDeliveryMode, JMSPriority, JMSMessageID, // JMSTimeStamp, JMSCorrelationID and JMSType // ... | 51,125 |
public ConnectionState(String serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, ResourceManager rm, MessageIdGenerator gen) throws Exception { super(null, delegate); if (log.isTraceEnabled())... | public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, ResourceManager rm, MessageIdGenerator gen) throws Exception { super(null, delegate); if (log.isTraceEnabled()) { ... | 51,129 |
public String getServerID() { return serverID; } | public int getServerID() { return serverID; } | 51,130 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerManagement.depl... | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerManagement.depl... | 51,131 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerManagement.depl... | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerManagement.depl... | 51,132 |
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); connection.stop(); connection = null; super.tearDown(); } | public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); connection.stop(); connection = null; super.tearDown(); } | 51,133 |
protected void fireActionPerformed() { ActionEvent event = new ActionEvent(this, 0, notifyAction); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); } | protected void fireActionPerformed() { ActionEvent event = new ActionEvent(this, 0, getText()); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); } | 51,134 |
public BoundedRangeModel getHorizontalVisibility() { // TODO: The real implementation of this property is still missing. // However, this is not done in JTextField but must instead be handled in // javax.swing.text.FieldView. return horizontalVisibility; } | public BoundedRangeModel getHorizontalVisibility() { // TODO: The real implementation of this property is still missing. // However, this is not done in JTextField but must instead be handled in // javax.swing.text.FieldView. return horizontalVisibility; } | 51,135 |
public int getScrollOffset() { //FIXME: this should return horizontalVisibility's value return scrollOffset; } | public int getScrollOffset() { //FIXME: this should return horizontalVisibility's value return horizontalVisibility.getValue(); } | 51,136 |
public void setScrollOffset(int offset) { //FIXME: this should actualy scroll the field if needed scrollOffset = offset; } | public void setScrollOffset(int offset) { //FIXME: this should actualy scroll the field if needed horizontalVisibility.setValue( Math.min(horizontalVisibility.getMaximum() - horizontalVisibility.getExtent(), offset)); } | 51,137 |
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.depl... | super.drainDestination(cf, queue); super.drainDestination(cf, queue2); super.drainDestination(cf, queue); super.drainDestination(cf, queue2); super.drainDestination(cf, queue); super.drainDestination(cf, queue2); publicsuper.drainDestination(cf, queue); super.drainDestination(cf, queue2); voidsuper.drainDestination(cf,... | 51,139 |
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.depl... | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.deployQueue("Queue"); ServerMan... | 51,140 |
public String getConsumerID() { return consumerID; } | public int getConsumerID() { return consumerID; } | 51,142 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { messageID = in.readUTF(); consumerID = in.readUTF(); } | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { messageID = in.readUTF(); consumerID = in.readInt(); } | 51,143 |
public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF(messageID); out.writeUTF(consumerID); } | public void writeExternal(ObjectOutput out) throws IOException { out.writeUTF(messageID); out.writeInt(consumerID); } | 51,144 |
public void tearDown() throws Exception { // TODO uncomment these //Drain the queue while (true) { Message m = queueConsumer.receive(2000); if (m == null) break; } producerConnection.close(); consumerConnection.close(); ServerManagement.unde... | public void tearDown() throws Exception { // TODO uncomment these //Drain the queue while (true) { Message m = queueConsumer.receive(2000); if (m == null) break; } producerConnection.close(); consumerConnection.close(); ServerManagement.unde... | 51,146 |
public List getSecurityPermissions(long id) { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id); } | public List getSecurityPermissions(long id) { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id, null); } | 51,147 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.