rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (!(addedNoEmailInIdAccounts.size() == 0 && addedEmailInIdAccounts.size() == 0) && (notAddedNoEmailInIdAccounts != null || notAddedEmailInIdAccounts != null))
if (addedParticipantEIds.size() != 0 && (notAddedNoEmailInIdAccounts != null || notAddedEmailInIdAccounts != null))
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
this.longevityText = addLabelAndText(LONGEVITY_TITLE, String
this.longevityText = addLabelAndText(IDEWorkbenchMessages.FileHistory_longevity, String
protected Control createContents(Composite parent) { PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IIDEHelpContextIds.FILE_STATES_PREFERENCE_PAGE); // button group Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
this.maxStatesText = addLabelAndText(MAX_FILE_STATES_TITLE, String
this.maxStatesText = addLabelAndText(IDEWorkbenchMessages.FileHistory_entries, String
protected Control createContents(Composite parent) { PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IIDEHelpContextIds.FILE_STATES_PREFERENCE_PAGE); // button group Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
this.maxStateSizeText = addLabelAndText(MAX_FILE_STATE_SIZE_TITLE,
this.maxStateSizeText = addLabelAndText(IDEWorkbenchMessages.FileHistory_diskSpace,
protected Control createContents(Composite parent) { PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IIDEHelpContextIds.FILE_STATES_PREFERENCE_PAGE); // button group Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
composite, NOTE_LABEL, NOTE_MESSAGE);
composite, IDEWorkbenchMessages.Preference_note, IDEWorkbenchMessages.FileHistory_restartNote);
protected Control createContents(Composite parent) { PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IIDEHelpContextIds.FILE_STATES_PREFERENCE_PAGE); // button group Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
ErrorDialog.openError(getShell(), SAVE_ERROR_MESSAGE, exception
ErrorDialog.openError(getShell(), IDEWorkbenchMessages.FileHistory_exceptionSaving, exception
public boolean performOk() { long longevityValue = validateLongTextEntry(longevityText); int maxFileStates = validateMaxFileStates(); long maxStateSize = validateMaxFileStateSize(); if (longevityValue == FAILED_VALUE || maxFileStates == FAILED_VALUE || maxStateSize == FAIL...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
setErrorMessage(MessageFormat.format(INVALID_VALUE_MESSAGE,
setErrorMessage(MessageFormat.format(IDEWorkbenchMessages.FileHistory_invalid,
private int validateIntegerTextEntry(Text text) { int value; try { value = Integer.parseInt(text.getText()); } catch (NumberFormatException exception) { setErrorMessage(MessageFormat.format(INVALID_VALUE_MESSAGE, new Object[] { exception.getLocalizedMess...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
setErrorMessage(POSITIVE_MESSAGE);
setErrorMessage(IDEWorkbenchMessages.FileHistory_mustBePositive);
private int validateIntegerTextEntry(Text text) { int value; try { value = Integer.parseInt(text.getText()); } catch (NumberFormatException exception) { setErrorMessage(MessageFormat.format(INVALID_VALUE_MESSAGE, new Object[] { exception.getLocalizedMess...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
setErrorMessage(MessageFormat.format(INVALID_VALUE_MESSAGE,
setErrorMessage(MessageFormat.format(IDEWorkbenchMessages.FileHistory_invalid,
private long validateLongTextEntry(Text text) { long value; try { value = Long.parseLong(text.getText()); } catch (NumberFormatException exception) { setErrorMessage(MessageFormat.format(INVALID_VALUE_MESSAGE, new Object[] { exception.getLocalizedMessage...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
setErrorMessage(POSITIVE_MESSAGE);
setErrorMessage(IDEWorkbenchMessages.FileHistory_mustBePositive);
private long validateLongTextEntry(Text text) { long value; try { value = Long.parseLong(text.getText()); } catch (NumberFormatException exception) { setErrorMessage(MessageFormat.format(INVALID_VALUE_MESSAGE, new Object[] { exception.getLocalizedMessage...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/17cc64bd41c510877d13ea27b8d1035937402c83/FileStatesPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/FileStatesPage.java
setModified(true);
public void setAddress(String address) { if (((address == null) && (_address != null)) || ((address != null) && (_address == null)) || ((address != null) && (_address != null) && !address.equals(_address))) { if (!XSS_ALLOW_ADDRESS) { address = XSSUtil.strip(address); } _address = address; setModi...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
setModified(true);
public void setClassName(String className) { if (((className == null) && (_className != null)) || ((className != null) && (_className == null)) || ((className != null) && (_className != null) && !className.equals(_className))) { if (!XSS_ALLOW_CLASSNAME) { className = XSSUtil.strip(className); } _cl...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
setModified(true);
public void setClassPK(String classPK) { if (((classPK == null) && (_classPK != null)) || ((classPK != null) && (_classPK == null)) || ((classPK != null) && (_classPK != null) && !classPK.equals(_classPK))) { if (!XSS_ALLOW_CLASSPK) { classPK = XSSUtil.strip(classPK); } _classPK = classPK; setModi...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.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/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.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/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
setModified(true);
public void setEmailAddressId(String emailAddressId) { if (((emailAddressId == null) && (_emailAddressId != null)) || ((emailAddressId != null) && (_emailAddressId == null)) || ((emailAddressId != null) && (_emailAddressId != null) && !emailAddressId.equals(_emailAddressId))) { if (!XSS_ALLOW_EMAILADDRESSI...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.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/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
setModified(true);
public void setPrimary(boolean primary) { if (primary != _primary) { _primary = primary; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
setModified(true);
public void setTypeId(String typeId) { if (((typeId == null) && (_typeId != null)) || ((typeId != null) && (_typeId == null)) || ((typeId != null) && (_typeId != null) && !typeId.equals(_typeId))) { if (!XSS_ALLOW_TYPEID) { typeId = XSSUtil.strip(typeId); } _typeId = typeId; setModified(true); } ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.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/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.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/EmailAddressModel.java/buggy/portal-ejb/src/com/liferay/portal/model/EmailAddressModel.java
this.runtime = runtime;
public RubyBoolean(Ruby runtime, boolean value) { super(runtime, null, // Don't initialize with class false); // Don't put in object space this.value = value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyBoolean.java/clean/src/org/jruby/RubyBoolean.java
_log.debug("Registering hot deploy listeners"); HotDeployUtil.registerListener(new HotDeployLayoutTemplateListener()); HotDeployUtil.registerListener(new HotDeployPortletListener()); HotDeployUtil.registerListener(new HotDeployThemeListener());
public void run(String[] ids) throws ActionException { // JCR try { if (GetterUtil.getBoolean(PropsUtil.get( PropsUtil.JCR_INITIALIZE_ON_STARTUP))) { JCRFactoryUtil.initialize(); } } catch (Exception e) { _log.error(e); } // Auto deploy try { _log.debug("Registering auto deploy directories"); F...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/GlobalStartupAction.java/buggy/portal-ejb/src/com/liferay/portal/events/GlobalStartupAction.java
silentModeThrottle = new JSlider(); silentModeThrottle.setMajorTickSpacing(25); silentModeThrottle.setMinorTickSpacing(5); silentModeThrottle.setPaintTicks(true); silentModeThrottle.setPaintLabels(true); int smt = 70; try { smt = Integer.parseInt(getController() .getConfig().getProperty("net.silentmodethrottle")); } c...
private void initComponents() { String[] options = new String[3]; options[PRIVATE_MODE_INDEX] = Translation .getTranslation("preferences.dialog.networkmode.private"); options[PUBLIC_MODE_INDEX] = Translation .getTranslation("preferences.dialog.networkmode.public"); ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/d618e2466392cb86f7d8fac73b091f415eb68866/NetworkSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/NetworkSettingsTab.java
getController().getConfig().setProperty("net.silentmodethrottle", Integer.toString(silentModeThrottle.getValue()));
public void save() { Controller.NetworkingMode netMode; switch (networkingMode.getSelectedIndex()) { case 0 : { netMode = NetworkingMode.PRIVATEMODE; break; } case 1 : { netMode = NetworkingMode.PUBLICMODE; br...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/d618e2466392cb86f7d8fac73b091f415eb68866/NetworkSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/NetworkSettingsTab.java
private ArrayList uniq(ArrayList ary1) { int len1 = ary1.size(); ArrayList ary2 = new ArrayList(len1); int len2 = 0; boolean found = false; for (int i = 0; i < len1; i++) { RubyObject obj = (RubyObject) ary1.get(i); len2 = ary2.size(); found = false; for (int j = 0; j < len2; j++) { if (obj.funcall("==", (RubyObject) a...
private ArrayList uniq(List oldList) { int oldLength = oldList.size(); ArrayList newList = new ArrayList(oldLength); for (int i = 0; i < oldLength; i++) { RubyObject obj = (RubyObject)oldList.get(i); boolean found = false; int newLength = newList.size(); for (int j = 0; j < newLength; j++) { if (obj.funcall("==", (Ru...
private ArrayList uniq(ArrayList ary1) { int len1 = ary1.size(); ArrayList ary2 = new ArrayList(len1); int len2 = 0; boolean found = false; for (int i = 0; i < len1; i++) { RubyObject obj = (RubyObject) ary1.get(i); len2 = ary2.size(); found = fals...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6f48980923c4b06bac2890165c858310895f9a14/RubyArray.java/clean/org/jruby/RubyArray.java
ary2.add(obj);
newList.add(obj);
private ArrayList uniq(ArrayList ary1) { int len1 = ary1.size(); ArrayList ary2 = new ArrayList(len1); int len2 = 0; boolean found = false; for (int i = 0; i < len1; i++) { RubyObject obj = (RubyObject) ary1.get(i); len2 = ary2.size(); found = fals...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6f48980923c4b06bac2890165c858310895f9a14/RubyArray.java/clean/org/jruby/RubyArray.java
ary2.trimToSize(); return ary2;
newList.trimToSize(); return newList;
private ArrayList uniq(ArrayList ary1) { int len1 = ary1.size(); ArrayList ary2 = new ArrayList(len1); int len2 = 0; boolean found = false; for (int i = 0; i < len1; i++) { RubyObject obj = (RubyObject) ary1.get(i); len2 = ary2.size(); found = fals...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6f48980923c4b06bac2890165c858310895f9a14/RubyArray.java/clean/org/jruby/RubyArray.java
System.out.println("generated image = " + img);
public Image getImage(String uri) { java.io.InputStream is = null; Image img = null; uri = resolveURI(uri); if (imageCache != null) { SoftReference ref = (SoftReference) imageCache.get(uri); if (ref != null) { img = (Image) ref.get(); } ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/700deda900763fb4334d7a41940a307a33287ba5/NaiveUserAgent.java/clean/src/java/org/xhtmlrenderer/swing/NaiveUserAgent.java
throw new RubyNameException(getRuby(), "super: no superclass method '" + name + "'");
throw new NameError(getRuby(), "super: no superclass method '" + name + "'");
public RubyObject call(RubyObject recv, String name, RubyPointer args, int scope) { CacheEntry ent = getRuby().getMethodCache().getEntry(this, name); RubyModule klass = this; int noex; Node body; if (ent != null) { if (ent.getMethod() == null) { RubyPoint...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
RubyObject result = ((CallableNode) body).call(ruby, recv, name, args, noSuper); ruby.getRubyFrame().pop(); lIter.pop(); return result;
try { return ((CallableNode) body).call(ruby, recv, name, args, noSuper); } finally { ruby.getRubyFrame().pop(); lIter.pop(); }
public RubyObject call0(RubyObject recv, String name, RubyPointer args, Node body, boolean noSuper) { // ... Ruby ruby = getRuby(); RubyIter lIter = ruby.getIter(); if (lIter.getIter() == RubyIter.ITER_PRE) { lIter.push(RubyIter.ITER_CUR); } else { lIter.push(RubyIter.IT...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "wrong constant name " + name);
throw new NameError(getRuby(), "wrong constant name " + name);
public RubyBoolean const_defined(RubySymbol symbol) { String name = symbol.toId(); if (!IdUtil.isConstant(name)) { throw new RubyNameException(getRuby(), "wrong constant name " + name); } return RubyBoolean.newBoolean(getRuby(), isConstantDefined(name)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "wrong constant name " + name);
throw new NameError(getRuby(), "wrong constant name " + name);
public RubyObject const_get(RubySymbol symbol) { String name = symbol.toId(); if (!IdUtil.isConstant(name)) { throw new RubyNameException(getRuby(), "wrong constant name " + name); } return getConstant(name); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "wrong constant name " + name);
throw new NameError(getRuby(), "wrong constant name " + name);
public RubyObject const_set(RubySymbol symbol, RubyObject value) { String name = symbol.toId(); if (!IdUtil.isConstant(name)) { throw new RubyNameException(getRuby(), "wrong constant name " + name); } setConstant(name, value); return value; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "wrong class variable name " + name);
throw new NameError(getRuby(), "wrong class variable name " + name);
public void defineClassVariable(String name, RubyObject value) { if (!IdUtil.isClassVariable(name)) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } declareClassVar(name, value); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "bad constant name " + name);
throw new NameError(getRuby(), "bad constant name " + name);
public void defineConstant(String name, RubyObject value) { if (this == getRuby().getClasses().getClassClass()) { getRuby().secure(4); } if (!IdUtil.isConstant(name)) { throw new RubyNameException(getRuby(), "bad constant name " + name); } setConstant(name, v...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "uninitialized class variable " + name + " in " + toName());
throw new NameError(getRuby(), "uninitialized class variable " + name + " in " + toName());
public RubyObject getClassVar(String name) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(name) != null) { return (RubyObject) tmp.getInstanceVariables().get(name); } tmp = tmp.getS...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
} catch(RubyNameException excptn) {
} catch(NameError excptn) {
public RubyObject getConstant(String name) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(name) != null) { return (RubyObject) tmp.getInstanceVariables().get(name); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "uninitialized constant " + name + " at " + getClassPath().getValue());
throw new NameError(getRuby(), "uninitialized constant " + name + " at " + getClassPath().getValue());
public RubyObject getConstant(String name) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(name) != null) { return (RubyObject) tmp.getInstanceVariables().get(name); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "uninitialized constant " + name);
throw new NameError(getRuby(), "uninitialized constant " + name);
public RubyObject getConstant(String name) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(name) != null) { return (RubyObject) tmp.getInstanceVariables().get(name); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "wrong class variable name " + name.toId());
throw new NameError(getRuby(), "wrong class variable name " + name.toId());
public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.toId())) { throw new RubyNameException(getRuby(), "wrong class variable name " + name.toId()); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecurityE...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "cannot remove " + name.toId() + " for " + toName());
throw new NameError(getRuby(), "cannot remove " + name.toId() + " for " + toName());
public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.toId())) { throw new RubyNameException(getRuby(), "wrong class variable name " + name.toId()); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecurityE...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "class variable " + name.toId() + " not defined for " + toName());
throw new NameError(getRuby(), "class variable " + name.toId() + " not defined for " + toName());
public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.toId())) { throw new RubyNameException(getRuby(), "wrong class variable name " + name.toId()); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecurityE...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "method '" + name + "' not defined in " + toName());
throw new NameError(getRuby(), "method '" + name + "' not defined in " + toName());
public void removeMethod(String name) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSafeLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't remove method"); } if (isFroze...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "wrong class variable name " + id);
throw new NameError(getRuby(), "wrong class variable name " + id);
public RubyObject remove_class_variable(RubyObject name) { String id = name.toId(); if (!IdUtil.isClassVariable(id)) { throw new RubyNameException(getRuby(), "wrong class variable name " + id); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "cannot remove " + id + " for " + toName());
throw new NameError(getRuby(), "cannot remove " + id + " for " + toName());
public RubyObject remove_class_variable(RubyObject name) { String id = name.toId(); if (!IdUtil.isClassVariable(id)) { throw new RubyNameException(getRuby(), "wrong class variable name " + id); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "class variable " + id + " not defined for " + toName());
throw new NameError(getRuby(), "class variable " + id + " not defined for " + toName());
public RubyObject remove_class_variable(RubyObject name) { String id = name.toId(); if (!IdUtil.isClassVariable(id)) { throw new RubyNameException(getRuby(), "wrong class variable name " + id); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(getRuby(), "uninitialized class variable " + name + " in " + toName());
throw new NameError(getRuby(), "uninitialized class variable " + name + " in " + toName());
public void setClassVar(String name, RubyObject value) { RubyModule tmp = this; while (tmp != null) { if (tmp.getInstanceVariables() != null && tmp.getInstanceVariables().get(name) != null) { if (tmp.isTaint() && getRuby().getSafeLevel() >= 4) { throw new R...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
throw new RubyNameException(ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method " + name + " for" + s0 + " '" + c.toName() + "'");
throw new NameError(ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method " + name + " for" + s0 + " '" + c.toName() + "'");
public void undef(String name) { Ruby ruby = getRuby(); if (this == ruby.getClasses().getObjectClass()) { ruby.secure(4); } if (ruby.getSafeLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen(); if (name.eq...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
Rectangle new_clip = new Rectangle(left_insets, top_insets, back_width, back_height);
Rectangle new_clip = new Rectangle(left_insets, top_insets, back_width - 1, back_height - 1);
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/4dda166a72934a9532178acf00180d295960afa7/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
return getController().getPreferences().get("uitheme", null);
return PreferencesEntry.UI_COLOUR_THEME.getValueString(getController());
public String getUIThemeConfig() { return getController().getPreferences().get("uitheme", null); }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/4990d958eaf34a7653f68f1002faf36b3aaa862b/UIController.java/clean/src/main/de/dal33t/powerfolder/ui/UIController.java
return font.getLineMetrics( string, graphics.getFontRenderContext() );
return new ScaledLineMetrics(font, font.getLineMetrics( string, graphics.getFontRenderContext() ));
public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ) { return font.getLineMetrics( string, graphics.getFontRenderContext() ); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/1a1faae1c515edaea28dc3a60efde193dc7545a6/Java2DTextRenderer.java/buggy/src/java/org/xhtmlrenderer/render/Java2DTextRenderer.java
InlineBox ib = findInlineBox(evt);
Box ib = findBox(evt);
public void mouseEntered( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/95d146365b773a18a7e529af5965f0a6034c5e7b/HoverListener.java/buggy/src/java/org/xhtmlrenderer/swing/HoverListener.java
InlineBox ib = findInlineBox(evt);
Box ib = findBox(evt);
public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/95d146365b773a18a7e529af5965f0a6034c5e7b/HoverListener.java/buggy/src/java/org/xhtmlrenderer/swing/HoverListener.java
InlineBox ib = findInlineBox(evt);
Box ib = findBox(evt);
public void mouseMoved( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/95d146365b773a18a7e529af5965f0a6034c5e7b/HoverListener.java/buggy/src/java/org/xhtmlrenderer/swing/HoverListener.java
private void restyle(InlineBox ib) {
private void restyle(Box ib) {
private void restyle(InlineBox ib) { if(prev == ib) { return; } if(ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if(prev != null) { boolean restyled = panel....
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/95d146365b773a18a7e529af5965f0a6034c5e7b/HoverListener.java/buggy/src/java/org/xhtmlrenderer/swing/HoverListener.java
return getRuntime().newFixnum( compareValue((RubyNumeric) other));
return getRuntime().newFixnum(compareValue((RubyNumeric) other));
public IRubyObject cmp(IRubyObject other) { if (!(other instanceof RubyNumeric)) { return getRuntime().getNil(); } return getRuntime().newFixnum( compareValue((RubyNumeric) other)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
public RubyArray divmod(RubyNumeric other) { RubyNumeric div = (RubyNumeric) callMethod("/", other); if (div instanceof RubyFloat) { double d = Math.floor(((RubyFloat) div).getValue()); if (((RubyFloat) div).getValue() > d) { div = RubyFloat.newFloat(getRuntime(), d);
public IRubyObject divmod(IRubyObject other) { if (other instanceof RubyNumeric) { RubyNumeric denominator = (RubyNumeric) other; RubyNumeric div = (RubyNumeric) callMethod("/", denominator); if (div instanceof RubyFloat) { double d = Math.floor(((RubyFloat) div).getValue()); if (((RubyFloat) div).getValue() > d) { div...
public RubyArray divmod(RubyNumeric other) { RubyNumeric div = (RubyNumeric) callMethod("/", other); if (div instanceof RubyFloat) { double d = Math.floor(((RubyFloat) div).getValue()); if (((RubyFloat) div).getValue() > d) { div = RubyFloat.newFloat(getRuntime(), ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
}
return getRuntime().newArray(div, modulo(denominator)); }
public RubyArray divmod(RubyNumeric other) { RubyNumeric div = (RubyNumeric) callMethod("/", other); if (div instanceof RubyFloat) { double d = Math.floor(((RubyFloat) div).getValue()); if (((RubyFloat) div).getValue() > d) { div = RubyFloat.newFloat(getRuntime(), ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
return getRuntime().newArray(div, modulo(other));
return callCoerced("divmod", other);
public RubyArray divmod(RubyNumeric other) { RubyNumeric div = (RubyNumeric) callMethod("/", other); if (div instanceof RubyFloat) { double d = Math.floor(((RubyFloat) div).getValue()); if (((RubyFloat) div).getValue() > d) { div = RubyFloat.newFloat(getRuntime(), ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
public RubyNumeric op_uplus() {
public IRubyObject op_uplus() {
public RubyNumeric op_uplus() { return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyNumeric.java/buggy/src/org/jruby/RubyNumeric.java
rv = m_provider.getInstructorCourses(instructorId, termYear, termTerm);
try { String instructorEid = ((UserDirectoryService) ComponentManager.get(org.sakaiproject.user.api.UserDirectoryService.class.getName())).getUserEid(instructorId); rv = m_provider.getInstructorCourses(instructorEid, termYear, termTerm); } catch (UserNotDefinedException e) { M_log.info(this + "Cannot get eid for instr...
public List getInstructorCourses(String instructorId, String termYear, String termTerm) { // TODO: make this more efficient List rv = new Vector(); rv = m_provider.getInstructorCourses(instructorId, termYear, termTerm); return rv; }
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/97454bcb02104caa3ce8a16d243722d681b15e58/BasicCourseManagementService.java/buggy/site-manage-impl/impl/src/java/org/sakaiproject/site/impl/BasicCourseManagementService.java
getValue().setCharAt(idx, (char) RubyNumeric.fix2int(args[1]));
getMutableValue().setCharAt(idx, (char) RubyNumeric.fix2int(args[1]));
public IRubyObject aset(IRubyObject[] args) { testFrozen("class"); int strLen = getValue().length(); if (checkArgumentCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { throw getRuntime().newInde...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
return getValue();
return getMutableValue();
private StringBuffer getSqueeze(IRubyObject[] args) { int argc = args.length; String[] specs = null; if (argc > 0) { specs = new String[argc]; for (int i = 0; i < argc; i++) { specs[i] = stringValue(args[i]).toString(); } } String table = specs == null ? null : setupTable(specs); int strLen = getValue()...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
return getRuntime().newBoolean(getValue().indexOf(str) != -1);
return getRuntime().newBoolean(getMutableValue().indexOf(str) != -1);
public RubyBoolean include(IRubyObject obj) { if (obj instanceof RubyFixnum) { char c = (char) RubyNumeric.fix2int(obj); return getRuntime().newBoolean(toString().indexOf(c) != -1); } String str = stringValue(obj).toString(); return getRuntime().newBoolean(getValue().indexOf(str) != -1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
getValue().insert(index, insert);
getMutableValue().insert(index, insert);
public IRubyObject insert(IRubyObject indexArg, IRubyObject stringArg) { int index = (int) indexArg.convertToInteger().getLongValue(); if (index < 0) { index += getValue().length() + 1; } if (index < 0 || index > getValue().length()) { throw getRuntime().newIndexError("index " + index...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
return newString(getValue().substring(i));
return newString(getValue().subSequence(i, getValue().length()));
public IRubyObject lstrip() { int length = getValue().length(); int i = 0; for (; i < length; i++) { if (!Character.isWhitespace(getValue().charAt(i))) { break; } } return newString(getValue().substring(i)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
getValue().reverse();
getMutableValue().reverse();
public RubyString reverse_bang() { getValue().reverse(); return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
return newString(getValue().substring(0, i + 1));
return newString(getValue().subSequence(0, i + 1));
public IRubyObject rstrip() { int i = getValue().length() - 1; for (; i >= 0; i--) { if (!Character.isWhitespace(getValue().charAt(i))) { break; } } return newString(getValue().substring(0, i + 1)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
return newString(getValue().substring(beg, end)).infectBy(this);
return newString(getMutableValue().substring(beg, end)).infectBy(this);
private IRubyObject substr(int beg, int len) { int length = getValue().length(); if (len < 0 || beg > length) { return getRuntime().getNil(); } if (beg < 0) { beg += length; if (beg < 0) { return getRuntime().getNil(); } } int end = Math.min(length, beg + len); return newString(getValue().substring(b...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
StringBuffer sbuf = getValue();
StringBuffer sbuf = getMutableValue();
public IRubyObject succ_bang() { if (getValue().length() == 0) { return this; } StringBuffer sbuf = getValue(); boolean alnumSeen = false; int pos = -1; char c = 0; char n = 0; for (int i = sbuf.length() - 1; i >= 0; i--) { c = sbuf....
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
StringBuffer string = getValue();
StringBuffer string = getMutableValue();
public IRubyObject swapcase_bang() { StringBuffer string = getValue(); int length = string.length(); boolean changesMade = false; for (int i = 0; i < length; i++) { char c = string.charAt(i); if (!Character.isLetter(c)) { continue; } else if (...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/clean/src/org/jruby/RubyString.java
public final void setHandlersByCommandId(final Map handlersByCommandId) { final Iterator entryItr = handlersByCommandId.entrySet().iterator(); while (entryItr.hasNext()) { final Map.Entry entry = (Map.Entry) entryItr.next(); final String commandId = (String) entry.getKey(); // Convert the handler to the right ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/01146b81fdf7967b42e1025e3461a72ddd238f46/CommandManagerWrapper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/CommandManagerWrapper.java
Platform.getPlugin(PlatformUI.PLUGIN_ID).getLog().log(
IDEWorkbenchPlugin.getDefault().getLog().log(
private IProject createNewProject() { // get a project handle final IProject newProjectHandle = page.getProjectHandle(); // get a project descriptor IPath defaultPath = Platform.getLocation(); IPath newPath = page.getLocationPath(); if (defaultPath.equals(newPath)) ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b44617ebe568f7f4382cb371e3d1a291dd46bd17/CreateProjectWizard.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateProjectWizard.java
value = getStartDate().compareTo(calEvent.getStartDate());
value = DateUtil.compareTo(getStartDate(), calEvent.getStartDate());
public int compareTo(Object obj) { if (obj == null) { return -1; } CalEvent calEvent = (CalEvent)obj; int value = 0; value = getStartDate().compareTo(calEvent.getStartDate()); if (value != 0) { return value; } value = getTitle().toLowerCase().compareTo(calEvent.getTitle() .toLowerCase()); ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0f4675cccf5487b482133977e732e847e320f104/CalEventModel.java/buggy/portal-ejb/src/com/liferay/portlet/calendar/model/CalEventModel.java
String captcha = _producer.createText();
String captchaText = _producer.createText();
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { try { PortletSession ses = req.getPortletSession(); String captcha = _producer.createText(); ses.setAttribute(WebKeys.CAPTCHA, captcha); HttpServletResponse h...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/CaptchaAction.java/buggy/portal-ejb/src/com/liferay/portal/captcha/CaptchaAction.java
ses.setAttribute(WebKeys.CAPTCHA, captcha);
ses.setAttribute(WebKeys.CAPTCHA_TEXT, captchaText);
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { try { PortletSession ses = req.getPortletSession(); String captcha = _producer.createText(); ses.setAttribute(WebKeys.CAPTCHA, captcha); HttpServletResponse h...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/CaptchaAction.java/buggy/portal-ejb/src/com/liferay/portal/captcha/CaptchaAction.java
_producer.createImage(httpRes.getOutputStream(), captcha);
_producer.createImage(httpRes.getOutputStream(), captchaText);
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { try { PortletSession ses = req.getPortletSession(); String captcha = _producer.createText(); ses.setAttribute(WebKeys.CAPTCHA, captcha); HttpServletResponse h...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/fa825e278fff56c5878f6bf4ebfe8e8c47fa5e6f/CaptchaAction.java/buggy/portal-ejb/src/com/liferay/portal/captcha/CaptchaAction.java
for (int i = 0; i < rootTypes.size(); i++) { MarkerType rootType = (MarkerType) rootTypes.get(i); addAllSubTypes(types, rootType); } }
for (int i = 0; i < rootTypes.size(); i++) { MarkerType rootType = (MarkerType) rootTypes.get(i); addAllSubTypes(types, rootType); } }
public void addAllSubTypes(List types) { for (int i = 0; i < rootTypes.size(); i++) { MarkerType rootType = (MarkerType) rootTypes.get(i); addAllSubTypes(types, rootType); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
for (int idx = 0; idx < resources.length; idx++) {
for (int idx = 0; idx < resources.length; idx++) {
private void addResourcesAndChildren(HashSet result, IResource[] resources) { for (int idx = 0; idx < resources.length; idx++) { IResource currentResource = resources[idx]; result.add(currentResource.getFullPath().toString()); if (currentResource instanceof IContainer) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
IResource currentResource = resources[idx];
IResource currentResource = resources[idx];
private void addResourcesAndChildren(HashSet result, IResource[] resources) { for (int idx = 0; idx < resources.length; idx++) { IResource currentResource = resources[idx]; result.add(currentResource.getFullPath().toString()); if (currentResource instanceof IContainer) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
result.add(currentResource.getFullPath().toString());
result.add(currentResource.getFullPath().toString());
private void addResourcesAndChildren(HashSet result, IResource[] resources) { for (int idx = 0; idx < resources.length; idx++) { IResource currentResource = resources[idx]; result.add(currentResource.getFullPath().toString()); if (currentResource instanceof IContainer) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (currentResource instanceof IContainer) { IContainer cont = (IContainer) currentResource;
if (currentResource instanceof IContainer) { IContainer cont = (IContainer) currentResource;
private void addResourcesAndChildren(HashSet result, IResource[] resources) { for (int idx = 0; idx < resources.length; idx++) { IResource currentResource = resources[idx]; result.add(currentResource.getFullPath().toString()); if (currentResource instanceof IContainer) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
try { addResourcesAndChildren(result, cont.members()); } catch (CoreException e) { } }
try { addResourcesAndChildren(result, cont.members()); } catch (CoreException e) { } }
private void addResourcesAndChildren(HashSet result, IResource[] resources) { for (int idx = 0; idx < resources.length; idx++) { IResource currentResource = resources[idx]; result.add(currentResource.getFullPath().toString()); if (currentResource instanceof IContainer) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
} }
} }
private void addResourcesAndChildren(HashSet result, IResource[] resources) { for (int idx = 0; idx < resources.length; idx++) { IResource currentResource = resources[idx]; result.add(currentResource.getFullPath().toString()); if (currentResource instanceof IContainer) { ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
return focusResource; }
return focusResource; }
IResource[] getFocusResource() { return focusResource; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
return typesModel.getType(id); }
return typesModel.getType(id); }
public MarkerType getMarkerType(String id) { return typesModel.getType(id); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (resources == null) { return new IProject[0]; }
if (resources == null) { return new IProject[0]; }
static IProject[] getProjects(IResource[] resources) { if (resources == null) { return new IProject[0]; } Collection projects = getProjectsAsCollection(resources); return (IProject[]) projects.toArray(new IProject[projects.size()]); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
Collection projects = getProjectsAsCollection(resources);
Collection projects = getProjectsAsCollection(resources);
static IProject[] getProjects(IResource[] resources) { if (resources == null) { return new IProject[0]; } Collection projects = getProjectsAsCollection(resources); return (IProject[]) projects.toArray(new IProject[projects.size()]); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
return (IProject[]) projects.toArray(new IProject[projects.size()]); }
return (IProject[]) projects.toArray(new IProject[projects.size()]); }
static IProject[] getProjects(IResource[] resources) { if (resources == null) { return new IProject[0]; } Collection projects = getProjectsAsCollection(resources); return (IProject[]) projects.toArray(new IProject[projects.size()]); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (workingSet == null) { return new IResource[0]; }
if (workingSet == null) { return new IResource[0]; }
IResource[] getResourcesInWorkingSet() { if (workingSet == null) { return new IResource[0]; } IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length); for (int idx = 0; idx < elements.length; idx++) { IResource next = (I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length);
IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length);
IResource[] getResourcesInWorkingSet() { if (workingSet == null) { return new IResource[0]; } IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length); for (int idx = 0; idx < elements.length; idx++) { IResource next = (I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
for (int idx = 0; idx < elements.length; idx++) { IResource next = (IResource) elements[idx] .getAdapter(IResource.class);
for (int idx = 0; idx < elements.length; idx++) { IResource next = (IResource) elements[idx] .getAdapter(IResource.class);
IResource[] getResourcesInWorkingSet() { if (workingSet == null) { return new IResource[0]; } IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length); for (int idx = 0; idx < elements.length; idx++) { IResource next = (I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (next != null) { result.add(next); } }
if (next != null) { result.add(next); } }
IResource[] getResourcesInWorkingSet() { if (workingSet == null) { return new IResource[0]; } IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length); for (int idx = 0; idx < elements.length; idx++) { IResource next = (I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
return (IResource[]) result.toArray(new IResource[result.size()]); }
return (IResource[]) result.toArray(new IResource[result.size()]); }
IResource[] getResourcesInWorkingSet() { if (workingSet == null) { return new IResource[0]; } IAdaptable[] elements = workingSet.getElements(); List result = new ArrayList(elements.length); for (int idx = 0; idx < elements.length; idx++) { IResource next = (I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
if (cachedWorkingSet == null) { HashSet result = new HashSet();
if (cachedWorkingSet == null) { HashSet result = new HashSet();
private Set getWorkingSetAsSetOfPaths() { if (cachedWorkingSet == null) { HashSet result = new HashSet(); addResourcesAndChildren(result, getResourcesInWorkingSet()); cachedWorkingSet = result; } return cachedWorkingSet; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
addResourcesAndChildren(result, getResourcesInWorkingSet());
addResourcesAndChildren(result, getResourcesInWorkingSet());
private Set getWorkingSetAsSetOfPaths() { if (cachedWorkingSet == null) { HashSet result = new HashSet(); addResourcesAndChildren(result, getResourcesInWorkingSet()); cachedWorkingSet = result; } return cachedWorkingSet; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
cachedWorkingSet = result; }
cachedWorkingSet = result; }
private Set getWorkingSetAsSetOfPaths() { if (cachedWorkingSet == null) { HashSet result = new HashSet(); addResourcesAndChildren(result, getResourcesInWorkingSet()); cachedWorkingSet = result; } return cachedWorkingSet; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java
return cachedWorkingSet; }
return cachedWorkingSet; }
private Set getWorkingSetAsSetOfPaths() { if (cachedWorkingSet == null) { HashSet result = new HashSet(); addResourcesAndChildren(result, getResourcesInWorkingSet()); cachedWorkingSet = result; } return cachedWorkingSet; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/MarkerFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerFilter.java