rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (workingSet == null) { return false; } Set workingSetPaths = getWorkingSetAsSetOfPaths();
if (workingSet == null) { return false; } Set workingSetPaths = getWorkingSetAsSetOfPaths();
private boolean isEnclosed(IResource element) { if (workingSet == null) { return false; } Set workingSetPaths = getWorkingSetAsSetOfPaths(); return workingSetPaths.contains(element.getFullPath().toString()); }
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 workingSetPaths.contains(element.getFullPath().toString()); }
return workingSetPaths.contains(element.getFullPath().toString()); }
private boolean isEnclosed(IResource element) { if (workingSet == null) { return false; } Set workingSetPaths = getWorkingSetAsSetOfPaths(); return workingSetPaths.contains(element.getFullPath().toString()); }
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 (onResource == ON_ANY_RESOURCE || marker == null) return true;
if (onResource == ON_ANY_RESOURCE || marker == null) return true;
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 (focusResource == null) return true;
if (focusResource == null) return true;
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 resource = marker.getResource();
IResource resource = marker.getResource();
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 (onResource == ON_WORKING_SET) { if (workingSet == null) return true;
if (onResource == ON_WORKING_SET) { if (workingSet == null) return true;
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 (resource != null) return isEnclosed(resource);
if (resource != null) return isEnclosed(resource);
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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
} else if (onResource == ON_ANY_RESOURCE_OF_SAME_PROJECT) { IProject project = resource.getProject();
} else if (onResource == ON_ANY_RESOURCE_OF_SAME_PROJECT) { IProject project = resource.getProject();
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 (project == null) { return false; }
if (project == null) { return false; }
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 i = 0; i < focusResource.length; i++) { IProject selectedProject = focusResource[i].getProject();
for (int i = 0; i < focusResource.length; i++) { IProject selectedProject = focusResource[i].getProject();
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 (selectedProject == null) { continue; }
if (selectedProject == null) { continue; }
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 (project.equals(selectedProject)) return true; } } else if (onResource == ON_SELECTED_RESOURCE_ONLY) { for (int i = 0; i < focusResource.length; i++) { if (resource.equals(focusResource[i])) return true; } } else if (onResource == ON_SELECTED_RESOURCE_AND_CHILDREN) { for (int i = 0; i < focusResource.length; i++) { ...
if (project.equals(selectedProject)) return true; } } else if (onResource == ON_SELECTED_RESOURCE_ONLY) { for (int i = 0; i < focusResource.length; i++) { if (resource.equals(focusResource[i])) return true; } } else if (onResource == ON_SELECTED_RESOURCE_AND_CHILDREN) { for (int i = 0; i < focusResource.length; i++) { ...
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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
while (parentResource != null) { if (parentResource.equals(focusResource[i])) return true;
while (parentResource != null) { if (parentResource.equals(focusResource[i])) return true;
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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
parentResource = parentResource.getParent(); } } }
parentResource = parentResource.getParent(); } } }
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 false; }
return false; }
private boolean selectBySelection(ConcreteMarker marker) { if (onResource == ON_ANY_RESOURCE || marker == null) return true; if (focusResource == null) return true; IResource resource = marker.getResource(); if (onResource == ON_WORKING_SET) { if (working...
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 selectedTypes.contains(typesModel.getType(marker.getType())); }
return selectedTypes.contains(typesModel.getType(marker.getType())); }
private boolean selectByType(ConcreteMarker marker) { return selectedTypes.contains(typesModel.getType(marker.getType())); }
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
this.filterOnMarkerLimit = filterOnMarkerLimit; }
this.filterOnMarkerLimit = filterOnMarkerLimit; }
void setFilterOnMarkerLimit(boolean filterOnMarkerLimit) { this.filterOnMarkerLimit = filterOnMarkerLimit; }
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
this.markerLimit = markerLimit; }
this.markerLimit = markerLimit; }
void setMarkerLimit(int markerLimit) { this.markerLimit = markerLimit; }
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
list.add(p.getNonIncludedClass());
if(!p.isSingleton()) { list.add(p.getNonIncludedClass()); }
public List getAncestorList() { ArrayList list = new ArrayList(); for (RubyModule p = this; p != null; p = p.getSuperClass()) { list.add(p.getNonIncludedClass()); } return list; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5bc71e28b1eaf86dad8873c8a5a57fd14fdde448/RubyModule.java/clean/src/org/jruby/RubyModule.java
if (jobTreeElement == null) return false;
public boolean refresh() { Job job= getJob(); checkKeep(); String name= jobTreeElement.getDisplayString(); if (jobTreeElement instanceof SubTaskInfo) { SubTaskInfo sti= (SubTaskInfo) jobTreeElement; if (sti.jobInfo != null) { TaskInfo ti= sti.jobInfo.getTaskInfo(); if (ti != null) { Stri...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a4ca068eb20cc643c072623045a44f210ecadb25/NewProgressViewer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/NewProgressViewer.java
if (element == null) return true;
private boolean filtered(Object element) { if (!dialogContext && ProgressViewUpdater.getSingleton().debug) // display all in debug mode return false; if (element instanceof JobInfo) return jobFiltered((JobInfo) element); if (element instanceof GroupInfo) { Object[] children = ((Gro...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a4ca068eb20cc643c072623045a44f210ecadb25/NewProgressViewer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/NewProgressViewer.java
public FloatedBlockContent(Element e, CalculatedStyle style) {
FloatedBlockContent(Element e, CascadedStyle style) {
public FloatedBlockContent(Element e, CalculatedStyle style) { _elem = e; _style = style; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/FloatedBlockContent.java/buggy/src/java/org/xhtmlrenderer/layout/content/FloatedBlockContent.java
public CalculatedStyle getStyle() {
public CascadedStyle getStyle() {
public CalculatedStyle getStyle() { return _style; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/FloatedBlockContent.java/buggy/src/java/org/xhtmlrenderer/layout/content/FloatedBlockContent.java
RubyBoolean handled = (RubyBoolean) (args[i].callMethod("===", currentException)); return handled.isTrue();
if (args[i].callMethod("===", currentException).isTrue()) return true;
private boolean isRescueHandled(RubyException currentException, ListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getExceptions().getStandardError()); } Block tmpBlock = threadContext.beginCallArgs(); IRubyObject[] args = null; ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c24d8068740a9862f992d713ab972d7a6655e24a/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
System.out.println(" -R 'name' The regexp engine to use, for now can be JDK, GNU or ORO");
public static void printUsage() { if (!hasPrintedUsage) { System.out.println("Usage: jruby [switches] [rubyfile.rb] [arguments]"); System.out.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); System.out.println(" -b b...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/Main.java/buggy/src/org/jruby/Main.java
String companyId, String className, String classPK, String name,
String userId, String className, String classPK, String name,
public Group addGroup( String companyId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, companyId, name); } validateFriendlyURL(null, companyId, friendlyURL); Stri...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
validateName(null, companyId, name);
validateName(null, user.getCompanyId(), name);
public Group addGroup( String companyId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, companyId, name); } validateFriendlyURL(null, companyId, friendlyURL); Stri...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
validateFriendlyURL(null, companyId, friendlyURL);
validateFriendlyURL(null, user.getCompanyId(), friendlyURL);
public Group addGroup( String companyId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, companyId, name); } validateFriendlyURL(null, companyId, friendlyURL); Stri...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
group.setCompanyId(companyId);
group.setCompanyId(user.getCompanyId());
public Group addGroup( String companyId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, companyId, name); } validateFriendlyURL(null, companyId, friendlyURL); Stri...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
LayoutSetLocalServiceUtil.addLayoutSet( Layout.PRIVATE + groupId, companyId);
public Group addGroup( String companyId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, companyId, name); } validateFriendlyURL(null, companyId, friendlyURL); Stri...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
Layout.PUBLIC + groupId, companyId);
Layout.PRIVATE + groupId, user.getCompanyId()); LayoutSetLocalServiceUtil.addLayoutSet( Layout.PUBLIC + groupId, user.getCompanyId()); if (Validator.isNull(className) && Validator.isNull(classPK)) { Role role = RoleLocalServiceUtil.addRole( user.getCompanyId(), "GROUP_" + groupId + "_ADMINISTRATOR", Group.class.ge...
public Group addGroup( String companyId, String className, String classPK, String name, String friendlyURL) throws PortalException, SystemException { if (Validator.isNull(className) || Validator.isNull(classPK)) { validateName(null, companyId, name); } validateFriendlyURL(null, companyId, friendlyURL); Stri...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
try { Role role = RoleLocalServiceUtil.getGroupRole( group.getCompanyId(), groupId); RoleLocalServiceUtil.deleteRole(role.getRoleId()); } catch (NoSuchRoleException nsre) { }
public void deleteGroup(String groupId) throws PortalException, SystemException { Group group = GroupUtil.findByPrimaryKey(groupId); if (PortalUtil.isSystemGroup(group.getName())) { throw new RequiredGroupException(); } // Layout sets LayoutSetLocalServiceUtil.deleteLayoutSet(Layout.PRIVATE + groupId); Layout...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f3ad9fb1651cda52873ea772c3df0bb9bd03b52f/GroupLocalServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/GroupLocalServiceImpl.java
private static Box layout(LayoutContext c, BlockBox block, Content content, StyleSetListener listener) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } Rectangle oe = c...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0756aea1531c992a3edd221241cc666701847e91/Boxing.java/buggy/src/java/org/xhtmlrenderer/layout/Boxing.java
throw new ArgumentError(runtime, "Wrong # of arguments (" + valueLen + " for " + varLen + ")");
throw runtime.newArgumentError("Wrong # of arguments (" + valueLen + " for " + varLen + ")");
public IRubyObject mAssign(IRubyObject self, MultipleAsgnNode node, RubyArray value, boolean pcall) { // Assign the values. int valueLen = value.getLength(); int varLen = ListNodeUtil.getLength(node.getHeadNode()); Iterator iter = node.getHeadNode() != null ? node.getHeadNode().i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
new AssignmentVisitor(runtime, self).assign(node.getArgsNode(), RubyArray.newArray(runtime, newList), pcall);
new AssignmentVisitor(runtime, self).assign(node.getArgsNode(), runtime.newArray(newList), pcall);
public IRubyObject mAssign(IRubyObject self, MultipleAsgnNode node, RubyArray value, boolean pcall) { // Assign the values. int valueLen = value.getLength(); int varLen = ListNodeUtil.getLength(node.getHeadNode()); Iterator iter = node.getHeadNode() != null ? node.getHeadNode().i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
new AssignmentVisitor(runtime, self).assign(node.getArgsNode(), RubyArray.newArray(runtime, 0), pcall);
new AssignmentVisitor(runtime, self).assign(node.getArgsNode(), runtime.newArray(0), pcall);
public IRubyObject mAssign(IRubyObject self, MultipleAsgnNode node, RubyArray value, boolean pcall) { // Assign the values. int valueLen = value.getLength(); int varLen = ListNodeUtil.getLength(node.getHeadNode()); Iterator iter = node.getHeadNode() != null ? node.getHeadNode().i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
throw new ArgumentError(runtime, "Wrong # of arguments (" + valueLen + " for " + varLen + ")");
throw runtime.newArgumentError("Wrong # of arguments (" + valueLen + " for " + varLen + ")");
public IRubyObject mAssign(IRubyObject self, MultipleAsgnNode node, RubyArray value, boolean pcall) { // Assign the values. int valueLen = value.getLength(); int varLen = ListNodeUtil.getLength(node.getHeadNode()); Iterator iter = node.getHeadNode() != null ? node.getHeadNode().i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
return RubyArray.newArray(runtime, 0);
return runtime.newArray(0);
private IRubyObject sValueToMRHS(IRubyObject value, Node leftHandSide) { if (value == null) { return RubyArray.newArray(runtime, 0); } if (leftHandSide == null) { return RubyArray.newArray(runtime, value); } IRubyObject newValue = value.conver...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
return RubyArray.newArray(runtime, value);
return runtime.newArray(value);
private IRubyObject sValueToMRHS(IRubyObject value, Node leftHandSide) { if (value == null) { return RubyArray.newArray(runtime, 0); } if (leftHandSide == null) { return RubyArray.newArray(runtime, value); } IRubyObject newValue = value.conver...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
return RubyArray.newArray(runtime, value);
return runtime.newArray(value);
private IRubyObject sValueToMRHS(IRubyObject value, Node leftHandSide) { if (value == null) { return RubyArray.newArray(runtime, 0); } if (leftHandSide == null) { return RubyArray.newArray(runtime, value); } IRubyObject newValue = value.conver...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
throw new ArgumentError(runtime, "wrong # of arguments(" +
throw runtime.newArgumentError("wrong # of arguments(" +
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
if (currentBounds.intersects(lastBounds)) { if (direction == LEFT) { currentBounds.x = lastBounds.x + last.getWidth(); } else if (direction == RIGHT) { currentBounds.x = lastBounds.y - current.getWidth(); }
moveOver = true; } if (currentBounds.y >= lastBounds.y && currentBounds.y < lastBounds.y + lastBounds.width) { moveOver = true; } if (moveOver) { if (direction == LEFT) { currentBounds.x = lastBounds.x + last.getWidth(); } else if (direction == RIGHT) { currentBounds.x = lastBounds.x - current.getWidth();
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); FloatedBlockBox last = (FloatedBlockBox)floats.g...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
public void floatLeft(CssContext cssCtx, BlockFormattingContext bfc,
private void floatLeft(CssContext cssCtx, BlockFormattingContext bfc,
public void floatLeft(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, LEFT); save(current, bfc, LEFT); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
public void floatRight(CssContext cssCtx, BlockFormattingContext bfc,
private void floatRight(CssContext cssCtx, BlockFormattingContext bfc,
public void floatRight(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, RIGHT); save(current, bfc, RIGHT); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
FloatedBlockBox current, List floats) {
Box current, List floats) {
private void moveClear(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, List floats) { Point offset = bfc.getOffset(); Rectangle bounds = current.getBounds(cssCtx, -offset.x, -offset.y); int y = findLowestAbsoluteY(cssCtx, floats); if (b...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
}
} c.getGraphics().translate(-master.x, -master.y); c.translate(-master.x, -master.y);
public void paintFloats(RenderingContext c) { for (Iterator i = leftFloats.iterator(); i.hasNext(); ) { Box floater = (Box)i.next(); Point offset = (Point)offsetMap.get(floater); floater.paint(c, -offset.x, -offset.y); } for (Iterator i = rightFloats.ite...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
if (current.getStyle().isCleared()) { clear(cssCtx, bfc, current); }
private void position(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { moveAllTheWayOver(current, direction); alignToLastFloat(cssCtx, bfc, current, direction); if (! fitsInContainingBlock(current) || overlaps(cssCtx, b...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
public static Map getTokens(String companyId, String rootPath) {
public static Map getTokens(String companyId, String rootPath) throws PortalException, SystemException {
public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/JournalUtil.java/clean/portal-ejb/src/com/liferay/portlet/journal/util/JournalUtil.java
String portalCtx = CompanyPropsUtil.get(
String portalCtx = PrefsPropsUtil.getString(
public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/58a5501f2dec858b085420e7613b08c0cdc7f24d/JournalUtil.java/clean/portal-ejb/src/com/liferay/portlet/journal/util/JournalUtil.java
ruby.getBlockStack().setCurrent(this);
ruby.getBlockStack().setCurrent(this.cloneBlock());
public IRubyObject call(IRubyObject[] args) { Ruby ruby = self.getRuntime(); Block oldBlock = ruby.getBlockStack().getCurrent(); ruby.getBlockStack().setCurrent(this); ruby.getIterStack().push(Iter.ITER_CUR); ruby.getCurrentFrame().setIter(Iter.ITER_CUR); try { r...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/aa3fe2195e86c2c426f4012089ef8c66a66e925c/Block.java/buggy/org/jruby/runtime/Block.java
Asserts.assertExpression(this != newNext);
public void setNext(StackElement newNext) { this.next = (Block) newNext; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/aa3fe2195e86c2c426f4012089ef8c66a66e925c/Block.java/buggy/org/jruby/runtime/Block.java
public static void paint( Context c, Box box, boolean stylePushed, boolean restyle ) { // Uu.p("BoxRenderer.paint " + box); Box block = (Box)box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset //set the current style CascadedStyle style = nul...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5086b83adcd84ee5038e200ef6c1d3615ae5e011/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
int xoff = -rect.x; int yoff = -rect.y;
int xoff = 0; int yoff = 0; BlockFormattingContext bfc = c.getBlockFormattingContext(); xoff += bfc.getX(); yoff += bfc.getY(); xoff += bfc.getMaster().getPaddingEdge().left; yoff += bfc.getMaster().getPaddingEdge().top;
public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5086b83adcd84ee5038e200ef6c1d3615ae5e011/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5086b83adcd84ee5038e200ef6c1d3615ae5e011/BoxRendering.java/buggy/src/java/org/xhtmlrenderer/render/BoxRendering.java
if (configuration.getBlockVariables() != null) { blockNamesStack.push(new BlockNamesElement(configuration.getBlockVariables())); }
public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); List names = configuration.getLocalVariables(); if (names != null && names.size() > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); localNames.setNames(new ArrayList...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/891537786e5eb4b3643a5139887d9509805c3579/ParserSupport.java/buggy/src/org/jruby/parser/ParserSupport.java
classNest = configuration.isClassNest() ? 1 : 0;
public void reset() { localNamesStack = new Stack(); blockNamesStack = new BlockNamesStack(localNamesStack); inSingle = 0; inDef = false; inDefined = false; classNest = configuration.isClassNest() ? 1 : 0; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/891537786e5eb4b3643a5139887d9509805c3579/ParserSupport.java/buggy/src/org/jruby/parser/ParserSupport.java
}
} else if (node instanceof CallNode) { return Arity.singleArgument(); }
private static Arity procArityOf(Node node) { if (node == null) { return Arity.optional(); } else if (node instanceof IArityNode) { return ((IArityNode) node).getArity(); } throw new Error("unexpected type " + node.getClass() + " at " + node.getPosition()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fcf871426597e5c3c151ffc04190117f8bccd9a4/EvaluateCallable.java/buggy/src/org/jruby/internal/runtime/methods/EvaluateCallable.java
MessageWait msgWait = new MessageWait();
MessageWait msgWait = jabberSes.getMessageWait(); if (msgWait != null) { jabberSes.setMessageWait(null); msgWait.notify(); } msgWait = new MessageWait();
protected JSONObject getUpdates(HttpServletRequest req) { HttpSession ses = req.getSession(); JabberSession jabberSes = (JabberSession) ses.getAttribute(WebKeys.JABBER_XMPP_SESSION); JSONObject jo = new JSONObject(); String waitCmd = ""; try { MessageWait msgWait = new MessageWait(); msgWait.setSessionId(ses....
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/60f742bb14800617acf351957bd3e933a562445a/MessagingAction.java/buggy/portal-ejb/src/com/liferay/portlet/messaging/action/MessagingAction.java
setState(IStackPresentationSite.STATE_RESTORED);
Rectangle bounds = Geometry.toDisplay(getParent(), getPresentation().getControl().getBounds()); float xpct = (initialLocation.x - bounds.x) / (float)(bounds.width); float ypct = (initialLocation.y - bounds.y) / (float)(bounds.height); setState(IStackPresentationSite.STATE_RESTORED); bounds = Geometry.toDisplay(getP...
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0416003558d859c87f8adb63704c8017af7e68ba/PartStack.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartStack.java
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0416003558d859c87f8adb63704c8017af7e68ba/PartStack.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartStack.java
presentationSite .setState(IStackPresentationSite.STATE_RESTORED);
Rectangle bounds = Geometry.toDisplay(getParent(), getPresentation().getControl().getBounds()); float xpct = (initialLocation.x - bounds.x) / (float)(bounds.width); float ypct = (initialLocation.y - bounds.y) / (float)(bounds.height); presentationSite.setState(IStackPresentationSite.STATE_RESTORED); bounds = Geome...
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0416003558d859c87f8adb63704c8017af7e68ba/PartStack.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartStack.java
return CSSPrimitiveValue.CSS_PT;
return CSSPrimitiveValue.CSS_PX;
public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/794bef6c836a266f6bb86ba30929fb2f32d33147/ValueConstants.java/clean/src/java/org/xhtmlrenderer/css/constants/ValueConstants.java
cal.roll(Calendar.DAY_OF_MONTH, false);
cal.add(Calendar.DATE, -1);
private String _getPreviewHeaders(HttpServletRequest req) throws Exception { JSONObject jsonObj = new JSONObject(); String folderId = ParamUtil.getString(req, "folderId"); String sortBy = ParamUtil.getString(req, "sortBy"); boolean asc = ParamUtil.getBoolean(req, "asc"); SortedSet set; MailUtil.setCurrentFolder(...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5c03501b763f9d0d212f0f019c42f6b795087daa/MailboxAction.java/buggy/portal-ejb/src/com/liferay/portlet/mailbox/action/MailboxAction.java
throw new TypeError(runtime, "can't make subclass of virtual class");
throw getRuntime().newTypeError("can't make subclass of virtual class");
protected RubyClass subclass() { throw new TypeError(runtime, "can't make subclass of virtual class"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/MetaClass.java/buggy/src/org/jruby/MetaClass.java
HttpSession ses = req.getSession();
protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8709d8e0fc311f4a6afa386308d754ac41660b3e/MailAction.java/buggy/portal-ejb/src/com/liferay/portlet/mail/action/MailAction.java
String folderName = ParamUtil.getString(req, "folderName");
String folderId = ParamUtil.getString(req, "folderId");
protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8709d8e0fc311f4a6afa386308d754ac41660b3e/MailAction.java/buggy/portal-ejb/src/com/liferay/portlet/mail/action/MailAction.java
MailUtil.moveMessages(req.getSession(), messages, folderName);
MailUtil.moveMessages(req.getSession(), messages, folderId);
protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8709d8e0fc311f4a6afa386308d754ac41660b3e/MailAction.java/buggy/portal-ejb/src/com/liferay/portlet/mail/action/MailAction.java
System.out.println("Got BP header request from mote " + id);
CompassTools.debugPrintln("Got BP header request from mote " + id);
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
System.out.println("BP could not be built for mote " + id + "!");
CompassTools.debugPrintln("BP could not be built for mote " + id + "!");
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
System.out.println("Got BP header ack from mote " + id);
CompassTools.debugPrintln("Got BP header ack from mote " + id);
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
System.out.println("Got BP data ack from mote " + id);
CompassTools.debugPrintln("Got BP data ack from mote " + id);
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
System.out.println("BP sent to mote " + id + " complete");
CompassTools.debugPrintln("BP sent to mote " + id + " complete");
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
System.out.println("Sent BP data (" + (curPackNum + 1) + "/" + numPacks
CompassTools.debugPrintln("Sent BP data (" + (curPackNum + 1) + "/" + numPacks
private void sendData() { UnicastPack pack = new UnicastPack(); pack.set_data_type(BigPack.BIGPACKDATA); pack.set_data_data_bpData_curPack(curPackNum); int firstByte = curPackNum * BigPack.BP_DATA_LEN; int length = BigPack.BP_DATA_LEN; if ((firstByte + length) > stream.length) length = stream.length - firstByt...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
System.out.println("Sent BP header (0/" + numPacks + ") to mote "
CompassTools.debugPrintln("Sent BP header (0/" + numPacks + ") to mote "
private void sendHeader() { UnicastPack pack = new UnicastPack(); pack.set_data_type(BigPack.BIGPACKHEADER); pack.set_data_data_bpHeader_requestType(type); pack.set_data_data_bpHeader_packTotal((short) numPacks); pack.set_data_data_bpHeader_byteTotal(stream.length); pack.set_data_data_bpHeader_numBlocks((short) ...
52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/ef288b4400bc8209627f2dafd246545644c05d05/Packer.java/buggy/java/edu/rice/compass/bigpack/Packer.java
if ( block.attachment != null && block.attachment.equals( "fixed" ) ) {
if ( block.attachment == IdentValue.FIXED ) {
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.get...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a605863fc3cc1fcc7ccc20120bffcf5bc507cadd/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
int iw = block.background_image.getWidth( null ); int ih = block.background_image.getHeight( null ); /* * KEEP JMM (11/16) * xoff = block width - image width * pos * pos = 0 * block width = 300 * image width = 100 * if pos = 0 then * xoff = 0 * if pos = 1 then * xoff = 200 */ xoff += (int)( (double)( back_width - iw ...
xoff += block.background_position_horizontal; yoff -= block.background_position_vertical;
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.get...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a605863fc3cc1fcc7ccc20120bffcf5bc507cadd/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
work.getRunnable().run();
Runnable runnable = work.getRunnable(); if (runnable != null) runnable.run();
void doPendingWork() { Semaphore work; while ((work = pendingWork.remove()) != null) { try { currentWork = work; work.getRunnable().run(); } finally { currentWork = null; work.release(); } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/671d3355ccd1b30ffecee025009608f344bf8f86/UILockListener.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/UILockListener.java
if (changeableTypes != null)
if (publicTypes != null)
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata) { super.initState(state, portlet, rundata); PortletConfig config = portlet.getPortletConfig(); // types of sites that can either be public or private String changeableTypes = StringUtil.trimToNull(config.getInitParam...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/e48bce269d4a8abd19dc6712ca7931e253c4668f/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
i1 = Integer.parseInt(((CourseMember) o1).getId());
i1 = Integer.parseInt(((CourseMember) o1).getUniqname());
public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String ...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/f0c8338e2acb75f515fc89e4417d64954393d26b/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
i2 = Integer.parseInt(((CourseMember) o2).getId());
i2 = Integer.parseInt(((CourseMember) o2).getUniqname());
public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String ...
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/f0c8338e2acb75f515fc89e4417d64954393d26b/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
RubyBignum bignum = RubyBignum.newBignum(runtime, value);
RubyBignum bignum = RubyBignum.newBignum(getRuntime(), value);
public RubyFixnum aref(RubyNumeric other) { long position = other.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.newBignum(runtime, value); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return RubySymbol.getSymbol(runtime, value).convertToString();
return RubySymbol.getSymbol(getRuntime(), value).convertToString();
public IRubyObject id2name() { return RubySymbol.getSymbol(runtime, value).convertToString(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
output.dumpObject(RubyBignum.newBignum(runtime, value));
output.dumpObject(RubyBignum.newBignum(getRuntime(), value));
public void marshalTo(MarshalStream output) throws java.io.IOException { if (value <= MAX_MARSHAL_FIXNUM) { output.write('i'); output.dumpInt((int) value); } else { output.dumpObject(RubyBignum.newBignum(runtime, value)); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return newFixnum(runtime, -1);
return runtime.newFixnum(-1);
public static RubyFixnum minus_one(Ruby runtime) { return newFixnum(runtime, -1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return newFixnum(runtime, 1);
return runtime.newFixnum(1);
public static RubyFixnum one(Ruby runtime) { return newFixnum(runtime, 1); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return newFixnum(getRuntime(), div);
return getRuntime().newFixnum(div);
public RubyNumeric op_div(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_div(other); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
RubyBignum.newBignum(runtime,
RubyBignum.newBignum(getRuntime(),
public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(runtime, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
RubyBignum.newBignum(runtime,
RubyBignum.newBignum(getRuntime(),
public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(runtime, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return newFixnum(getRuntime(), mod);
return getRuntime().newFixnum(mod);
public RubyNumeric op_mod(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_mod(other); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return newFixnum(getRuntime(), 1);
return getRuntime().newFixnum(1);
public RubyNumeric op_pow(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } if (other.getLongValue() == 0) { return newFixnum(getRuntime(), 1); } else if (other.getLongValue() == 1) { return this; }...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return new RubyFloat(runtime, op_div(other).getDoubleValue());
return new RubyFloat(getRuntime(), op_div(other).getDoubleValue());
public RubyNumeric quo(RubyNumeric other) { return new RubyFloat(runtime, op_div(other).getDoubleValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return RubyString.newString(getRuntime(), String.valueOf(getLongValue()));
return getRuntime().newString(String.valueOf(getLongValue()));
public RubyString to_s() { return RubyString.newString(getRuntime(), String.valueOf(getLongValue())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return RubyFixnum.newFixnum(input.getRuntime(), input.unmarshalInt());
return input.getRuntime().newFixnum(input.unmarshalInt());
public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyFixnum.newFixnum(input.getRuntime(), input.unmarshalInt()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
return newFixnum(runtime, 0);
return runtime.newFixnum(0);
public static RubyFixnum zero(Ruby runtime) { return newFixnum(runtime, 0); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
public void criticalize(AtomicSpinlock lock) { synchronized (criticalLock) { criticalized = true; // if already stopped, don't increment spinlock // it will either decriticalize before waking or criticalize when it wakes if (!isStopped) { spinlock = lock; spinlock.increment(); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9e1b6d27bad7a8896eac3ecfc0e89131016d1f85/RubyThread.java/buggy/src/org/jruby/RubyThread.java
if (!isStopped) {
if (!isStopped && threadImpl.isAlive()) {
public void criticalize(AtomicSpinlock lock) { synchronized (criticalLock) { criticalized = true; // if already stopped, don't increment spinlock // it will either decriticalize before waking or criticalize when it wakes if (!isStopped) { spinlock = lock; spinlock.increment(); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9e1b6d27bad7a8896eac3ecfc0e89131016d1f85/RubyThread.java/buggy/src/org/jruby/RubyThread.java
MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Run script", "We're running!");
IScript script = new Script("puts 'sample script output'"); BSFManager manager = new BSFManager(); ScriptRunnable runnable = new ScriptRunnable(script, manager); runnable.run();
public void run(IAction action) { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Run script", "We're running!"); //agl todo:temp }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/c7273b4eae645cf907e1c657438fbc494b47b8f1/RunScriptActionDelegate.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/actions/RunScriptActionDelegate.java
public void selectionChanged(IAction action, ISelection selection) { // TODO Auto-generated method stub }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/c7273b4eae645cf907e1c657438fbc494b47b8f1/RunScriptActionDelegate.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/actions/RunScriptActionDelegate.java