bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | 34,822 |
public void init() { forward = new JButton(); backward = new JButton("Back"); stop = new JButton("Stop"); reload = new JButton("Reload"); url = new JTextField(); view = new XHTMLPanel(); font_inc = new JButton("A"); font_dec = new JButton("a"); Renderin... | public void init() { forward = new JButton(); backward = new JButton("Back"); stop = new JButton("Stop"); reload = new JButton("Reload"); url = new JTextField(); view = new XHTMLPanel(); font_inc = new JButton("A"); font_dec = new JButton("a"); Renderin... | 34,823 |
public synchronized void start() throws Exception { try { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); ... | public synchronized void start() throws Exception { try { if (started) { return; } loadClientAOPConfig(); loadServerAOPConfig(); log.info(this + " starting"); mbeanServer = findMBeanServer(); ... | 34,824 |
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... | 34,825 |
public String resolveURI(String uri) { URL ref = null; if (uri.trim().equals("")) return baseUrl;//jar URLs don't resolve this right if (uri.startsWith("demo:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substring(5); if (!short_url.startsWi... | public String resolveURI(String uri) { URL ref = null; if (uri.trim().equals("")) return baseUrl;//jar URLs don't resolve this right if (uri.startsWith("demo:")) { DemoMarker marker = new DemoMarker(); String short_url = uri.substring(5); if (!short_url.startsWi... | 34,828 |
public RMIServer(boolean remote) throws Exception { super(); this.remote = remote; if (remote) { namingDelegate = new NamingDelegateImpl(); } } | public RMIServer(boolean remote) throws Exception { super(); this.remote = remote; if (remote) { namingDelegate = new RMINamingDelegate(); } } | 34,829 |
private NamingDelegateImpl getNamingDelegate() { return namingDelegate; } | private RMINamingDelegate getNamingDelegate() { return namingDelegate; } | 34,830 |
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString()); // First force a load of CPUID cpu.getCPUID(); // Prepare for threading cpu.syste... | static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString() + "\n"); // First force a load of CPUID cpu.getCPUID(); // Prepare for threading cp... | 34,831 |
static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString()); // First force a load of CPUID cpu.getCPUID(); // Prepare for threading cpu.syste... | static final void applicationProcessorMain() { final VmX86Processor cpu = (VmX86Processor) current(); Unsafe.debug("Starting Application Processor " + cpu.getIdString()); // First force a load of CPUID cpu.getCPUID(); // Prepare for threading cpu.syste... | 34,832 |
final LocalAPIC getApic() { return this.apic; } | final LocalAPIC getApic() { return this.localAPIC; } | 34,833 |
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); org.w3c.dom.NodeList nl = null; Element html = doc.getDocumentElement(); Element head = findFirstChild(html, "head"); if (head != null) { nl = head.getElementsByTagName("sty... | public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); org.w3c.dom.NodeList nl = null; Element html = doc.getDocumentElement(); Element head = findFirstChild(html, "head"); if (head != null) { nl = head.getElementsByTagName("sty... | 34,834 |
public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); org.w3c.dom.NodeList nl = null; Element html = doc.getDocumentElement(); Element head = findFirstChild(html, "head"); if (head != null) { nl = head.getElementsByTagName("sty... | public InlineStyleInfo[] getInlineStyle(org.w3c.dom.Document doc) { List list = new ArrayList(); org.w3c.dom.NodeList nl = null; Element html = doc.getDocumentElement(); Element head = findFirstChild(html, "head"); if (head != null) { nl = head.getElementsByTagName("sty... | 34,835 |
public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) StylesheetInfo[] refs = super.getStylesheetLinks(doc); list.addAll(java.util.Arrays.asList(refs)); //get the link eleme... | public StylesheetInfo[] getStylesheetLinks(org.w3c.dom.Document doc) { List list = new ArrayList(); //get the processing-instructions (actually for XmlDocuments) StylesheetInfo[] refs = super.getStylesheetLinks(doc); list.addAll(java.util.Arrays.asList(refs)); //get the link eleme... | 34,836 |
public static int binarySearch(byte[] a, byte key) { int low = 0; int hi = a.length - 1; int mid = 0; while (low <= hi) { mid = (low + hi) >> 1; final byte d = a[mid]; if (d == key) return mid; else if (d > key) hi = mid - 1; else // This... | public static int binarySearch(byte[] a, byte key) { int low = 0; int hi = a.length - 1; int mid = 0; while (low <= hi) { mid = (low + hi) >>> 1; final byte d = a[mid]; if (d == key) return mid; else if (d > key) hi = mid - 1; else // Thi... | 34,837 |
public boolean getEstimatedMajorSpan() { return estimatedMajorSpan; } | protected boolean getEstimatedMajorSpan() { return estimatedMajorSpan; } | 34,838 |
public void setEstimatedMajorSpan(boolean estimated) { estimatedMajorSpan = estimated; } | protected void setEstimatedMajorSpan(boolean estimated) { estimatedMajorSpan = estimated; } | 34,839 |
public TreeNode[] getPathToRoot(TreeNode value0) { return null; // TODO } | public TreeNode[] getPathToRoot(TreeNode node) { return null; // TODO } | 34,840 |
public TreeNode[] getPathToRoot(TreeNode value0) { return null; // TODO } | public TreeNode[] getPathToRoot(TreeNode value0) { return getPathToRoot(node, 0); // TODO } | 34,841 |
public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1, int value2) { // TODO } | public void insertNodeInto(MutableTreeNode value0, MutableTreeNode value1, int value2) { // TODO } | 34,842 |
public void nodeChanged(TreeNode value0) { // TODO } | public void nodeChanged(TreeNode node) { // TODO } | 34,844 |
public void nodeStructureChanged(TreeNode value0) { // TODO } | public void nodeStructureChanged(TreeNode node) { // TODO } | 34,846 |
public void nodesChanged(TreeNode value0, int[] value1) { // TODO } | public void nodesChanged(TreeNode node, int[] childIndices) { // TODO } | 34,847 |
public void nodesWereInserted(TreeNode value0, int[] value1) { // TODO } | public void nodesWereInserted(TreeNode parent, int[] childIndices) { // TODO } | 34,849 |
public void nodesWereRemoved(TreeNode value0, int[] value1, Object[] value2) { // TODO } | public void nodesWereRemoved(TreeNode parent, int[] childIndices, Object[] removedChildren) { // TODO } | 34,851 |
public void removeNodeFromParent(MutableTreeNode value0) { // TODO } | public void removeNodeFromParent(MutableTreeNode node) { // TODO } | 34,853 |
public void valueForPathChanged(TreePath value0, Object value1) { // TODO } | public void valueForPathChanged(TreePath path, Object newValue) { // TODO } | 34,855 |
public MessageReference getReference(Serializable messageID) { MessageReference ref = super.getReference(messageID); if (ref != null) { return ref; } Message m = null; try { m = pm.retrieve(messageID); } catch(Throwable t) { log.error("Persi... | public MessageReference getReference(Serializable messageID) { if (log.isTraceEnabled()) { log.trace("Retreived it from memory cache"); } MessageReference ref = super.getReference(messageID); if (ref != null) { if (log.isTraceEnabled()) { log.trace("Retreived it from memory cache"); } return... | 34,857 |
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (fea... | private void initializeRemoting(MBeanServer mbeanServer) throws Exception { String s = (String)mbeanServer.invoke(connectorName, "getInvokerLocator", new Object[0], new String[0]); locator = new InvokerLocator(s); //Note - There seems to be a bug (fea... | 34,859 |
public static boolean requiresBidi(char[] text, int start, int limit) { // TODO implement me return false; } | public static boolean requiresBidi(char[] text, int start, int end) { final int LEFT_TO_RIGHT = Character.DIRECTIONALITY_LEFT_TO_RIGHT; for (int i = start; i < end; i++) { char c = text[i]; if (Character.getDirectionality(c) != LEFT_TO_RIGHT) return true; } // TODO implement me return false; } | 34,860 |
private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.hei... | private PaintEvent coalescePaintEvents(PaintEvent queuedEvent, PaintEvent newEvent) { Rectangle r1 = queuedEvent.getUpdateRect(); Rectangle r2 = newEvent.getUpdateRect(); Rectangle union = r1.union(r2); int r1a = r1.width * r1.height; int r2a = r2.width * r2.hei... | 34,861 |
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusE... | void dispatchEventImpl(AWTEvent e) { // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusEvent)e).getOppositeComponent()); ... | 34,863 |
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusE... | void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); // This boolean tells us not to process focus events when the focus // opposite component is the same as the focus component. boolean ignoreFocus = (e instanceof FocusEvent && ((FocusEvent)e).getComponent() == ((FocusE... | 34,864 |
static Event translateEvent (AWTEvent e) { Component target = (Component) e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int... | static Event translateEvent (AWTEvent e) { Object target = e.getSource (); Event translated = null; if (e instanceof InputEvent) { InputEvent ie = (InputEvent) e; long when = ie.getWhen (); int oldID = 0; int id = e.getID (); int oldMods = 0; int mods = ie.getM... | 34,865 |
public Action[] getActions() { return super.getActions(); } | protected Action[] getActions() { return super.getActions(); } | 34,866 |
private void expandProperty(String prop, CSSStyleRule rule) { if(prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(v... | private void expandProperty(String prop, CSSStyleRule rule) { if(prop.equals("color") || prop.equals("background-color") || prop.equals("border-color")) { String value = rule.getStyle().getPropertyValue(prop); rule.getStyle().setProperty(prop,getColorHex(v... | 34,867 |
private boolean isColor(String test) { if(color_map.containsKey(test)) { return true; } u.p("test = " + test); if(test.indexOf("rgb") >=0) { return true; } return false; } | private boolean isColor(String test) { if(color_map.containsKey(test)) { return true; } if(test.indexOf("rgb") >=0) { return true; } return false; } | 34,868 |
public ClientConnectionFactoryDelegate(String objectID, String serverLocatorURI) { super(objectID); this.serverLocatorURI = serverLocatorURI; } | public ClientConnectionFactoryDelegate(int objectID, String serverLocatorURI) { super(objectID); this.serverLocatorURI = serverLocatorURI; } | 34,869 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,870 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,871 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,872 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,873 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,874 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,875 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("invoking " + ((MethodInvocation)invocation).getMethod().getName() + " on server"); } invocation.getMetaData().addMetaData(Dispatcher.DISPATCHER, Dispatcher.OID, ... | 34,876 |
public String toString() { return "ConnectionFactoryDelegate[" + Util.guidToString(id) + "]"; } | public String toString() { return "ConnectionFactoryDelegate[" + id + "]"; } | 34,877 |
protected void drawCentered(JComponent c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); } | protected void drawCentered(Component c, Graphics g, Icon icon, int x, int y) { int beginPositionX = x - icon.getIconWidth() / 2; int beginPositionY = y - icon.getIconHeight() / 2; icon.paintIcon(c, g, beginPositionX, beginPositionY); } | 34,878 |
public int getLeftChildIndent(int newAmount) { return leftChildIndent; } | public int getLeftChildIndent() { return leftChildIndent; } | 34,879 |
protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | protected void installDefaults() { // This is the border of InternalFrames in the BasicLookAndFeel. // Note that there exist entries for various border colors in // BasicLookAndFeel's defaults, but obviously they differ // from the colors that are actually used by the JDK. UIDefaults default... | 34,880 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | 34,881 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | 34,882 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | 34,883 |
protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | protected void init(Element step) { try { setId(Integer.parseInt(step.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid step id value " + step.getAttribute("id")); } name = step.getAttribute("name"); // set up permissi... | 34,884 |
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In... | public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { Object o = iter.next(); try { Integer act... | 34,885 |
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In... | public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In... | 34,886 |
public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In... | public void validate() throws InvalidWorkflowDescriptorException { ValidationHelper.validate(actions); ValidationHelper.validate(permissions); Iterator iter = commonActions.iterator(); while (iter.hasNext()) { String s = (String) iter.next(); try { In... | 34,887 |
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.print("<step id=\"" + getId() + "\""); if ((name != null) && (name.length() > 0)) { out.print(" name=\"" + name + "\""); } out.println(">"); if (permissions.size() > 0) { ... | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.print("<step id=\"" + getId() + "\""); if ((name != null) && (name.length() > 0)) { out.print(" name=\"" + name + "\""); } out.println(">"); if (permissions.size() > 0) { ... | 34,888 |
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = condition.getElementsByTagName("arg... | protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = condition.getElementsByTagName("arg... | 34,889 |
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = condition.getElementsByTagName("arg... | protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } NodeList args = condition.getElementsByTagName("arg... | 34,890 |
public String toString() { return "InlineBox " + "bnds = " + x + "," + y + " - " + width + "Xx" + height + " start = " + this.start_index + " end = " + this.end_index; } | public String toString() { return "InlineBox " + "bnds = " + x + "," + y + " - " + width + "x" + height + " start = " + this.start_index + " end = " + this.end_index; } | 34,891 |
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline, int blockLineHeight, LineMetrics blockLineMetrics) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { ... | private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actua... | 34,892 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | 34,893 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | 34,894 |
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | 34,895 |
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | 34,896 |
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first... | private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first... | 34,897 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | 34,898 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | 34,899 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | 34,900 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | 34,901 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | 34,902 |
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... | public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... | 34,903 |
public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... | public Message receive(long timeout) throws JMSException, InterruptedException { long startTimestamp = System.currentTimeMillis(); // make sure the current state allows receiving synchronized(this) { if (listener != null) { throw new JBossJMSExceptio... | 34,904 |
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } while(true) { try { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } JBossMessage m = (JBossMessage)messages.take(); listener.onMes... | public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } while(true) { try { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } JBossMessage m = (JBossMessage)messages.take(); listener.onMes... | 34,905 |
public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } } | public void deInit() { try { sess.close(); } catch (Exception e) { log.error("!!!!!!!!!!!!!!!!!!!!!Close failed", e); failed = true; } } | 34,907 |
public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, Session.AUTO_ACKNOWLEDGE); //Ackmode doesn't matter prod = null; if (anon) { ... | public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, Session.AUTO_ACKNOWLEDGE); //Ackmode doesn't matter prod = null; if (anon) { ... | 34,908 |
public void run() { try { int count = 0; while (count < numMessages) { Message m = mf.getMessage(sess, msgSize); if (anon) { prod.send(dest, m); ... | public void run() { try { int count = 0; while (count < numMessages) { Message m = mf.getMessage(sess, msgSize); if (anon) { prod.send(dest, m); ... | 34,909 |
protected void logInfo() { super.logInfo(); log.info("Use anonymous producer? " + anon); log.info("Message size: " + msgSize); log.info("Message type: " + mf.getClass().getName()); log.info("Delivery Mode:" + (deliveryMode == DeliveryMode.PERSISTENT ? "Persistent" : "Non-persistent")); } | protected void logInfo() { super.logInfo(); log.info("Use anonymous producer? " + anon); log.info("Message size: " + msgSize); log.info("Message type: " + mf.getClass().getName()); log.info("Delivery Mode:" + (deliveryMode == DeliveryMode.PERSISTENT ? "Persistent" : "Non-persistent")); } | 34,910 |
public static synchronized void create() throws Exception { if (server != null) { return; } if (isLocal()) { server = new TestServer(false); return; } server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES); if (server != null) { // RMI server ... | public static synchronized void create() throws Exception { if (server != null) { return; } if (isLocal()) { server = new LocalTestServer(); return; } server = acquireRemote(RMI_SERVER_LOOKUP_RETRIES); if (server != null) { // RMI server ... | 34,911 |
public void close() throws JMSException { if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.close()"); synchronized(consumers) { for(Iterator i = consumers.values().iterator(); i.hasNext(); ) { ((ServerConsumerDelegate)i.next()).remove(); } } ... | public void close() throws JMSException { if (log.isTraceEnabled()) log.trace("close()"); synchronized(consumers) { for(Iterator i = consumers.values().iterator(); i.hasNext(); ) { ((ServerConsumerDelegate)i.next()).remove(); } } } | 34,912 |
public void closing() throws JMSException { if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.closing()"); //Currently does nothing } | public void closing() throws JMSException { if (log.isTraceEnabled()) log.trace("closing (noop)"); //Currently does nothing } | 34,913 |
public DependencyResolver getResolver() { return _resolver; } | public DependencyResolver getResolver() { return _mr.getResolver(); } | 34,920 |
public ResultEdge(ResultDescriptor descriptor, Point2D labelPos) { super(descriptor); setAttributes(new WorkflowAttributeMap(getAttributes())); this.descriptor = descriptor; int arrow = GraphConstants.ARROW_CLASSIC; //GraphConstants.setLabelAlongEdge(attributes, true); GraphConstants.setLineEnd(att... | public ResultEdge(ResultDescriptor descriptor, Point2D labelPos) { super(descriptor); setAttributes(new WorkflowAttributeMap(getAttributes())); getAttributes().put("descriptor", descriptor); int arrow = GraphConstants.ARROW_CLASSIC; //GraphConstants.setLabelAlongEdge(attributes, true); GraphConstan... | 34,921 |
public ResultDescriptor getDescriptor() { return descriptor; } | public ResultDescriptor getDescriptor() { return (ResultDescriptor)getAttributes().get("descriptor"); } | 34,922 |
public void setAutoroute() { GraphConstants.setRouting(attributes, EDGE_ROUTER); } | public void setAutoroute() { GraphConstants.setRouting(attributes, new DefaultRouting()); } | 34,923 |
public BindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) { this.nodeId = nodeId; this.queueName = queueName; this.condition = condition; this.selector = selector; this.channelI... | public BindingImpl(String nodeId, String queueName, String condition, String selector, long channelId, boolean durable) { this.nodeId = nodeId; this.queueName = queueName; this.condition = condition; this.selector = selector; this.channelI... | 34,925 |
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); queueName = in.readUTF(); condition = in.readUTF(); active = in.readBoolean(); selector = (String)StreamUtils.readObject(in, false); channelId = in.readLong(); durab... | public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); queueName = in.readUTF(); condition = in.readUTF(); active = in.readBoolean(); String filterString = (String)StreamUtils.readObject(in, false); filter = new Selector(filterString); ... | 34,926 |
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeUTF(queueName); out.writeUTF(condition); out.writeBoolean(active); StreamUtils.writeObject(out, selector, false, false); out.writeLong(channelId); out.wri... | public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeUTF(queueName); out.writeUTF(condition); out.writeBoolean(active); StreamUtils.writeObject(out, filter.getFilterString(), false, false); out.writeLong(channelId); ... | 34,927 |
public void createActions() { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener( ma ); root.panel.view.addMouseMotionListener( ma ); logger.info( "added a mouse motion listener: " + ma ); } | public void createActions() { SelectionMouseListener ma = new SelectionMouseListener(); root.panel.view.addMouseListener( ma ); root.panel.view.addMouseMotionListener( ma ); logger.info( "added mouse selection listener: " + ma ); HoverListener hl = new HoverListener(root.panel.view); roo... | 34,928 |
public void createPDF(OutputStream os) throws DocumentException { try { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.l... | public void createPDF(OutputStream os) throws DocumentException { try { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.l... | 34,930 |
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... | 34,933 |
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... | public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { DependencyDescriptor systemDd = dd; dd = fromSystem(dd); clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDa... | 34,934 |
void cancelDeliveries(String receiverID) throws JMSException; | void cancelDeliveries() throws JMSException; | 34,935 |
public void mouseReleased(MouseEvent evt) { //Box box = panel.findBox(evt.getX(), evt.getY()); Box box = BoxFinder.findElementBox2(panel.getRootBox(),evt.getX(),evt.getY(),null); Uu.p("in link listener: box finder returned: " + box); if (box == null) { return; } Element elem... | public void mouseReleased(MouseEvent evt) { //Box box = panel.findBox(evt.getX(), evt.getY()); Box box = BoxFinder.findElementBox2(panel.getRootBox(),evt.getX(),evt.getY(),null); if (box == null) { return; } Element elem = box.element; if (elem == null) { ... | 34,936 |
public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; } LayoutContext c = newLayoutContext(pageInfo, (Graphics2D) g); synchronized (this) ... | public void doActualLayout(Graphics g) { //Uu.p("doActualLayout called"); this.removeAll(); if (g == null) { return; } if (doc == null) { return; } LayoutContext c = newLayoutContext(pageInfo, (Graphics2D) g); synchronized (this) ... | 34,939 |
public void run() { try { log.info("Starting Thread " + threadId); synchronized (startSemaphore) { if (!started) { startSemaphore.wait(); } } //log.info("Thread " + threadId + "Op... | public void run() { try { log.info("Starting Thread " + threadId); synchronized (startSemaphore) { if (!started) { startSemaphore.wait(); } } //log.info("Thread " + threadId + "Op... | 34,940 |
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actua... | private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actua... | 34,941 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | 34,942 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | 34,943 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc... | 34,944 |
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | 34,945 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.