rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
refreshJob.addRemovedMarker(delta.getMarker());
removedMarkers.add(delta.getMarker());
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
if (!changedMarkers.isEmpty()) { MarkerList changed = getCurrentMarkers().findMarkers( changedMarkers); if (changed.getItemCount() > 0) { changed.refresh(); updateJob.refresh(changed); getProgressService().schedule(updateJob); } } if (addRefreshRequired(addedMarkers) || removeRefreshRequired(removedMarkers)) { updateJ...
public void resourceChanged(IResourceChangeEvent event) { String[] markerTypes = getMarkerTypes(); if(event.getType() == IResourceChangeEvent.PRE_BUILD){ refreshJob.buildDone = false; return; } if(event.getType() == IResourceChangeEvent.POST_BUILD){ refreshJob.buildDone = true; refreshJob.sch...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
uiRefreshJob.addJobChangeListener(listener);
updateJob.addJobChangeListener(listener);
public void addUpdateFinishListener(IJobChangeListener listener) { uiRefreshJob.addJobChangeListener(listener); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
filter.resetState();
private void createDefaultFilter() { MarkerFilter filter = createFilter(MarkerMessages.MarkerFilter_defaultFilterName); filter.resetState(); setFilters(new MarkerFilter[] { filter }); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
markerUpdateListener,IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.POST_BUILD);
markerUpdateListener, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.POST_BUILD);
public void createPartControl(Composite parent) { clipboard = new Clipboard(parent.getDisplay()); super.createPartControl(parent); initDragAndDrop(); getSite().getPage().addSelectionListener(focusListener); focusSelectionChanged(getSite().getPage().getActivePart(), getSite() .getPage().getSelection()); Resour...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
public void createPartControl(Composite parent) { clipboard = new Clipboard(parent.getDisplay()); super.createPartControl(parent); initDragAndDrop(); getSite().getPage().addSelectionListener(focusListener); focusSelectionChanged(getSite().getPage().getActivePart(), getSite() .getPage().getSelection()); Resour...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
if(!Util.isSingleConcreteSelection(structured))
if (!Util.isSingleConcreteSelection(structured))
void createShowInMenu(IMenuManager menu) { ISelection selection = getViewer().getSelection(); if (!(selection instanceof IStructuredSelection)) return; IStructuredSelection structured = (IStructuredSelection) selection; if(!Util.isSingleConcreteSelection(structured)) return; menu.add(new Separator(MENU_SHOW_I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
void createShowInMenu(IMenuManager menu) { ISelection selection = getViewer().getSelection(); if (!(selection instanceof IStructuredSelection)) return; IStructuredSelection structured = (IStructuredSelection) selection; if(!Util.isSingleConcreteSelection(structured)) return; menu.add(new Separator(MENU_SHOW_I...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
if(openAction.isEnabled())
if (openAction.isEnabled())
protected void handleOpenEvent(OpenEvent event) { if(openAction.isEnabled()) openAction.run(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
uiRefreshJob.removeJobChangeListener(listener);
updateJob.removeJobChangeListener(listener);
public void removeUpdateFinishListener(IJobChangeListener listener) { uiRefreshJob.removeJobChangeListener(listener); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
if (marker != null && getCurrentMarkers() != null){
if (marker != null)
protected IStructuredSelection restoreSelection(IMemento memento) { if (memento == null) { return new StructuredSelection(); } IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IMemento selectionMemento = memento.getChild(TAG_SELECTION); if (selectionMemento == null) { return new StructuredSelec...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
}
protected IStructuredSelection restoreSelection(IMemento memento) { if (memento == null) { return new StructuredSelection(); } IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IMemento selectionMemento = memento.getChild(TAG_SELECTION); if (selectionMemento == null) { return new StructuredSelec...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
((MarkerAdapter) getViewerInput()).markAllStale();
void updateFocusMarkers(Object[] elements) { boolean updateNeeded = updateNeeded(focusElements, elements); if (updateNeeded) { focusElements = elements; updateFilterSelection(elements); ((MarkerAdapter) getViewerInput()).markAllStale(); getViewer().refresh(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97da45b298c8fc6737c257bdf9b28c993ca2458c/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
if (contact.isNew() || contact.isModified()) { session = openSession(); if (contact.isNew()) { Contact contactModel = new Contact(); contactModel.setContactId(contact.getContactId()); contactModel.setCompanyId(contact.getCompanyId()); contactModel.setUserId(contact.getUserId()); contactModel.setUserName(contact.getUse...
session = openSession(); session.saveOrUpdate(contact); session.flush(); contact.setNew(false);
public com.liferay.portal.model.Contact update( com.liferay.portal.model.Contact contact) throws SystemException { Session session = null; try { if (contact.isNew() || contact.isModified()) { session = openSession(); if (contact.isNew()) { Contact contactModel = new Contact(); contactModel.setContac...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ContactPersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/ContactPersistence.java
if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getContentWidth(), (int) pageInfo.getContentHeight()); } else if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); extents = new Rectangle(0, 0, bnds.width, bnds.height); } else { extents = new Rectangle(...
extents = getBaseExtents(pageInfo);
protected LayoutContext newLayoutContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getConten...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/RootPanel.java/buggy/src/java/org/xhtmlrenderer/swing/RootPanel.java
if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getContentWidth(), (int) pageInfo.getContentHeight()); } else if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); extents = new Rectangle(0, 0, bnds.width, bnds.height); } else { extents = new Rectangle(...
extents = getBaseExtents(pageInfo);
protected RenderingContext newRenderingContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getSharedContext().setCanvas(this); Rectangle extents; if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.get...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/64c3183c146f6b53b2057df9750f030a3b20c4b2/RootPanel.java/buggy/src/java/org/xhtmlrenderer/swing/RootPanel.java
companyId, plid, languageId);;
companyId, plid, languageId, isIe);
public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if (USE_LAYOUT_CACHE_FILTER) { _log.debug("Layout Cache is enabled"); } else { _log.debug("Layout Cache is disabled"); } HttpServletRequest request = (HttpServletRequest)req; HttpServle...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/ed678eafef9f21b2ca10149aaf7679c2201d8133/LayoutCacheFilter.java/clean/portal-ejb/src/com/liferay/portal/servlet/filters/layoutcache/LayoutCacheFilter.java
LayoutCacheUtil.putLayoutCacheResponseData( companyId, plid, languageId, layoutCacheResponseData);
LayoutCacheUtil.putLayoutCacheResponseData(companyId, plid, languageId, isIe, layoutCacheResponseData);
public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if (USE_LAYOUT_CACHE_FILTER) { _log.debug("Layout Cache is enabled"); } else { _log.debug("Layout Cache is disabled"); } HttpServletRequest request = (HttpServletRequest)req; HttpServle...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/ed678eafef9f21b2ca10149aaf7679c2201d8133/LayoutCacheFilter.java/clean/portal-ejb/src/com/liferay/portal/servlet/filters/layoutcache/LayoutCacheFilter.java
if (shoppingCoupon.isNew() || shoppingCoupon.isModified()) { session = openSession(); if (shoppingCoupon.isNew()) { ShoppingCoupon shoppingCouponModel = new ShoppingCoupon(); shoppingCouponModel.setCouponId(shoppingCoupon.getCouponId()); shoppingCouponModel.setGroupId(shoppingCoupon.getGroupId()); shoppingCouponModel....
session = openSession(); session.saveOrUpdate(shoppingCoupon); session.flush(); shoppingCoupon.setNew(false);
public com.liferay.portlet.shopping.model.ShoppingCoupon update( com.liferay.portlet.shopping.model.ShoppingCoupon shoppingCoupon) throws SystemException { Session session = null; try { if (shoppingCoupon.isNew() || shoppingCoupon.isModified()) { session = openSession(); if (shoppingCoupon.isNew()) { S...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCouponPersistence.java/buggy/portal-ejb/src/com/liferay/portlet/shopping/service/persistence/ShoppingCouponPersistence.java
primitive.setCssText(Idents.convertIdent(cssName, org));
if (primitive.getCssText() == null) { primitive.setCssText(org); } String converted = Idents.convertIdent(cssName, org); if (!converted.equals(org)) { primitive.setCssText(converted); }
public DerivedValue(CSSName cssName, CSSPrimitiveValue primitive, CalculatedStyle style) { _cssName = cssName; _domCSSPrimitiveValue = primitive; String org = _domCSSPrimitiveValue.getCssText(); primitive.setCssText(Idents.convertIdent(cssName, org)); if (primitive.getCssText() ==...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/c96efe21dd32b0a4f0420c8495d49144792cbc9d/DerivedValue.java/buggy/src/java/org/xhtmlrenderer/css/style/DerivedValue.java
RubyException excptn = (RubyException) args[0].callMethod("exception", args[1]); throw new RaiseException(excptn);
if (args[0] == runtime.getClasses().getExceptionClass()) { throw new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } else { RubyString string = (RubyString) args[1]; RubyException excptn = RubyException.newException(runtime, (RubyClass)args[0], string.getValue()); throw new RaiseException(ex...
public static IRubyObject raise(IRubyObject recv, IRubyObject args[]) { Ruby runtime = recv.getRuntime(); switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables().get("$!"); if (defaultException.isNil()) { throw new RaiseEx...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f5666cc08176a37cfc1e814762070c244f395cf/KernelModule.java/clean/src/org/jruby/KernelModule.java
public void handleMapChange(IObservableMap source, MapDiff diff) { Set affectedElements = diff.getChangedKeys(); LabelProviderChangedEvent event = new LabelProviderChangedEvent(
public void handleMapChange(MapChangeEvent event) { Set affectedElements = event.diff.getChangedKeys(); LabelProviderChangedEvent newEvent = new LabelProviderChangedEvent(
public void handleMapChange(IObservableMap source, MapDiff diff) { Set affectedElements = diff.getChangedKeys(); LabelProviderChangedEvent event = new LabelProviderChangedEvent( ObservableMapLabelProvider.this, affectedElements .toArray()); fireLabelProviderChanged(event); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ObservableMapLabelProvider.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/viewers/ObservableMapLabelProvider.java
fireLabelProviderChanged(event);
fireLabelProviderChanged(newEvent);
public void handleMapChange(IObservableMap source, MapDiff diff) { Set affectedElements = diff.getChangedKeys(); LabelProviderChangedEvent event = new LabelProviderChangedEvent( ObservableMapLabelProvider.this, affectedElements .toArray()); fireLabelProviderChanged(event); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/ObservableMapLabelProvider.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/viewers/ObservableMapLabelProvider.java
c.getBlockFormattingContext().translate(0,-box.height);
public Box layoutChildren( Context c, Box box ) { //u.p("Layout.layoutChildren: " + box); Element elem = (Element)box.node; // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter( 0 ); // for each child NodeList nl = elem.getChildNodes()...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/48f7e8ac56665ccd1af5bb9c78da411ccbc5b8da/DefaultLayout.java/clean/src/java/org/xhtmlrenderer/layout/DefaultLayout.java
setDocument(x.loadDocument(filename),new File(filename).toURL());
URL url = new File(filename).toURL(); setDocument(loadDocument(url),url);
public void setDocument(String filename) throws Exception { setDocument(x.loadDocument(filename),new File(filename).toURL()); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea51acfd3b140038df806bfe7c06a86e282673ae/HTMLPanel.java/clean/src/java/org/joshy/html/HTMLPanel.java
Relative.setupRelative(c, new_inline);
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2486e0a7d32e8bf7a5ba0aa3c3626b52ad12da3c/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
new Text(textComposite, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY | SWT.BORDER);
new Text(textComposite, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY | SWT.BORDER | SWT.H_SCROLL);
private void createDescriptionArea(Composite mainComposite) { Composite textComposite = new Composite(mainComposite, SWT.NONE); textComposite.setLayoutData(new GridData(GridData.FILL_BOTH)); GridLayout textLayout = new GridLayout(); textLayout.marginWidth = 0; textLayout.marginHeight = 0; textComposite.setLayout...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8fe9d3fe77a1f30402c3438caca78a9ebc5bffd6/DecoratorsPreferencePage.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/DecoratorsPreferencePage.java
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2d0418135baea38113aec4c619576083cc381df4/ViewportBox.java/clean/src/java/org/xhtmlrenderer/render/ViewportBox.java
final RubyDateFormat rubyDateFormat = new RubyDateFormat("-", Locale.US);
public RubyString strftime(IRubyObject format) { rubyDateFormat.setCalendar(cal); rubyDateFormat.applyPattern(format.toString()); String result = rubyDateFormat.format(cal.getTime()); return getRuntime().newString(result); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/288f6b347dcd13a4261271562b871b3bb85d1cd1/RubyTime.java/buggy/src/org/jruby/RubyTime.java
viewer = null;
public void dispose() { //no-op }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cdc590064230a8543dcd910f93596ce961da1d7e/WizardContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardContentProvider.java
if (hasChildren(element))
if (!getFiltering() && hasChildren(element))
private void handleChild(Object element, ArrayList list) { if (element instanceof WizardCollectionElement) { if (hasChildren(element)) list.add(element); } else { if (getFiltering() && WorkbenchActivityHelper.filterItem(element)) { return; } list.add(element); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cdc590064230a8543dcd910f93596ce961da1d7e/WizardContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardContentProvider.java
if (getFiltering() && WorkbenchActivityHelper.filterItem(element)) { return; }
private void handleChild(Object element, ArrayList list) { if (element instanceof WizardCollectionElement) { if (hasChildren(element)) list.add(element); } else { if (getFiltering() && WorkbenchActivityHelper.filterItem(element)) { return; } list.add(element); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cdc590064230a8543dcd910f93596ce961da1d7e/WizardContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardContentProvider.java
this.viewer = viewer;
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { //no-op }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/cdc590064230a8543dcd910f93596ce961da1d7e/WizardContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardContentProvider.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/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/src/org/eclipse/core/databinding/observable/set/ListToSetAdapter.java
String variable = ParamUtil.getString(req, "variable");
String id = ParamUtil.getString(req, "id"); String callback = ParamUtil.getString(req, "callback");
protected String getContent(HttpServletRequest req, HttpServletResponse res) throws Exception { String variable = ParamUtil.getString(req, "variable"); JSONObject jsonObj = new JSONObject(); ServletContext ctx = getServletContext(); String script = StringUtil.read( ctx.getResourceAsStream("/click_image.js")); ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b5cc9c4eaf4897f51730cc777f5af4a427b25232/JSONServlet.java/buggy/portlets/sample-json-portlet.war/WEB-INF/src/com/sample/json/servlet/JSONServlet.java
return "var " + variable + "=" + jsonObj.toString() + ";\n";
return callback + "(" + jsonObj.toString() + ");";
protected String getContent(HttpServletRequest req, HttpServletResponse res) throws Exception { String variable = ParamUtil.getString(req, "variable"); JSONObject jsonObj = new JSONObject(); ServletContext ctx = getServletContext(); String script = StringUtil.read( ctx.getResourceAsStream("/click_image.js")); ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/b5cc9c4eaf4897f51730cc777f5af4a427b25232/JSONServlet.java/buggy/portlets/sample-json-portlet.war/WEB-INF/src/com/sample/json/servlet/JSONServlet.java
PortletPreferences prefs = AdminUtil.getPreferences(companyId);
PortletPreferences prefs = PrefsPropsUtil.getPreferences(companyId);
public void checkCompany(String companyId) throws PortalException, SystemException { // Company String companyMx = companyId; Date now = new Date(); Company company = null; try { company = CompanyUtil.findByPrimaryKey(companyId); } catch (NoSuchCompanyException nsce) { String portalURL = "localhost"; Str...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/CompanyLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/CompanyLocalServiceImpl.java
prefs.setValue("email-from-name", "Liferay Demo"); prefs.setValue("email-from-address", "test@liferay.net");
prefs.setValue( PropsUtil.ADMIN_EMAIL_FROM_NAME, "Liferay Demo"); prefs.setValue( PropsUtil.ADMIN_EMAIL_FROM_ADDRESS, "test@liferay.net");
public void checkCompany(String companyId) throws PortalException, SystemException { // Company String companyMx = companyId; Date now = new Date(); Company company = null; try { company = CompanyUtil.findByPrimaryKey(companyId); } catch (NoSuchCompanyException nsce) { String portalURL = "localhost"; Str...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/CompanyLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/CompanyLocalServiceImpl.java
Properties propertiesObj = PropertiesLocalServiceUtil.getPortalProperties(companyId);
PortletPreferences prefs = PrefsPropsUtil.getPreferences(companyId);
public void updateSecurity( String companyId, String authType, boolean autoLogin, boolean strangers) throws PortalException, SystemException { Properties propertiesObj = PropertiesLocalServiceUtil.getPortalProperties(companyId); propertiesObj.setProperty( PropsUtil.COMPANY_SECURITY_AUTH_TYPE, authType); pr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/CompanyLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/CompanyLocalServiceImpl.java
propertiesObj.setProperty( PropsUtil.COMPANY_SECURITY_AUTH_TYPE, authType); propertiesObj.setProperty( PropsUtil.COMPANY_SECURITY_AUTO_LOGIN, Boolean.toString(autoLogin)); propertiesObj.setProperty( PropsUtil.COMPANY_SECURITY_STRANGERS, Boolean.toString(strangers));
try { prefs.setValue(PropsUtil.COMPANY_SECURITY_AUTH_TYPE, authType); prefs.setValue( PropsUtil.COMPANY_SECURITY_AUTO_LOGIN, Boolean.toString(autoLogin)); prefs.setValue( PropsUtil.COMPANY_SECURITY_STRANGERS, Boolean.toString(strangers));
public void updateSecurity( String companyId, String authType, boolean autoLogin, boolean strangers) throws PortalException, SystemException { Properties propertiesObj = PropertiesLocalServiceUtil.getPortalProperties(companyId); propertiesObj.setProperty( PropsUtil.COMPANY_SECURITY_AUTH_TYPE, authType); pr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/CompanyLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/CompanyLocalServiceImpl.java
PropertiesLocalServiceUtil.updatePortalProperties( companyId, propertiesObj);
prefs.store(); } catch (IOException ioe) { throw new SystemException(ioe); } catch (PortletException pe) { throw new SystemException(pe); }
public void updateSecurity( String companyId, String authType, boolean autoLogin, boolean strangers) throws PortalException, SystemException { Properties propertiesObj = PropertiesLocalServiceUtil.getPortalProperties(companyId); propertiesObj.setProperty( PropsUtil.COMPANY_SECURITY_AUTH_TYPE, authType); pr...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/CompanyLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/CompanyLocalServiceImpl.java
public void handleSetChange(IObservableSet source, SetDiff diff) {
public void handleSetChange(SetChangeEvent event) {
public void handleSetChange(IObservableSet source, SetDiff diff) { if (!updating) { fireSetChange(diff); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableSet.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableSet.java
fireSetChange(diff);
fireSetChange(event.diff);
public void handleSetChange(IObservableSet source, SetDiff diff) { if (!updating) { fireSetChange(diff); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableSet.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableSet.java
public void handleValueChange(IObservableValue source, ValueDiff diff) {
public void handleValueChange(ValueChangeEvent event) {
public void handleValueChange(IObservableValue source, ValueDiff diff) { Set oldSet = new HashSet(wrappedSet); updateInnerObservableValue(outerObservableValue); fireSetChange(Diffs.computeSetDiff(oldSet, wrappedSet)); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableSet.java/clean/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableSet.java
model.setEditorSelectedPane(0);
model.setEditorSelectedPane(Editor.PROPERTIES_INDEX);
public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name == null) return; if (name.equals(TreeViewer.CANCEL_LOADING_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerControl.java
public void addExistingObjects(Set set);
public void addExistingObjects(DataObject ho);
public void addExistingObjects(Set set);
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewer.java
statusBar.setStatusIcon( b);
statusBar.setStatusIcon(b);
void setStatusIcon(boolean b) { if (b) setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); else setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); statusBar.setStatusIcon( b); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/TreeViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java
public ClassifyCmd(HiViewer model, int mode) { this(getImages(model), mode, model.getUI(), model.getUserDetails().getId(), model.getRootID());
public ClassifyCmd(ImageData[] images, int mode, JFrame owner, long userID, long groupID) { if (owner == null) throw new NullPointerException("No owner."); this.images = images; this.mode = mode; this.owner = owner; this.userID = userID; this.groupID = groupID;
public ClassifyCmd(HiViewer model, int mode) { this(getImages(model), mode, model.getUI(), model.getUserDetails().getId(), model.getRootID()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/947238c0240434ee7f77d0f2ecbd324bcbdfb460/ClassifyCmd.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ClassifyCmd.java
index++;
private static ImageData[] getImages(HiViewer model) { ImageData[] images = null; if (model != null) { Set nodes = model.getBrowser().getSelectedDisplays(); if (nodes != null) { Iterator i = nodes.iterator(); Object x; images = new ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/947238c0240434ee7f77d0f2ecbd324bcbdfb460/ClassifyCmd.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ClassifyCmd.java
SwingWorker worker = new SwingWorker() {
if (!(room instanceof ChatRoomImpl)) { return; } final SwingWorker userLoadingThread = new SwingWorker() {
private void loadUserInformation(final ChatRoom room, final String participantJID) { SwingWorker worker = new SwingWorker() { public Object construct() { return SparkManager.getVCardManager().getVCard(participantJID); } public void finished() { f...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
worker.start();
userLoadingThread.start();
private void loadUserInformation(final ChatRoom room, final String participantJID) { SwingWorker worker = new SwingWorker() { public Object construct() { return SparkManager.getVCardManager().getVCard(participantJID); } public void finished() { f...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f678f06c6fbc4a84079c230a0a7461759cb20755/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
final JScrollPane pane = new JScrollPane(browser); pane.setBorder(null); add(pane, BorderLayout.CENTER);
add(browser, BorderLayout.CENTER); browser.setMinimumSize(new Dimension(0, 0));
public TranscriptWindow() { setLayout(new BorderLayout()); themeManager = ThemeManager.getInstance(); vcardManager = SparkManager.getVCardManager(); extraPanel = new JPanel(); browser = new WebBrowser(); browser.setURL(themeManager.getTemplateURL()); browser.addWebBr...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ad8343da83861b145373d811238d8e2939352153/TranscriptWindow.java/buggy/src/java/org/jivesoftware/spark/ui/TranscriptWindow.java
public VCard getVCard(String jid) { if (!vcardMap.containsKey(jid)) { VCard vcard = new VCard();
public VCard getVCard() { if (!vcardLoaded) {
public VCard getVCard(String jid) { if (!vcardMap.containsKey(jid)) { VCard vcard = new VCard(); try { vcard.load(SparkManager.getConnection(), jid); vcardMap.put(jid, vcard); } catch (XMPPException e) { Log.warning("Una...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/VCardManager.java/buggy/src/java/org/jivesoftware/sparkimpl/profile/VCardManager.java
vcard.load(SparkManager.getConnection(), jid); vcardMap.put(jid, vcard);
vcard.load(SparkManager.getConnection());
public VCard getVCard(String jid) { if (!vcardMap.containsKey(jid)) { VCard vcard = new VCard(); try { vcard.load(SparkManager.getConnection(), jid); vcardMap.put(jid, vcard); } catch (XMPPException e) { Log.warning("Una...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/VCardManager.java/buggy/src/java/org/jivesoftware/sparkimpl/profile/VCardManager.java
Log.warning("Unable to load vcard for " + jid, e); vcard.setError(new XMPPError(409));
public VCard getVCard(String jid) { if (!vcardMap.containsKey(jid)) { VCard vcard = new VCard(); try { vcard.load(SparkManager.getConnection(), jid); vcardMap.put(jid, vcard); } catch (XMPPException e) { Log.warning("Una...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/VCardManager.java/buggy/src/java/org/jivesoftware/sparkimpl/profile/VCardManager.java
return (VCard)vcardMap.get(jid);
return vcard;
public VCard getVCard(String jid) { if (!vcardMap.containsKey(jid)) { VCard vcard = new VCard(); try { vcard.load(SparkManager.getConnection(), jid); vcardMap.put(jid, vcard); } catch (XMPPException e) { Log.warning("Una...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/0807e1b794eeaa6c07d31a5c351697146a85040b/VCardManager.java/buggy/src/java/org/jivesoftware/sparkimpl/profile/VCardManager.java
public void addArticleViews(IWBundle bundle){ ContentViewManager cViewManager = ContentViewManager.getInstance(bundle.getApplication()); ViewNode contentNode = cViewManager.getContentNode(); DefaultViewNode articleNode = new DefaultViewNode("article",contentNode); articleNode.setJspUri(bundle.getJSPURI("createar...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/IWBundleStarter.java/buggy/src/java/com/idega/block/article/IWBundleStarter.java
DefaultViewNode deleteArticleNode = new DefaultViewNode("delete",articleNode); deleteArticleNode.setJspUri(bundle.getJSPURI("deletearticle.jsp")); deleteArticleNode.setVisibleInMenus(false); deleteArticleNode.setName("#{localizedStrings['com.idega.block.article']['delete']}");
public void addArticleViews(IWBundle bundle){ ContentViewManager cViewManager = ContentViewManager.getInstance(bundle.getApplication()); ViewNode contentNode = cViewManager.getContentNode(); DefaultViewNode articleNode = new DefaultViewNode("article",contentNode); articleNode.setJspUri(bundle.getJSPURI("createar...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/IWBundleStarter.java/buggy/src/java/com/idega/block/article/IWBundleStarter.java
ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle();
public Boolean store() { boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } if (getRequestedStatus() != null && getRequestedS...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
public Boolean store() { boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } if (getRequestedStatus() != null && getRequestedS...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/RetryNode.java/clean/src/org/jruby/ast/RetryNode.java
ZYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy)
ZYPlane(PlaneDef pDef, Pixels pixels, MappedByteBuffer data)
ZYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/ZYPlane.java/buggy/components/rendering/src/omeis/providers/re/data/ZYPlane.java
super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy);
super(pDef, pixels, data);
ZYPlane(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { super(data, pDef, sizeX, sizeY, bytesPerPixel, strategy); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/ZYPlane.java/buggy/components/rendering/src/omeis/providers/re/data/ZYPlane.java
protected Plane2D(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy)
protected Plane2D(PlaneDef pDef, Pixels pixels, MappedByteBuffer data)
protected Plane2D(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { this.data = data; this.planeDef = pDef; this.sizeX = sizeX; this.sizeY = sizeY; this.bytesPerPixel = bytesPerPixel; this.strategy = strategy; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Plane2D.java/buggy/components/rendering/src/omeis/providers/re/data/Plane2D.java
this.planeDef = pDef; this.sizeX = sizeX; this.sizeY = sizeY; this.bytesPerPixel = bytesPerPixel; this.strategy = strategy;
this.data.order(ByteOrder.LITTLE_ENDIAN); PixelsType type = pixels.getPixelsType(); this.bytesPerPixel = PlaneFactory.bytesPerPixel(type); this.javaType = PlaneFactory.javaType(type);
protected Plane2D(byte[] data, PlaneDef pDef, int sizeX, int sizeY, int bytesPerPixel, BytesConverter strategy) { this.data = data; this.planeDef = pDef; this.sizeX = sizeX; this.sizeY = sizeY; this.bytesPerPixel = bytesPerPixel; this.strategy = strategy; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Plane2D.java/buggy/components/rendering/src/omeis/providers/re/data/Plane2D.java
private void buildEmptyPanel() { if (emptyMessagePanel != null) return; emptyMessagePanel = new JPanel(); emptyMessagePanel.setBorder( BorderFactory.createLineBorder(Color.BLACK)); Rectangle r = titlePanel.getBounds(); emptyMessagePanel.setLayout(new ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3e61288608c35981cf31d6efdc892bc088b005bd/EditorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
titleLayer.add(titlePanel, 0);
titleLayer.add(titlePanel, new Integer(0));
private void buildTitlePanel() { IconManager im = IconManager.getInstance(); switch (model.getEditorType()) { case Editor.CREATE_EDITOR: titlePanel = new TitlePanel(message, "Create a new "+ message.toLowerCase()+".", im.getI...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3e61288608c35981cf31d6efdc892bc088b005bd/EditorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
titleLayer.add(emptyMessagePanel, 1);
titleLayer.add(emptyMessagePanel, new Integer(1));
void handleEmptyNameArea() { warning = true; finishButton.setEnabled(false); buildEmptyPanel(); titleLayer.add(emptyMessagePanel, 1); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3e61288608c35981cf31d6efdc892bc088b005bd/EditorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
List getAnnotations(long ownerID) { return (List) annotations.get(new Long(ownerID)); }
Map getAnnotations() { return annotations; }
List getAnnotations(long ownerID) { return (List) annotations.get(new Long(ownerID)); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/EditorModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorModel.java
DOInfo(Map details, EditorModel model)
DOInfo(Map details, EditorModel model, boolean permission)
DOInfo(Map details, EditorModel model) { if (details == null) throw new IllegalArgumentException("Visualization map cannot be" + " null"); if (model == null) throw new IllegalArgumentException("No model."); this.model = model; buildGUI...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f24af159634bdc4228febad328548fbedecdb1d/DOInfo.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/DOInfo.java
buildGUI(details, null);
buildGUI(details, permission);
DOInfo(Map details, EditorModel model) { if (details == null) throw new IllegalArgumentException("Visualization map cannot be" + " null"); if (model == null) throw new IllegalArgumentException("No model."); this.model = model; buildGUI...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f24af159634bdc4228febad328548fbedecdb1d/DOInfo.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/DOInfo.java
data = null;
static Map transformPixelsData(PixelsData data) { LinkedHashMap details = new LinkedHashMap(8); if (data == null) { details.put(SIZE_X, ""); details.put(SIZE_Y, ""); details.put(PIXEL_SIZE_X, ""); details.put(PIXEL_SIZE_Y, ""); details.put(PIXE...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/19e616f1a21d8d2e1618b2797311c5290179232c/EditorUtil.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUtil.java
addResult(((RubyString) matchData.group(i)).getValue());
IRubyObject matchValue = matchData.group(i); if (!matchValue.isNil()) { addResult(((RubyString) matchValue).getValue()); }
private void process() { if (limit == 1) { result.add(splitee); return; } int last = 0; int beg = 0; int hits = 0; int len = splitee.length(); while ((beg = pattern.searchAgain(splitee)) > -1) { hits++; RubyMatchData matchData = (RubyMatchData) runtime.getCurrentCo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/77268b2ba9287b3c288cd7a953725815a97cd0d4/Split.java/buggy/src/org/jruby/util/Split.java
public RaiseException newArgumentError(int got, int expected);
public RaiseException newArgumentError(String message);
public RaiseException newArgumentError(int got, int expected);
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/IRuby.java/buggy/src/org/jruby/IRuby.java
return scriptFileName;
return getScriptFileName();
public String displayedFileName() { if (hasInlineScript()) { return "-e"; } else if (isSourceFromStdin()) { return "-"; } else { return scriptFileName; } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
File file = new File(scriptFileName);
File file = new File(getScriptFileName());
public Reader getScriptSource() { if (hasInlineScript()) { return new StringReader(inlineScript()); } else if (isSourceFromStdin()) { return new InputStreamReader(System.in); } else { File file = new File(scriptFileName); try { return n...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
return scriptFileName == null;
return getScriptFileName() == null;
private boolean isSourceFromStdin() { return scriptFileName == null; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
isBenchmarking = true;
benchmarking = true;
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : Main.printUsage(); b...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
sDoSplit = true;
split = true;
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : Main.printUsage(); b...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
shouldRunInterpreter = false;
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : Main.printUsage(); b...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
scriptFileName = arguments[argumentIndex];
setScriptFileName(arguments[argumentIndex]);
private void processArguments() { while (argumentIndex < arguments.length && isInterpreterArgument(arguments[argumentIndex])) { processArgument(); argumentIndex++; } if (! hasInlineScript()) { if (argumentIndex < arguments.length) { scriptFileName...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
System.arraycopy(arguments, argumentIndex, scriptArguments, 0, scriptArguments.length);
System.arraycopy(arguments, argumentIndex, getScriptArguments(), 0, getScriptArguments().length);
private void processArguments() { while (argumentIndex < arguments.length && isInterpreterArgument(arguments[argumentIndex])) { processArgument(); argumentIndex++; } if (! hasInlineScript()) { if (argumentIndex < arguments.length) { scriptFileName...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
return shouldRunInterpreter;
return isShouldRunInterpreter();
public boolean shouldRunInterpreter() { return shouldRunInterpreter; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
CategoryData c = (CategoryData) it.next(); cg.linkCategory((Category)mapper.map(c));
CategoryData cd = (CategoryData) it.next(); Category c = (Category)mapper.map( cd ); if ( ! linked( c.findCategoryGroupCategoryLink( cg ))) cg.linkCategory( c );
public IObject fillIObject( IObject obj, ReverseModelMapper mapper) { if ( obj instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) obj; if (super.fill(cg)) { cg.setName(this.getName()); cg.setDescription(this.getDescription(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b7d44d4a82558acd2336a661072dda1f38cfc0b3/CategoryGroupData.java/clean/components/shoola-adapter/src/pojos/CategoryGroupData.java
e.printStackTrace(System.err);
public void assertStringTemplateMatches(String templateText, String resultPattern) throws Exception { String result = null; try { result = executeStringTemplate(templateText); } catch (Exception e) { System.err.println("Execution of /" + templateText + "...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/ff709ec8523aa5b42a000462169b11be88cd46de/TemplateTestCase.java/clean/webmacro/test/unit/org/webmacro/template/TemplateTestCase.java
assertNotNull(Version.getDate(new Blank()));
assertNotNull(Version.getDate(Blank.class));
public void testGetDate() throws Exception { assertNotNull(Version.getDate(new Blank())); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/12f6ae8f254307cf501799bd57a8496e5a87439d/VersionTest.java/buggy/components/common/test/ome/system/utests/VersionTest.java
(Integer)Version.getRevision(new Blank()));
(Integer)Version.getRevision(Blank.class));
public void testGetRevision() throws Exception { assertEquals( (Integer)100, (Integer)Version.getRevision(new Blank())); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/12f6ae8f254307cf501799bd57a8496e5a87439d/VersionTest.java/buggy/components/common/test/ome/system/utests/VersionTest.java
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) {
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) {
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { // HACK +++ try { // HACK --- return getCallbackMethod().execute(recv, args, ruby); // HACK +++ } catch (RaiseException rrExcptn) { System.out.print("[BUG] Can...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/CFuncNode.java/clean/org/jruby/nodes/CFuncNode.java
return getCallbackMethod().execute(recv, args, ruby);
return getCallbackMethod().execute(recv, args == null ? null : args.toRubyArray(), ruby);
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { // HACK +++ try { // HACK --- return getCallbackMethod().execute(recv, args, ruby); // HACK +++ } catch (RaiseException rrExcptn) { System.out.print("[BUG] Can...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/CFuncNode.java/clean/org/jruby/nodes/CFuncNode.java
} String name = (String)ruby.getSymbolReverseTable().get(this); if (name != null) { return name;
public String toName() { if (value < Token.LAST_TOKEN) { RubyOperatorEntry[] opTable = ruby.getOperatorTable(); for (int i = 0; i < opTable.length; i++) { if (this.equals(opTable[i].token)) { return opTable[i].name; } } } Strin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/buggy/org/jruby/RubyId.java
if (isAttrSetId()) {
String name = (String)ruby.getSymbolReverseTable().get(this); if (name != null) { return name; } if (isAttrSetId()) {
public String toName() { if (value < Token.LAST_TOKEN) { RubyOperatorEntry[] opTable = ruby.getOperatorTable(); for (int i = 0; i < opTable.length; i++) { if (this.equals(opTable[i].token)) { return opTable[i].name; } } } Strin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/buggy/org/jruby/RubyId.java
} } return null;
} } return null;
public String toName() { if (value < Token.LAST_TOKEN) { RubyOperatorEntry[] opTable = ruby.getOperatorTable(); for (int i = 0; i < opTable.length; i++) { if (this.equals(opTable[i].token)) { return opTable[i].name; } } } Strin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyId.java/buggy/org/jruby/RubyId.java
state = ImViewer.LOADING_IMAGE;
BufferedImage getSplitComponentImage() { PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; OmeroImageService os = ImViewerAgent.getRegistry().getImageService(); try { return os.renderImage(pixelsID, pD...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java
un.notifyError(ImViewerAgent.ERROR, e.getMessage(), e.getCause());
un.notifyError(ImViewerAgent.ERROR, e.getExtendedMessage(), e.getCause());
private void handleException(RenderingServiceException e) { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyError(ImViewerAgent.ERROR, e.getMessage(), e.getCause()); component.discard(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java
throw new RubyBugException("can't convert to UTF8");
Asserts.assertNotReached("can't convert to UTF8");
public static RubyString pack(ArrayList list, RubyString iFmt) { Ruby ruby = iFmt.getRuntime(); char[] lFmt = iFmt.getValue().toCharArray(); int lFmtLength = lFmt.length; int idx = 0; int lLeftInArray = list.size(); StringBuffer lResult = new StringBuffer(); IRubyObj...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/Pack.java/clean/org/jruby/util/Pack.java
throw new RubyBugException("can't convert from UTF8");
Asserts.assertNotReached("can't convert from UTF8");
public static RubyArray unpack(String value, RubyString iFmt) { Ruby ruby = iFmt.getRuntime(); char[] lFmt = iFmt.getValue().toCharArray(); int lFmtLength = lFmt.length; RubyArray lResult = RubyArray.newArray(ruby); int lValueLength = value.length(); int lCurValueIdx = 0; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/Pack.java/clean/org/jruby/util/Pack.java
IRubyObject convertToType(String string, String string1, boolean b);
IRubyObject convertToType(String targetType, String convertMethod, boolean raiseOnError);
IRubyObject convertToType(String string, String string1, boolean b);
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/50d6342dd5da06c42d25bc955addce6aaa0e6b97/IRubyObject.java/buggy/src/org/jruby/runtime/builtin/IRubyObject.java
throw new RubyBugException("unsupported encoding " + e);
Asserts.assertNotReached("unsupported encoding " + e); return null;
public static String bytesToString(byte[] bytes) { try { return new String(bytes, encoding); } catch (java.io.UnsupportedEncodingException e) { throw new RubyBugException("unsupported encoding " + e); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyString.java/buggy/org/jruby/RubyString.java
public static RubyArray newArray(Ruby ruby) { /* Ruby arrays default to holding 16 elements, so we create an * ArrayList of the same size if we're not told otherwise */ return new RubyArray(ruby, new ArrayList(16));
public static RubyArray newArray(Ruby ruby, long len) { return new RubyArray(ruby, new ArrayList((int) len));
public static RubyArray newArray(Ruby ruby) { /* Ruby arrays default to holding 16 elements, so we create an * ArrayList of the same size if we're not told otherwise */ return new RubyArray(ruby, new ArrayList(16)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0335f0acaf11ca0feb41907f65e7274f8ed49fc3/RubyArray.java/buggy/org/jruby/RubyArray.java