bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,027 |
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,028 |
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,029 |
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,030 |
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,031 |
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,032 |
public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testListBindings() throws Throwable { PostOffice office = null; try { office = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,033 |
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(),... | 46,034 |
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,035 |
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,036 |
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,037 |
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,038 |
public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteInactive() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | 46,039 |
public final void testRouteNoBinding() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); ... | public final void testRouteNoBinding() throws Throwable { PostOffice postOffice = null; try { postOffice = createPostOffice(); PagingFilteredQueue queue1 = new PagingFilteredQueue("queue1", channelIdManager.getId(), ms, pm, true, false, (QueuedExecutor)pool.get()... | 46,040 |
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex... | protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex... | 46,042 |
protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex... | protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex... | 46,043 |
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = ... | protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = ... | 46,044 |
protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = ... | protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected) { g.translate(x, y); int bottom = h - 1; int right = w - 1; int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex); int firstIndex = ... | 46,045 |
public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); //... | public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); //... | 46,046 |
public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); //... | public static void breakText(Context c, InlineTextBox inline, InlineBox prev_align, int avail, Font font) { boolean db = false; if (db) { Uu.p("========================="); Uu.p("breaking: " + inline); //Uu.p("breaking : '" + inline.getSubstring() + "'"); //... | 46,047 |
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | 46,048 |
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | 46,049 |
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | 46,050 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 46,051 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 46,052 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 46,053 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 46,054 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 46,055 |
private void closeConnection(Connection con) throws JMSException { try { con.close(); }catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } } | private void closeConnection(Connection con) throws JMSException { try { if (con != null) { con.close(); } }catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } } | 46,057 |
public DimensionUIResource(int w, int h) { super(w, h); } | public DimensionUIResource(int width, int height) { super(w, h); } | 46,058 |
public DimensionUIResource(int w, int h) { super(w, h); } | public DimensionUIResource(int w, int h) { super(width, height); } | 46,059 |
public void changedUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.changedUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); } | public void changedUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.changedUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); } | 46,060 |
public void insertUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.insertUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) ... | public void insertUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.insertUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()... | 46,061 |
public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) ... | public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()... | 46,062 |
public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(this); view = v; } | public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(null); view = v; } | 46,063 |
public int viewToModel(float x, float y, Shape a, Position.Bias b) { return view.viewToModel(x, y, a, b); } | public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { return view.viewToModel(x, y, a, b); } | 46,064 |
protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; installDocumentListeners(); Element elem = do... | protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; installDocumentListeners(); Element elem = do... | 46,065 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 46,068 |
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(c, width); Rectan... | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun... | 46,069 |
public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int ... | public static void dumpShortException(Exception ex) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int i ... | 46,070 |
public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int ... | public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if (s == null || s.trim().equals("null")) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int i = ... | 46,071 |
public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int ... | public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println(s + ", " + ex.getClass()); StackTraceElement[] stes = ex.getStackTrace(); for ( int i ... | 46,072 |
public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int ... | public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for (int i... | 46,073 |
public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int ... | public static void dumpShortException( Exception ex ) { String s = ex.getMessage(); if ( s == null || s.trim().equals( "null" ) ) { s = "{no ex. message}"; } System.out.println( s + ", " + ex.getClass() ); StackTraceElement[] stes = ex.getStackTrace(); for ( int ... | 46,074 |
public void tearDown() throws Exception { ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); super.tearDown(); } | 46,075 |
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... | 46,076 |
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... | 46,077 |
public void mousePressed(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | public void mousePressed(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | 46,078 |
public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | 46,079 |
public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | 46,080 |
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... | private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... | 46,081 |
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... | private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... | 46,082 |
public void mouseEntered( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | public void mouseEntered( MouseEvent evt ) { Box ib = findBox(evt); restyle(ib); } | 46,083 |
public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | public void mouseExited( MouseEvent evt ) { Box ib = findBox(evt); restyle(ib); } | 46,084 |
public void mouseMoved( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | public void mouseMoved( MouseEvent evt ) { Box ib = findBox(evt); restyle(ib); } | 46,085 |
private void restyle(InlineBox ib) { if(prev == ib) { return; } if(ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if(prev != null) { boolean restyled = panel.... | private void restyle(Box ib) { if(prev == ib) { return; } if(ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if(prev != null) { boolean restyled = panel.getCon... | 46,086 |
public boolean selfTest() { if (valid == null) { valid = new Boolean (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); } | 46,087 |
public void tearDown() throws Exception { log.debug("starting tear down"); ic.close(); ServerManagement.undeployTopic("Topic"); super.tearDown(); } | public void tearDown() throws Exception { log.debug("starting tear down"); ic.close(); ServerManagement.undeployTopic("Topic"); super.tearDown(); } | 46,090 |
public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace(this.id + " close"); } this.setStarted(false); this.sessionEndpoint.connectionEndpoint.receivers.remove(id); this.sessionEndpoint.consumers.remove(id); } | public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace(this.id + " close"); } this.setStarted(false); this.sessionEndpoint.connectionEndpoint.receivers.remove(id); this.sessionEndpoint.consumers.remove(id); } | 46,091 |
public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro... | public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here Delivery delivery = null; try { Message message = routable.getMessage(); if (log.isTraceEnabled()) { log.trace("der... | 46,092 |
public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro... | public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro... | 46,093 |
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on // t... | public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all", true); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on ... | 46,094 |
public String toString() { return "TextContent:\nStyle: " + _style + "\nText: " + _sb.toString(); } | public String toString() { return "TextContent: " + _sb.toString(); } | 46,095 |
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s60"); channel = new SimpleChannel(1, ms); // the state accepts reliable messages state = new ChannelState(channel, persistenceManagerDelegate, true, true, 100, 20, 10); log.debug("setup done"); ... | public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("s60"); channel = new SimpleChannel(1, ms); // the state accepts reliable messages state = new ChannelState(channel, persistenceManagerDelegate, true, true, 100, 20, 10); log.debug("setup done"); ... | 46,096 |
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... | public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... | 46,097 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitialActions(); addSteps(... | 46,098 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | 46,099 |
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ... | private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ... | 46,101 |
protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato... | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); Map args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterator();... | 46,102 |
protected List getAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException { List l = new ArrayList(); StepDescriptor s = wf.getStep(step.getStepId()); if (s == null) { log.warn("getAvailableActionsForStep called for non-ex... | protected List getAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException { List l = new ArrayList(); StepDescriptor s = wf.getStep(step.getStepId()); if (s == null) { log.warn("getAvailableActionsForStep called for non-ex... | 46,103 |
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ... | private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ... | 46,104 |
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... | protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... | 46,105 |
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... | 46,106 |
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { String prodName = null; Integer msgCount = null; ... | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { String prodName = null; Integer msgCount = null; ... | 46,107 |
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { String prodName = null; Integer msgCount = null; ... | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { String prodName = null; Integer msgCount = null; ... | 46,108 |
protected synchronized void closed() throws Throwable { state = CLOSED; if (log.isTraceEnabled()) { log.trace("closed"); } } | protected synchronized void closed() throws Throwable { state = CLOSED; if (trace) { log.trace("closed"); } } | 46,110 |
protected void maintainRelatives(Invocation invocation) { HierarchicalState state = ((DelegateSupport)invocation.getTargetObject()).getState(); //We use a clone to avoid a deadlock where requests //are made to close parent and child concurrently Set clone = n... | protected void maintainRelatives(Invocation invocation) { HierarchicalState state = ((DelegateSupport)invocation.getTargetObject()).getState(); //We use a clone to avoid a deadlock where requests //are made to close parent and child concurrently Set clone = n... | 46,111 |
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); long workflowId = workflow.initialize(workflowName, 100, n... | public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); long workflowId = workflow.initialize(workflowName, 100, n... | 46,112 |
public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = ds.getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement... | public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = ds.getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement... | 46,113 |
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | 46,115 |
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | 46,116 |
private DescriptorFactory() { } | public DescriptorFactory() { } | 46,117 |
public SplitDescriptor createSplitDescriptor(Element split) { return new SplitDescriptor(split); } | public SplitDescriptor createSplitDescriptor(Element split) { return new SplitDescriptor(split); } | 46,118 |
public StepDescriptor createStepDescriptor(Element step, AbstractDescriptor parent) { return new StepDescriptor(step, parent); } | public StepDescriptor createStepDescriptor(Element step, AbstractDescriptor parent) { return new StepDescriptor(step, parent); } | 46,119 |
public ValidatorDescriptor createValidatorDescriptor(Element validator) { return new ValidatorDescriptor(validator); } | public ValidatorDescriptor createValidatorDescriptor(Element validator) { return new ValidatorDescriptor(validator); } | 46,120 |
final int getSpecRevision() { return mem.getByte(0x09); } | final int getSpecRevision() { return mem.getByte(0x09); } | 46,121 |
private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | 46,122 |
private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | 46,123 |
private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | 46,124 |
private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | private final boolean initConfigTable(ResourceManager rm, ResourceOwner owner) { final Address tablePtr = getMPConfigTablePtr(); int size = 0x2C; // Base table length try { MemoryResource mem = rm.claimMemoryResource(owner, tablePtr, size, ResourceManager.MEMMODE_NORMAL); ... | 46,125 |
private final boolean isValid() { // Length should be 16 if (getLength() != 16) { return false; } // Check checksum int sum = 0; for (int i = 0; i < 16; i++) { sum += mem.getByte(i) & 0xFF; sum &= 0xFF; } if (sum != 0) { ... | private final boolean isValid() { // Length should be 16 if (getLength() != 16) { return false; } // Check checksum int sum = 0; for (int i = 0; i < 16; i++) { sum += mem.getByte(i) & 0xFF; sum &= 0xFF; } if (sum != 0) { ... | 46,126 |
public void run() { synchronized (handler) { if (handler.closed) { //The handler is closed - ignore the message - the serverconsumerdelegate will already be //closed so the message will have already been cancelled } ... | public void run() { synchronized (handler) { if (handler.closed) { //The handler is closed - ignore the message - the serverconsumerdelegate will already be //closed so the message will have already been cancelled } ... | 46,127 |
protected void activateConsumer() throws JMSException { //We execute this on a separate thread to avoid the case where the asynch delivery //arrives before we have returned from the synch call, which would //cause us to lose the message try { pooledExecutor.execute(new Consum... | protected void activateConsumer() throws JMSException { //We execute this on a separate thread to avoid the case where the asynch delivery //arrives before we have returned from the synch call, which would //cause us to lose the message try { pooledExecutor.execute(new Consum... | 46,130 |
protected FilterComboBoxModel() { filters = new FileFilter[1]; filters[0] = getAcceptAllFileFilter(getFileChooser()); selectedIndex = 0; } | protected FilterComboBoxModel() { filters = new FileFilter[1]; filters[0] = getAcceptAllFileFilter(getFileChooser()); selected = filters[0]; } | 46,134 |
public Object getSelectedItem() { if (selectedIndex >= 0) return filters[selectedIndex]; return null; } | public Object getSelectedItem() { if (selectedIndex >= 0) return filters[selectedIndex]; return null; } | 46,135 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) { selectedIndex = -1; FileFilter selected = (FileFilter) e.getNewValue(); for (int i = 0; i < filters.length; i++) if (filters[i].equals... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) { selectedIndex = -1; FileFilter selected = (FileFilter) e.getNewValue(); for (int i = 0; i < filters.length; i++) if (filters[i].equals... | 46,136 |
public void setSelectedItem(Object filter) { // change the filter in the file chooser and let the property change // event trigger the change to the selected item getFileChooser().setFileFilter((FileFilter) filter); } | public void setSelectedItem(Object filter) { // change the filter in the file chooser and let the property change // event trigger the change to the selected item if (filter != null) { selected = filter; fireContentsChanged(this, -1, -1); } } | 46,137 |
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileFilter filter = (FileFilter) value; return super.getListCellRendererComponent(list, filter.getDescription(), index, isSelected, cellHasFocus); } | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileFilter filter = (FileFilter) value; return super.getListCellRendererComponent(list, filter.getDescription(), index, isSelected, cellHasFocus); } | 46,138 |
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent() | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent() | 46,140 |
public BasicFileChooserUI(JFileChooser b) { this.filechooser = b; } | public BasicFileChooserUI(JFileChooser b) { } | 46,141 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.