rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if (currentSide == TOP) thickness = (int)border.top(); if (currentSide == BOTTOM) thickness = (int)border.bottom(); if (currentSide == RIGHT) thickness = (int)border.right(); if (currentSide == LEFT) thickness = (int)border.left(); | if (currentSide == TOP) thickness = (int) border.top(); if (currentSide == BOTTOM) thickness = (int) border.bottom(); if (currentSide == RIGHT) thickness = (int) border.right(); if (currentSide == LEFT) thickness = (int) border.left(); | private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideStyle == IdentValue.GROO... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g2.setStroke(new BasicStroke((int)border.top(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + (int)(border.top() / 2), x + w - 1, y + (int)(border.top() / 2)); | g2.setStroke(new BasicStroke((int) border.top(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + (int) (border.top() / 2), x + w - 1, y + (int) (border.top() / 2)); | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g2.setStroke(new BasicStroke((int)border.left(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + (int)(border.left() / 2), y, x + (int)(border.left() / 2), y + h - 1); | g2.setStroke(new BasicStroke((int) border.left(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + (int) (border.left() / 2), y, x + (int) (border.left() / 2), y + h - 1); | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g2.setStroke(new BasicStroke((int)border.right(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + w - (int)(border.right() / 2), y, x + w - (int)(border.right() / 2), y + h); | g2.setStroke(new BasicStroke((int) border.right(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + w - (int) (border.right() / 2), y, x + w - (int) (border.right() / 2), y + h); | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g2.setStroke(new BasicStroke((int)border.bottom(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - (int)(border.bottom() / 2), x + w, y + h - (int)(border.bottom() / 2)); | g2.setStroke(new BasicStroke((int) border.bottom(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - (int) (border.bottom() / 2), x + w, y + h - (int) (border.bottom() / 2)); | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
if ((int)border.top() == 1) { | if ((int) border.top() == 1) { | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
if ((int)border.bottom() == 1) { | if ((int) border.bottom() == 1) { | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
if ((int)border.right() == 1) { | if ((int) border.right() == 1) { | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
if ((int)border.left() == 1) { | if ((int) border.left() == 1) { | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int)border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int)border.left()) - ((sides & RIGHT) == 0 ? 0 : (int)border.right()); r2.y = rect.y + ((sides & TOP) == 0 ? 0 : (int)border.top()); r2.height = rect.height - ((sides & TOP) == 0 ? 0 : (int)border.top()) ... | r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int) border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int) border.left()) - ((sides & RIGHT) == 0 ? 0 : (int) border.right()); r2.y = rect.y + ((sides & TOP) == 0 ? 0 : (int) border.top()); r2.height = rect.height - ((sides & TOP) == 0 ? 0 : (int) border.to... | public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int)border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int)border.left()) - ((sides & RIGHT) == 0 ? ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
doc.add(LuceneFields.getKeyword( LuceneFields.COMPANY_ID, companyId)); doc.add(LuceneFields.getKeyword( LuceneFields.PORTLET_ID, PORTLET_ID)); | doc.add( LuceneFields.getKeyword(LuceneFields.COMPANY_ID, companyId)); doc.add( LuceneFields.getKeyword(LuceneFields.PORTLET_ID, PORTLET_ID)); | public static void addMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { synchronized (IndexWriter.class) { content = Html.stripHtml(content); IndexWriter writer = LuceneUtil.getWriter(companyId);... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/Indexer.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/Indexer.java |
doc.add(new Field(LuceneFields.TITLE, title, Field.Store.YES, Field.Index.TOKENIZED)); doc.add(new Field(LuceneFields.CONTENT, content, Field.Store.YES, Field.Index.TOKENIZED)); | doc.add(LuceneFields.getText(LuceneFields.TITLE, title)); doc.add(LuceneFields.getText(LuceneFields.CONTENT, content)); | public static void addMessage( String companyId, String groupId, String categoryId, String topicId, String threadId, String messageId, String title, String content) throws IOException { synchronized (IndexWriter.class) { content = Html.stripHtml(content); IndexWriter writer = LuceneUtil.getWriter(companyId);... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/Indexer.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/Indexer.java |
QueryParser queryParser = new QueryParser(LuceneFields.CONTENT, LuceneUtil.getAnalyzer()); Query query = queryParser.parse(booleanQuery.toString()); Hits hits = searcher.search(query); | Hits hits = searcher.search(booleanQuery); | public static void deleteMessages( String companyId, String topicId) throws IOException, ParseException { synchronized (IndexWriter.class) { BooleanQuery booleanQuery = new BooleanQuery(); LuceneUtil.addRequiredTerm( booleanQuery, LuceneFields.PORTLET_ID, PORTLET_ID); LuceneUtil.addRequiredTerm(booleanQue... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/Indexer.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/Indexer.java |
public DocumentSummary getDocumentSummary( Document doc, PortletURL portletURL) { // Title String title = doc.get(LuceneFields.TITLE); // Content String content = doc.get(LuceneFields.CONTENT); content = StringUtil.shorten(content, 200); // URL String messageId = doc.get("messageId"); String topicId = doc.get... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/Indexer.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/Indexer.java | ||
Dimension minDimension = backButton.getPreferredSize(); minDimension.width = Sizes.dialogUnitXAsPixel(12, backButton); backButton.setPreferredSize(minDimension); forwardButton.setPreferredSize(minDimension); upButton.setPreferredSize(minDimension); | backButton.setBorder(new EmptyBorder(2,2,2,2)); forwardButton.setBorder(new EmptyBorder(2,2,2,2)); upButton.setBorder(new EmptyBorder(2,2,2,2)); | private void initComponents() { backButton = new JButton(Icons.ARROW_LEFT); backButton.setDisabledIcon(Icons.ARROW_LEFT_GRAY); forwardButton = new JButton(Icons.ARROW_RIGHT); forwardButton.setDisabledIcon(Icons.ARROW_RIGHT_GRAY); upButton = new JButton(Icons.ARROW_UP); upBu... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3a0d91d46c92a08762036c1906878098b57d63ae/NavigationToolBar.java/clean/src/main/de/dal33t/powerfolder/ui/navigation/NavigationToolBar.java |
button.setBorder(null); | button.setBorder(new EmptyBorder(2,2,2,2)); | private void lowerButton(JButton button) { button.setBorder(null); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3a0d91d46c92a08762036c1906878098b57d63ae/NavigationToolBar.java/clean/src/main/de/dal33t/powerfolder/ui/navigation/NavigationToolBar.java |
openLink(filename); | openLink("file: | private void openErrorLogBrowser() { String filename = Platform.getLogFileLocation().toOSString(); File log = new File(filename); if (log.exists()) { openLink(filename); return; } MessageDialog.openInformation(getShell(), WorkbenchMessages.AboutSystemDialog_n... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/448e052e2c67e7750ae9434c2747fc50268900fe/AboutSystemDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutSystemDialog.java |
return RubyFixnum.newFixnum(recv.getRuntime(), 0); | return recv.getRuntime().newFixnum(0); | public static IRubyObject chdir(IRubyObject recv, RubyString path) { File dir = getDir(recv.getRuntime(), path.toString()); String realPath = null; // We get canonical path to try and flatten the path out. // a dir '/subdir/..' should return as '/' try { realPath =... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
getRuntime().yield(RubyString.newString(getRuntime(), contents[i])); | getRuntime().yield(getRuntime().newString(contents[i])); | public IRubyObject each() { String[] contents = snapshot; for (int i=0; i<contents.length; i++) { getRuntime().yield(RubyString.newString(getRuntime(), contents[i])); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return RubyArray.newArray(getRuntime(), JavaUtil.convertJavaArrayToRuby(getRuntime(), snapshot)); | return getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(getRuntime(), snapshot)); | public RubyArray entries() { return RubyArray.newArray(getRuntime(), JavaUtil.convertJavaArrayToRuby(getRuntime(), snapshot)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return new RubyString(recv.getRuntime(), System.getProperty("user.dir")); | return recv.getRuntime().newString(System.getProperty("user.dir")); | public static RubyString getwd(IRubyObject recv) { return new RubyString(recv.getRuntime(), System.getProperty("user.dir")); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); | return recv.getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); | public static RubyArray glob(IRubyObject recv, RubyString pat) { String pattern = pat.toString(); String[] files = new Glob(pattern).getNames(); return RubyArray.newArray(recv.getRuntime(), JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
throw new ArgumentError(recv.getRuntime(), args.length, 1); | throw recv.getRuntime().newArgumentError(args.length, 1); | public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafe... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
throw new ArgumentError(recv.getRuntime(), args.length, 2); | throw recv.getRuntime().newArgumentError(args.length, 2); | public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafe... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return RubyString.nilString(runtime); | return RubyString.nilString(getRuntime()); | public RubyString read() { if (!isOpen) { throw new IOError(getRuntime(), "Directory already closed"); } if (pos >= snapshot.length) { return RubyString.nilString(runtime); } RubyString result = new RubyString(getRuntime(), snapshot[pos]); pos++; return result; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return RubyFixnum.newFixnum(getRuntime(), pos); | return getRuntime().newFixnum(pos); | public IRubyObject rewind() { pos = 0; return RubyFixnum.newFixnum(getRuntime(), pos); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return RubyFixnum.newFixnum(recv.getRuntime(), 0); | return recv.getRuntime().newFixnum(0); | public static IRubyObject rmdir(IRubyObject recv, RubyString path) { File directory = new File(path.toString()); if (!directory.delete()) { throw new SystemCallError(recv.getRuntime(), "No such directory"); } return RubyFixnum.newFixnum(recv.getRuntime(), 0); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
return RubyFixnum.newFixnum(getRuntime(), pos); | return getRuntime().newFixnum(pos); | public RubyInteger tell() { return RubyFixnum.newFixnum(getRuntime(), pos); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
box.absolute = true; | box.setAbsolute(true); | 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)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ed51047386cdc7bfa8a77f3a7af2efcb2f70f4bc/BoxLayout.java/buggy/src/java/org/xhtmlrenderer/layout/BoxLayout.java |
return false; | return false; | public boolean equals(Object obj) { if (!(obj instanceof ImageDataImageDescriptor)) return false; ImageDataImageDescriptor imgWrap = (ImageDataImageDescriptor) obj; return data.equals(imgWrap.data) && (imgWrap.originalImage == originalImage); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5f873f39017e13c8ffec0fdc534a9976dfe4c220/ImageDataImageDescriptor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDataImageDescriptor.java |
return data.equals(imgWrap.data) && (imgWrap.originalImage == originalImage); | if (originalImage != null) { return imgWrap.originalImage == originalImage; } return (imgWrap.originalImage == null && data.equals(imgWrap.data)); | public boolean equals(Object obj) { if (!(obj instanceof ImageDataImageDescriptor)) return false; ImageDataImageDescriptor imgWrap = (ImageDataImageDescriptor) obj; return data.equals(imgWrap.data) && (imgWrap.originalImage == originalImage); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5f873f39017e13c8ffec0fdc534a9976dfe4c220/ImageDataImageDescriptor.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageDataImageDescriptor.java |
log().verbose("Acceptor finished to " + socket + ", took " + took + "ms"); | log().verbose( "Acceptor finished to " + socket + ", took " + took + "ms"); | public void run() { try { startTime = new Date(); log().debug( "Accepting connection from: " + socket.getInetAddress() + ":" + socket.getPort()); acceptNode(socket); } catch (ConnectionException e) { ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/811a5ad28ec2bb10feb25d6330b500d438c08423/NodeManager.java/clean/src/main/de/dal33t/powerfolder/net/NodeManager.java |
|| node.isUnableToConnect() || node.getReconnectAddress() == null) | || node.isUnableToConnect() || node.getReconnectAddress() == null || node.getReconnectAddress().getAddress() == null) | public boolean markNodeForImmediateReconnection(Member node) { if (node.isConnected() || node.isReconnecting() || node.isMySelf() || node.isUnableToConnect() || node.getReconnectAddress() == null) { // Not reconnect nesseary return false; } if (getControl... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/811a5ad28ec2bb10feb25d6330b500d438c08423/NodeManager.java/clean/src/main/de/dal33t/powerfolder/net/NodeManager.java |
BoxRendering.paint(c, inline); | BoxRendering.paint(c, inline, false); | static void paintAbsolute(Context c, Box inline) { // Uu.p("paint absolute: " + inline); //c.translate(line.x, line.y + (line.baseline - inline.height)); /*Renderer rend = c.getRenderer(inline.content.getElement()); rend.paint(c, inline);*/ BoxRendering.paint(c, inline); //... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
BoxRendering.paint(c, inline); | BoxRendering.paint(c, inline, false); | static void paintFloat(Context c, InlineBox inline) { // Uu.p("painting a float: " + inline); Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe.x, 0, oe.width, oe.height)); //int xoff = line.Xx + inline.Xx; int xoff = 0; int yoff = 0;//line.y + ( line.baseline - ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics) { | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } if (ib instanceof InlineBlockBox) { paintReplaced(c, ib, line); debugInlines(c, ib, lx, ly); return; } InlineTextBox inline = (InlineTextBox) ib; if (inline.pushstyles != null) { for (Iterator i = inline.pushstyles.iterator(); i.hasNext();) ... | if (ib.pushstyles != null) { for (Iterator i = ib.pushstyles.iterator(); i.hasNext();) { | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
paintPadding(c, line, inline); | paintPadding(c, line, ib); | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
c.updateSelection(inline); int iy = ly + inline.y; int ix = lx + inline.x; | if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); } else if (ib instanceof InlineBlockBox) { c.pushStyle(c.getCss().getCascadedStyle(ib.element)); c.translate(line.x, line.y + (line.getBaseline() - VerticalAlign.getBaselineOffset(c, line, ib, blockLineHeight, blockLineMetrics) - ib.height)); BoxRenderi... | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
paintSelection(c, inline, lx, ly); paintText(c, lx, ly, ix, iy, inline); debugInlines(c, inline, lx, ly); | InlineTextBox inline = (InlineTextBox) ib; | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
if (inline.popstyles != null) { for (Iterator i = inline.popstyles.iterator(); i.hasNext();) { | c.updateSelection(inline); int iy = ly - VerticalAlign.getBaselineOffset(c, line, inline, blockLineHeight, blockLineMetrics); int ix = lx + inline.x; paintSelection(c, inline, lx, ly); paintText(c, lx, ly, ix, iy, inline); debugInlines(c, inline, lx, ly); } if (ib.popstyles != null) { for (Iterator i = ib.pop... | static void paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line) { if (ib.floated) { paintFloat(c, ib); debugInlines(c, ib, lx, ly); return; } // Uu.p("paintInline: " + inline); if (ib instanceof InlineBlockBox) { paintReplaced(c,... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
if (box instanceof BlockBox) { | if (box instanceof BlockBox) { | static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
paintLine(c, (LineBox) box.getChild(i)); | paintLine(c, (LineBox) box.getChild(i), blockLineHeight, blockLineMetrics); | static void paintInlineContext(Context c, Box box) { //BlockBox block = (BlockBox)box; // translate into local coords // account for the origin of the containing box c.translate(box.x, box.y); // for each line box BlockBox block = null; if (box instanceof BlockBox) {... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
static void paintLine(Context c, LineBox line) { | static void paintLine(Context c, LineBox line, int blockLineHeight, LineMetrics blockLineMetrics) { | static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
int ly = line.y + line.baseline; | int ly = line.y + line.getBaseline(); | static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
paintInline(c, box, lx, ly, line); | paintInline(c, box, lx, ly, line, blockLineHeight, blockLineMetrics); | static void paintLine(Context c, LineBox line) { // get Xx and y int lx = line.x; int ly = line.y + line.baseline; // for each inline box for (int j = 0; j < line.getChildCount(); j++) { Box child = line.getChild(j); if (child.absolute) { paint... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
int ty = line.baseline - inline.y - inline.height - padding_yoff + line.y; | int ty = line.getBaseline() - inline.y - inline.height - padding_yoff + line.y; | public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = 0; int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty = line.baseline - inline.y - inline.height... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java |
iy -= (int) lm.getDescent(); | public static void paintText(Context c, int lx, int ly, int ix, int iy, InlineTextBox inline) { String text = inline.getSubstring(); Graphics g = c.getGraphics(); //adjust font for current settings Font oldfont = c.getGraphics().getFont(); c.getGraphics().setFont(FontUtil.getFont(... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java | |
self.eval(beginNode), self.eval(endNode), exclusive); | self.eval(getBeginNode()), self.eval(getEndNode()), exclusive); | public RubyObject eval(Ruby ruby, RubyObject self) { if (cachedValue != null) { return cachedValue; } RubyObject result = RubyRange.m_newRange(ruby, self.eval(beginNode), self.eval(endNode), exclusive); if (cannotCached) { return result; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12748a4b8db7fd4836cd04c81e3cf2343735bfb6/DotNode.java/clean/org/jruby/nodes/DotNode.java |
box.setChildrenExceedBounds(true); | public static Box generateAbsoluteBox(Context c, Content content) { //Uu.p("generate absolute block inline box: avail = " + content); Rectangle oe = c.getExtents();// copy the extents for safety c.setExtents(new Rectangle(oe)); Box box = Boxing.layout(c, content); //Uu.p("got a bl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2486e0a7d32e8bf7a5ba0aa3c3626b52ad12da3c/Absolute.java/buggy/src/java/org/xhtmlrenderer/layout/block/Absolute.java | |
table.setData(MenuManager.class.toString(), menuMgr); | private void createContextMenu(String name, final Table table) { Menu menu; Menu existingMenu = table.getMenu(); MenuManager menuMgr = new MenuManager(name); if (existingMenu != null){ menu = existingMenu; } else { menu = menuMgr.createContextMenu(table); menuMgr.add(new GroupMarker(IWorkbenchActionConstan... | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/b0b843e1a52e7dda43315bce7121cdaa79a36d86/MessageListTableFormat.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/ui/MessageListTableFormat.java | |
else { _log.debug("Processing path " + path); } | protected String processPath( HttpServletRequest req, HttpServletResponse res) throws IOException { String path = req.getParameter("struts_action"); if (Validator.isNull(path)) { path = (String)req.getAttribute(WebKeys.PORTLET_STRUTS_ACTION); } if (path == null) { PortletConfigImpl portletConfig = (Portl... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e8a65fd03e91994ffdc7bdbe7486f6debf2cfc47/PortletRequestProcessor.java/buggy/portal-ejb/src/com/liferay/portal/struts/PortletRequestProcessor.java | |
folder.addPropertyChangeListener("syncProfile", folderSyncProfileChangeListener); | folder .removePropertyChangeListener(folderSyncProfileChangeListener); | public void selectionChanged(SelectionChangeEvent selectionChangeEvent) { Object selection = selectionChangeEvent.getSelection(); Object oldSelection = selectionModel.getOldSelection(); if (oldSelection instanceof Folder) { // Remove listener from old folder Folder folder ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ce15653724fceecbba61f4a08a64f72d29e46197/ChangeSyncProfileAction.java/buggy/src/main/de/dal33t/powerfolder/ui/action/ChangeSyncProfileAction.java |
folder.addPropertyChangeListener("syncProfile", | folder.addPropertyChangeListener(Folder.PROPERTY_SYNC_PROFILE, | public void selectionChanged(SelectionChangeEvent selectionChangeEvent) { Object selection = selectionChangeEvent.getSelection(); Object oldSelection = selectionModel.getOldSelection(); if (oldSelection instanceof Folder) { // Remove listener from old folder Folder folder ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ce15653724fceecbba61f4a08a64f72d29e46197/ChangeSyncProfileAction.java/buggy/src/main/de/dal33t/powerfolder/ui/action/ChangeSyncProfileAction.java |
public void handleSetChange(IObservableSet source, SetDiff diff) { Set addedKeys = new HashSet(diff.getAdditions()); Set removedKeys = new HashSet(diff.getRemovals()); | public void handleSetChange(SetChangeEvent event) { Set addedKeys = new HashSet(event.diff.getAdditions()); Set removedKeys = new HashSet(event.diff.getRemovals()); | public void handleSetChange(IObservableSet source, SetDiff diff) { Set addedKeys = new HashSet(diff.getAdditions()); Set removedKeys = new HashSet(diff.getRemovals()); Map oldValues = new HashMap(); Map newValues = new HashMap(); for (Iterator it = removedKeys.iterator(); it.hasNext();) { Object removedK... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ComputedObservableMap.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/ComputedObservableMap.java |
if (box.isInlineElement() || !(box.content instanceof TextContent)) { | if (isBlockOrInlineElementBox(box)) { | public static Border getBorder(Context c, Box box) { //TODO: can I skip this? if (isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { // Uu.p("setting border for: " + box); if (box.border == null) { box.border ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7e8f8975a39606e0ad272f1e0bed6839ad1d9fc8/LayoutUtil.java/buggy/src/java/org/xhtmlrenderer/layout/LayoutUtil.java |
public CellBox layoutCell(Context c, Node cell, CellBox prev_cell, RowBox rowbox, TableBox table, int cellwidth) { CellBox cellbox = new CellBox(0, 0, cellwidth, 0); // attach the node cellbox.setNode(cell); getBorder(c, cellbox); getMargin(c, cellbox); getPadding(c, cellbo... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/TableLayout.java/clean/src/java/org/xhtmlrenderer/table/TableLayout.java | ||
defineSingletonMethod("new", Arity.noArguments(), "newInstance"); | public void initializeClass() { defineMethod("===", Arity.singleArgument(), "op_eqq"); defineMethod("<=>", Arity.singleArgument(), "op_cmp"); defineMethod("<", Arity.singleArgument(), "op_lt"); defineMethod("<=", Arity.singleArgument(), "op_le"); defineMethod(">", Arity.singleA... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d166adca82dbf831b1e455c4d157b0033e10a6f1/ModuleMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ModuleMetaClass.java | |
return Util.equals(this.targetId, that.targetId) && Util.equals(this.expression, that.expression) && Util.equals(this.getWindow(), that.getWindow()); | return equals(this.targetId, that.targetId) && equals(this.expression, that.expression) && equals(this.getWindow(), that.getWindow()); | public final boolean equals(final Object object) { if (object instanceof LegacyViewerContributionExpression) { final LegacyViewerContributionExpression that = (LegacyViewerContributionExpression) object; return Util.equals(this.targetId, that.targetId) && Util.equals(this.expression, that.expression) && U... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ba8772da3d063410cc9112f7f53da28a447f2704/LegacyViewerContributionExpression.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/expressions/LegacyViewerContributionExpression.java |
Rectangle contentBounds = replaced.getContentAreaEdge( replaced.getAbsX(), replaced.getAbsY(), c); Point loc = replaced.getReplacedElement().getLocation(); if (contentBounds.x != loc.x || contentBounds.y != loc.y) { replaced.getReplacedElement().setLocation(contentBounds.x, contentBounds.y); } | private void paintReplacedElement(RenderingContext c, BlockBox replaced) { if (! c.isInteractive()) { c.getOutputDevice().paintReplacedElement(c, replaced); } } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2d0418135baea38113aec4c619576083cc381df4/Layer.java/clean/src/java/org/xhtmlrenderer/layout/Layer.java | |
if ((downloadCounter == null || downloadCounter.getBytesExpected() != totalSize) && member.isMySelf()) { downloadCounter = new TransferCounter(memberSize, totalSize); | if (member.isMySelf()) { long downloadSize; if (folder.getSyncProfile().isAutodownload()) { downloadSize = totalSize; } else { downloadSize = memberSize; for (FileInfo fi: allFiles) { if (getController().getTransferManager().isDownloadingActive(fi) || getController().getTransferManager().isDownloadingPending(fi)) { d... | synchronized void calculate0() { if (logVerbose) { log().verbose( "calc stats " + folder.getName() + " stats@: " + (System.currentTimeMillis() - startTime)); } isCalculating = true; // log().verbose("Recalculation statisitcs on " + folder); ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/0ce290c97cc057f44014d79172ecb0bb04bbc1ec/FolderStatistic.java/buggy/src/main/de/dal33t/powerfolder/disk/FolderStatistic.java |
return (RubyString) convertToType("String", "to_s", true); | return convertToType("String", "to_str", true); | public IRubyObject convertToString() { return (RubyString) convertToType("String", "to_s", true); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ae3178fbb3656e01c3d379a6255e1af956725271/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
if (child_box.clear_left || child_box.clear_right) { | if (child_box.getStyle().isCleared()) { | 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 =... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java |
if (child_box.clear_left) { | if (child_box.getStyle().isClearLeft()) { | 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 =... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java |
if (child_box.clear_right) { | if (child_box.getStyle().isClearRight()) { | 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 =... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java |
if (child_box.fixed) { | if (child_box.getStyle().isFixed()) { | 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 =... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java |
if (child_box.absolute) { | if (child_box.getStyle().isAbsolute()) { | 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 =... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java |
if (LayoutUtil.isOutsideNormalFlow(child_box)) { | if (child_box.getStyle().isOutsideNormalFlow()) { | 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 =... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java |
block.attachment = c.css.getStringProperty(block.getElement(), "background-attachment"); | block.attachment = c.css.getStringProperty(block.getElement(), "background-attachment",false); | public void paintBackground(Context c, Box box) { Box block = box; // cache the background color getBackgroundColor(c, block); // get the css properties String back_image = c.css.getStringProperty(block.getElement(), "background-image", false); block.repeat = c.css.getStrin... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/4a91c538e40c079cd5502443a87ab4894469da24/BoxLayout.java/clean/src/java/org/joshy/html/BoxLayout.java |
public void setupFixed(Context c, Box box) { if (isFixed(c, box)) { box.fixed = true; if (c.css.hasProperty(box.node, "right", false)) { box.right = (int) c.css.getFloatProperty(box.node, "right", 0, false); box.right_set = true; } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/4a91c538e40c079cd5502443a87ab4894469da24/BoxLayout.java/clean/src/java/org/joshy/html/BoxLayout.java | ||
public boolean hasProperty( String propName ) { if(propName.equals("width")) return true; if(propName.equals("height")) return true; if(propName.equals("top")) return true; if(propName.equals("left")) return true; if(propName.equals("bottom")) return true; if(propName.equals("right")) return true; | public boolean hasProperty(String propName) { if (propName.equals("width")) return true; if (propName.equals("height")) return true; if (propName.equals("top")) return true; if (propName.equals("left")) return true; if (propName.equals("bottom")) return true; if (propName.equals("right")) return true; | public boolean hasProperty( String propName ) { if(propName.equals("width")) return true; if(propName.equals("height")) return true; if(propName.equals("top")) return true; if(propName.equals("left")) return true; if(propName.equals("bottom")) return true; if(propName.equal... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/CurrentBoxStyle.java/buggy/src/java/org/xhtmlrenderer/css/style/CurrentBoxStyle.java |
public DerivedProperty propertyByName( String propName ) { | public DerivedProperty propertyByName(String propName) { | public DerivedProperty propertyByName( String propName ) { //TODO: return these values when DerivedProperty and DerivedValue are disconnected from CSS return null; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/CurrentBoxStyle.java/buggy/src/java/org/xhtmlrenderer/css/style/CurrentBoxStyle.java |
int value = message1.getCreateDate().compareTo( message2.getCreateDate()); | int value = DateUtil.compareTo( message1.getCreateDate(), message2.getCreateDate()); | public int compare(Object obj1, Object obj2) { MBMessage message1 = (MBMessage)obj1; MBMessage message2 = (MBMessage)obj2; int value = message1.getCreateDate().compareTo( message2.getCreateDate()); if (_asc) { return value; } else { return -value; } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0f4675cccf5487b482133977e732e847e320f104/MessageCreateDateComparator.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/util/comparator/MessageCreateDateComparator.java |
decorationJob.setSystem(true); | private void createDecorationJob() { decorationJob = new Job(WorkbenchMessages.getString("DecorationScheduler.CalculationJobName")) {//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus run(IProgressMonitor monitor) { monitor.... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1dfb19eecd536385f7d009afac2843666046b28e/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java | |
updateJob.schedule(); | updateJob.schedule(100); | synchronized void decorated() { //Don't bother if we are shutdown now if (shutdown) return; //Lazy initialize the job if (updateJob == null) { updateJob = getUpdateJob(); updateJob.setPriority(Job.DECORATE); } updateJob.schedule(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1dfb19eecd536385f7d009afac2843666046b28e/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java |
job.setSystem(true); | private WorkbenchJob getUpdateJob() { WorkbenchJob job = new WorkbenchJob(WorkbenchMessages.getString("DecorationScheduler.UpdateJobName")) {//$NON-NLS-1$ public IStatus runInUIThread(IProgressMonitor monitor) { //Check again in case someone has already cleared it out. synchronized (resultLock) { if (pend... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1dfb19eecd536385f7d009afac2843666046b28e/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java | |
if ( weight != null && weight == IdentValue.BOLD ) { | if ( weight != null && ( weight == IdentValue.BOLD || weight == IdentValue.FONT_WEIGHT_700 || weight == IdentValue.FONT_WEIGHT_800 || weight == IdentValue.FONT_WEIGHT_900 )) { | protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1b93102839a4f136ac081dfa4dfd53ff5387556c/FontResolver.java/buggy/src/java/org/xhtmlrenderer/css/FontResolver.java |
VerticalAlign.setupVerticalAlign(c, style, box); | public static InlineBox generateReplacedInlineBox(Context c, Content content, int avail, InlineBox prev_align, LineBox curr_line) { InlineBlockBox box = new InlineBlockBox(); box.element = content.getElement(); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calcula... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/71b2cfce5b6554582e24848d6c3702480ac8ba6c/LineBreaker.java/buggy/src/java/org/xhtmlrenderer/layout/LineBreaker.java | |
void handleListChange(IObservableList source, ListDiff diff); | void handleListChange(ListChangeEvent event); | void handleListChange(IObservableList source, ListDiff diff); | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/IListChangeListener.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/list/IListChangeListener.java |
AddressLocalServiceUtil.deleteAll( | AddressLocalServiceUtil.deleteAddresses( | private void _upgradeUser() throws Exception { Connection con = null; PreparedStatement ps = null; ResultSet rs = null; try { con = DataAccess.getConnection(Constants.DATA_SOURCE); ps = con.prepareStatement(_UPGRADE_USER); rs = ps.executeQuery(); while (rs.next()) { String userId = rs.getString("userId"... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/UpgradeUser.java/buggy/portal-ejb/src/com/liferay/portal/upgrade/v4_0_0/UpgradeUser.java |
private Object findParent(NavigatorContentExtension foundExtension, Object anElement) { Object parent = null; INavigatorContentDescriptor foundDescriptor; parent = foundExtension.getContentProvider().getParent(anElement); if(parent == null && (foundDescriptor = foundExtension.getDescriptor()).getOverriddenDescriptor() ... | private Object findParent(NavigatorContentExtension anExtension, Object anElement, Object aSuggestedParent) { /* the last valid (non-null) parent for the anElement */ Object lastValidParent = aSuggestedParent; /* used to keep track of new suggestions */ Object suggestedOverriddenParent = null; IPipelinedTreeContentPro... | private Object findParent(NavigatorContentExtension foundExtension, Object anElement) { Object parent = null; INavigatorContentDescriptor foundDescriptor; parent = foundExtension.getContentProvider().getParent(anElement); if(parent == null && (foundDescriptor = foundExtension.getDescriptor()).getOverriddenDes... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java |
if (!shouldDeferToOverridePath(foundExtension.getDescriptor(), | if (!isOverridingExtensionInSet(foundExtension.getDescriptor(), | public synchronized Object[] getElements(Object anInputElement) { Set rootContentExtensions = contentService .findRootContentExtensions(anInputElement); if (rootContentExtensions.size() == 0) { return NO_CHILDREN; } ContributorTrackingSet finalElementsSet = new ContributorTrackingSet(contentService); Contrib... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java |
if (!shouldDeferToOverridePath(foundExtension.getDescriptor(), | if (!isOverridingExtensionInSet(foundExtension.getDescriptor(), | public synchronized Object getParent(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Object parent; NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java |
Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) { foundExtension = (NavigatorContentExtension) itr.next(... | public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java | |
if (!shouldDeferToOverridePath(foundExtension.getDescriptor(), extensions)) { ITreeContentProvider tcp = foundExtension.getContentProvider(); if (tcp instanceof ITreePathContentProvider) { ITreePathContentProvider tpcp = (ITreePathContentProvider) tcp; TreePath[] parents = tpcp.getParents(anElement); Set parentPaths... | List paths = new ArrayList(); TreePathCompiler compiler = new TreePathCompiler(anElement); Set compilers = findPaths(compiler); for (Iterator iter = compilers.iterator(); iter.hasNext();) { TreePathCompiler c = (TreePathCompiler) iter.next(); paths.add(c.createParentPath()); | public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java |
return (TreePath[]) result.toArray(new TreePath[result.size()]); | return (TreePath[]) paths.toArray(new TreePath[paths.size()]); | public TreePath[] getParents(Object anElement) { Set extensions = contentService .findContentExtensionsWithPossibleChild(anElement); Set result = new HashSet(); NavigatorContentExtension foundExtension; NavigatorContentExtension[] overridingExtensions; for (Iterator itr = extensions.iterator(); itr.hasNext();) ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java |
if (!shouldDeferToOverridePath(foundExtension.getDescriptor(), | if (!isOverridingExtensionInSet(foundExtension.getDescriptor(), | private Object[] internalGetChildren(Object aParentElementOrPath) { Object aParentElement = internalAsElement(aParentElementOrPath); Set enabledExtensions = contentService .findContentExtensionsByTriggerPoint(aParentElement); if (enabledExtensions.size() == 0) { return NO_CHILDREN; } ContributorTrackingSet f... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/NavigatorContentServiceContentProvider.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentServiceContentProvider.java |
System.out .println("Cleaning test dir (" + files.length + " files/dirs)"); | System.out.println("Cleaning test dir (" + files.length + " files/dirs)"); | public static void cleanTestDir() { File testDir = getTestDir(); File[] files = testDir.listFiles(); if (files == null) { return; } System.out .println("Cleaning test dir (" + files.length + " files/dirs)"); for (File file : files) { ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a49171da04ec10edf60306c84d71f188b2bbb3f8/TestHelper.java/clean/src/test/de/dal33t/powerfolder/test/TestHelper.java |
private static final String createRandomFilename() { | public static final String createRandomFilename() { | private static final String createRandomFilename() { String str = UUID.randomUUID().toString(); StringBuffer buf = new StringBuffer(); int l = (int) (Math.random() * str.length()); for (int i = 0; i < l; i++) { char c; if (i % 2 == 0) { c = Character.... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a49171da04ec10edf60306c84d71f188b2bbb3f8/TestHelper.java/clean/src/test/de/dal33t/powerfolder/test/TestHelper.java |
int l = (int) (Math.random() * str.length()); | int l = 1 + (int) (Math.random() * (str.length() - 1)); | private static final String createRandomFilename() { String str = UUID.randomUUID().toString(); StringBuffer buf = new StringBuffer(); int l = (int) (Math.random() * str.length()); for (int i = 0; i < l; i++) { char c; if (i % 2 == 0) { c = Character.... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/a49171da04ec10edf60306c84d71f188b2bbb3f8/TestHelper.java/clean/src/test/de/dal33t/powerfolder/test/TestHelper.java |
} catch (IOException ioExcpn) { | } catch (Exception e) { e.printStackTrace(); | public void execute() throws BuildException { Map fileMap = new HashMap(); FileNameMapper mapper = null; if (mapperElement != null) { mapper = mapperElement.getImplementation(); } else { mapper = new GlobPatternMapper(); mapper.setFrom("*.rb"); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f275f45542bf672d8eb07f9a43b5812354182c8b/JRubySerialize.java/clean/src/org/jruby/util/ant/JRubySerialize.java |
box.y -= fm.getDescent(); | box.y += fm.getDescent(); | 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... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e79f8be3a1eeb16a1f4aa765b39fbfb66b65bdc9/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java |
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... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e79f8be3a1eeb16a1f4aa765b39fbfb66b65bdc9/FontUtil.java/buggy/src/java/org/xhtmlrenderer/layout/FontUtil.java | ||
&& !node.isMySelf()) { | && !node.isMySelf()) { | public void addChatMember(Member node) { if (chatTreeNodes != null && !chatTreeNodes.contains(node) && !node.isMySelf()) { chatTreeNodes.addChild(node); } updateTreeNode(); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/MemberUI.java/buggy/src/main/de/dal33t/powerfolder/ui/MemberUI.java |
private void updateOnlineStatus(Member member) {// UI Stuff if (onlineTreeNodes != null) { boolean inOnlineList = onlineTreeNodes.indexOf(member) >= 0; if (member.isCompleteyConnected()) { if (!inOnlineList) { // Add if not already in list ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/MemberUI.java/buggy/src/main/de/dal33t/powerfolder/ui/MemberUI.java | ||
getUIController().getControlQuarter().getNavigationTreeModel().updateFriendsAndOnlineTreeNodes(); | getUIController().getControlQuarter().getNavigationTreeModel() .updateFriendsAndOnlineTreeNodes(); | private void updateTreeNode() { getUIController().getControlQuarter().getNavigationTreeModel().updateFriendsAndOnlineTreeNodes(); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/MemberUI.java/buggy/src/main/de/dal33t/powerfolder/ui/MemberUI.java |
PackerApp pa = (PackerApp) packApps.get(new Integer(type)); | PackerMoteApp pa = (PackerMoteApp) packApps.get(new Integer(type)); | public BigPack buildPack(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return null; BigPack bp = pa.buildPack(id); if (bp == null) return null; return bp; } | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/PackerMote.java/clean/java/edu/rice/compass/bigpack/PackerMote.java |
BigPack bp = pa.buildPack(id); | BigPack bp = pa.buildPack(); | public BigPack buildPack(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return null; BigPack bp = pa.buildPack(id); if (bp == null) return null; return bp; } | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/PackerMote.java/clean/java/edu/rice/compass/bigpack/PackerMote.java |
PackerApp pa = (PackerApp) packApps.get(new Integer(type)); | PackerMoteApp pa = (PackerMoteApp) packApps.get(new Integer(type)); | public void packerDone(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return; pa.packerDone(id); } | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/PackerMote.java/clean/java/edu/rice/compass/bigpack/PackerMote.java |
pa.packerDone(id); | pa.packerDone(); | public void packerDone(short type) { PackerApp pa = (PackerApp) packApps.get(new Integer(type)); if (pa == null) return; pa.packerDone(id); } | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/PackerMote.java/clean/java/edu/rice/compass/bigpack/PackerMote.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.