bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 50,595 |
public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(Destination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 50,596 |
public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } DurableSubscription subscri... | public void unsubscribe(String subscriptionName) throws JMSException { if (closed) { throw new IllegalStateException("Session is closed"); } if (subscriptionName == null) { throw new InvalidDestinationException("Destination is null"); } DurableSubscription subscri... | 50,597 |
public AccessibleRole getAccessibleRole() { return null; } | public AccessibleRole getAccessibleRole() { return AccessibleRole.SCROLL_BAR; } | 50,599 |
public AccessibleStateSet getAccessibleStateSet() { return null; } | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet result = super.getAccessibleStateSet(); if (orientation == JScrollBar.HORIZONTAL) result.add(AccessibleState.HORIZONTAL); else if (orientation == JScrollBar.VERTICAL) result.add(AccessibleState.VERTICAL); return result; } | 50,600 |
public AccessibleValue getAccessibleValue() { return null; } | public AccessibleValue getAccessibleValue() { return this; } | 50,601 |
public Number getCurrentAccessibleValue() { return null; } | public Number getCurrentAccessibleValue() { return new Integer(getValue()); } | 50,602 |
public Number getMaximumAccessibleValue() { return null; } | public Number getMaximumAccessibleValue() { return new Integer(getMaximum() - model.getExtent()); } | 50,603 |
public Number getMinimumAccessibleValue() { return null; } | public Number getMinimumAccessibleValue() { return new Integer(getMinimum()); } | 50,604 |
public boolean setCurrentAccessibleValue(Number value0) { return false; } | public boolean setCurrentAccessibleValue(Number value) { return false; } | 50,605 |
protected void chartVariableBenchmark(String bmName, String variableName, String xLabel, String yLabel, String title, String imageFileName) throws Exception { log.info("Charting benchmark:" + bmName); Benchmark bm = pm.getBenchmark(bmName); if (bm == null) { return; } ... | protected void chartVariableBenchmark(String bmName, String variableName, String xLabel, String yLabel, String title, String imageFileName) throws Exception { log.info("Charting benchmark:" + bmName); Benchmark bm = pm.getBenchmark(bmName); if (bm == null) { return; } ... | 50,607 |
protected void doCharts() throws Exception { chartSimpleBenchmark("Queue1", "Date", "Send rate (messages/sec)", "Non transactional, Non-persistent send only of messages to queue", "Queue1.jpg"); chartSimpleBenchmark("Queue2", "Date", "Send rate (messages/sec)", ... | protected void doCharts() throws Exception { chartSimpleBenchmark("Queue1", "Date", "Send rate (messages/sec)", "Non transactional, Non-persistent send only of messages to queue", "Queue1.jpg"); chartSimpleBenchmark("Queue2", "Date", "Send rate (messages/sec)", ... | 50,608 |
protected void doCharts() throws Exception { chartSimpleBenchmark("Queue1", "Date", "Send rate (messages/sec)", "Non transactional, Non-persistent send only of messages to queue", "Queue1.jpg"); chartSimpleBenchmark("Queue2", "Date", "Send rate (messages/sec)", ... | protected void doCharts() throws Exception { chartSimpleBenchmark("Queue1", "Date", "Send rate (messages/sec)", "Non transactional, Non-persistent send only of messages to queue", "Queue1.jpg"); chartSimpleBenchmark("Queue2", "Date", "Send rate (messages/sec)", ... | 50,609 |
protected void doCharts() throws Exception { chartSimpleBenchmark("Queue1", "Date", "Send rate (messages/sec)", "Non transactional, Non-persistent send only of messages to queue", "Queue1.jpg"); chartSimpleBenchmark("Queue2", "Date", "Send rate (messages/sec)", ... | protected void doCharts() throws Exception { chartSimpleBenchmark("Queue1", "Date", "Send rate (messages/sec)", "Non transactional, Non-persistent send only of messages to queue", "Queue1.jpg"); chartSimpleBenchmark("Queue2", "Date", "Send rate (messages/sec)", ... | 50,610 |
public void incrementDeliveryCount() { deliveryCount++; } | public void incrementDeliveryCount() { deliveryCount++; } | 50,611 |
public void setRedelivered(boolean redelivered) { this.redelivered = redelivered; } | public void setRedelivered(boolean redelivered) { this.redelivered = redelivered; } | 50,613 |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM... | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM... | 50,615 |
protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM... | protected void installKeyboardActions() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); InputMap ancestorMap = (InputMap)defaults.get("Table.ancestorInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionM... | 50,616 |
public void setSelectionInterval(int index0, int index1) { if (mode == SINGLE_SELECTION) { sel.removeAllElements(); } sel.addElement(new Range(index0, index1)); } | public void setSelectionInterval(int index0, int index1) { if (mode == SINGLE_SELECTION) { sel.removeAllElements(); } sel.addElement(new Range(index0, index1)); } | 50,617 |
public void setSelectionInterval(int index0, int index1) { if (mode == SINGLE_SELECTION) { sel.removeAllElements(); } sel.addElement(new Range(index0, index1)); } | public void setSelectionInterval(int index0, int index1) { if (mode == SINGLE_SELECTION) { sel.removeAllElements(); } sel.addElement(new Range(index0, index1)); } | 50,618 |
public int getMinSelectionIndex() { if (isSelectionEmpty()) return -1; boolean first = true; int min = -1; for (int i=0;i<sel.size();i++) { Range r = (Range) sel.get(i); if (first) { min = r.i0; first = false; } else { if (r.i0 > min) { min = r.i0; } } } ... | public int getMinSelectionIndex() { if (isSelectionEmpty()) return -1; boolean first = true; int min = -1; for (int i=0;i<sel.size();i++) { Range r = (Range) sel.get(i); if (first) { min = r.i0; first = false; } else { if (r.i0 > min) { min = r.i0; } } } ... | 50,619 |
public int getMaxSelectionIndex() { if (isSelectionEmpty()) return -1; boolean first = true; int max = -1; for (int i=1;i<sel.size();i++) { Range r = (Range) sel.get(i); if (first) { max = r.i1; } else { if (r.i1 > max) { max = r.i1; } } } return max; } | public int getMaxSelectionIndex() { if (isSelectionEmpty()) return -1; boolean first = true; int max = -1; for (int i=1;i<sel.size();i++) { Range r = (Range) sel.get(i); if (first) { max = r.i1; } else { if (r.i1 > max) { max = r.i1; } } } return max; } | 50,620 |
public int getMaxSelectionIndex() { if (isSelectionEmpty()) return -1; boolean first = true; int max = -1; for (int i=1;i<sel.size();i++) { Range r = (Range) sel.get(i); if (first) { max = r.i1; } else { if (r.i1 > max) { max = r.i1; } } } return max; } | public int getMaxSelectionIndex() { if (isSelectionEmpty()) return -1; boolean first = true; int max = -1; for (int i=1;i<sel.size();i++) { Range r = (Range) sel.get(i); if (first) { max = r.i1; } else { if (r.i1 > max) { max = r.i1; } } } return max; } | 50,621 |
public boolean isSelectedIndex(int a) { for (int i=0;i<sel.size();i++) { Range r = (Range) sel.get(i); if (r.i0 <= a && r.i1 >= a) { return true; } } return false; } | public boolean isSelectedIndex(int a) { for (int i=0;i<sel.size();i++) { Range r = (Range) sel.get(i); if (r.i0 <= a && r.i1 >= a) { return true; } } return false; } | 50,622 |
public void testDistributedTopic_1() throws Exception { jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); assertTrue(jchannel2.isConnected()); // make sure both jchannels joined the group assertEquals(2, jchann... | public void testDistributedTopic_1() throws Exception { jchannel2.connect("testGroup"); // allow the group time to form Thread.sleep(1000); assertTrue(jchannel.isConnected()); assertTrue(jchannel2.isConnected()); // make sure both jchannels joined the group assertEquals(2, jchann... | 50,623 |
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { return super.modelToView(pos, a, b); } | public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { Shape newAlloc = adjustAllocation(a); updateMetrics(); int lineIndex = getElement().getElementIndex(pos); Rectangle rect = lineToRect(newAlloc, lineIndex); Element line = getElement().getElement(lineIndex); int line... | 50,624 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | private synchronized boolean registerServiceProvider(Object provider, int cat) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerService... | 50,626 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | public synchronized void registerServiceProvider(Object provider) { LinkedList provs; boolean result; Class category; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; ... | 50,627 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | 50,628 |
public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | public synchronized void registerServiceProvider(Object provider) { boolean ok = false; if (provider == null) throw new IllegalArgumentException(); for (int i = 0; i < categories.length; i++) if (categories[i].isInstance(provider)) { ok = true; registerServiceProvider(prov... | 50,629 |
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); } }... | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); } }... | 50,633 |
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); } }... | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); } }... | 50,634 |
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); } }... | public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int outOffset = 0; if (iArray == null) iArray = new int[size]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); } }... | 50,635 |
public void setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int inOffset = 0; int[] pixel = new int[numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { System.arraycopy(iArray, inOffset, pixel, 0, numBands); setPixel(xx, yy, pixel, data); inOffse... | public void setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int inOffset = 0; int[] pixel = new int[numBands]; for (int yy = y; yy < (y + h); yy++) { for (int xx=x; xx<(x+w); xx++) { System.arraycopy(iArray, inOffset, pixel, 0, numBands); setPixel(xx, yy, pixel, data); i... | 50,636 |
public void setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int inOffset = 0; int[] pixel = new int[numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { System.arraycopy(iArray, inOffset, pixel, 0, numBands); setPixel(xx, yy, pixel, data); inOffse... | public void setPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int inOffset = 0; int[] pixel = new int[numBands]; for (int yy=y; yy<(y+h); yy++) { for (int xx=x; xx<(x+w); xx++) { System.arraycopy(iArray, inOffset, pixel, 0, numBands); setPixel(xx, yy, pixel, data); inOffse... | 50,637 |
public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int inOffset = 0; for (int yy=y; yy<(y+h); yy++) for (int xx=x; xx<(x+w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); } | public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int inOffset = 0; for (int yy=y; yy<(y+h); yy++) for (int xx=x; xx<(x+w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); } | 50,638 |
public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int inOffset = 0; for (int yy=y; yy<(y+h); yy++) for (int xx=x; xx<(x+w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); } | public void setSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w*h; int inOffset = 0; for (int yy=y; yy<(y+h); yy++) for (int xx=x; xx<(x+w); xx++) setSample(xx, yy, b, iArray[inOffset++], data); } | 50,639 |
public ServerConnectionFactoryEndpoint(int id, ServerPeer serverPeer, String defaultClientID, JNDIBindings jndiBindings) { this.serverPeer = serverPeer; this.clientID = defaultClientID; this.id = id; this.jndiBindings = jndiBindings; } | public ServerConnectionFactoryEndpoint(int id, ServerPeer serverPeer, String defaultClientID, JNDIBindings jndiBindings) { this.serverPeer = serverPeer; this.clientID = defaultClientID; this.id = id; this.jndiBindings = jndiBindings; } | 50,640 |
public boolean finishConnect () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!isConnected() && !connectionPending) throw new NoConnectionPendingException(); if (isConnected()) return true; // FIXME: Handle blocking/non-blocking mode. Selector se... | public boolean finishConnect () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!isConnected() && !connectionPending) throw new NoConnectionPendingException(); if (isConnected()) return true; // FIXME: Handle blocking/non-blocking mode. Selector se... | 50,641 |
public int read (ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if (available == 0) r... | public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if (available == 0) re... | 50,642 |
public int read (ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if (available == 0) r... | public int read (ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) && av... | 50,643 |
public int read (ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if (available == 0) r... | public int read (ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if (available == 0) r... | 50,644 |
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; PreparedStateme... | public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding message reference " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; ... | 50,645 |
public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; PreparedStateme... | public void addReference(Serializable channelID, MessageReference ref, Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Adding " + ref + " for channel " + channelID + (tx == null ? " non-transactionally" : " in transaction: " + tx));} Connection conn = null; PreparedStateme... | 50,646 |
public Message retrieveMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn ... | public Message retrieveMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn ... | 50,647 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | 50,648 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | 50,649 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | 50,650 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | 50,651 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | 50,652 |
public TableHeaderUI() { // TODO } // TableHeaderUI() | public TableHeaderUI() { // TODO } // TableHeaderUI() | 50,653 |
public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle) { // u.p("gen first letter box"); // u.p("node = " + node); // u.p("start = ... | 50,654 |
public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | 50,655 |
public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | 50,656 |
public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | public static InlineBox generateFirstLetterInlineBox(Context c, int start, String text, InlineBox prev_align, TextContent content, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle) { // u.p("gen first letter box"); // u.p("node = " + ... | 50,657 |
public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) { //u.p("generating replaced Inline Box"); // get the layout for the replaced element Layout layout = c.getLayout(content.getElement()); BlockBox block = (BlockBox) l... | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) { //u.p("generating replaced Inline Box"); // get the layout for the replaced element Layout layout = c.getLayout(content.getElement()); BlockBox block = (BlockBox) l... | 50,659 |
public static InlineBox newBox(Context c, Content content, int start, int end, String text, InlineBox prev_align, Font font, CascadedStyle firstLineStyle) { return newBox(c, content, start, end, text, null, prev_align, font, firstLineStyle); } | public static InlineBox newBox(Context c, Content content, int start, int end, String text, InlineBox prev_align, Font font, CascadedStyle firstLineStyle) { return newBox(c, content, start, end, text, null, prev_align, font, firstLineStyle); } | 50,660 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text = " + text + " bounds = " + b... | 50,661 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 50,662 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 50,663 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 50,664 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 50,665 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 50,666 |
public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | public static InlineBox styleBox(Context c, Node node, int start, int end, String text, Rectangle bounds, InlineBox prev_align, Font font, InlineBox box, CascadedStyle firstLineStyle) { //u.p("styleBox node = " + node.getNodeName() + " start = " + start + " end = " + end + //" prev = " + prev + " text... | 50,667 |
ServerProducerEndpoint(String id, Destination jmsDestination, ServerSessionEndpoint parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; } | ServerProducerEndpoint(int id, Destination jmsDestination, ServerSessionEndpoint parent) { this.id = id; this.jmsDestination = jmsDestination; sessionEndpoint = parent; } | 50,668 |
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(this.id); Disp... | public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(this.id); Disp... | 50,669 |
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(this.id); Disp... | public void close() throws JMSException { if (closed) { throw new IllegalStateException("Producer is already closed"); } //Currently this does nothing if (log.isTraceEnabled()) { log.trace("close (noop)"); } this.sessionEndpoint.producers.remove(this.id); JMSD... | 50,670 |
public void closing() throws JMSException { //Currently this does nothing if (log.isTraceEnabled()) { log.trace("closing (noop)"); } } | public void closing() throws JMSException { //Currently this does nothing if (trace) { log.trace("closing (noop)"); } } | 50,671 |
public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (log.isTraceEnabled()) { log.trace("sending message: " + m); } sessionEndpoint.connectionEndpoint.sendMessage(m, null); } | public void send(Message m) throws JMSException { if (closed) { throw new IllegalStateException("Producer is closed"); } if (trace) { log.trace("Sending message: " + m); } sessionEndpoint.connectionEndpoint.sendMessage(m, null); } | 50,672 |
public String toString() { return "ProducerEndpoint[" + Util.guidToString(id) + ", " + jmsDestination + "]"; } | public String toString() { return "ProducerEndpoint[" + id + ", " + jmsDestination + "]"; } | 50,673 |
public String toString() { return "Inline-Block: (" + x + "," + y + ") -> (" + width + "Xx" + height + ")"; } | public String toString() { StringBuffer sb = new StringBuffer(); sb.append("InlineBlockBox:"); sb.append(super.toString()); return sb.toString(); } | 50,674 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("setMessageListen... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("setMessageListen... | 50,675 |
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("setMessageListen... | public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("setMessageListen... | 50,676 |
public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Objec... | public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Objec... | 50,678 |
private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | 50,679 |
private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | private static void stripWhitespaceContent(List list) { List remove_list = new ArrayList(); for (int i = 0; i < list.size(); i++) { if (list.get(i) instanceof TextContent) { remove_list.add(list.get(i)); } } for (int i = 0; i < remove_list.size(); i++... | 50,680 |
public MetalToolTipUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); activeBorder = defaults.getBorder("ToolTip.border"); inactiveBorder = defaults.getBorder("ToolTip.borderInactive"); isAcceleratorHidden = defaults.getBoolean("ToolTip.hideAccelerator"); acceleratorFont = de... | public MetalToolTipUI() { super(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); activeBorder = defaults.getBorder("ToolTip.border"); inactiveBorder = defaults.getBorder("ToolTip.borderInactive"); isAcceleratorHidden = defaults.getBoolean("ToolTip.hideAccelerator"); acceleratorFont = de... | 50,681 |
public void addBindingFromCluster(int nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); if (trace) { log.trace(this.nodeId + " adding binding from nod... | public void addBindingFromCluster(int nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); if (trace) { log.trace(this.nodeId + " adding binding from nod... | 50,682 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getA... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Method m = mi.getMethod(); String methodName = m.getName(); JMSAdvisor jmsAdvisor = (JMSAdvisor)mi.getA... | 50,683 |
public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... | public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); log.info("received message(s) from server " + dr.getServerId()); Long lookup = calcLookup(dr.getServerId()... | 50,684 |
public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... | public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... | 50,685 |
public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... | public Object invoke(InvocationRequest ir) throws Throwable { MessagingMarshallable mm = (MessagingMarshallable)ir.getParameter(); ClientDelivery dr = (ClientDelivery)mm.getLoad(); int consumerID = dr.getConsumerID(); List msgs = dr.getMessages(); MessageCallbackHandler h... | 50,686 |
public void registerHandler(int consumerID, MessageCallbackHandler handler) { callbackHandlers.put(new Integer(consumerID), handler); } | public void registerHandler(int serverId, int consumerId, MessageCallbackHandler handler) { callbackHandlers.put(new Integer(consumerID), handler); } | 50,687 |
public void registerHandler(int consumerID, MessageCallbackHandler handler) { callbackHandlers.put(new Integer(consumerID), handler); } | public void registerHandler(int consumerID, MessageCallbackHandler handler) { Long lookup = calcLookup(serverId, consumerId); callbackHandlers.put(lookup, handler); } | 50,688 |
public void unregisterHandler(int consumerID) { callbackHandlers.remove(new Integer(consumerID)); } | public void unregisterHandler(int serverId, int consumerId) { callbackHandlers.remove(new Integer(consumerID)); } | 50,689 |
public void unregisterHandler(int consumerID) { callbackHandlers.remove(new Integer(consumerID)); } | public void unregisterHandler(int consumerID) { Long lookup = calcLookup(serverId, consumerId); callbackHandlers.remove(lookup); } | 50,690 |
public Object handleClosing(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = state.getAcknowledgeMode(); //We need to e... | public Object handleClosing(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; SessionState state = getState(invocation); SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = state.getAcknowledgeMode(); //We need to either ack (for auto_ack) or ... | 50,693 |
public Box createBox( Context c, Node node ) { AnonymousBlockBox block = new AnonymousBlockBox( text, c ); return block; } | public Box createBox(Context c, Node node) { AnonymousBlockBox block = new AnonymousBlockBox( text, c ); return block; } | 50,696 |
public Box createBox( Context c, Node node ) { AnonymousBlockBox block = new AnonymousBlockBox( text, c ); return block; } | public Box createBox( Context c, Node node ) { AnonymousBlockBox block = new AnonymousBlockBox(text, c); return block; } | 50,697 |
public static synchronized void start(String config) throws Exception { start(0, config); } | public static synchronized void start(String config) throws Exception { start(0, config, true); } | 50,699 |
public String getLinkUri(org.w3c.dom.Element e) { String href = null; if (e.getNodeName().equalsIgnoreCase("a") && !e.getAttribute("href").equals("")) { href = e.getAttribute("href"); } return href; } | public String getLinkUri(org.w3c.dom.Element e) { String href = null; if (e.getNodeName().equalsIgnoreCase("a") && e.hasAttribute("href")) { href = e.getAttribute("href"); } return href; } | 50,700 |
public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; String host; if (args[0] != null) host = new String(args[0]); else host = new String("arak"); try { echoSocket = new Socket(host, 7); out = new PrintWriter(echoSocket.g... | public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; String host; if (args[0] != null) host = new String(args[0]); else host = new String("arak"); try { echoSocket = new Socket(host, 7); out = new PrintWriter(echoSocket.g... | 50,702 |
public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; String host; if (args[0] != null) host = new String(args[0]); else host = new String("arak"); try { echoSocket = new Socket(host, 7); out = new PrintWriter(echoSocket.g... | public static void main(String[] args) throws IOException { Socket echoSocket = null; PrintWriter out = null; BufferedReader in = null; String host; if (args[0] != null) host = new String(args[0]); else host = new String("arak"); try { echoSocket = new Socket(host, 7); out = new PrintWriter(echoSocket.g... | 50,703 |
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Serv... | public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Serv... | 50,704 |
public void translate(int x, int y) { //Uu.p("trans : " + Xx + " " + y); this.x -= x; this.y -= y; } | public void translate(int x, int y) { //Uu.p("trans : " + Xx + " " + y); this.x -= x; this.y -= y; } | 50,705 |
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers, boolean release) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), release); } | public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers, boolean release) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), release); } | 50,706 |
public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers, boolean release) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), release); } | public static AWTKeyStroke getAWTKeyStroke(int keyCode, int modifiers, boolean release) { return getAWTKeyStroke(KeyEvent.CHAR_UNDEFINED, keyCode, extend(modifiers), release); } | 50,707 |
public void testCheckResultInitialActionUnconditionalResult() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor("file:unconditional-result.xml"); descriptor.validate(); fail("descriptor loaded successfully, even though unconditional-result element... | public void testCheckResultInitialActionUnconditionalResult() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("/unconditional-result.xml").toString()); descriptor.validate(); fail("descriptor loaded succes... | 50,708 |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } if (!box.isAnonymous()) { if (LayoutUtil.isBlockLayout(box.getElement(), c)) { // u.p("doing u... | public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; } if (!box.isAnonymous()) { if (LayoutUtil.isBlockLayout(box.getElement(), c)) { // u.p("doing u... | 50,709 |
public void testCloseWhileProcessing() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 10; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connConsumer.start(); Ses... | public void testCloseWhileProcessing() throws Exception { if (ServerManagement.isRemote()) return; final int NUM_MESSAGES = 100; Connection connConsumer = null; Connection connProducer = null; try { connConsumer = cf.createConnection(); connConsumer.start(); Se... | 50,710 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.