bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge... | private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge... | 35,636 |
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge... | private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge... | 35,637 |
private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge... | private static int handleInlineElementStart(Context c, LineBox line, InlineBox ib, int padX, LinkedList decorations) { // NOT RIGHT (ib.getStyle()...), refers to previous inline? Comment out for now /* CalculatedStyle style = ib.getStyle().getCalculatedStyle(); int parent_width = line.ge... | 35,638 |
public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ... | public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, BorderPropertySet border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (... | 35,639 |
public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ... | public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ... | 35,640 |
public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ... | public static void paintLeftPadding( Context c, LineBox line, InlineBox inline, int padX, RectPropertySet margin, Border border, RectPropertySet padding) { LineMetrics lm = FontUtil.getLineMetrics(c, inline); for (Iterator i ... | 35,641 |
public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder... | public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, BorderPropertySet border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getI... | 35,642 |
public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder... | public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder... | 35,643 |
public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder... | public static void paintRightPadding( Context c, LineBox line, InlineBox inline, int padX, Border border, RectPropertySet padding) { InlineBorder ib = (InlineBorder) c.getInlineBorders().removeLast(); for (Iterator i = c.getInlineBorder... | 35,644 |
public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageRefere... | public void test1() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = new Message[150]; MessageRefere... | 35,645 |
public String toString() { return "InlineBox " + "bnds = " + x + "," + y + " - " + width + "Xx" + height + " start = " + this.start_index + " end = " + this.end_index + " baseline = " + this.baseline + " vset = " + this.vset;// + // CLN: (PWW 13/08/04) ... | public String toString() { return "InlineBox " + "bnds = " + x + "," + y + " - " + width + "Xx" + height + " start = " + this.start_index + " end = " + this.end_index + " baseline = " + this.baseline + " vset = " + this.vset;// + // CLN: (PWW 13/08/04) ... | 35,646 |
public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ... | public void addBindingFromCluster(int nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: " +... | 35,648 |
public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ... | public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ... | 35,649 |
public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ... | public void addBindingFromCluster(String nodeId, String queueName, String condition, String filterString, long channelID, boolean durable) throws Exception { lock.writeLock().acquire(); log.info(this.nodeId + " adding binding from node: " + nodeId +" queue: ... | 35,650 |
public Binding bindClusteredQueue(String condition, LocalClusteredQueue queue) throws Exception { log.info(this.nodeId + " binding clustered queue: " + queue + " with condition: " + condition); if (!queue.getNodeId().equals(this.nodeId)) { throw new IllegalArgumentException(... | public Binding bindClusteredQueue(String condition, LocalClusteredQueue queue) throws Exception { log.info(this.nodeId + " binding clustered queue: " + queue + " with condition: " + condition); if (queue.getNodeId() != this.nodeId) { throw new IllegalArgumentException("Queue... | 35,651 |
public void check(String nodeId) throws Throwable { synchronized (holdingArea) { Iterator iter = holdingArea.entrySet().iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); ... | public void check(int nodeId) throws Throwable { synchronized (holdingArea) { Iterator iter = holdingArea.entrySet().iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); ... | 35,652 |
public void check(String nodeId) throws Throwable { synchronized (holdingArea) { Iterator iter = holdingArea.entrySet().iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); ... | public void check(String nodeId) throws Throwable { synchronized (holdingArea) { Iterator iter = holdingArea.entrySet().iterator(); List toRemove = new ArrayList(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry)iter.next(); ... | 35,653 |
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); log.info("Created binding"); Queue queue; if (nodeId.equa... | protected Binding createBinding(int nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); log.info("Created binding"); Queue queue; if (nodeId.equals(... | 35,654 |
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); log.info("Created binding"); Queue queue; if (nodeId.equa... | protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); log.info("Created binding"); Queue queue; if (nodeId == t... | 35,655 |
public Address getAddressForNodeId(String nodeId) throws Exception { lock.readLock().acquire(); try { return (Address)nodeIdAddressMap.get(nodeId); } finally { lock.readLock().release(); } } | public Address getAddressForNodeId(int nodeId) throws Exception { lock.readLock().acquire(); try { return (Address)nodeIdAddressMap.get(nodeId); } finally { lock.readLock().release(); } } | 35,656 |
public Address getAddressForNodeId(String nodeId) throws Exception { lock.readLock().acquire(); try { return (Address)nodeIdAddressMap.get(nodeId); } finally { lock.readLock().release(); } } | public Address getAddressForNodeId(String nodeId) throws Exception { lock.readLock().acquire(); try { return (Address)nodeIdAddressMap.get(new Integer(nodeId)); } finally { lock.readLock().release(); } } | 35,657 |
public void handleAddressNodeMapping(Address address, String nodeId) throws Exception { lock.writeLock().acquire(); try { nodeIdAddressMap.put(nodeId, address); } finally { lock.writeLock().release(); } } | public void handleAddressNodeMapping(Address address, int nodeId) throws Exception { lock.writeLock().acquire(); try { nodeIdAddressMap.put(nodeId, address); } finally { lock.writeLock().release(); } } | 35,658 |
public void handleAddressNodeMapping(Address address, String nodeId) throws Exception { lock.writeLock().acquire(); try { nodeIdAddressMap.put(nodeId, address); } finally { lock.writeLock().release(); } } | public void handleAddressNodeMapping(Address address, String nodeId) throws Exception { lock.writeLock().acquire(); try { nodeIdAddressMap.put(new Integer(nodeId), address); } finally { lock.writeLock().release(); } } | 35,659 |
private void processStateBytes(byte[] bytes) throws Exception { log.info("Receiving state from group..."); SharedState state = new SharedState(); StreamUtils.fromBytes(state, bytes); nameMaps.clear(); conditionMap.clear(); List bindings = state... | private void processStateBytes(byte[] bytes) throws Exception { log.info("Receiving state from group..."); SharedState state = new SharedState(); StreamUtils.fromBytes(state, bytes); nameMaps.clear(); conditionMap.clear(); List bindings = state... | 35,660 |
public void removeBindingFromCluster(String nodeId, String queueName) throws Exception { lock.writeLock().acquire(); try { // Sanity if (!nodeIdAddressMap.containsKey(nodeId)) { throw new IllegalStateException("Cannot find address for node: " + nodeI... | public void removeBindingFromCluster(int nodeId, String queueName) throws Exception { lock.writeLock().acquire(); try { // Sanity if (!nodeIdAddressMap.containsKey(nodeId)) { throw new IllegalStateException("Cannot find address for node: " + nodeId);... | 35,661 |
public void removeBindingFromCluster(String nodeId, String queueName) throws Exception { lock.writeLock().acquire(); try { // Sanity if (!nodeIdAddressMap.containsKey(nodeId)) { throw new IllegalStateException("Cannot find address for node: " + nodeI... | public void removeBindingFromCluster(String nodeId, String queueName) throws Exception { lock.writeLock().acquire(); try { // Sanity if (!nodeIdAddressMap.containsKey(new Integer(nodeId))) { throw new IllegalStateException("Cannot find address for no... | 35,662 |
private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i... | private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); Integer nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)... | 35,663 |
private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i... | private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i... | 35,664 |
private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i... | private void removeBindingsForAddress(Address address) throws Exception { lock.writeLock().acquire(); try { Iterator iter = nodeIdAddressMap.entrySet().iterator(); String nodeId = null; while (iter.hasNext()) { Map.Entry entry = (Map.Entry)i... | 35,665 |
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... | 35,666 |
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... | 35,667 |
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); ... | 35,668 |
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | 35,669 |
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | 35,670 |
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | 35,671 |
public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | public void routeFromCluster(org.jboss.messaging.core.Message message, String routingKey, Map queueNameNodeIdMap) throws Exception { log.info(this.nodeId + " received route from cluster, ref = " + message.getMessageID() + " routing key " + routingKey + " map " + qu... | 35,672 |
public synchronized void sendQueueStats() throws Exception { if (!started) { return; } lock.readLock().acquire(); List statsList = null; try { Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap != null) {... | public synchronized void sendQueueStats() throws Exception { if (!started) { return; } lock.readLock().acquire(); List statsList = null; try { Map nameMap = (Map)nameMaps.get(new Integer(nodeId)); if (nameMap != nu... | 35,673 |
public Object syncSendRequest(ClusterRequest request, String nodeId, boolean ignoreNoAddress) throws Exception { Address address = this.getAddressForNodeId(nodeId); if (address == null) { if (ignoreNoAddress) { return null; } else ... | public Object syncSendRequest(ClusterRequest request, int nodeId, boolean ignoreNoAddress) throws Exception { Address address = this.getAddressForNodeId(nodeId); if (address == null) { if (ignoreNoAddress) { return null; } else {... | 35,674 |
public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ... | public void updateQueueStats(int nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ... | 35,675 |
public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ... | public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId == this.nodeId) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ... | 35,676 |
public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ... | public void updateQueueStats(String nodeId, List statsList) throws Exception { lock.readLock().acquire(); try { if (nodeId.equals(this.nodeId)) { //Sanity check throw new IllegalStateException("Cannot update queue stats for current node"); } ... | 35,677 |
public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node... | public static void setupVerticalAlign( Context c, Node node, InlineBox box ) { //u.p("setup vertical align: node = " + node + " box = " + box); // get the parent node for styling Node parent = node.getParentNode(); //u.p("parent = " + parent); Element elem = null; if ( node... | 35,678 |
private void newContext( Graphics g ) { //u.p("new context begin"); //Point origin = new Point( 0, 0 ); //Point last = new Point( 0, 0 ); getContext().canvas = this; getContext().graphics = g; // set up the dimensions of the html canvas //Rectangle dimensions = new R... | private void newContext( Graphics g ) { //u.p("new context begin"); //Point origin = new Point( 0, 0 ); //Point last = new Point( 0, 0 ); getContext().canvas = this; getContext().graphics = g; // set up the dimensions of the html canvas //Rectangle dimensions = new R... | 35,679 |
public Queue(long id, MessageStore ms, PersistenceManager pm, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { super(id, ms, pm, true, recoverable, fullSize, pageSize, downCacheSize); router = new PointToPointRouter(); m_fullSize = fullSize; m_pageSize ... | public Queue(long id, MessageStore ms, PersistenceManager pm, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { super(id, ms, pm, true, recoverable, fullSize, pageSize, downCacheSize); router = new PointToPointRouter(); m_fullSize = fullSize; m_pageSize ... | 35,680 |
public int getDownCacheSize() { return m_downCacheSize; } | public int getDownCacheSize() { return downCacheSize; } | 35,681 |
public int getFullSize() { return m_fullSize; } | public int getFullSize() { return fullSize; } | 35,682 |
public int getPageSize() { return m_pageSize; } | public int getPageSize() { return pageSize; } | 35,683 |
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()) { Object o =... | 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()) { Object o =... | 35,689 |
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()) { Object o =... | 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()) { Object o =... | 35,690 |
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()) { Object o =... | 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()) { Object o =... | 35,691 |
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()) { Object o =... | 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()) { Object o =... | 35,692 |
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()) { Object o =... | 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()) { Object o =... | 35,693 |
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()) { Object o =... | 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()) { Object o =... | 35,694 |
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()) { Object o =... | 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()) { Object o =... | 35,695 |
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()) { Object o =... | 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()) { Object o =... | 35,696 |
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()) { Object o =... | 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()) { Object o =... | 35,699 |
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); int size = in.readInt(); queueStats = new ArrayList(size); for (int i = 0; i < size; i++) { QueueStats stats = new QueueStats(); stats.read(in); queueS... | public void read(DataInputStream in) throws Exception { nodeId = in.readInt(); int size = in.readInt(); queueStats = new ArrayList(size); for (int i = 0; i < size; i++) { QueueStats stats = new QueueStats(); stats.read(in); queueS... | 35,700 |
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeInt(queueStats.size()); Iterator iter = queueStats.iterator(); while (iter.hasNext()) { QueueStats stats = (QueueStats)iter.next(); stats.write(out); } } | public void write(DataOutputStream out) throws Exception { out.writeInt(nodeId); out.writeInt(queueStats.size()); Iterator iter = queueStats.iterator(); while (iter.hasNext()) { QueueStats stats = (QueueStats)iter.next(); stats.write(out); } } | 35,701 |
public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | public ConsumerDelegate createConsumerDelegate(JBossDestination jmsDestination, String selector, boolean noLocal, String subscriptionName, ... | 35,702 |
public static Box newGetLeftFloatX(Box box, List left_floats, BlockFormattingContext bfc) { //Uu.p("in new 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);... | public static Box newGetLeftFloatX(Box box, List left_floats, BlockFormattingContext bfc) { //Uu.p("in new 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);... | 35,704 |
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ... | protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && explicitlyOpaque) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getH... | 35,705 |
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ... | public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ... | 35,706 |
public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ... | public void startLayout(Graphics g) { this.removeAll(); if (g == null) { return; } if (doc == null) { return; } // set up CSS Context c = newContext((Graphics2D) g); //getContext().setMaxWidth(0); this.layout_context = c; ... | 35,707 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); if (log.isTraceEnabled()) { log.trace("in readExternal"); } bodyReadOnly = in.readBoolean(); byte type = in.readByte(); if (log.isTraceEnabled()) { log.trac... | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); if (log.isTraceEnabled()) { log.trace("in readExternal"); } byte type = in.readByte(); if (log.isTraceEnabled()) { log.trace("type is:" + type); } if ... | 35,708 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); if (log.isTraceEnabled()) { log.trace("in writeExternal"); } out.writeBoolean(bodyReadOnly); if (payload == null) { out.writeByte(NULL); } else { out.write(... | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); if (log.isTraceEnabled()) { log.trace("in writeExternal"); } if (payload == null) { out.writeByte(NULL); } else { out.write(STRING); out.writeUTF((... | 35,709 |
public void commit(Xid xid, boolean onePhase) throws XAException { if (log.isTraceEnabled()) { log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); } rm.commit(xid, onePhase, connection); } | public void commit(Xid xid, boolean onePhase) throws XAException { if (trace) { log.trace("Commit xid=" + xid + ", onePhase=" + onePhase + " " + this); } rm.commit(xid, onePhase, connection); } | 35,711 |
public void end(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("End xid=" + xid + ", flags=" + flags + " " +this); } synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); ... | public void end(Xid xid, int flags) throws XAException { if (trace) { log.trace("End xid=" + xid + ", flags=" + flags + " " +this); } synchronized (this) { switch (flags) { case TMSUSPEND : unsetCurrentTransactionId(xid); rm.su... | 35,712 |
public void forget(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Forget xid=" + xid + " " + this); } } | public void forget(Xid xid) throws XAException { if (trace) { log.trace("Forget xid=" + xid + " " + this); } } | 35,713 |
public int prepare(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Prepare xid=" + xid + " " + this); } return rm.prepare(xid, connection); } | public int prepare(Xid xid) throws XAException { if (trace) { log.trace("Prepare xid=" + xid + " " + this); } return rm.prepare(xid, connection); } | 35,714 |
public Xid[] recover(int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("Recover flags=" + flags + " " + this); } return rm.recover(flags, connection); } | public Xid[] recover(int flags) throws XAException { if (trace) { log.trace("Recover flags=" + flags + " " + this); } return rm.recover(flags, connection); } | 35,715 |
public void rollback(Xid xid) throws XAException { if (log.isTraceEnabled()) { log.trace("Rollback xid=" + xid + " " + this); } rm.rollback(xid, connection); } | public void rollback(Xid xid) throws XAException { if (trace) { log.trace("Rollback xid=" + xid + " " + this); } rm.rollback(xid, connection); } | 35,716 |
private void setCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (log.isTraceEnabled()) { log.trace("Setting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } sessionState.... | private void setCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) { log.trace("Setting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } sessionState.setCurrentTxId(... | 35,717 |
public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) { log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); } boolean convertTx = false; if (sessionState.getCurrentTxId() != null) { if (flags == TMNOFLAGS && sessionStat... | public void start(Xid xid, int flags) throws XAException { if (trace) { log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); } boolean convertTx = false; if (sessionState.getCurrentTxId() != null) { if (flags == TMNOFLAGS && sessionState.getCurrentTxI... | 35,718 |
public String toString() { return "JBossXAResource[" + Util.guidToString(sessionState.getDelegate().getID())+ "]"; } | public String toString() { return "JBossXAResource[" + sessionState.getDelegate().getID()+ "]"; } | 35,719 |
private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (log.isTraceEnabled()) { log.trace("Unsetting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } //... | private void unsetCurrentTransactionId(final Xid xid) { if (xid == null) throw new org.jboss.util.NullArgumentException("xid"); if (trace) { log.trace("Unsetting current tx xid=" + xid + " previous: " + sessionState.getCurrentTxId() + " " + this); } // Don't unset th... | 35,720 |
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex... | protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex... | 35,721 |
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex... | protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); Element body = x.child( html, "body" ); body = html; newContex... | 35,722 |
public synchronized void startLayout(Graphics g) { if(isLayoutDone()) { //u.p("really starting new thread"); done = false; graphics = g; new Thread(this).start(); } else { //u.p("layout already in progress. skipping layout"); } } | public synchronized void startLayout(Graphics g) { if(isLayoutDone()) { //u.p("really starting new thread"); done = false; graphics = g; if(threaded) { new Thread(this).start(); } else { run(); } } else { //u.p("layout already in progress. skippin... | 35,724 |
public void testGetPreConfClientId_2() throws Exception { InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lookup("java:/DefaultDS"); String username = new GUID().toString(); ... | public void testGetPreConfClientId_2() throws Exception { InitialContext ctx = new InitialContext(); TransactionManager mgr = (TransactionManager)ctx.lookup(TransactionManagerService.JNDI_NAME); DataSource ds = (DataSource)ctx.lookup("java:/DefaultDS"); String username = new GUID().toString(); ... | 35,725 |
public ClientProducerDelegate(String objectID) { super(objectID); } | public ClientProducerDelegate(int objectID) { super(objectID); } | 35,729 |
public String toString() { return "ProducerDelegate[" + Util.guidToString(id) + "]"; } | public String toString() { return "ProducerDelegate[" + id + "]"; } | 35,730 |
private void adjustHeight(Context c, Box block) { if (block.content instanceof AnonymousBlockContent) { return; } CalculatedStyle style = c.getCurrentStyle(); if (style.hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents... | private void adjustHeight(Context c, Box block) { if (block.content instanceof AnonymousBlockContent) { return; } CalculatedStyle style = c.getCurrentStyle(); if (style.hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents... | 35,732 |
ResultEdgeLineWidthHandler(WorkflowGraph graph, Point location, int lineWidth, String name) { super(name); this.graph = graph; this.location = location; this.iWidth = lineWidth; } | ResultEdgeLineWidthHandler(WorkflowGraph graph, Point location, int lineWidth, String name) { super(name); this.graph = graph; this.location = location; this.width = lineWidth; } | 35,733 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(graph.getModel().isEdge(cell)) ... | 35,734 |
public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | public void actionPerformed(ActionEvent e) { Object cell = graph.getFirstCellForLocation(location.x, location.y); if(cell == null) { return; } else { CellView view = (graph.getGraphLayoutCache().getMapping(cell, false)); if(view instanceof CustomEdgeView) ... | 35,735 |
public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext((Graphics2D) g);//getContext().setMaxWidth(0); this.la... | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; }// set up CSS Context c = newContext((Graphics2D) g);//getContext().setMaxWidth(0); this.la... | 35,736 |
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionDelegate cd) throws JMSException { Holder h = (Holder)holders.get(serverId); if (h == null) { h = new Holder(new MessageIdGenerator(cd, BLOCK_SIZE)); holders.put(serverId, h); } else { ... | public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionFactoryDelegate cfd) throws JMSException { Holder h = (Holder)holders.get(serverId); if (h == null) { h = new Holder(new MessageIdGenerator(cd, BLOCK_SIZE)); holders.put(serverId, h); } else... | 35,737 |
public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionDelegate cd) throws JMSException { Holder h = (Holder)holders.get(serverId); if (h == null) { h = new Holder(new MessageIdGenerator(cd, BLOCK_SIZE)); holders.put(serverId, h); } else { ... | public synchronized MessageIdGenerator getGenerator(String serverId, ConnectionDelegate cd) throws JMSException { Holder h = (Holder)holders.get(serverId); if (h == null) { h = new Holder(new MessageIdGenerator(cfd, BLOCK_SIZE)); holders.put(serverId, h); } else {... | 35,738 |
public String toString() { return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + getBaseline(); } | public String toString() { return "Line: (" + x + "," + y + ")x(" + width + "," + height + ")" + " baseline = " + getBaseline(); } | 35,739 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 35,740 |
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R... | 35,741 |
public synchronized final void handleInterrupt(int irq) { processQueues(); } | public synchronized final void handleInterrupt(int irq) { if (irqReadQueue) { processQueues(); } } | 35,742 |
final void setMode(int mode) { writeController(CCMD_WRITE_MODE); writeData(mode); } | final void setMode(int mode) throws DeviceException { writeController(CCMD_WRITE_MODE); writeData(mode); } | 35,743 |
private final void waitWrite() { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } } | private final void waitWrite() throws DeviceException { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } } | 35,744 |
private final void waitWrite() { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } } | private final void waitWrite() { int count = 0; while (((readStatus() & STAT_IBF) != 0) && (count < 1000)) { count++; Thread.yield(); } } | 35,745 |
private void writeController(int b) { waitWrite(); ioResCtrl.outPortByte(PS2_CTRL_PORT, b); } | private void writeController(int b) throws DeviceException { waitWrite(); ioResCtrl.outPortByte(PS2_CTRL_PORT, b); } | 35,747 |
private final void writeData(int b) { waitWrite(); ioResData.outPortByte(PS2_DATA_PORT, b); } | private final void writeData(int b) throws DeviceException { waitWrite(); ioResData.outPortByte(PS2_DATA_PORT, b); } | 35,748 |
public Context getInitialContext(Hashtable environment) throws NamingException { String s = (String)environment.get(Constants.SERVER_INDEX_PROPERTY_NAME); if (s == null) { throw new IllegalArgumentException("Initial context environment must contain " + ... | public Context getInitialContext(Hashtable environment) throws NamingException { String s = (String)environment.get(Constants.SERVER_INDEX_PROPERTY_NAME); if (s == null) { throw new IllegalArgumentException("Initial context environment must contain " + ... | 35,749 |
public static boolean isFirstLetter(Context c, Node node, int start) { //u.p("looking at node: " + node); //u.p("start = " + start); if(start > 0) { return false; } if(node == null) { return false; } if(node.getParentNode().getFirstChild() != no... | public static boolean isFirstLetter(Context c, Node node, int start) { //u.p("looking at node: " + node); //u.p("start = " + start); if(start > 0) { return true; } if(node == null) { return true; } if(node.getParentNode().getFirstChild() != node... | 35,750 |
private static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) { box.color = style.getColor(); TextDecoration.setupTextDecoration( style, box.node, box ); Font font = FontUtil.getFont( c, style, box.node); box.setFont( font ); box.width = FontUtil.len( c, box.... | public static void styleInlineBox(Context c, CalculatedStyle style, InlineBox box) { box.color = style.getColor(); TextDecoration.setupTextDecoration( style, box.node, box ); Font font = FontUtil.getFont( c, style, box.node); box.setFont( font ); box.width = FontUtil.len( c, box.g... | 35,751 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.