rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.topColor);
g2.setColor(bcolor.topColor());
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
if (border.top == 1) {
if ((int)border.top() == 1) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.bottomColor); if (border.bottom == 1) {
g2.setColor(bcolor.bottomColor()); if ((int)border.bottom() == 1) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.rightColor); if (border.right == 1) {
g2.setColor(bcolor.rightColor()); if ((int)border.right() == 1) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
g2.setColor(color.leftColor); if (border.left == 1) {
g2.setColor(bcolor.leftColor()); if ((int)border.left() == 1) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
public static Rectangle shrinkRect(final Rectangle rect, final Border border, int sides) {
public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) {
public static Rectangle shrinkRect(final Rectangle rect, final Border border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : border.left); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : border.left) - ((sides & RIGHT) == 0 ? 0 : border.right); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : border.left); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : border.left) - ((sides & RIGHT) == 0 ? 0 : border.right); r2.y = rect.y + ((sides & TOP) == 0 ? 0 : border.top); r2.height = rect.height - ((sides & TOP) == 0 ? 0 : border.top) - ((sides & BOTTOM) == 0 ? 0 : bord...
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()) ...
public static Rectangle shrinkRect(final Rectangle rect, final Border border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : border.left); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : border.left) - ((sides & RIGHT) == 0 ? 0 : border.right); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/8ea25aa585e94d56872f163ff3c60962f3a3ddce/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
deleteCoupon(req);
deleteCoupons(req);
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { updateCoupon(req); } else if (c...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/EditCouponAction.java/clean/portal-ejb/src/com/liferay/portlet/shopping/action/EditCouponAction.java
return false;
return contentBinding.hasOverriddenRootExtensions();
public boolean hasOverriddenRootExtensions() { // TODO Auto-generated method stub return false; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6915e85b60af35942d3186f62ce0acdf65c91e7f/NavigatorViewerDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/extensions/NavigatorViewerDescriptor.java
return false;
return contentBinding.isRootExtension(aContentExtensionId);
public boolean isRootExtension(String aContentExtensionId) { // TODO Auto-generated method stub return false; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6915e85b60af35942d3186f62ce0acdf65c91e7f/NavigatorViewerDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/extensions/NavigatorViewerDescriptor.java
RubyClass threadGroupClass = runtime.defineClass("ThreadGroup", runtime.getClasses().getObjectClass());
RubyClass threadGroupClass = runtime.defineClass("ThreadGroup", runtime.getObject());
public static RubyClass createThreadGroupClass(Ruby runtime) { RubyClass threadGroupClass = runtime.defineClass("ThreadGroup", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyThreadGroup.class); threadGroupClass.defin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyThreadGroup.java/buggy/src/org/jruby/RubyThreadGroup.java
public com.liferay.portal.model.Group addGroup(java.lang.String companyId,
public com.liferay.portal.model.Group addGroup(java.lang.String userId,
public com.liferay.portal.model.Group addGroup(java.lang.String companyId, java.lang.String className, java.lang.String classPK, java.lang.String name, java.lang.String friendlyURL) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException;
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalService.java/buggy/portal-ejb/src/com/liferay/portal/service/spring/GroupLocalService.java
public void readFromRegistry() { ActionSetRegistryReader reader = new ActionSetRegistryReader(); reader.readRegistry(Platform.getExtensionRegistry(), this);
private void readFromRegistry() { IExtension[] extensions = getActionSetExtensionPoint().getExtensions(); for (int i = 0; i < extensions.length; i++) { addActionSets(PlatformUI.getWorkbench().getExtensionTracker(), extensions[i]); }
public void readFromRegistry() { ActionSetRegistryReader reader = new ActionSetRegistryReader(); reader.readRegistry(Platform.getExtensionRegistry(), this); ActionSetPartAssociationsReader assocReader = new ActionSetPartAssociationsReader(); assocReader.readRegistry(Platform.getExtension...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b97ada8a49178173d33f907e1eb89e1b33e5ddcd/ActionSetRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ActionSetRegistry.java
ActionSetPartAssociationsReader assocReader = new ActionSetPartAssociationsReader(); assocReader.readRegistry(Platform.getExtensionRegistry(), this);
extensions = getActionSetPartAssociationExtensionPoint() .getExtensions(); for (int i = 0; i < extensions.length; i++) { addActionSetPartAssociations(PlatformUI.getWorkbench() .getExtensionTracker(), extensions[i]); }
public void readFromRegistry() { ActionSetRegistryReader reader = new ActionSetRegistryReader(); reader.readRegistry(Platform.getExtensionRegistry(), this); ActionSetPartAssociationsReader assocReader = new ActionSetPartAssociationsReader(); assocReader.readRegistry(Platform.getExtension...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b97ada8a49178173d33f907e1eb89e1b33e5ddcd/ActionSetRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ActionSetRegistry.java
LoggerAdapter.error("Could not find exchange for " + marketIdentifierCode, this);
LoggerAdapter.error(MessageKey.ERROR_EXCHANGE_DNE.getLocalizedMessage(marketIdentifierCode), this);
private void init(Properties props) { Map<String, Exchange> map = new HashMap<String, Exchange>(); for (Object o : props.keySet()) { String key = (String) o; String marketIdentifierCode = (String) props.get(key); Exchange exch = Exchanges.getExchange(marketIdentifierCo...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/c1e9503d3032bc75965b7f7178f503c3094437f3/PropertiesExchangeMap.java/buggy/source/core/src/main/java/org/marketcetera/symbology/PropertiesExchangeMap.java
super(""); setText(WorkbenchMessages.getString("ShowMenuAction.text"));
super(WorkbenchMessages.getString("ShowMenuAction.text"));
public ShowMenuAction(WorkbenchWindow window) { super(""); setText(WorkbenchMessages.getString("ShowMenuAction.text")); setToolTipText(WorkbenchMessages.getString("ShowMenuAction.toolTip")); window.getPartService().addPartListener(this);}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8a28c3b8bd1305702e7ceba48edfed57e3b0a68f/ShowMenuAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ShowMenuAction.java
WorkbenchPart part = (WorkbenchPart)getActivePart();
IWorkbenchPart part = getActivePart();
public void run() { WorkbenchPart part = (WorkbenchPart)getActivePart(); if(part != null) ((PartSite)part.getSite()).getPane().showPaneMenu();}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8a28c3b8bd1305702e7ceba48edfed57e3b0a68f/ShowMenuAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ShowMenuAction.java
WorkbenchPart part = (WorkbenchPart)getActivePart(); setEnabled(part != null);
setEnabled(getActivePart() != null);
private void updateState() { WorkbenchPart part = (WorkbenchPart)getActivePart(); setEnabled(part != null);}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8a28c3b8bd1305702e7ceba48edfed57e3b0a68f/ShowMenuAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/ShowMenuAction.java
CommonPermission.checkPermission( getPermissionChecker(), className, classPK, ActionKeys.UPDATE);
public EmailAddress addEmailAddress( String className, String classPK, String address, String typeId, boolean primary) throws PortalException, SystemException { return EmailAddressLocalServiceUtil.addEmailAddress( getUserId(), className, classPK, address, typeId, primary); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/EmailAddressServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/EmailAddressServiceImpl.java
EmailAddress emailAddress = EmailAddressUtil.findByPrimaryKey(emailAddressId); CommonPermission.checkPermission( getPermissionChecker(), emailAddress.getClassName(), emailAddress.getClassPK(), ActionKeys.UPDATE);
public void deleteEmailAddress(String emailAddressId) throws PortalException, SystemException { EmailAddressLocalServiceUtil.deleteEmailAddress(emailAddressId); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/EmailAddressServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/EmailAddressServiceImpl.java
return EmailAddressUtil.findByPrimaryKey(emailAddressId);
EmailAddress emailAddress = EmailAddressUtil.findByPrimaryKey(emailAddressId); CommonPermission.checkPermission( getPermissionChecker(), emailAddress.getClassName(), emailAddress.getClassPK(), ActionKeys.VIEW); return emailAddress;
public EmailAddress getEmailAddress(String emailAddressId) throws PortalException, SystemException { return EmailAddressUtil.findByPrimaryKey(emailAddressId); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/EmailAddressServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/EmailAddressServiceImpl.java
CommonPermission.checkPermission( getPermissionChecker(), className, classPK, ActionKeys.VIEW);
public List getEmailAddresses(String className, String classPK) throws PortalException, SystemException { return EmailAddressLocalServiceUtil.getEmailAddresses( getUser().getCompanyId(), className, classPK); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/EmailAddressServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/EmailAddressServiceImpl.java
EmailAddress emailAddress = EmailAddressUtil.findByPrimaryKey(emailAddressId); CommonPermission.checkPermission( getPermissionChecker(), emailAddress.getClassName(), emailAddress.getClassPK(), ActionKeys.UPDATE);
public EmailAddress updateEmailAddress( String emailAddressId, String address, String typeId, boolean primary) throws PortalException, SystemException { return EmailAddressLocalServiceUtil.updateEmailAddress( emailAddressId, address, typeId, primary); }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/EmailAddressServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/EmailAddressServiceImpl.java
outerBox.setStyle(new Style(c.getCurrentStyle(), 0, c));
outerBox.setStyle(new Style(c.getCurrentStyle(), 0));
public static Box layout(LayoutContext c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName()); return null; } // i...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
tableBox.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c));
tableBox.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth()));
public static Box layout(LayoutContext c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName()); return null; } // i...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
tableBox.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c));
tableBox.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth()));
public static Box layout(LayoutContext c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName()); return null; } // i...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
cell.setStyle(new Style(c.getCurrentStyle(), (float) c.getExtents().width, c));
cell.setStyle(new Style(c.getCurrentStyle(), (float) c.getExtents().width));
private static CellBox layoutCell(LayoutContext c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
row.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c));
row.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth()));
private static RowBox layoutRow(LayoutContext c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
scanned = true;
scanned = true;
public void scansFinished(FolderRepositoryEvent e) { initalScanOver = true; scanned = true; }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ca6475c8eedfd2f6148118d24f3da1a1cb4d45bc/ScanFolderTest.java/buggy/src/test/de/dal33t/powerfolder/test/folder/ScanFolderTest.java
public void scansStarted(FolderRepositoryEvent e) {
public void scansStarted(FolderRepositoryEvent e) {
public void scansStarted(FolderRepositoryEvent e) { }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ca6475c8eedfd2f6148118d24f3da1a1cb4d45bc/ScanFolderTest.java/buggy/src/test/de/dal33t/powerfolder/test/folder/ScanFolderTest.java
getFolder().forceScanOnNextMaintenance();
getFolder().forceScanOnNextMaintenance();
private void scanFolder() { scanned = false; getFolder().forceScanOnNextMaintenance(); getController().getFolderRepository().triggerMaintenance(); boolean timeout = TestHelper.waitForCondition(200, new Condition() { public boolean reached() { return scanned; ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ca6475c8eedfd2f6148118d24f3da1a1cb4d45bc/ScanFolderTest.java/buggy/src/test/de/dal33t/powerfolder/test/folder/ScanFolderTest.java
boolean timeout = TestHelper.waitForCondition(200, new Condition() {
boolean succes = TestHelper.waitForCondition(200, new Condition() {
private void scanFolder() { scanned = false; getFolder().forceScanOnNextMaintenance(); getController().getFolderRepository().triggerMaintenance(); boolean timeout = TestHelper.waitForCondition(200, new Condition() { public boolean reached() { return scanned; ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ca6475c8eedfd2f6148118d24f3da1a1cb4d45bc/ScanFolderTest.java/buggy/src/test/de/dal33t/powerfolder/test/folder/ScanFolderTest.java
assertFalse("Folder was not scanned as requested", timeout);
assertTrue("Folder was not scanned as requested", succes);
private void scanFolder() { scanned = false; getFolder().forceScanOnNextMaintenance(); getController().getFolderRepository().triggerMaintenance(); boolean timeout = TestHelper.waitForCondition(200, new Condition() { public boolean reached() { return scanned; ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/ca6475c8eedfd2f6148118d24f3da1a1cb4d45bc/ScanFolderTest.java/buggy/src/test/de/dal33t/powerfolder/test/folder/ScanFolderTest.java
if (listType.isNew() || listType.isModified()) { session = openSession(); if (listType.isNew()) { ListType listTypeModel = new ListType(); listTypeModel.setListTypeId(listType.getListTypeId()); listTypeModel.setName(listType.getName()); listTypeModel.setType(listType.getType()); session.save(listTypeModel); session.fl...
session = openSession(); session.saveOrUpdate(listType); session.flush(); listType.setNew(false);
public com.liferay.portal.model.ListType update( com.liferay.portal.model.ListType listType) throws SystemException { Session session = null; try { if (listType.isNew() || listType.isModified()) { session = openSession(); if (listType.isNew()) { ListType listTypeModel = new ListType(); listTypeModel...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ListTypePersistence.java/clean/portal-ejb/src/com/liferay/portal/service/persistence/ListTypePersistence.java
singletonClass.setParentModule((RubyModule) receiver);
public void visitSClassNode(SClassNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getClasses().getNilClass(); } else if (receiver == runtime.getTrue()) { singletonCl...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6afb419341d5d873f015827251b84bcbabd83363/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
if (member.isMySelf()) {
if (member.isMySelf()) {
private void addFile(Member member, FileInfo fileInfo) { if (fileInfoHolderMap.containsKey(fileInfo)) { // already there FileInfoHolder fileInfoHolder = fileInfoHolderMap.get(fileInfo); if (member.isMySelf()) { //replace, this maybe a converted meta FileIn...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
private void addFile(Member member, FileInfo fileInfo) { if (fileInfoHolderMap.containsKey(fileInfo)) { // already there FileInfoHolder fileInfoHolder = fileInfoHolderMap.get(fileInfo); if (member.isMySelf()) { //replace, this maybe a converted meta FileIn...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
public boolean copyFileFrom(final File file, final FileCopier fileCopier) { if (file.exists() && file.canRead()) { final File newFile = new File(getFile(), file.getName()); if (file.equals(newFile)) { //cannot copy file onto itself return false; ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
int index = path.size()-1;
int index = path.size() - 1;
public Directory[] getDirectoryPath() { List<Directory> path = getTreeNodePath(); Directory[] pathArray = new Directory[path.size()]; int index = path.size()-1; for (Directory directory : path) { pathArray[index--] = directory; } return pathArray; }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
List<FileInfo> files = Collections.synchronizedList(new ArrayList<FileInfo>());
List<FileInfo> files = Collections .synchronizedList(new ArrayList<FileInfo>());
public List<FileInfo> getFiles() { List<FileInfo> files = Collections.synchronizedList(new ArrayList<FileInfo>()); Iterator<FileInfo> fileInfos = fileInfoHolderMap.keySet().iterator(); while (fileInfos.hasNext()) { FileInfo fileInfo = fileInfos.next(); if (fileInfo.diskFil...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
List<FileInfo> files = Collections.synchronizedList(new ArrayList<FileInfo>());
List<FileInfo> files = Collections .synchronizedList(new ArrayList<FileInfo>());
public List<FileInfo> getFilesRecursive() { List<FileInfo> files = Collections.synchronizedList(new ArrayList<FileInfo>()); Iterator<FileInfoHolder> fileInfoHolders = fileInfoHolderMap.values() .iterator(); while (fileInfoHolders.hasNext()) { FileInfoHolder holder = fileIn...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
public Directory getSubDirectory(String dirName) {
public Directory getSubDirectory(String dirName) {
public Directory getSubDirectory(String dirName) { String tmpDirName; String rest; int index = dirName.indexOf("/"); if (index == -1) { tmpDirName = dirName; rest = ""; } else { tmpDirName = dirName.substring(0, index); rest = di...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
}
}
public Directory getSubDirectory(String dirName) { String tmpDirName; String rest; int index = dirName.indexOf("/"); if (index == -1) { tmpDirName = dirName; rest = ""; } else { tmpDirName = dirName.substring(0, index); rest = di...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
} throw new IllegalStateException("dir " +dirName + " not found");
} throw new IllegalStateException("dir " + dirName + " not found");
public Directory getSubDirectory(String dirName) { String tmpDirName; String rest; int index = dirName.indexOf("/"); if (index == -1) { tmpDirName = dirName; rest = ""; } else { tmpDirName = dirName.substring(0, index); rest = di...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
List<Directory> list = new ArrayList<Directory>(subDirectoriesMap.values());
List<Directory> list = new ArrayList<Directory>(subDirectoriesMap .values());
public List<Directory> listSubDirectories() { List<Directory> list = new ArrayList<Directory>(subDirectoriesMap.values()); Collections.sort(list); return list; }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/f498372715e78e2b8c03090a0989446405501447/Directory.java/buggy/src/main/de/dal33t/powerfolder/disk/Directory.java
public int compare(Object o, Object o1) { return ((CSSName)o).toString().compareTo(((CSSName)o1).toString()); }
public int compare( Object o, Object o1 ) { return ( (CSSName)o ).toString().compareTo( ( (CSSName)o1 ).toString() ); }
public int compare(Object o, Object o1) { return ((CSSName)o).toString().compareTo(((CSSName)o1).toString()); //To change body of implemented methods use File | Settings | File Templates. }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
private CSSName(String propName) {
private CSSName( String propName ) {
private CSSName(String propName) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
this.assignedID = maxAssigned++;
this.assignedID = CSSName.maxAssigned++;
private CSSName(String propName) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
private static synchronized final CSSName addProperty(String propName) {
private final static synchronized CSSName addProperty( String propName ) {
private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName);
CSSName cssName = new CSSName( propName ); ALL_PROPERTY_NAMES.put( propName, cssName );
private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
public static final int countCSSNames() { return maxAssigned;
public final static int countCSSNames() { return CSSName.maxAssigned;
public static final int countCSSNames() { return maxAssigned; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName);
public static CSSName getByPropertyName( String propName ) { CSSName cssName = (CSSName)ALL_PROPERTY_NAMES.get( propName );
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName); if ( cssName == null ) { throw new XRRuntimeException("Property name " + propName + " has no CSSName instance assigned to it."); } return cssName; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
throw new XRRuntimeException("Property name " + propName + " has no CSSName instance assigned to it.");
throw new XRRuntimeException( "Property name " + propName + " has no CSSName instance assigned to it." );
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName); if ( cssName == null ) { throw new XRRuntimeException("Property name " + propName + " has no CSSName instance assigned to it."); } return cssName; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/59f2a479d8e3ef0eddacca552c93487682b000d2/CSSName.java/buggy/src/java/org/xhtmlrenderer/css/constants/CSSName.java
return _marginBottomOverride;
return this.marginBottomOverride;
public float getMarginBottomOverride() { return _marginBottomOverride; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/01fe5f6295fdbc46194c11fca8c5668798faefcb/Box.java/clean/src/java/org/xhtmlrenderer/render/Box.java
return _marginTopOverride;
return this.marginTopOverride;
public float getMarginTopOverride() { return _marginTopOverride; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/01fe5f6295fdbc46194c11fca8c5668798faefcb/Box.java/clean/src/java/org/xhtmlrenderer/render/Box.java
this._primitiveType = guessType(value);
this._primitiveType = ValueConstants.guessType(value);
public DefaultCSSPrimitiveValue(String value) { this._stringValue = value; this._cssValueType = CSS_PRIMITIVE_VALUE; this._primitiveType = guessType(value); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/beb33b535e31b5457b4ff342322f6310ebfa663e/DefaultCSSPrimitiveValue.java/clean/src/java/org/xhtmlrenderer/css/impl/DefaultCSSPrimitiveValue.java
WaveletConfigServer.debugPrint("Payload: ");
CompassTools.debugPrint("Payload: ");
private void debugMsg(Message msg) { WaveletConfigServer.debugPrint("Payload: "); for (int i = 0; i < msg.dataLength(); i++) { WaveletConfigServer.debugPrint(Integer.toHexString(msg.dataGet()[i] & 0xff) + " "); } WaveletConfigServer.debugPrintln(); }
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/MoteCom.java/buggy/java/edu/rice/compass/comm/MoteCom.java
WaveletConfigServer.debugPrint(Integer.toHexString(msg.dataGet()[i] & 0xff)
CompassTools.debugPrint(Integer.toHexString(msg.dataGet()[i] & 0xff)
private void debugMsg(Message msg) { WaveletConfigServer.debugPrint("Payload: "); for (int i = 0; i < msg.dataLength(); i++) { WaveletConfigServer.debugPrint(Integer.toHexString(msg.dataGet()[i] & 0xff) + " "); } WaveletConfigServer.debugPrintln(); }
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/MoteCom.java/buggy/java/edu/rice/compass/comm/MoteCom.java
WaveletConfigServer.debugPrintln();
CompassTools.debugPrintln();
private void debugMsg(Message msg) { WaveletConfigServer.debugPrint("Payload: "); for (int i = 0; i < msg.dataLength(); i++) { WaveletConfigServer.debugPrint(Integer.toHexString(msg.dataGet()[i] & 0xff) + " "); } WaveletConfigServer.debugPrintln(); }
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/MoteCom.java/buggy/java/edu/rice/compass/comm/MoteCom.java
baseDir = OmniadminUtil.getAutoDeployDeployDir(); destDir = OmniadminUtil.getAutoDeployDestDir();
baseDir = PrefsPropsUtil.getString( PropsUtil.AUTO_DEPLOY_DEPLOY_DIR); destDir = PrefsPropsUtil.getString(PropsUtil.AUTO_DEPLOY_DEST_DIR);
public AutoLayoutTemplateDeployer() { try { baseDir = OmniadminUtil.getAutoDeployDeployDir(); destDir = OmniadminUtil.getAutoDeployDestDir(); appServerType = ServerDetector.getServerId(); unpackWar = OmniadminUtil.getAutoDeployUnpackWar(); List jars = new ArrayList(); this.jars = jars; checkArguments();...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/AutoLayoutTemplateDeployer.java/clean/portal-ejb/src/com/liferay/portal/deploy/AutoLayoutTemplateDeployer.java
unpackWar = OmniadminUtil.getAutoDeployUnpackWar();
unpackWar = PrefsPropsUtil.getBoolean( PropsUtil.AUTO_DEPLOY_UNPACK_WAR);
public AutoLayoutTemplateDeployer() { try { baseDir = OmniadminUtil.getAutoDeployDeployDir(); destDir = OmniadminUtil.getAutoDeployDestDir(); appServerType = ServerDetector.getServerId(); unpackWar = OmniadminUtil.getAutoDeployUnpackWar(); List jars = new ArrayList(); this.jars = jars; checkArguments();...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/AutoLayoutTemplateDeployer.java/clean/portal-ejb/src/com/liferay/portal/deploy/AutoLayoutTemplateDeployer.java
lineHeight = FontUtil.lineHeight(c);
lineHeight = FontUtil.lineHeight(c, new_inline);
private static void adjustLineHeight(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actua...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
CalculatedStyle style = c.getCurrentStyle(); Font font = c.getCurrentFont();
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
text = TextUtil.transformText(text, style);
text = TextUtil.transformText(text, c.getCurrentStyle());
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
Breaker.breakText(c, inline, prev_align, avail, font);
Breaker.breakText(c, inline, prev_align, avail, inline.getStyle().getFont(c.getCtx()));
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendingBloc...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
int blockLineHeight = FontUtil.lineHeight(c);
int blockLineHeight = FontUtil.lineHeight(c, box);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
c.getCurrentFont(), "thequickbrownfoxjumpedoverthelazydogTHEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG");
box.getStyle().getFont(c.getCtx()), "thequickbrownfoxjumpedoverthelazydogTHEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG");
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (!box.clear_left && !box.clear_right) {
if (!box.getStyle().isCleared()) {
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
CalculatedStyle currentStyle = parentStyle;
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
LinkedList pendingPushStyles = null;
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (pendingPushStyles == null) { pendingPushStyles = new LinkedList(); } pendingPushStyles.addLast((StylePush) o); Relative.translateRelative(c, false);
Relative.translateRelative(c, c.getCurrentStyle(), false);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (pendingPushStyles != null && pendingPushStyles.size() != 0) { pendingPushStyles.removeLast(); } else { if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line....
if (prev_inline == null) { prev_inline = new InlineTextBox(); ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.addChild(prev_inline); } int parent_width = bounds.width; CalculatedStyle style = c.getCurrentStyle(); Bord...
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
Relative.untranslateRelative(c, false);
Relative.untranslateRelative(c, c.getCurrentStyle(), false);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
currentStyle = c.getCurrentStyle();
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (!box.clear_left && !box.clear_right) {
if (!box.getStyle().isCleared()) {
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
Relative.setupRelative(c, new_inline);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
new_inline.pushstyles = pendingPushStyles; pendingPushStyles = null;
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (!new_inline.floated && !new_inline.absolute) {
if (!new_inline.getStyle().isFloated() && !new_inline.getStyle().isAbsolute()) {
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (!box.clear_left && !box.clear_right) {
if (!box.getStyle().isCleared()) {
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
c.pushStyle(CascadedStyle.emptyCascadedStyle); curr_line.setStyle(new Style(c.getCurrentStyle(), 0, c.getCtx())); c.popStyle();
private static LineBox newLine(Box box, Rectangle bounds, LineBox prev_line, LineMetrics blockLineMetrics, Context c) { LineBox curr_line = new LineBox(); if (Configuration.isTrue("xr.stackingcontext.enabled", false)) { curr_line.renderIndex = c.getNewRenderIndex(); } if (prev...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (!block.clear_left) {
if (!block.getStyle().isClearLeft()) {
private static void saveLine(LineBox line_to_save, LineBox prev_line, Rectangle bounds, Context c, Box block, int minHeight, LinkedList pushedOnFirstLine) { if (c.hasFirstLineStyles()) { //first pop element styles pushed on first line for (int i = 0; i < ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
FilenameProblemDialog dialog = new FilenameProblemDialog( getController(), true, fileNameProblemEvent.getScanResult()); dialog.open();
final FilenameProblemDialog dialog = new FilenameProblemDialog( getController(), fileNameProblemEvent.getScanResult()); Runnable runner = new Runnable() { public void run() { dialog.open(); } }; UIUtil.invokeLaterInEDT(runner);
public void fileNameProblemsDetected( FileNameProblemEvent fileNameProblemEvent) { log().debug( "****************** " + fileNameProblemEvent.getFolder() + " " + fileNameProblemEvent.getScanResult().getProblemFiles()); FilenameProblemDialog dialog = new FilenameProbl...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/71c2535469e41e17bc8e4308eddeef3ebec2af28/FileNameProblemHandlerDefaultImpl.java/clean/src/main/de/dal33t/powerfolder/ui/folder/FileNameProblemHandlerDefaultImpl.java
pipeIn = new PipedInputStream();
/* pipeIn = new PipedInputStream();
protected String eval(String script) throws Exception { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); out = new PrintStream(new PipedOutputStream(pipeIn), true); // ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6c2ef60211f20a830e0ee53ac5936fed21f8f1ea/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
StringBuffer result = new StringBuffer(); out = new PrintStream(new PipedOutputStream(pipeIn), true);
StringBuffer result = new StringBuffer(); */ ByteArrayOutputStream result = new ByteArrayOutputStream(); out = new PrintStream(result);
protected String eval(String script) throws Exception { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); out = new PrintStream(new PipedOutputStream(pipeIn), true); // ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6c2ef60211f20a830e0ee53ac5936fed21f8f1ea/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
new EvalThread("test", script).start(); while ((output = in.readLine()) != null) {
ruby.getRuntime().loadScript(RubyString.newString(ruby, "test"), RubyString.newString(ruby, script), false); /*new EvalThread("test", script).start();*/ /*while ((output = in.readLine()) != null) {
protected String eval(String script) throws Exception { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); out = new PrintStream(new PipedOutputStream(pipeIn), true); // ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6c2ef60211f20a830e0ee53ac5936fed21f8f1ea/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
return result.toString();
return sb.toString();
protected String eval(String script) throws Exception { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); out = new PrintStream(new PipedOutputStream(pipeIn), true); // ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6c2ef60211f20a830e0ee53ac5936fed21f8f1ea/TestRubyBase.java/buggy/org/jruby/test/TestRubyBase.java
if (textContent != null) { inlineList.add(textContent); textContent = null; }
static List getChildContentList(Context c, Content parent) { List inlineList = new LinkedList(); List blockList = null; FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; TextContent textContent = null; CascadedStyle parentStyle = parent.getStyl...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e010e25e2f3007e3cf52c0e37a0e997d40fd651d/ContentUtil.java/clean/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
.getTranslation("foldercreate.error.unable_tocreate",
.getTranslation("foldercreate.error.unable_to_create",
private void checkBaseDir(File baseDir) throws FolderException { // Basic checks if (!localBase.exists()) { if (!localBase.mkdirs()) { throw new FolderException(getInfo(), Translation .getTranslation("foldercreate.error.unable_tocreate", ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/919113c1d341b2d22de290f90443b9a19a3ffb3e/Folder.java/clean/src/main/de/dal33t/powerfolder/disk/Folder.java
if (box.getBorderColor() == null) { box.setBorderColor(ctx.css.getStyle(box.getRealElement()).getBorderColor());
if (box.getBorderColor() == null) { box.border_color = ctx.css.getStyle(box.getRealElement()).getBorderColor();
public void paint(Context ctx, Box box) { //u.p("checking: " + box); //u.p("hashcode = " + box.hashCode()); if (box.border == null) return; Graphics g = ctx.getGraphics(); // TODO: color is per-side ((PWW 13/08/04)) //u.p("border = " + ctx.css.getBorderColor(box.getRealElem...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/BorderPainter.java/clean/src/java/org/xhtmlrenderer/render/BorderPainter.java
.getString("BasicStackPresentation.menu"));
.getString("BasicStackPresentation.menu.tooltip"));
public R21BasicStackPresentation(R21PaneFolder control, IStackPresentationSite stackSite) { super(stackSite); paneFolder = control; shellActive = paneFolder.getControl().getShell().equals( control.getControl().getDisplay().getActiveShell()); // tabFolder.setMin...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/70bbbcb17dec400619b2c6d0c7840f22a3796c73/R21BasicStackPresentation.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
.getString("BasicStackPresentation.close"));
.getString("BasicStackPresentation.close.tooltip"));
private void updateCloseButton() { // remove the close button if needed if (current == null || !getSite().isCloseable(current)) { if (closeButton != null) { closeButton.dispose(); closeButton = null; paneFolder.flush(); } re...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/70bbbcb17dec400619b2c6d0c7840f22a3796c73/R21BasicStackPresentation.java/clean/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
} else { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, (int) border.top() + (int) padding.top() + cell.height); if (delta > 0) { cell.height += delta; }
private static CellBox layoutCell(LayoutContext c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ab7d3d13df67e0cc8ec392842980f3a9475d9f5a/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
cellBox.setContainingBlock(null);
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ab7d3d13df67e0cc8ec392842980f3a9475d9f5a/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
row.setContainingBlock(null);
private static RowBox layoutRow(LayoutContext c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ab7d3d13df67e0cc8ec392842980f3a9475d9f5a/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
throw new RubyNameException(getRuby(), "'initialize' called twice.");
throw new NameError(getRuby(), "'initialize' called twice.");
public RubyObject initialize(RubyObject[] args) { if (isInstanceVarDefined("begin")) { throw new RubyNameException(getRuby(), "'initialize' called twice."); } if (args.length == 3) { init(args[0], args[1], (RubyBoolean) args[2]); } else if (args.length == 2) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyRange.java/buggy/org/jruby/RubyRange.java
RubyClass rubyClass = (RubyClass) ruby.getClasses().getClassMap().get(className.toId());
RubyClass rubyClass = (RubyClass) ruby.getRubyClass(className.toId());
private RubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySymb...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/UnmarshalStream.java/buggy/org/jruby/marshal/UnmarshalStream.java
if (_properties == null) { _properties = CollectionFactory.getHashMap(); } _properties.put(key, new String[] {value});
public void setProperty(String key, String value) { }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/42e50ccc98fbe9828f2c9204202bbbe54641cf09/ActionResponseImpl.java/buggy/portal-ejb/src/com/liferay/portlet/ActionResponseImpl.java
mPreferences = new ScopedPreferenceStore(new ConfigurationScope(), Application.PLUGIN_ID); setPreferenceStore(mPreferences);
preferences = new ScopedPreferenceStore(new ConfigurationScope(), Application.PLUGIN_ID); setPreferenceStore(preferences);
public JMSPreferencePage() { super(GRID); mPreferences = new ScopedPreferenceStore(new ConfigurationScope(), Application.PLUGIN_ID); setPreferenceStore(mPreferences); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/b329de304a1922f59f08ed44a156121180f196a9/JMSPreferencePage.java/buggy/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/preferences/JMSPreferencePage.java