rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
"Item X24", null); | null, null, "Item X24", null, null); | public void addMenuContribution() { if (!PlatformUI.isWorkbenchRunning()) { return; } IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); viewMenuAddition = new AbstractContributionFactory("menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions") { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
public void releaseContributionItems(IMenuService menuService, List items) { | public void releaseContributionItems(IMenuService menuService, List items) { | public void addMenuContribution() { if (!PlatformUI.isWorkbenchRunning()) { return; } IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); viewMenuAddition = new AbstractContributionFactory("menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions") { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
viewToolbarAddition = new AbstractContributionFactory("toolbar:org.eclipse.ui.tests.api.MenuTestHarness") { public void createContributionItems(IMenuService menuService, List additions) { | viewToolbarAddition = new AbstractContributionFactory( "toolbar:org.eclipse.ui.tests.api.MenuTestHarness") { public void createContributionItems(IMenuService menuService, List additions) { | public void addMenuContribution() { if (!PlatformUI.isWorkbenchRunning()) { return; } IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); viewMenuAddition = new AbstractContributionFactory("menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions") { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
"Item X25", null); | null, null, "Item X25", null, null); | public void addMenuContribution() { if (!PlatformUI.isWorkbenchRunning()) { return; } IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); viewMenuAddition = new AbstractContributionFactory("menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions") { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
public void addMenuContribution() { if (!PlatformUI.isWorkbenchRunning()) { return; } IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); viewMenuAddition = new AbstractContributionFactory("menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions") { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java | ||
public void releaseContributionItems(IMenuService menuService, List items) { | public void releaseContributionItems(IMenuService menuService, List items) { | public void addMenuContribution() { if (!PlatformUI.isWorkbenchRunning()) { return; } IMenuService menuService = (IMenuService) PlatformUI.getWorkbench() .getService(IMenuService.class); viewMenuAddition = new AbstractContributionFactory("menu:org.eclipse.ui.tests.api.MenuTestHarness?after=additions") { ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
public void createContributionItems(IMenuService menuService, List additions) { | public void createContributionItems(IMenuService menuService, List additions) { | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
"Item X20", null); | null, null, "Item X20", null, null); | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
"Item X22", null); | null, null, "Item X22", null, null); | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
"Item X23", null); | null, null, "Item X23", null, null); | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
"Item X24", null); | null, null, "Item X24", null, null); | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
public void releaseContributionItems(IMenuService menuService, List items) { | public void releaseContributionItems(IMenuService menuService, List items) { | public void releaseContributionItems(IMenuService menuService, List items) { // for us this is a no-op } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
public void createContributionItems(IMenuService menuService, List additions) { | public void createContributionItems(IMenuService menuService, List additions) { | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX25", "org.eclipse.ui.tests.menus.updateWorld", null, null, "Item X25", null); additions.add(item); WidgetContributionIte... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
"Item X25", null); | null, null, "Item X25", null, null); | public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX25", "org.eclipse.ui.tests.menus.updateWorld", null, null, "Item X25", null); additions.add(item); WidgetContributionIte... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX25", "org.eclipse.ui.tests.menus.updateWorld", null, null, "Item X25", null); additions.add(item); WidgetContributionIte... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java | ||
public void releaseContributionItems(IMenuService menuService, List items) { | public void releaseContributionItems(IMenuService menuService, List items) { | public void releaseContributionItems(IMenuService menuService, List items) { // for us this is a no-op } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java |
String arg = ((RubyString) args[0]).getValue(); | String arg = ((RubyString) args[0].convertToString()).getValue(); | public static IRubyObject open(IRubyObject recv, IRubyObject[] args) { String arg = ((RubyString) args[0]).getValue(); // Should this logic be pushed into RubyIO Somewhere? if (arg.startsWith("|")) { String command = arg.substring(1); // exec process, create IO with process ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ae3178fbb3656e01c3d379a6255e1af956725271/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
boolean wasDirty = isDirty(); | public void markDirty() { boolean wasDirty = isDirty(); super.markDirty(); // optimization: if already dirty, assume all parents are already dirty too if (!wasDirty) { IContributionManager parent = getParent(); if (parent != null) { parent.markDirty()... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/67bffe850ff41143da832bdcd39d45e036b08c5b/MenuManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java | |
if (!wasDirty) { IContributionManager parent = getParent(); if (parent != null) { parent.markDirty(); } | IContributionManager parent = getParent(); if (parent != null) { parent.markDirty(); | public void markDirty() { boolean wasDirty = isDirty(); super.markDirty(); // optimization: if already dirty, assume all parents are already dirty too if (!wasDirty) { IContributionManager parent = getParent(); if (parent != null) { parent.markDirty()... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/67bffe850ff41143da832bdcd39d45e036b08c5b/MenuManager.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/action/MenuManager.java |
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { | public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { | protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { RectPropertySet margin = getStyle().getMarginWidth(cssCtx); RectPropertySet border = getStyle().getCalculatedStyle().getBorder(cssCtx); RectPropertySet padding = getStyle().getPaddingWidth(cssCtx); Rec... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2d0418135baea38113aec4c619576083cc381df4/Box.java/buggy/src/java/org/xhtmlrenderer/render/Box.java |
history = new HistoryManager(); | public BrowserStartup() { logger.info("starting up"); history = new HistoryManager(); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserStartup.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java | |
panel.loadPage("demo:demos/splash/splash.html"); | public void init() { logger.info("creating UI"); actions = new BrowserActions(this); actions.init(); panel = new BrowserPanel(this, new FrameBrowserPanelListener()); panel.init(); panel.createLayout(); panel.createActions(); menu = new BrowserMenuBar(this); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserStartup.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java | |
panel.loadPage("demo:demos/layout/multicol/glish/nested-float.xhtml"); | public void init() { logger.info("creating UI"); actions = new BrowserActions(this); actions.init(); panel = new BrowserPanel(this, new FrameBrowserPanelListener()); panel.init(); panel.createLayout(); panel.createActions(); menu = new BrowserMenuBar(this); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserStartup.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java | |
if(GeneralUtil.isMacOSX()) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name","FS Browser"); } JFrame frame = new JFrame(); | if (GeneralUtil.isMacOSX()) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name", "FS Browser"); } JFrame frame = new JFrame(); | public static void main(String[] args) throws Exception { if(GeneralUtil.isMacOSX()) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name","FS Browser"); } //System.out.println(new URI("images/Stop24.gif")); JFrame fra... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserStartup.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java |
frame.addComponentListener( new ComponentAdapter() { public void componentResized( ComponentEvent e ) { bs.panel.view.relayout(); } } ); | frame.addComponentListener(new ComponentAdapter() { public void componentResized(ComponentEvent e) { bs.panel.view.relayout(); } }); | public static void main(String[] args) throws Exception { if(GeneralUtil.isMacOSX()) { System.setProperty("apple.laf.useScreenMenuBar", "true"); System.setProperty("com.apple.mrj.application.apple.menu.about.name","FS Browser"); } //System.out.println(new URI("images/Stop24.gif")); JFrame fra... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserStartup.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java |
public void componentResized( ComponentEvent e ) { bs.panel.view.relayout(); } | public void componentResized(ComponentEvent e) { bs.panel.view.relayout(); } | public void componentResized( ComponentEvent e ) { bs.panel.view.relayout(); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/21b69ea7acabe2f6fd080b8c1cf9278bd83848a8/BrowserStartup.java/clean/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserStartup.java |
createSysErr(IErrno.ECONNRESET, "ECONNRESET"); | private void initErrnoErrors() { createSysErr(IErrno.ENOTEMPTY, "ENOTEMPTY"); createSysErr(IErrno.ERANGE, "ERANGE"); createSysErr(IErrno.ESPIPE, "ESPIPE"); createSysErr(IErrno.ENFILE, "ENFILE"); createSysErr(IErrno.EXDEV, "EXDEV"); createSysErr(I... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d5575d355e0fd55a836cdf150a5d77214e63c79c/Ruby.java/buggy/src/org/jruby/Ruby.java | |
String servletClass = config.getInitParameter("servlet-class"); | _config = config; | public void init(ServletConfig config) throws ServletException { String servletClass = config.getInitParameter("servlet-class"); ClassLoader classLoader = PortalClassLoaderUtil.getClassLoader(); try { _servlet = (HttpServlet)classLoader.loadClass( servletClass).newInstance(); } catch (ClassNotFoundException ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/PortalServletWrapper.java/buggy/portal-shared/src/com/liferay/portal/shared/servlet/PortalServletWrapper.java |
ClassLoader classLoader = PortalClassLoaderUtil.getClassLoader(); try { _servlet = (HttpServlet)classLoader.loadClass( servletClass).newInstance(); } catch (ClassNotFoundException cnfe) { throw new ServletException(cnfe.getMessage()); } catch (IllegalAccessException iae) { throw new ServletException(iae.getMessage());... | PortalInitableUtil.init(this); | public void init(ServletConfig config) throws ServletException { String servletClass = config.getInitParameter("servlet-class"); ClassLoader classLoader = PortalClassLoaderUtil.getClassLoader(); try { _servlet = (HttpServlet)classLoader.loadClass( servletClass).newInstance(); } catch (ClassNotFoundException ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/PortalServletWrapper.java/buggy/portal-shared/src/com/liferay/portal/shared/servlet/PortalServletWrapper.java |
AbstractUIPlugin uiPlugin = (AbstractUIPlugin) Platform.getPlugin(PlatformUI.PLUGIN_ID); String newValue = uiPlugin.getPreferenceStore().getString( IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID); workbench.getPerspectiveRegistry().setDefaultPerspective(newValue); | workbench.getPerspectiveRegistry().setDefaultPerspective((String) event.getNewValue()); | public void propertyChange(PropertyChangeEvent event) { String propertyName = event.getProperty(); if (IPreferenceConstants.ENABLED_DECORATORS.equals(propertyName)) WorkbenchPlugin .getDefault() .getDecoratorManager() .restoreListeners(); if (IWorkbenchPreferenceConstants .DEFAULT_PERSPECTIVE_ID .equ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d8d581e771d0a03074fd3175fc0747caca7d53e0/PlatformUIPreferenceListener.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PlatformUIPreferenceListener.java |
layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); | layout.marginLeft = convertHorizontalDLUsToPixels(IDialogConstants.HORIZONTAL_MARGIN); layout.marginWidth = 0; | protected Control createButtonBar(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); if (fStatusLineAboveButtons) { layout.numColumns = 1; } else { layout.numColumns = 2; } layout.marginHeight = 0; layout.marginWidth = convertHorizontalDLUsToPixe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/35de73822e9cac20595428405e9ac324f5da58c8/StatusDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/StatusDialog.java |
fStatusLine.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); | GridData statusData = new GridData(GridData.FILL_HORIZONTAL); | protected Control createButtonBar(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); if (fStatusLineAboveButtons) { layout.numColumns = 1; } else { layout.numColumns = 2; } layout.marginHeight = 0; layout.marginWidth = convertHorizontalDLUsToPixe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/35de73822e9cac20595428405e9ac324f5da58c8/StatusDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/StatusDialog.java |
setHelpAvailable(helpAvailable); | protected Control createButtonBar(Composite parent) { Composite composite = new Composite(parent, SWT.NULL); GridLayout layout = new GridLayout(); if (fStatusLineAboveButtons) { layout.numColumns = 1; } else { layout.numColumns = 2; } layout.marginHeight = 0; layout.marginWidth = convertHorizontalDLUsToPixe... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/35de73822e9cac20595428405e9ac324f5da58c8/StatusDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/StatusDialog.java | |
ThreadContext context = getRuntime().getCurrentContext(); for (Iterator iter = entryIterator(); iter.hasNext();) { checkRehashing(); Map.Entry entry = (Map.Entry) iter.next(); context.yield(getRuntime().newArray((IRubyObject)entry.getKey(), (IRubyObject)entry.getValue())); } return this; } | return eachInternal(false); } | public RubyHash each() { ThreadContext context = getRuntime().getCurrentContext(); for (Iterator iter = entryIterator(); iter.hasNext();) { checkRehashing(); Map.Entry entry = (Map.Entry) iter.next(); context.yield(getRuntime().newArray((IRubyObject)entry.getKey(), (IR... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a156e647330f19640b43fcb7db007b07c3dfd38e/RubyHash.java/buggy/src/org/jruby/RubyHash.java |
if (shoppingCart.isNew() || shoppingCart.isModified()) { session = openSession(); if (shoppingCart.isNew()) { ShoppingCart shoppingCartModel = new ShoppingCart(); shoppingCartModel.setCartId(shoppingCart.getCartId()); shoppingCartModel.setGroupId(shoppingCart.getGroupId()); shoppingCartModel.setCompanyId(shoppingCart.... | session = openSession(); session.saveOrUpdate(shoppingCart); session.flush(); shoppingCart.setNew(false); | public com.liferay.portlet.shopping.model.ShoppingCart update( com.liferay.portlet.shopping.model.ShoppingCart shoppingCart) throws SystemException { Session session = null; try { if (shoppingCart.isNew() || shoppingCart.isModified()) { session = openSession(); if (shoppingCart.isNew()) { ShoppingCart ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartPersistence.java/clean/portal-ejb/src/com/liferay/portlet/shopping/service/persistence/ShoppingCartPersistence.java |
editor.dispose(); | disposePart(editor); | public boolean closeAllEditors(boolean save) { // If part is added / removed always unzoom. if (isZoomed()) zoomOut(); // Save part. if (save && !getEditorManager().saveAll(true, true)) return false; // Deactivate part. boolean deactivate = activePart instanceof IEditorPart; if (deactivate) setActivePart(null); la... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ba484401ea8e4eb6a4c631278c22df3db654324b/WorkbenchPage.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java |
part.dispose(); | disposePart(part); | public boolean closeAllSavedEditors() { // If part is added / removed always unzoom. if (isZoomed()) zoomOut(); boolean deactivated = false; // Close all editors. IEditorReference editors[] = getEditorReferences(); for (int i = 0; i < editors.length; i ++) { IEditorReference editor = editors[i]; IWorkbenchPart ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ba484401ea8e4eb6a4c631278c22df3db654324b/WorkbenchPage.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java |
RubyClass result = runtime.defineClass("Bignum", runtime.getClasses().getIntegerClass()); | RubyClass result = runtime.defineClass("Bignum", runtime.getClass("Integer")); | public static RubyClass createBignumClass(Ruby runtime) { RubyClass result = runtime.defineClass("Bignum", runtime.getClasses().getIntegerClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyBignum.class); result.defineMethod("~", callbackFactory.getMethod("op_invert"... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
ib = getDeepestHover(ib); | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java | |
if (prev == ib) { | if (hovered_element == panel.hovered_element) { | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java |
if (ib == null) panel.hovered_element = null; else panel.hovered_element = ib.element; | Element previousHoveredElement = panel.hovered_element; panel.hovered_element = hovered_element; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java |
boolean restyled = panel.getSharedContext().getCss().isHoverStyled(prev.element); if (restyled) { prev.restyle = true; needRepaint = true; } | needRepaint = true; restyleElementChildBoxes(previousHoveredElement, prev); prev = null; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java |
if (ib != null) { /* if the box is an inline box and if it is a text only box, meaning it does not have it's own element but is merely a child of an enclosing box. is inline element */ boolean restyled = panel.getSharedContext().getCss().isHoverStyled(ib.element); if (restyled) { ib.restyle = true; needRep... | if (hovered_element != null) { needRepaint = true; restyleElementChildBoxes(hovered_element, ib); prev = ib; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java |
prev = ib; | private void restyle(Box ib) { //Uu.p("under cursor = " + ib); boolean needRepaint = false; // return this box or one if it's parents to find the deepest hovered element. // if none then just return null ib = getDeepestHover(ib); //Uu.p("deepest hover = " + ib); if (... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java | |
return (RubyString)runtime.getGlobalVariables().get("$FILENAME"); | return (RubyString)getRuntime().getGlobalVariables().get("$FILENAME"); | public RubyString filename() { return (RubyString)runtime.getGlobalVariables().get("$FILENAME"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
extendObject(runtime.getModule("Enumerable")); | extendObject(getRuntime().getModule("Enumerable")); | public void initArgsFile() { extendObject(runtime.getModule("Enumerable")); runtime.defineReadonlyVariable("$<", this); runtime.defineGlobalConstant("ARGF", this); defineSingletonMethod("each", callbackFactory().getOptMethod(RubyArgsFile.class, "each_line")); defin... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
runtime.defineReadonlyVariable("$<", this); runtime.defineGlobalConstant("ARGF", this); | getRuntime().defineReadonlyVariable("$<", this); getRuntime().defineGlobalConstant("ARGF", this); | public void initArgsFile() { extendObject(runtime.getModule("Enumerable")); runtime.defineReadonlyVariable("$<", this); runtime.defineGlobalConstant("ARGF", this); defineSingletonMethod("each", callbackFactory().getOptMethod(RubyArgsFile.class, "each_line")); defin... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
runtime.defineReadonlyVariable("$FILENAME", RubyString.newString(runtime, "-")); | getRuntime().defineReadonlyVariable("$FILENAME", getRuntime().newString("-")); | public void initArgsFile() { extendObject(runtime.getModule("Enumerable")); runtime.defineReadonlyVariable("$<", this); runtime.defineGlobalConstant("ARGF", this); defineSingletonMethod("each", callbackFactory().getOptMethod(RubyArgsFile.class, "each_line")); defin... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
return RubyString.nilString(runtime); | return RubyString.nilString(getRuntime()); | public RubyString internalGets(IRubyObject[] args) { if (currentFile == null && !nextArgsFile()) { return RubyString.nilString(runtime); } RubyString line = (RubyString)currentFile.callMethod("gets", args); while (line.isNil()) { currentFile.callMeth... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
runtime.getGlobalVariables().set("$.", RubyFixnum.newFixnum(runtime, currentLineNumber)); | getRuntime().getGlobalVariables().set("$.", getRuntime().newFixnum(currentLineNumber)); | public RubyString internalGets(IRubyObject[] args) { if (currentFile == null && !nextArgsFile()) { return RubyString.nilString(runtime); } RubyString line = (RubyString)currentFile.callMethod("gets", args); while (line.isNil()) { currentFile.callMeth... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); | RubyArray args = (RubyArray)getRuntime().getGlobalVariables().get("$*"); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVar... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVariables().get("$FILENAME")).setValue("-"); | currentFile = (RubyIO) getRuntime().getGlobalVariables().get("$stdin"); ((RubyString) getRuntime().getGlobalVariables().get("$FILENAME")).setValue("-"); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVar... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
((RubyString) runtime.getGlobalVariables().get("$FILENAME")).setValue(filename); | ((RubyString) getRuntime().getGlobalVariables().get("$FILENAME")).setValue(filename); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVar... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); | currentFile = (RubyIO) getRuntime().getGlobalVariables().get("$stdin"); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVar... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
currentFile = new RubyFile(runtime, filename); | currentFile = new RubyFile(getRuntime(), filename); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVar... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java |
if ( ( factory == null && cssRule.getType() == CSSRule.STYLE_RULE ) || | if ( /*( factory == null && cssRule.getType() == CSSRule.STYLE_RULE ) ||*/ | public static Iterator fromCSSPropertyDecl( CSSRule cssRule, CSSStyleDeclaration style, String propName, int sequence ) { // HACK: special cases for RuleNormalizer...need to work this out cleanly PropertyFactory factory = (PropertyFactory)PRP_FACTORIES.get( propName ); if ( ( factory == null &&... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/303478cb2d50ec8a2e30b215b0e54607a0ae9a68/XRPropertyImpl.java/buggy/src/java/org/xhtmlrenderer/css/impl/XRPropertyImpl.java |
if (blockingStatus instanceof IJobStatus) blockingJob = ((IJobStatus) blockingStatus).getJob(); | private BlockedJobsDialog(Shell parentShell, IProgressMonitor blocking, IStatus blockingStatus) { super(parentShell == null ? ProgressManagerUtil.getDefaultParent() : parentShell); blockingMonitor = blocking; if (blockingStatus instanceof IJobStatus) blockingJob = ((IJobStatus) blockingStatus).getJob(); set... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/852f4fa051527b55d573274f8d387f43109b3ff6/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java | |
private ProgressTreeContentProvider getContentProvider() { return new ProgressTreeContentProvider(viewer, true) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.ProgressContentProvider#getElements(java.lang.Object) | private ProgressViewerContentProvider getContentProvider() { return new ProgressViewerContentProvider(viewer, true,false) { /* (non-Javadoc) * @see org.eclipse.ui.internal.progress.ProgressViewerContentProvider#getElements(java.lang.Object) | private ProgressTreeContentProvider getContentProvider() { return new ProgressTreeContentProvider(viewer, true) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.ProgressContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object inputElement) { Object[] elemen... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/852f4fa051527b55d573274f8d387f43109b3ff6/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java |
viewer = new NewProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL | viewer = new DetailedProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL | void showJobDetails(Composite parent) { viewer = new NewProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); if (blockingJob != null) viewer.setHighlightJob(blockingJob); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.e... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/852f4fa051527b55d573274f8d387f43109b3ff6/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java |
if (blockingJob != null) viewer.setHighlightJob(blockingJob); | void showJobDetails(Composite parent) { viewer = new NewProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); if (blockingJob != null) viewer.setHighlightJob(blockingJob); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.e... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/852f4fa051527b55d573274f8d387f43109b3ff6/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java | |
IContentProvider provider = getContentProvider(); | ProgressViewerContentProvider provider = getContentProvider(); | void showJobDetails(Composite parent) { viewer = new NewProgressViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); if (blockingJob != null) viewer.setHighlightJob(blockingJob); viewer.setUseHashlookup(true); viewer.setSorter(new ViewerSorter() { /* * (non-Javadoc) * * @see org.e... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/852f4fa051527b55d573274f8d387f43109b3ff6/BlockedJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java |
public void paintChild( Context c, Box box, Renderer layout ) { if(Configuration.isTrue("xr.renderer.viewport-repaint",false)) { if(c.getGraphics().getClip() != null) { Rectangle2D oldclip = (Rectangle2D)c.getGraphics().getClip(); Rectangle2D box_rect = new Re... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3c2f0ef16203d2439d43879f53050721938d14f5/DefaultRenderer.java/clean/src/java/org/xhtmlrenderer/render/DefaultRenderer.java | ||
setModified(true); | public void setArticleId(String articleId) { if (((articleId == null) && (_articleId != null)) || ((articleId != null) && (_articleId == null)) || ((articleId != null) && (_articleId != null) && !articleId.equals(_articleId))) { if (!XSS_ALLOW_ARTICLEID) { articleId = XSSUtil.strip(articleId); } _ar... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalContentSearchModel.java/clean/portal-ejb/src/com/liferay/portlet/journal/model/JournalContentSearchModel.java | |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalContentSearchModel.java/clean/portal-ejb/src/com/liferay/portlet/journal/model/JournalContentSearchModel.java | |
setModified(true); | public void setLayoutId(String layoutId) { if (((layoutId == null) && (_layoutId != null)) || ((layoutId != null) && (_layoutId == null)) || ((layoutId != null) && (_layoutId != null) && !layoutId.equals(_layoutId))) { if (!XSS_ALLOW_LAYOUTID) { layoutId = XSSUtil.strip(layoutId); } _layoutId = layo... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalContentSearchModel.java/clean/portal-ejb/src/com/liferay/portlet/journal/model/JournalContentSearchModel.java | |
setModified(true); | public void setOwnerId(String ownerId) { if (((ownerId == null) && (_ownerId != null)) || ((ownerId != null) && (_ownerId == null)) || ((ownerId != null) && (_ownerId != null) && !ownerId.equals(_ownerId))) { if (!XSS_ALLOW_OWNERID) { ownerId = XSSUtil.strip(ownerId); } _ownerId = ownerId; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalContentSearchModel.java/clean/portal-ejb/src/com/liferay/portlet/journal/model/JournalContentSearchModel.java | |
setModified(true); | public void setPortletId(String portletId) { if (((portletId == null) && (_portletId != null)) || ((portletId != null) && (_portletId == null)) || ((portletId != null) && (_portletId != null) && !portletId.equals(_portletId))) { if (!XSS_ALLOW_PORTLETID) { portletId = XSSUtil.strip(portletId); } _po... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalContentSearchModel.java/clean/portal-ejb/src/com/liferay/portlet/journal/model/JournalContentSearchModel.java | |
value = getCreateDate().compareTo(address.getCreateDate()); | value = DateUtil.compareTo(getCreateDate(), address.getCreateDate()); | public int compareTo(Object obj) { if (obj == null) { return -1; } Address address = (Address)obj; int value = 0; value = getCreateDate().compareTo(address.getCreateDate()); if (value != 0) { return value; } return 0; } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0f4675cccf5487b482133977e732e847e320f104/AddressModel.java/clean/portal-ejb/src/com/liferay/portal/model/AddressModel.java |
RubyClass regexpClass = runtime.defineClass("Regexp", runtime.getClasses().getObjectClass()); | RubyClass regexpClass = runtime.defineClass("Regexp", runtime.getObject()); | public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = runtime.defineClass("Regexp", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyRegexp.class); regexpClass.defineConstant("IGNORECASE", runtime.newFixnum... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setContent(String content) { if (((content == null) && (_content != null)) || ((content != null) && (_content == null)) || ((content != null) && (_content != null) && !content.equals(_content))) { if (!XSS_ALLOW_CONTENT) { content = XSSUtil.strip(content); } _content = content; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setFormat(String format) { if (((format == null) && (_format != null)) || ((format != null) && (_format == null)) || ((format != null) && (_format != null) && !format.equals(_format))) { if (!XSS_ALLOW_FORMAT) { format = XSSUtil.strip(format); } _format = format; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setHead(boolean head) { if (head != _head) { _head = head; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setNodeId(String nodeId) { if (((nodeId == null) && (_nodeId != null)) || ((nodeId != null) && (_nodeId == null)) || ((nodeId != null) && (_nodeId != null) && !nodeId.equals(_nodeId))) { if (!XSS_ALLOW_NODEID) { nodeId = XSSUtil.strip(nodeId); } _nodeId = nodeId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setTitle(String title) { if (((title == null) && (_title != null)) || ((title != null) && (_title == null)) || ((title != null) && (_title != null) && !title.equals(_title))) { if (!XSS_ALLOW_TITLE) { title = XSSUtil.strip(title); } _title = title; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setUserName(String userName) { if (((userName == null) && (_userName != null)) || ((userName != null) && (_userName == null)) || ((userName != null) && (_userName != null) && !userName.equals(_userName))) { if (!XSS_ALLOW_USERNAME) { userName = XSSUtil.strip(userName); } _userName = user... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
setModified(true); | public void setVersion(double version) { if (version != _version) { _version = version; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/WikiPageModel.java/clean/portal-ejb/src/com/liferay/portlet/wiki/model/WikiPageModel.java | |
return new Dimension(this.x - initialX, this.y - initialY); | setRelativeOffset(new Dimension(this.x - initialX, this.y - initialY)); return getRelativeOffset(); | public Dimension positionRelative(CssContext cssCtx) { int initialX = this.x; int initialY = this.y; CalculatedStyle style = getStyle().getCalculatedStyle(); if (! style.isIdent(CSSName.LEFT, IdentValue.AUTO)) { this.x += style.getFloatPropertyProportionalWidth( ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/868e29fe0bd81b55cbd739f60feedbe5488f9adb/Box.java/clean/src/java/org/xhtmlrenderer/render/Box.java |
int rightCorner = (((sides & RIGHT) == RIGHT) ? (int)border.right() : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? (int)border.left() - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? (int)border.top() - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? (int)border.bottom() : adjust); | int rightCorner = (((sides & RIGHT) == RIGHT) ? (int) border.right() : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? (int) border.left() - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? (int) border.top() - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? (int) border.bottom() : adjust); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 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 Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int)border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int)border.top() - adjust); | poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int) border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int) border.top() - adjust); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 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 Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - (int)border.bottom()); | poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - (int) border.bottom()); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - (int)border.bottom()); | poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - (int) border.bottom()); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 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 Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + bounds.height - bottomCorner + snuggle); | poly.addPoint(bounds.x + bounds.width - (int) border.right(), bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - (int) border.right(), bounds.y + bounds.height - bottomCorner + snuggle); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 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 Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + bounds.height - bottomCorner + snuggle); | poly.addPoint(bounds.x + (int) border.left() - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + (int) border.left() - adjust, bounds.y + bounds.height - bottomCorner + snuggle); | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1ca686f10a0033c5e79968a5d664589db0fef2ec/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
(int)(border.top() / 2), (int)(border.right() / 2), (int)(border.bottom() / 2), (int)(border.left() / 2)); | (int) (border.top() / 2), (int) (border.right() / 2), (int) (border.bottom() / 2), (int) (border.left() / 2)); | 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 |
(int)(border.top() / 3), (int)(border.bottom() / 3), (int)(border.left() / 3), (int)(border.right() / 3)); | (int) (border.top() / 3), (int) (border.bottom() / 3), (int) (border.left() / 3), (int) (border.right() / 3)); | 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 |
if ((int)border.top() == 1) { | if ((int) border.top() == 1) { | 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 |
if ((int)border.bottom() == 1) { | if ((int) border.bottom() == 1) { | 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 |
if ((int)border.left() == 1) { | if ((int) border.left() == 1) { | 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 |
if ((int)border.right() == 1) { | if ((int) border.right() == 1) { | 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 |
if ((int)border.top() == 2) { | if ((int) border.top() == 2) { | 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 |
if ((int)border.bottom() == 2) { | if ((int) border.bottom() == 2) { | 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 |
if ((int)border.left() == 2) { | if ((int) border.left() == 2) { | 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 |
if ((int)border.right() == 2) { | if ((int) border.right() == 2) { | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.