rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (DEFAULT_FOLDERS[i].equals(mailFolder.getName())) {
if (DEFAULT_FOLDERS[i].equals(folderName)) {
private static Store _getStore(HttpSession ses) throws FolderException, StoreException { try { Store store = (Store)ses.getAttribute(WebKeys.MAIL_STORE); if (store != null && !store.isConnected()) { if (_log.isInfoEnabled()) { _log.info("The store needs to be reconnected"); } cleanUp(ses); store ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e5aa935d844fa64c86fb5d9ed13910997b4f51ed/MailUtil.java/clean/portal-ejb/src/com/liferay/portlet/mail/util/MailUtil.java
if (_log.isInfoEnabled()) { _log.info( "Created default folder " + DEFAULT_FOLDERS[i]); }
private static Store _getStore(HttpSession ses) throws FolderException, StoreException { try { Store store = (Store)ses.getAttribute(WebKeys.MAIL_STORE); if (store != null && !store.isConnected()) { if (_log.isInfoEnabled()) { _log.info("The store needs to be reconnected"); } cleanUp(ses); store ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/e5aa935d844fa64c86fb5d9ed13910997b4f51ed/MailUtil.java/clean/portal-ejb/src/com/liferay/portlet/mail/util/MailUtil.java
Font font = box.getStyle().getCalculatedStyle().getAWTFont(c);
Font font = box.getStyle().getFont(c);
private static void drawText(RenderingContext c, BlockBox box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.LOWER_LATIN || listStyle == IdentValue.LOWER_ALPHA) { text = toLatin(box.list_count).toLowerCase() + "."; } else if (listStyle == IdentValue.UPPER_LATI...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2ca5ede81fb426266ff9c28f42f7f4372897df4f/ListItemPainter.java/clean/src/java/org/xhtmlrenderer/render/ListItemPainter.java
value = getName().compareTo(blogsCategory.getName());
value = getName().toLowerCase().compareTo(blogsCategory.getName() .toLowerCase());
public int compareTo(Object obj) { if (obj == null) { return -1; } BlogsCategory blogsCategory = (BlogsCategory)obj; int value = 0; value = getName().compareTo(blogsCategory.getName()); if (value != 0) { return value; } return 0; }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8c4054ea8e295b5e5e4f4309b1d8379f8887c3af/BlogsCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/blogs/model/BlogsCategoryModel.java
node.putBoolean(IPreferenceConstants.SHOW_SHORTCUT_BAR, true); node.putBoolean(IPreferenceConstants.SHOW_STATUS_LINE, true); node.putBoolean(IPreferenceConstants.SHOW_TOOL_BAR, true);
public void initializeDefaultPreferences() { IEclipsePreferences node = new DefaultScope().getNode(WorkbenchPlugin .getDefault().getBundle().getSymbolicName()); node .putBoolean(IPreferenceConstants.SHOULD_PROMPT_FOR_ENABLEMENT, true); node.putBoolean(IPreferenceConstants.EDITORLIST_PULLDOWN_ACTIVE, fals...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/453e45b6517a39a113819af5bcdc4bc5fd07341a/WorkbenchPreferenceInitializer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPreferenceInitializer.java
public void pop() { self = prev.self; args = prev.args; lastFunc = prev.lastFunc; lastClass = prev.lastClass; cbase = prev.cbase; tmp = prev.tmp; file = prev.file; line = prev.line; iter = prev.iter; flags = prev.flags; prev = prev...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/477fe72cb0ae4532e16f584fe85355a15927e6e3/RubyFrame.java/clean/org/jruby/runtime/RubyFrame.java
public void pop() { self = prev.self; args = prev.args; lastFunc = prev.lastFunc; lastClass = prev.lastClass; cbase = prev.cbase; tmp = prev.tmp; file = prev.file; line = prev.line; iter = prev.iter; flags = prev.flags; prev = prev...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/477fe72cb0ae4532e16f584fe85355a15927e6e3/RubyFrame.java/clean/org/jruby/runtime/RubyFrame.java
Layer parent = this.layer; while (! parent.isStackingContext()) { parent = parent.getParent();
Layer parent = this.layer; if (master.getStyle().isFixed()) { while (parent.getParent() != null) { parent = parent.getParent(); } } else { while (! parent.isStackingContext()) { parent = parent.getParent(); }
public void pushLayer(Box master) { Layer layer = null; if (rootLayer == null) { layer = new Layer(master); rootLayer = layer; } else { Layer parent = this.layer; while (! parent.isStackingContext()) { parent = parent.getParent(...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/c34d01e1d99d45f24d383ef8cca40d8633269d43/LayoutContext.java/clean/src/java/org/xhtmlrenderer/layout/LayoutContext.java
public static boolean isBlockLevel(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY);
public static boolean isBlockLevel(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false; String display = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
public static boolean isBlockLevel(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("table")) return true; return false; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
public static boolean isFloated(CalculatedStyle style) { String float_val = style.getStringProperty("float");
public static boolean isFloated(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false; String float_val = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
public static boolean isFloated(CalculatedStyle style) { String float_val = style.getStringProperty("float"); if (float_val == null) { return false; } if (float_val.equals("left")) { return true; } if (float_val.equals("right")) { return tru...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
public static boolean mayHaveFirstLetter(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY);
public static boolean mayHaveFirstLetter(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false; String display = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
public static boolean mayHaveFirstLetter(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("table-cell")) return true; if (display.equals("t...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
public static boolean mayHaveFirstLine(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY);
public static boolean mayHaveFirstLine(CascadedStyle style) { if (!style.hasProperty(CSSName.DISPLAY)) return false; String display = style.propertyByName(CSSName.DISPLAY).getValue().getCssText();
public static boolean mayHaveFirstLine(CalculatedStyle style) { String display = style.getStringProperty(CSSName.DISPLAY); if (display.equals("block")) return true; if (display.equals("list-item")) return true; if (display.equals("run-in")) return true; if (display.equals("table")...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
FSDerivedValue cval = dval; if (dval.isDeclaredInherit()) { if (_parent == null) { throw new XRRuntimeException("CalculatedStyle: trying to resolve an inherited property, " + "but have no parent CalculatedStyle (root of document?)--" + "property '" + cssName + "' may not be defined in CSS."); } else { cval = _par...
return dval;
private FSDerivedValue deriveValue(CSSName cssName, org.w3c.dom.css.CSSPrimitiveValue value) { // Start assuming our computed value is the same as the specified value RGBColor rgb = (value.getPrimitiveType() == CSSPrimitiveValue.CSS_RGBCOLOR ? value.getRGBColorValue() : null); String s = (value...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0b0dade9b8b79c15314aae763ecd6f6412ba8c66/CalculatedStyle.java/buggy/src/java/org/xhtmlrenderer/css/style/CalculatedStyle.java
try { _servletContextListener = getInstance(); } catch (Exception e) { _log.error(e); }
public PortalServletContextListenerWrapper() { try { _servletContextListener = getInstance(); } catch (Exception e) { _log.error(e); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/PortalServletContextListenerWrapper.java/clean/portal-shared/src/com/liferay/portal/shared/servlet/PortalServletContextListenerWrapper.java
ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
_sce = sce;
public void contextInitialized(ServletContextEvent sce) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader( PortalClassLoaderUtil.getClassLoader()); _servletContextListener.contextInitialized(sce); } finally { Thread.curr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/PortalServletContextListenerWrapper.java/clean/portal-shared/src/com/liferay/portal/shared/servlet/PortalServletContextListenerWrapper.java
try { Thread.currentThread().setContextClassLoader( PortalClassLoaderUtil.getClassLoader()); _servletContextListener.contextInitialized(sce); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); }
PortalInitableUtil.init(this);
public void contextInitialized(ServletContextEvent sce) { ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader( PortalClassLoaderUtil.getClassLoader()); _servletContextListener.contextInitialized(sce); } finally { Thread.curr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/PortalServletContextListenerWrapper.java/clean/portal-shared/src/com/liferay/portal/shared/servlet/PortalServletContextListenerWrapper.java
return _childContent;
return Collections.unmodifiableList(_childContent);
public List getChildContent(Context c) { if (_childContent == null) { _childContent = makeChildContent(c); } return _childContent; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/01fe5f6295fdbc46194c11fca8c5668798faefcb/AbstractCachingContent.java/buggy/src/java/org/xhtmlrenderer/layout/content/AbstractCachingContent.java
runtime.yield(RubyArray.newArray(runtime, (IRubyObject)entry.getKey(), (IRubyObject)entry.getValue()));
runtime.yield(RubyArray.newArray(runtime, (IRubyObject)entry.getKey(), (IRubyObject)entry.getValue()), null, null, true);
public RubyHash each() { Iterator iter = entryIterator(); while (iter.hasNext()) { checkRehashing(); Map.Entry entry = (Map.Entry) iter.next(); runtime.yield(RubyArray.newArray(runtime, (IRubyObject)entry.getKey(), (IRubyObject)entry.getValue())); } return this; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/RubyHash.java/buggy/src/org/jruby/RubyHash.java
IRubyObject shouldDelete = runtime.yield(RubyArray.newArray(runtime, key, value));
IRubyObject shouldDelete = runtime.yield(RubyArray.newArray(runtime, key, value), null, null, true);
public RubyHash reject_bang() { modify(); boolean isModified = false; Iterator iter = keyIterator(); while (iter.hasNext()) { IRubyObject key = (IRubyObject) iter.next(); IRubyObject value = (IRubyObject) valueMap.get(key); IRubyObject shouldDelete = runtime.yield(RubyArray.newArray(runtime, key, value)); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f5c9a1ebd775712f2dc086acfce1a14a123ec632/RubyHash.java/buggy/src/org/jruby/RubyHash.java
if(cell == null) { System.err.println("Hit the null cell error in "+this.getClass().getName()); continue; }
public Box calculateBoxes(int avail_width, TableBox box, Context c, Table table) { //u.p("TableLayout2.calculateBoxes(" + avail_width + // " , " + box + " , " + c + " , " + table); box.width = avail_width; box.height = 100; box.x = 5; box.y = 5; ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/707f7045f036983fd00c9da144c5a389dc62ac7a/TableLayout2.java/clean/src/java/org/joshy/html/TableLayout2.java
File netutil = Util.copyResourceTo(LIBRARY + ".dll", "de/dal33t/powerfolder/util/os/Win32", new File("."), true);
Util.copyResourceTo(LIBRARY + ".dll", "de/dal33t/powerfolder/util/os/Win32", new File("."), true);
public static boolean loadLibrary() { try { File netutil = Util.copyResourceTo(LIBRARY + ".dll", "de/dal33t/powerfolder/util/os/Win32", new File("."), true); // do not test for null here. // because if another Pf client is running the dll cannot be /...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/dd08cfba88423641f9fc67c40e12c6942f366488/NetworkHelperImpl.java/buggy/src/main/de/dal33t/powerfolder/util/os/Win32/NetworkHelperImpl.java
LOG.error(e);
LOG.error("loading library step one failed: " + LIBRARY, e);
public static boolean loadLibrary() { try { File netutil = Util.copyResourceTo(LIBRARY + ".dll", "de/dal33t/powerfolder/util/os/Win32", new File("."), true); // do not test for null here. // because if another Pf client is running the dll cannot be /...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/dd08cfba88423641f9fc67c40e12c6942f366488/NetworkHelperImpl.java/buggy/src/main/de/dal33t/powerfolder/util/os/Win32/NetworkHelperImpl.java
LOG.error(e2);
LOG.error("Loading library failed: " + LIBRARY, e2);
public static boolean loadLibrary() { try { File netutil = Util.copyResourceTo(LIBRARY + ".dll", "de/dal33t/powerfolder/util/os/Win32", new File("."), true); // do not test for null here. // because if another Pf client is running the dll cannot be /...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/dd08cfba88423641f9fc67c40e12c6942f366488/NetworkHelperImpl.java/buggy/src/main/de/dal33t/powerfolder/util/os/Win32/NetworkHelperImpl.java
initResourceSorter();
initResourceComparator();
public void createPartControl(Composite parent) { TreeViewer viewer = createViewer(parent); this.viewer = viewer; if (memento != null) { restoreFilters(); restoreLinkingEnabled(); } frameList = createFrameList(); initDragAndDrop(); updateTitle()...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68c41e379434a8eae3b5d319a3f3c306cf97926f/ResourceNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
} else { return ResourceNavigatorMessages.ResourceNavigator_oneItemSelected; }
} return ResourceNavigatorMessages.ResourceNavigator_oneItemSelected;
protected String getStatusLineMessage(IStructuredSelection selection) { if (selection.size() == 1) { Object o = selection.getFirstElement(); if (o instanceof IResource) { return ((IResource) o).getFullPath().makeRelative().toString(); } else { re...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68c41e379434a8eae3b5d319a3f3c306cf97926f/ResourceNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
.getPlugin(PlatformUI.PLUGIN_ID);
.getBundle(PlatformUI.PLUGIN_ID);
private void initLinkingEnabled() { // Try the dialog settings first, which remember the last choice. String setting = settings .get(IWorkbenchPreferenceConstants.LINK_NAVIGATOR_TO_EDITOR); if (setting != null) { linkingEnabled = setting.equals("true"); //$NON-NLS-1$ ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68c41e379434a8eae3b5d319a3f3c306cf97926f/ResourceNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
.getPlugin(PlatformUI.PLUGIN_ID);
.getBundle(PlatformUI.PLUGIN_ID);
private void migrateDialogSettings() { AbstractUIPlugin uiPlugin = (AbstractUIPlugin) Platform .getPlugin(PlatformUI.PLUGIN_ID); IDialogSettings uiSettings = uiPlugin.getDialogSettings(); uiSettings = uiSettings.getSection(STORE_SECTION); if (uiSettings != null) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68c41e379434a8eae3b5d319a3f3c306cf97926f/ResourceNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
memento.putInteger(TAG_SORTER, getSorter().getCriteria());
memento.putInteger(TAG_SORTER, getComparator().getCriteria());
public void saveState(IMemento memento) { TreeViewer viewer = getTreeViewer(); if (viewer == null) { if (this.memento != null) { memento.putMemento(this.memento); } return; } //save sorter memento.putInteger(TAG_SORTER, getSorter().getCriteria()); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/68c41e379434a8eae3b5d319a3f3c306cf97926f/ResourceNavigator.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
participant.name = u.getDisplayName(); participant.uniqname = noEmailInIdAccount; pList.add(participant);
if (site != null && site.getUserRole(u.getId()) != null) { addAlert(state, rb.getString("java.user") + " " + noEmailInIdAccount + " " + rb.getString("java.exists")); } else { participant.name = u.getDisplayName(); participant.uniqname = noEmailInIdAccount; pList.add(participant); }
private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); String invalidEmailInIdAccountString = ServerConfigurationService.getString("invalidEmailInIdAccountString", null); //accept noEmailInIdAccounts and/or emailIn...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/370edb864dc672ca629a84a9c00c3878a8a36b32/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
participant.name = u.getDisplayName(); participant.uniqname = emailInIdAccount; pList.add(participant);
if (site != null && site.getUserRole(u.getId()) != null) { addAlert(state, rb.getString("java.user") + " " + emailInIdAccount + " " + rb.getString("java.exists")); } else { participant.name = u.getDisplayName(); participant.uniqname = emailInIdAccount; pList.add(participant); }
private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); String invalidEmailInIdAccountString = ServerConfigurationService.getString("invalidEmailInIdAccountString", null); //accept noEmailInIdAccounts and/or emailIn...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/370edb864dc672ca629a84a9c00c3878a8a36b32/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
if (pList.size() == 0)
if (pListOldSize > 0 && pList.size() == 0)
private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); String invalidEmailInIdAccountString = ServerConfigurationService.getString("invalidEmailInIdAccountString", null); //accept noEmailInIdAccounts and/or emailIn...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/370edb864dc672ca629a84a9c00c3878a8a36b32/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
public static void paint(RenderingContext c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, b...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
clone.setClassName(getClassName()); clone.setClassPK(getClassPK());
public Object clone() { Role clone = new Role(); clone.setRoleId(getRoleId()); clone.setCompanyId(getCompanyId()); clone.setName(getName()); return clone; }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/RoleModel.java/buggy/portal-ejb/src/com/liferay/portal/model/RoleModel.java
super("Integer", RubyInteger.class, runtime.getClasses().getNumericClass());
super("Integer", RubyInteger.class, runtime.getClass("Numeric"));
public IntegerMetaClass(Ruby runtime) { super("Integer", RubyInteger.class, runtime.getClasses().getNumericClass()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/IntegerMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/IntegerMetaClass.java
includeModule(getRuntime().getClasses().getEnumerableModule());
includeModule(getRuntime().getModule("Enumerable"));
protected void initializeClass() { includeModule(getRuntime().getClasses().getEnumerableModule()); defineMethod("chr", Arity.noArguments()); defineMethod("downto", Arity.singleArgument()); defineMethod("integer?", Arity.noArguments(), "int_p"); defineMethod("next", Arity.no...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/IntegerMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/IntegerMetaClass.java
public int getCursorPosition(Control control) { return 0; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d4f0176239f1d4e0349e4f2a2c344991278177db/ExampleDialog.java/buggy/examples/org.eclipse.ui.examples.fieldassist/Eclipse UI Examples Field Assist/org/eclipse/ui/examples/fieldassist/ExampleDialog.java
Font font = c.getCurrentFont();
Font font = box.getStyle().getFont(c.getCtx());
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/ListItemPainter.java/buggy/src/java/org/xhtmlrenderer/render/ListItemPainter.java
int h = FontUtil.lineHeight(c);
int h = FontUtil.lineHeight(c, box);
private static void drawText(Context c, Box box, IdentValue listStyle) { String text = ""; if (listStyle == IdentValue.DECIMAL) { text = box.list_count + "."; } if (listStyle == IdentValue.LOWER_LATIN) { text = toLatin(box.list_count).toLowerCase() + "."; } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/ListItemPainter.java/buggy/src/java/org/xhtmlrenderer/render/ListItemPainter.java
CalculatedStyle style = c.getCurrentStyle();
CalculatedStyle style = box.getStyle().getCalculatedStyle();
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/ListItemPainter.java/buggy/src/java/org/xhtmlrenderer/render/ListItemPainter.java
int h = FontUtil.lineHeight(c);
int h = FontUtil.lineHeight(c, box);
public static void paint(Context c, Box box) { CalculatedStyle style = c.getCurrentStyle(); IdentValue listStyle = style.getIdent(CSSName.LIST_STYLE_TYPE); if (listStyle == IdentValue.NONE) { return; } if (listStyle == IdentValue.LOWER_GREEK) { listStyle = Id...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/ListItemPainter.java/buggy/src/java/org/xhtmlrenderer/render/ListItemPainter.java
int lineHeight;
int lineHeight = new_inline.height;
static void adjustLineHeight(LayoutContext 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, actuall...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
lineHeight = (int) Math.round(new_inline.getStyle().getCalculatedStyle().getLineHeight(c));
static void adjustLineHeight(LayoutContext 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, actuall...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
lineHeight = new_inline.height;
static void adjustLineHeight(LayoutContext 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, actuall...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (ascent + raised > curr_line.ascent) { curr_line.ascent = ascent + raised;
if (top + raised > curr_line.inlineTop) { curr_line.inlineTop = top + raised;
static void adjustLineHeight(LayoutContext 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, actuall...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (descent - raised > curr_line.descent) { curr_line.descent = descent - raised;
if (bottom - raised > curr_line.inlineBottom) { curr_line.inlineBottom = bottom - raised;
static void adjustLineHeight(LayoutContext 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, actuall...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (curr_line.height < curr_line.ascent + curr_line.descent) { curr_line.height = curr_line.ascent + curr_line.descent;
if (curr_line.height < curr_line.inlineTop + curr_line.inlineBottom) { curr_line.height = curr_line.inlineTop + curr_line.inlineBottom;
static void adjustLineHeight(LayoutContext 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, actuall...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
inline.height = (int) inline.getStyle().getCalculatedStyle().getLineHeight(c);
private static InlineBox calculateInline(LayoutContext c, Content content, int taken, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, LineBox curr_line, int start, InlineBlockBox pendi...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
inline.height = (int) FontUtil.getLineMetrics(inline.getStyle().getFont(c), inline, c.getTextRenderer(), c.getGraphics()).getHeight();
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, LayoutContext c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = 0;...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7b06bfada90be75b4ee2dc701a4db08d653fdac8/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
public void handleListChange(IObservableList source, ListDiff diff) {
public void handleListChange(ListChangeEvent event) {
public void handleListChange(IObservableList source, ListDiff diff) { Set added = new HashSet(); Set removed = new HashSet(); ListDiffEntry[] differences = diff.getDifferences(); for (int i = 0; i < differences.length; i++) { ListDiffEntry entry = differences[i]; Object element = entry.getElement(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ListToSetAdapter.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/set/ListToSetAdapter.java
ListDiffEntry[] differences = diff.getDifferences();
ListDiffEntry[] differences = event.diff.getDifferences();
public void handleListChange(IObservableList source, ListDiff diff) { Set added = new HashSet(); Set removed = new HashSet(); ListDiffEntry[] differences = diff.getDifferences(); for (int i = 0; i < differences.length; i++) { ListDiffEntry entry = differences[i]; Object element = entry.getElement(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ListToSetAdapter.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/set/ListToSetAdapter.java
xsl = JournalUtil.formatXML(xsl);
if (JournalTemplate.LANG_TYPE_VM.equals(langType)) { xsl = JournalUtil.formatVM(xsl); } else { xsl = JournalUtil.formatXML(xsl); }
public JournalTemplate addTemplate( String userId, String templateId, boolean autoTemplateId, String plid, String structureId, String name, String description, String xsl, boolean formatXsl, String langType, boolean smallImage, String smallImageURL, File smallFile, boolean addCommunityPermissions, boolean ad...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/80b05efde87980eee0e0d14776598775626bf337/JournalTemplateLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portlet/journal/service/impl/JournalTemplateLocalServiceImpl.java
xsl = JournalUtil.formatXML(xsl);
if (JournalTemplate.LANG_TYPE_VM.equals(langType)) { xsl = JournalUtil.formatVM(xsl); } else { xsl = JournalUtil.formatXML(xsl); }
public JournalTemplate updateTemplate( String companyId, String templateId, String structureId, String name, String description, String xsl, boolean formatXsl, String langType, boolean smallImage, String smallImageURL, File smallFile) throws PortalException, SystemException { // Template templateId = templa...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/80b05efde87980eee0e0d14776598775626bf337/JournalTemplateLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portlet/journal/service/impl/JournalTemplateLocalServiceImpl.java
if (box.isInlineElement() || !(box.content instanceof TextContent)) {
if (LayoutUtil.isBlockOrInlineElementBox(box)) {
public static Color getBackgroundColor(Context c, Box box) { //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { if (box.background_color == null) { CalculatedStyle style = c.g...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7e8f8975a39606e0ad272f1e0bed6839ad1d9fc8/DefaultLayout.java/buggy/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
if (box.isInlineElement() || !(box.content instanceof TextContent)) {
if(LayoutUtil.isBlockOrInlineElementBox(box)) {
public static Border getMargin(Context c, Box box) { //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { if (box.margin == null) { box.margin = c.getCurrentStyle().getMarginWid...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7e8f8975a39606e0ad272f1e0bed6839ad1d9fc8/DefaultLayout.java/buggy/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
if (box.isInlineElement() || !(box.content instanceof TextContent)) {
if(LayoutUtil.isBlockOrInlineElementBox(box)) {
public static Border getPadding(Context c, Box box) { //TODO: can this be removed?: if (LayoutUtil.isBlockOrInlineElementBox(c, box)) { if (box.isInlineElement() || !(box.content instanceof TextContent)) { if (box.padding == null) { box.padding = c.getCurrentStyle().getPaddin...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7e8f8975a39606e0ad272f1e0bed6839ad1d9fc8/DefaultLayout.java/buggy/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
public void prepareBox(Context c, Box box) { getBorder(c, box); getPadding(c, box); getMargin(c, box); getBackgroundColor(c, box); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/7e8f8975a39606e0ad272f1e0bed6839ad1d9fc8/DefaultLayout.java/buggy/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
return valueMap.entrySet().iterator();
return new ArrayList(valueMap.entrySet()).iterator();
private Iterator entryIterator() { return valueMap.entrySet().iterator(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyHash.java/clean/org/jruby/RubyHash.java
return valueMap.keySet().iterator();
return new ArrayList(valueMap.keySet()).iterator();
private Iterator keyIterator() { return valueMap.keySet().iterator(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyHash.java/clean/org/jruby/RubyHash.java
return valueMap.values().iterator();
return new ArrayList(valueMap.values()).iterator();
private Iterator valueIterator() { return valueMap.values().iterator(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5882d0febb3f8ecc0652256e027730f39165ff8d/RubyHash.java/clean/org/jruby/RubyHash.java
public DragTestSuite() { String resNav = IPageLayout.ID_RES_NAV; String probView = IPageLayout.ID_PROBLEM_VIEW; // Commented out for now, see bug 76082.// if(SWT.getPlatform().equals("gtk"))// return; // Drag sources for views TestDragSource[] viewDragSource...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7e6ce7164ebc7d8454b80fdbc69144b9e0def19d/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java
AbstractTestDropTarget[] viewDropTargets = new AbstractTestDropTarget[] { new EditorAreaDropTarget(SWT.LEFT), new EditorAreaDropTarget(SWT.RIGHT), new EditorAreaDropTarget(SWT.TOP), new EditorAreaDropTarget(SWT.BOTTOM), new ViewDropTarget(resNav, SWT.LEFT), new ViewDropTarget(resNav, SWT.RIGHT), new ViewDropTarget(...
public DragTestSuite() { String resNav = IPageLayout.ID_RES_NAV; String probView = IPageLayout.ID_PROBLEM_VIEW; // Commented out for now, see bug 76082.// if(SWT.getPlatform().equals("gtk"))// return; // Drag sources for views TestDragSource[] viewDragSource...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7e6ce7164ebc7d8454b80fdbc69144b9e0def19d/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java
AbstractTestDropTarget[] maximizedViewDropTargets = new AbstractTestDropTarget[] { new EditorAreaDropTarget( SWT.RIGHT) }; Map expectedResults = loadExpectedResults();
public DragTestSuite() { String resNav = IPageLayout.ID_RES_NAV; String probView = IPageLayout.ID_PROBLEM_VIEW; // Commented out for now, see bug 76082.// if(SWT.getPlatform().equals("gtk"))// return; // Drag sources for views TestDragSource[] viewDragSource...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7e6ce7164ebc7d8454b80fdbc69144b9e0def19d/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java
addAllCombinations(maximizedViewDragSources, maximizedViewDropTargets, expectedResults); addAllCombinations(viewDragSources, viewDropTargets, expectedResults); addAllCombinations(viewDragSources, commonDropTargets, expectedResults); addAllCombinations(editorDragSources, editorDropTargets, expectedResults); addAllCombin...
for (int i = 0; i < maximizedViewDragSources.length; i++) { TestDragSource source = maximizedViewDragSources[i]; addAllCombinations(source, getMaximizedViewDropTargets(source)); } for (int i = 0; i < viewDragSources.length; i++) { TestDragSource source = viewDragSources[i]; addAllCombinations(source, getViewDropTarg...
public DragTestSuite() { String resNav = IPageLayout.ID_RES_NAV; String probView = IPageLayout.ID_PROBLEM_VIEW; // Commented out for now, see bug 76082.// if(SWT.getPlatform().equals("gtk"))// return; // Drag sources for views TestDragSource[] viewDragSource...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7e6ce7164ebc7d8454b80fdbc69144b9e0def19d/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java
private void addAllCombinations(TestDragSource[] dragSources, AbstractTestDropTarget[] dropTargets, Map expectedResults) {
private void addAllCombinations(TestDragSource dragSource, TestDropLocation[] dropTargets) {
private void addAllCombinations(TestDragSource[] dragSources, AbstractTestDropTarget[] dropTargets, Map expectedResults) { // Now, attempt to drag every combination of drag sources to drop targets. for (int srcId = 0; srcId < dragSources.length; srcId++) { for (int destId = 0; de...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7e6ce7164ebc7d8454b80fdbc69144b9e0def19d/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java
for (int srcId = 0; srcId < dragSources.length; srcId++) { for (int destId = 0; destId < dropTargets.length; destId++) { TestDragSource src = dragSources[srcId]; AbstractTestDropTarget target = dropTargets[destId]; DragTest newTest = new DragTest(src, target); newTest.setExpectedResult((String) expectedResults.get(ne...
for (int destId = 0; destId < dropTargets.length; destId++) { DragTest newTest = new DragTest(dragSource, dropTargets[destId], getLog()); addTest(newTest);
private void addAllCombinations(TestDragSource[] dragSources, AbstractTestDropTarget[] dropTargets, Map expectedResults) { // Now, attempt to drag every combination of drag sources to drop targets. for (int srcId = 0; srcId < dragSources.length; srcId++) { for (int destId = 0; de...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7e6ce7164ebc7d8454b80fdbc69144b9e0def19d/DragTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dnd/DragTestSuite.java
roster.setSubscriptionMode(Roster.SUBSCRIPTION_ACCEPT_ALL);
public static void createXMPPConnection(HttpSession ses, String userId) throws XMPPException { if (isJabberEnabled()) { XMPPConnection con = null; try { con = new XMPPConnection(SERVER_ADDRESS, SERVER_PORT); } catch (XMPPException e) { return; } try { con.login(userId, USER_PASSWORD, ses.getId()...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/60f742bb14800617acf351957bd3e933a562445a/MessagingUtil.java/clean/portal-ejb/src/com/liferay/portlet/messaging/util/MessagingUtil.java
Roster roster = MessagingUtil.getRoster(ses);
Roster roster = getRoster(ses);
public static void deleteRosterEntries(HttpSession ses, String[] userId) throws XMPPException { Roster roster = MessagingUtil.getRoster(ses); for (int i = 0; i < userId.length; i++) { RosterEntry entry = roster.getEntry(getXmppId(userId[i])); roster.removeEntry(entry); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/60f742bb14800617acf351957bd3e933a562445a/MessagingUtil.java/clean/portal-ejb/src/com/liferay/portlet/messaging/util/MessagingUtil.java
if (path.endsWith("-complete")) { sb.append("_"); }
private String _buildPramatiXMLWebModule(String path) throws DocumentException, IOException { String contextRoot = path.substring(2, path.length() - 4); String filePath = path + "/docroot/WEB-INF/web.xml"; if (path.endsWith("-complete")) { contextRoot = "/"; filePath = path.substring(0, path.length() - 9) +...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/EARXMLBuilder.java/buggy/portal-ejb/src/com/liferay/portal/tools/EARXMLBuilder.java
showInPartIds = layout.getShowInPartIds();
private void loadPredefinedPersp( PerspectiveDescriptor persp) throws WorkbenchException{ // Create layout engine. IPerspectiveFactory factory = null; try { factory = persp.createFactory(); } catch (CoreException e) { throw new WorkbenchException(WorkbenchMessages.format("Perspective.unableToLoad", new Object[] {pers...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/faa16182e98feaa2242bb35fc3293c271dd882c6/Perspective.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java
res.setContentType(Constants.TEXT_JAVASCRIPT); res.setHeader(HttpHeaders.CACHE_CONTROL, "no-cache"); if (ajaxId != null) { res.setHeader("Ajax-ID", ajaxId);
if (Validator.isNotNull(json)) { res.setContentType(Constants.TEXT_JAVASCRIPT); res.setHeader(HttpHeaders.CACHE_CONTROL, "no-cache"); if (ajaxId != null) { res.setHeader("Ajax-ID", ajaxId); } PrintWriter pw = res.getWriter(); pw.write(json); pw.close();
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { String callback = ParamUtil.getString(req, "callback"); String instance = ParamUtil.getString(req, "inst"); String ajaxId = ParamUtil.getString(req, "ajax_id", null); St...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/300d12fb7e262441523401f4b2e9344f3e9b72f7/JSONAction.java/clean/portal-ejb/src/com/liferay/portal/struts/JSONAction.java
PrintWriter pw = res.getWriter(); pw.write(json); pw.close();
public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception { String callback = ParamUtil.getString(req, "callback"); String instance = ParamUtil.getString(req, "inst"); String ajaxId = ParamUtil.getString(req, "ajax_id", null); St...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/300d12fb7e262441523401f4b2e9344f3e9b72f7/JSONAction.java/clean/portal-ejb/src/com/liferay/portal/struts/JSONAction.java
int mxw = root.getSharedContext().getMaxWidth();
private void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0756aea1531c992a3edd221241cc666701847e91/LayoutLoop.java/clean/src/java/org/xhtmlrenderer/swing/LayoutLoop.java
LoggerAdapter.error("Unable to get database IDs from "+mNextID, ex, this);
LoggerAdapter.error(MessageKey.DB_ID_FETCH.getLocalizedMessage(mNextID), ex, this);
public String getNext() throws NoMoreIDsException { synchronized (this) { if (mNextID >= mUpTo) { try { grabIDs(); } catch (SQLException ex) { LoggerAdapter.error("Unable to get database IDs from "+mNextID, ex, this); ...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/c1e9503d3032bc75965b7f7178f503c3094437f3/DatabaseIDFactory.java/clean/source/core/src/main/java/org/marketcetera/core/DatabaseIDFactory.java
setModified(true);
public void setActive(boolean active) { if (active != _active) { _active = active; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.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/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setCouponId(String couponId) { if (((couponId == null) && (_couponId != null)) || ((couponId != null) && (_couponId == null)) || ((couponId != null) && (_couponId != null) && !couponId.equals(_couponId))) { if (!XSS_ALLOW_COUPONID) { couponId = XSSUtil.strip(couponId); } _couponId = coup...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.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/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setDiscount(double discount) { if (discount != _discount) { _discount = discount; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setDiscountType(String discountType) { if (((discountType == null) && (_discountType != null)) || ((discountType != null) && (_discountType == null)) || ((discountType != null) && (_discountType != null) && !discountType.equals(_discountType))) { if (!XSS_ALLOW_DISCOUNTTYPE) { discountType =...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setEndDate(Date endDate) { if (((endDate == null) && (_endDate != null)) || ((endDate != null) && (_endDate == null)) || ((endDate != null) && (_endDate != null) && !endDate.equals(_endDate))) { _endDate = endDate; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setLimitCategories(String limitCategories) { if (((limitCategories == null) && (_limitCategories != null)) || ((limitCategories != null) && (_limitCategories == null)) || ((limitCategories != null) && (_limitCategories != null) && !limitCategories.equals(_limitCategories))) { if (!XSS_ALLOW_LIM...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setLimitSkus(String limitSkus) { if (((limitSkus == null) && (_limitSkus != null)) || ((limitSkus != null) && (_limitSkus == null)) || ((limitSkus != null) && (_limitSkus != null) && !limitSkus.equals(_limitSkus))) { if (!XSS_ALLOW_LIMITSKUS) { limitSkus = XSSUtil.strip(limitSkus); } _li...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setMinOrder(double minOrder) { if (minOrder != _minOrder) { _minOrder = minOrder; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
setModified(true);
public void setStartDate(Date startDate) { if (((startDate == null) && (_startDate != null)) || ((startDate != null) && (_startDate == null)) || ((startDate != null) && (_startDate != null) && !startDate.equals(_startDate))) { _startDate = startDate; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.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/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.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/ShoppingCouponModel.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCouponModel.java
String siteTitle = getStateSite(state).getTitle();
String siteTitle = getStateSite(state).getTitle(); String emailInIdAccountName = ServerConfigurationService.getString("emailInIdAccountName", "");
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
int i; String emailInIdAccountName = ServerConfigurationService.getString("emailInIdAccountName", ""); String noEmailInIdAccounts = null; String emailInIdAccounts = null; if (state.getAttribute("noEmailInIdAccountValue") != null) { noEmailInIdAccounts = (String) state.getAttribute("noEmailInIdAccountValue"); } if (s...
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
boolean same_role = ((Boolean) state.getAttribute("form_same_role")).booleanValue(); String pw = null;
List addParticipantList = (List) state.getAttribute(STATE_ADD_PARTICIPANTS); for (int i = 0; i < addParticipantList.size(); i++) { Participant p = (Participant) addParticipantList.get(i); String eId = p.getEid(); String role = (String) state.getAttribute("form_selectedRole"); if (!same_role) { role = (String) sele...
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
Vector addedNoEmailInIdAccounts = new Vector(); Hashtable eIdRoles = new Hashtable(); if (noEmailInIdAccounts != null)
for (Iterator iEIds = eIdRoles.keySet().iterator(); iEIds.hasNext();)
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String[] noEmailInIdAccountArray = noEmailInIdAccounts.replaceAll(",","\r\n").split("\r\n"); for (i = 0; i < noEmailInIdAccountArray.length; i++)
String iEId = (String) iEIds.next(); if (!addedParticipantEIds.contains(iEId))
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String noEmailInIdAccount = StringUtil.trimToNull(noEmailInIdAccountArray[i].replaceAll("[\t\r\n]","")); if(noEmailInIdAccount != null)
if (iEId.indexOf(EMAIL_CHAR) == -1)
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
String role = null; if (same_role) { role = (String) state.getAttribute("form_selectedRole"); } else { role = (String) selectedRoles.get(noEmailInIdAccount); } eIdRoles.put(noEmailInIdAccount, role);
notAddedNoEmailInIdAccounts = notAddedNoEmailInIdAccounts.concat(iEId + "\n");
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
} addedNoEmailInIdAccounts.addAll(addUsersRealm(state, eIdRoles, notify, false)); for (Iterator iEIds = eIdRoles.keySet().iterator(); iEIds.hasNext();) { String iEId = (String) iEIds.next(); if (!addedNoEmailInIdAccounts.contains(iEId))
else
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
notAddedNoEmailInIdAccounts.concat(iEId + "\n"); } } } eIdRoles.clear(); Vector addedEmailInIdAccounts = new Vector(); if (emailInIdAccounts != null) { String[] emailInIdAccountArray = emailInIdAccounts.split("\r\n"); for (i = 0; i < emailInIdAccountArray.length; i++) { String emailInIdAccount = StringUtil.trimToNu...
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
}
}
public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java