rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
throw new RangeError(runtime, inspect().toString() + " out of range."); | throw new RangeError(getRuntime(), inspect().toString() + " out of range."); | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
throw new RangeError(runtime, inspect().toString() + " out of range."); | throw new RangeError(getRuntime(), inspect().toString() + " out of range."); | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
throw new ArgumentError(getRuntime(), "bad value for range"); | throw getRuntime().newArgumentError("bad value for range"); | public void init(IRubyObject begin, IRubyObject end, RubyBoolean isExclusive) { if (!(begin instanceof RubyFixnum && end instanceof RubyFixnum)) { try { begin.callMethod("<=>", end); } catch (RaiseException rExcptn) { throw new ArgumentError(getRuntime(), "... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
throw new ArgumentError(getRuntime(), "Wrong arguments. (anObject, anObject, aBoolean = false) expected"); | throw getRuntime().newArgumentError("Wrong arguments. (anObject, anObject, aBoolean = false) expected"); | public IRubyObject initialize(IRubyObject[] args) { if (args.length == 3) { init(args[0], args[1], (RubyBoolean) args[2]); } else if (args.length == 2) { init(args[0], args[1], getRuntime().getFalse()); } else { throw new ArgumentError(getRuntime(), "Wrong argum... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
return RubyFixnum.newFixnum(getRuntime(), 0); | return getRuntime().newFixnum(0); | public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
return RubyFixnum.newFixnum(getRuntime(), size); | return getRuntime().newFixnum(size); | public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
RubyArray array = RubyArray.newArray(getRuntime()); | RubyArray array = getRuntime().newArray(); | public RubyArray to_a() { IRubyObject currentObject = begin; String compareMethod = isExclusive ? "<" : "<="; RubyArray array = RubyArray.newArray(getRuntime()); while (currentObject.callMethod(compareMethod, end).isTrue()) { array.append(currentObject); if (currentObje... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
if (child.getSubstring().equals("")) return; | public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/c54df553d84e4640a9935c1b64985f49a735fce0/LineBox.java/clean/src/java/org/xhtmlrenderer/render/LineBox.java | |
ActivityRequirementBinding castedObject = (ActivityRequirementBinding) object; boolean equals = true; equals &= Util.equals(requiredActivityId, castedObject.requiredActivityId); equals &= Util.equals(activityId, castedObject.activityId); return equals; | final ActivityRequirementBinding castedObject = (ActivityRequirementBinding) object; if (!Util.equals(requiredActivityId, castedObject.requiredActivityId)) { return false; } return Util.equals(activityId, castedObject.activityId); | public boolean equals(Object object) { if (!(object instanceof ActivityRequirementBinding)) return false; ActivityRequirementBinding castedObject = (ActivityRequirementBinding) object; boolean equals = true; equals &= Util.equals(requiredActivityId, castedObject... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/93a9ee73087009b29275c4fd77412f1b5a0354e8/ActivityRequirementBinding.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ActivityRequirementBinding.java |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setStructureId(String structureId) { if (((structureId == null) && (_structureId != null)) || ((structureId != null) && (_structureId == null)) || ((structureId != null) && (_structureId != null) && !structureId.equals(_structureId))) { if (!XSS_ALLOW_STRUCTUREID) { structureId = XSSUtil.str... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setUserName(String userName) { if (((userName == null) && (_userName != null)) || ((userName != null) && (_userName == null)) || ((userName != null) && (_userName != null) && !userName.equals(_userName))) { if (!XSS_ALLOW_USERNAME) { userName = XSSUtil.strip(userName); } _userName = user... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
setModified(true); | public void setXsd(String xsd) { if (((xsd == null) && (_xsd != null)) || ((xsd != null) && (_xsd == null)) || ((xsd != null) && (_xsd != null) && !xsd.equals(_xsd))) { if (!XSS_ALLOW_XSD) { xsd = XSSUtil.strip(xsd); } _xsd = xsd; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructureModel.java/buggy/portal-ejb/src/com/liferay/portlet/journal/model/JournalStructureModel.java | |
.bindExtensions(new String[] { TEST_EXTENSION_2_ID }); | .bindExtensions(new String[] { TEST_EXTENSION_2_ID }, false); | public void testBindTestExtension() { INavigatorContentService contentServiceWithProgrammaticBindings = NavigatorContentServiceFactory.INSTANCE .createContentService(COMMON_NAVIGATOR_INSTANCE_ID); INavigatorContentDescriptor[] boundDescriptors = contentServiceWithProgrammaticBindings .bindExtensions(new String... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/187a6e5e9526ea47a03a969d7ddb741178d2527d/INavigatorContentServiceTests.java/clean/tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/INavigatorContentServiceTests.java |
if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } | public void addChild( Box child ) { child.setParent( this ); boxes.add( child ); //u.p("added child: " + child + " to " + this); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3c2f0ef16203d2439d43879f53050721938d14f5/Box.java/buggy/src/java/org/xhtmlrenderer/render/Box.java | |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setFolderId(String folderId) { if (((folderId == null) && (_folderId != null)) || ((folderId != null) && (_folderId == null)) || ((folderId != null) && (_folderId != null) && !folderId.equals(_folderId))) { if (!XSS_ALLOW_FOLDERID) { folderId = XSSUtil.strip(folderId); } _folderId = fold... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setParentFolderId(String parentFolderId) { if (((parentFolderId == null) && (_parentFolderId != null)) || ((parentFolderId != null) && (_parentFolderId == null)) || ((parentFolderId != null) && (_parentFolderId != null) && !parentFolderId.equals(_parentFolderId))) { if (!XSS_ALLOW_PARENTFOLDERI... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
setModified(true); | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/BookmarksFolderModel.java/clean/portal-ejb/src/com/liferay/portlet/bookmarks/model/BookmarksFolderModel.java | |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { | public static InlineBox createInline(Context c, TextContent content, InlineBox prev, InlineBox prev_align, int avail, int max, Font font, CascadedStyle firstLineStyle) { | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); | inline.setNode(content.getElement()); inline.setContent(content); CalculatedStyle style = content.getStyle(); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
if (prev == null || prev.getNode() != node) { text = stripWhitespace(style, prev, text); | if (prev == null || prev.getContent() != content) { String text = stripWhitespace(style, prev, content.getText()); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
text = prev.getMasterText(); | String text = prev.getMasterText(); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
BoxBuilder.prepBox(c, inline, prev_align, font); | BoxBuilder.prepBox(c, inline, prev_align, font, firstLineStyle); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
public String getWhitespace(CalculatedStyle style) { | public static String getWhitespace(CalculatedStyle style) { | public String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) {//should never happen whitespace = "normal"; } return whitespace; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { | public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { | public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
public void unbreakable(InlineBox box, int n) { | public static void unbreakable(InlineBox box, int n) { | public void unbreakable(InlineBox box, int n) { if (box.start_index == -1) { box.start_index = 0; } box.setSubstring(box.start_index, box.start_index + n); return; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java |
return getPage(c, box.getAbsY() + box.getHeight()); | return getPage(c, box.getAbsY() + box.getHeight() - 1); | public PageBox getLastPage(CssContext c, Box box) { return getPage(c, box.getAbsY() + box.getHeight()); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3619777e312d2fe8541b6e968978bb572e099f8c/Layer.java/buggy/src/java/org/xhtmlrenderer/layout/Layer.java |
roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, scope, themeDisplay.getCompanyId(), actionId); | roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, scope, themeDisplay.getCompanyId(), actionId); | protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d36dad22bc25af423a0bb871461e41b00cd9e96a/EditRolePermissionsAction.java/clean/portal-ejb/src/com/liferay/portlet/enterpriseadmin/action/EditRolePermissionsAction.java |
roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_COMPANY, actionId); | roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_COMPANY, actionId); | protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d36dad22bc25af423a0bb871461e41b00cd9e96a/EditRolePermissionsAction.java/clean/portal-ejb/src/com/liferay/portlet/enterpriseadmin/action/EditRolePermissionsAction.java |
roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_GROUP, actionId); | roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_GROUP, actionId); | protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d36dad22bc25af423a0bb871461e41b00cd9e96a/EditRolePermissionsAction.java/clean/portal-ejb/src/com/liferay/portlet/enterpriseadmin/action/EditRolePermissionsAction.java |
roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_GROUP, addGroupIds[i], actionId); | roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_GROUP, addGroupIds[i], actionId); | protected void updateGroupPermissions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String mode... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d36dad22bc25af423a0bb871461e41b00cd9e96a/EditRolePermissionsAction.java/clean/portal-ejb/src/com/liferay/portlet/enterpriseadmin/action/EditRolePermissionsAction.java |
roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_GROUP, removeGroupIds[i], actionId); | roleId, themeDisplay.getPortletGroupId(), selResource, Resource.TYPE_CLASS, Resource.SCOPE_GROUP, removeGroupIds[i], actionId); | protected void updateGroupPermissions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String mode... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d36dad22bc25af423a0bb871461e41b00cd9e96a/EditRolePermissionsAction.java/clean/portal-ejb/src/com/liferay/portlet/enterpriseadmin/action/EditRolePermissionsAction.java |
return MarkerMessages.MarkerList_0; | return view.getSite().getRegisteredName(); | public String getLabel(Object o) { return MarkerMessages.MarkerList_0; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/260e053bf023d8caea39229b1fe343b9e8a23653/MarkerAdapter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java |
public void initialize(IWorkbenchConfigurer configurer) { // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); // setup the event loop exception handler exceptionHandler = new IDEExceptionHandler(configurer); // register workspace adapters ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/41bbcdae37ba97f5a4389c62e031381534348b0b/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | ||
idleHelper = new IDEIdleHelper(configurer); | public void initialize(IWorkbenchConfigurer configurer) { // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); // setup the event loop exception handler exceptionHandler = new IDEExceptionHandler(configurer); // register workspace adapters ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/41bbcdae37ba97f5a4389c62e031381534348b0b/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | |
if (idleHelper != null) { idleHelper.shutdown(); idleHelper = null; } | public void postShutdown() { if (activityHelper != null) { activityHelper.shutdown(); activityHelper = null; } if (IDEWorkbenchPlugin.getPluginWorkspace() != null) { disconnectFromWorkspace(); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/41bbcdae37ba97f5a4389c62e031381534348b0b/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | |
public void postStartup() { try { refreshFromLocal(); checkUpdates(); } finally {//Resume background jobs after we startup Platform.getJobManager().resume(); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/41bbcdae37ba97f5a4389c62e031381534348b0b/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | ||
Object target = getUIController().getInformationQuarter() | Object displayTarget = getUIController().getInformationQuarter() | public void selectionChanged(SelectionChangeEvent event) { Object[] selections = getSelectionModel().getSelections(); Object target = getUIController().getInformationQuarter() .getDisplayTarget(); final Folder folder; if (target instanceof Directory) { ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/27c9b602815b2eaa671bc83e687bb92f28446eaa/DirectoryPanel.java/buggy/src/main/de/dal33t/powerfolder/ui/folder/DirectoryPanel.java |
if (target instanceof Directory) { folder = ((Directory) target).getRootFolder(); } else if (target instanceof Folder) { folder = (Folder) target; } else { log().warn( "Unable to mark file for auto download files on target: " + target); | if (displayTarget instanceof Directory) { folder = ((Directory) displayTarget).getRootFolder(); } else if (displayTarget instanceof Folder) { folder = (Folder) displayTarget; } else { | public void selectionChanged(SelectionChangeEvent event) { Object[] selections = getSelectionModel().getSelections(); Object target = getUIController().getInformationQuarter() .getDisplayTarget(); final Folder folder; if (target instanceof Directory) { ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/27c9b602815b2eaa671bc83e687bb92f28446eaa/DirectoryPanel.java/buggy/src/main/de/dal33t/powerfolder/ui/folder/DirectoryPanel.java |
parent.setLayout(new FillLayout()); | private CTabFolder createContainer(Composite parent) { // use SWT.FLAT style so that an extra 1 pixel border is not reserved // inside the folder final CTabFolder newContainer = new CTabFolder(parent, SWT.BOTTOM | SWT.FLAT); newContainer.addSelectionListener(new SelectionA... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4833607a5f036ef0fb885025992c55e5d5eea6bc/MultiPageEditorPart.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java | |
this.container = createContainer(parent); | Composite pageContainer = createPageContainer(parent); this.container = createContainer(pageContainer); | public final void createPartControl(Composite parent) { this.container = createContainer(parent); createPages(); // set the active page (page 0 by default), unless it has already been done if (getActivePage() == -1) setActivePage(0); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4833607a5f036ef0fb885025992c55e5d5eea6bc/MultiPageEditorPart.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/MultiPageEditorPart.java |
private static int runInShell(IRuby runtime, IRubyObject[] rawArgs, OutputStream output) { | public static int runInShell(IRuby runtime, IRubyObject[] rawArgs, OutputStream output) { | private static int runInShell(IRuby runtime, IRubyObject[] rawArgs, OutputStream output) { try { // startup scripts set jruby.shell to /bin/sh for Unix, cmd.exe for Windows String shell = System.getProperty("jruby.shell"); rawArgs[0] = runtime.newString(repairDirSeps(rawArgs[... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f67bf159b486fa2ceb3335f98a350e2e5fefe664/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java |
gc.setBackground(interiorColor); | if (interiorColor != null) { gc.setBackground(interiorColor); } | public void paintControl(PaintEvent e) { GC gc = e.gc; Color color = e.display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW); gc.setForeground(color); gc.setBackground(interiorColor); Shape shape = new Shape(TOP_LEFT_CORNER.length + 2); IntAffineMatrix rotation = IntAffineMatrix ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/be641b78754f5c68409eb40001d92c984c331698/OvalComposite.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/OvalComposite.java |
gc.fillPolygon(shapeArray); | if (interiorColor != null) { gc.fillPolygon(shapeArray); } | public void paintControl(PaintEvent e) { GC gc = e.gc; Color color = e.display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW); gc.setForeground(color); gc.setBackground(interiorColor); Shape shape = new Shape(TOP_LEFT_CORNER.length + 2); IntAffineMatrix rotation = IntAffineMatrix ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/be641b78754f5c68409eb40001d92c984c331698/OvalComposite.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/OvalComposite.java |
File debugFile = new File("debug/" + targetFolder.getName() | File debugFile = new File(Logger.getDebugDir(), targetFolder.getName() | public void handleMessage(Message message) { if (message == null) { throw new NullPointerException( "Unable to handle message, message is null"); } // related folder is filled if message is a folder related message FolderInfo targetedFolderInfo = null; Fo... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/345e407b12268b8a7f25e6c3dde52a19eccba263/Member.java/clean/src/main/de/dal33t/powerfolder/Member.java |
File debugFile = new File("debug/" + targetFolder.getName() | File debugFile = new File(Logger.getDebugDir(), targetFolder.getName() | public void handleMessage(Message message) { if (message == null) { throw new NullPointerException( "Unable to handle message, message is null"); } // related folder is filled if message is a folder related message FolderInfo targetedFolderInfo = null; Fo... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/345e407b12268b8a7f25e6c3dde52a19eccba263/Member.java/clean/src/main/de/dal33t/powerfolder/Member.java |
final String message = "Key bindings need a scheme or key configuration: '" | final String message = "Key bindings need a scheme or key configuration: commandId='" | private static final void readBindingsFromPreferences( final IMemento preferences, final BindingManager bindingManager, final ICommandService commandService) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Key bindings need a key sequence or string: '" | final String message = "Key bindings need a key sequence or string: commandId='" | private static final void readBindingsFromPreferences( final IMemento preferences, final BindingManager bindingManager, final ICommandService commandService) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Could not parse: '" + keySequenceText + "': '" | final String message = "Could not parse: sequence='" + keySequenceText + "': commandId='" | private static final void readBindingsFromPreferences( final IMemento preferences, final BindingManager bindingManager, final ICommandService commandService) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Key bindings cannot use an empty or incomplete key sequence: '" + keySequence + "': '" | final String message = "Key bindings cannot use an empty or incomplete key sequence: sequence='" + keySequence + "': commandId='" | private static final void readBindingsFromPreferences( final IMemento preferences, final BindingManager bindingManager, final ICommandService commandService) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Warnings while parsing the key bindings from the preference store."; | final String message = "Warnings while parsing the key bindings from the preference store"; | private static final void readBindingsFromPreferences( final IMemento preferences, final BindingManager bindingManager, final ICommandService commandService) { /* * If necessary, this list of status items will be constructed. It will * only contains instances of <code>IStatus</code>. */ List warningsToLog ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java | ||
final String message = "Cannot bind to an undefined command: '" + configurationElement.getNamespace() + "', '" | final String message = "Cannot bind to an undefined command: plug-in='" + configurationElement.getNamespace() + "', commandId='" | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Key bindings need a scheme: '" + configurationElement.getNamespace() + "', '" | final String message = "Key bindings need a scheme: plug-in='" + configurationElement.getNamespace() + "', commandId='" | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Defining a key binding with no key sequence has no effect: '" + configurationElement.getNamespace() + "', '" | final String message = "Defining a key binding with no key sequence has no effect: plug-in='" + configurationElement.getNamespace() + "', commandId='" | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Could not parse '" + keySequenceText + "': '" + configurationElement.getNamespace() + "', '" | final String message = "Could not parse key sequence '" + keySequenceText + "': plug-in='" + configurationElement.getNamespace() + "', commandId='" | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Key bindings should not have an empty or incomplete key sequence: '" + keySequence + "': '" + configurationElement.getNamespace() + "', '" | final String message = "Key bindings should not have an empty or incomplete key sequence: sequence='" + keySequence + "': plug-in='" + configurationElement.getNamespace() + "', commandId='" | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java | ||
final String message = "Warnings while parsing the key bindings from the 'org.eclipse.ui.commands' extension point."; | final String message = "Warnings while parsing the key bindings from the 'org.eclipse.ui.commands' extension point"; | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); /* * If necessar... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Parameters need a name: '" | final String message = "Parameters need a name: plug-in='" | private static final ParameterizedCommand readParameters( final IConfigurationElement configurationElement, final List warningsToLog, final Command command) { final IConfigurationElement[] parameterElements = configurationElement .getChildren(ELEMENT_PARAMETER); if ((parameterElements == null) || (parameterEl... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Could not find a matching parameter: '" + configurationElement.getNamespace() + "', '" + id | final String message = "Could not find a matching parameter: plug-in='" + configurationElement.getNamespace() + "', parameterId='" + id | private static final ParameterizedCommand readParameters( final IConfigurationElement configurationElement, final List warningsToLog, final Command command) { final IConfigurationElement[] parameterElements = configurationElement .getChildren(ELEMENT_PARAMETER); if ((parameterElements == null) || (parameterEl... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
final String message = "Parameters need a value: '" + configurationElement.getNamespace() + "', '" | final String message = "Parameters need a value: plug-in='" + configurationElement.getNamespace() + "', parameterId='" | private static final ParameterizedCommand readParameters( final IConfigurationElement configurationElement, final List warningsToLog, final Command command) { final IConfigurationElement[] parameterElements = configurationElement .getChildren(ELEMENT_PARAMETER); if ((parameterElements == null) || (parameterEl... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java |
control.setFont(tabFont); | public static void setTabAttributes(BasicStackPresentation presentation, final CTabFolder control) { if (presentation == null) // the reference to the presentation was lost by the listener return; ITheme theme = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme(); if (control.getData(L... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/92c7fed3e14cfd9615025d1a45cc728ae4af3c1a/ColorSchemeService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ColorSchemeService.java | |
public static IRubyObject chmod(IRubyObject recv, RubyInteger mode, IRubyObject[] names) { // no-op for now return RubyFixnum.newFixnum(recv.getRuntime(), 0); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyFile.java/buggy/src/org/jruby/RubyFile.java | ||
closeStreams(); | if (handler != null) { close(); } | public IRubyObject initialize(IRubyObject[] args) { if (args.length == 0) { throw new ArgumentError(getRuntime(), 0, 1); } args[0].checkSafeString(); path = args[0].toString(); String mode = "r"; if (args.length > 1 && args[1] instanceof RubyString) { mode = ((RubyStri... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyFile.java/buggy/src/org/jruby/RubyFile.java |
updateEnabledState(event.getChecked()); markDirty(); }; | markDirty(); } | protected void createTypesArea(Composite parent) { Font font = parent.getFont(); Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = new GridLayout(); composite.setLayout(layout); Label ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6ec04993784c8138b4186f6b643bfffdcb86eb3d/DialogMarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java |
updateEnabledState(event.getChecked()); markDirty(); }; | markDirty(); } | public void checkStateChanged(CheckStateChangedEvent event) { updateEnabledState(event.getChecked()); markDirty(); }; | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6ec04993784c8138b4186f6b643bfffdcb86eb3d/DialogMarkerFilter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/DialogMarkerFilter.java |
Box box = panel.findBox(evt.getX(), evt.getY()); | Box box = panel.findElementBox(evt.getX(), evt.getY()); | private Box findBox(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) return null; if (box instanceof LineBox) return null; return box; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/66fbe8d8d4ec4d3bb0fc39cbd89ca783bccb51dd/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java |
boolean restyled = panel.getContext().css.wasHoverRestyled(ib.getRealElement()); CalculatedStyle style = panel.getContext().css.getStyle(ib.getRealElement()); if (restyled) { Layout lt = panel.getContext().getLayout(ib.getRealElement()); if (lt instanceof InlineLayout) { ((InlineLayout) lt).restyle(panel.getContex... | /* if the box is an inline box and if it is a text only box, meaning it does not have it's own element but is merely a child of an enclosing box. is inline element */ if(ib.isInlineElement() || !(ib instanceof InlineBox)) { boolean restyled = panel.getContext().css.wasHoverRestyled(ib.getRealElement()); Calculated... | private void restyle(Box ib) { if (prev == ib) { return; } if (ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if (prev != null) { boolea... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/66fbe8d8d4ec4d3bb0fc39cbd89ca783bccb51dd/HoverListener.java/clean/src/java/org/xhtmlrenderer/swing/HoverListener.java |
if (array == null) return new char[] { suffix }; int length = array.length; System.arraycopy(array, 0, array = new char[length + 1], 0, length); array[length] = suffix; return array; } | if (array == null) return new char[] { suffix }; int length = array.length; System.arraycopy(array, 0, array = new char[length + 1], 0, length); array[length] = suffix; return array; } | public static final char[] append(char[] array, char suffix) { if (array == null) return new char[] { suffix }; int length = array.length; System.arraycopy(array, 0, array = new char[length + 1], 0, length); array[length] = suffix; return array;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (first == null) return second; if (second == null) return first; | if (first == null) return second; if (second == null) return first; | public static final char[][] arrayConcat(char[][] first, char[][] second) { if (first == null) return second; if (second == null) return first; int length1 = first.length; int length2 = second.length; char[][] result = new char[length1 + length2][]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(sec... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int length1 = first.length; int length2 = second.length; char[][] result = new char[length1 + length2][]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(second, 0, result, length1, length2); return result; } | int length1 = first.length; int length2 = second.length; char[][] result = new char[length1 + length2][]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(second, 0, result, length1, length2); return result; } | public static final char[][] arrayConcat(char[][] first, char[][] second) { if (first == null) return second; if (second == null) return first; int length1 = first.length; int length2 = second.length; char[][] result = new char[length1 + length2][]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(sec... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (charArrays == null) return null; int length = charArrays.length; if (length == 0) return NO_STRINGS; String[] strings= new String[length]; for (int i= 0; i < length; i++) strings[i]= new String(charArrays[i]); return strings; } | if (charArrays == null) return null; int length = charArrays.length; if (length == 0) return NO_STRINGS; String[] strings = new String[length]; for (int i = 0; i < length; i++) strings[i] = new String(charArrays[i]); return strings; } | public static String[] charArrayToStringArray(char[][] charArrays) { if (charArrays == null) return null; int length = charArrays.length; if (length == 0) return NO_STRINGS; String[] strings= new String[length]; for (int i= 0; i < length; i++) strings[i]= new String(charArrays[i]); return strings;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (charArray == null) return null; return new String(charArray); } | if (charArray == null) return null; return new String(charArray); } | public static String charToString(char[] charArray) { if (charArray == null) return null; return new String(charArray);} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int arrayLength = array.length; int prefixLength = prefix.length; int min = Math.min(arrayLength, prefixLength); int i = 0; while (min-- != 0) { char c1 = array[i]; char c2 = prefix[i++]; if (c1 != c2) return c1 - c2; | int arrayLength = array.length; int prefixLength = prefix.length; int min = Math.min(arrayLength, prefixLength); int i = 0; while (min-- != 0) { char c1 = array[i]; char c2 = prefix[i++]; if (c1 != c2) return c1 - c2; } if (prefixLength == i) return 0; return -1; | public static final int compareWith(char[] array, char[] prefix) { int arrayLength = array.length; int prefixLength = prefix.length; int min = Math.min(arrayLength, prefixLength); int i = 0; while (min-- != 0) { char c1 = array[i]; char c2 = prefix[i++]; if (c1 != c2) return c1 - c2; } if (prefixLength == i) retu... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (prefixLength == i) return 0; return -1; } | public static final int compareWith(char[] array, char[] prefix) { int arrayLength = array.length; int prefixLength = prefix.length; int min = Math.min(arrayLength, prefixLength); int i = 0; while (min-- != 0) { char c1 = array[i]; char c2 = prefix[i++]; if (c1 != c2) return c1 - c2; } if (prefixLength == i) retu... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
if (first == null) return second; if (second == null) return first; | if (first == null) return second; if (second == null) return first; | public static final char[] concat(char[] first, char[] second) { if (first == null) return second; if (second == null) return first; int length1 = first.length; int length2 = second.length; char[] result = new char[length1 + length2]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(second, 0, result,... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int length1 = first.length; int length2 = second.length; char[] result = new char[length1 + length2]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(second, 0, result, length1, length2); return result; } | int length1 = first.length; int length2 = second.length; char[] result = new char[length1 + length2]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(second, 0, result, length1, length2); return result; } | public static final char[] concat(char[] first, char[] second) { if (first == null) return second; if (second == null) return first; int length1 = first.length; int length2 = second.length; char[] result = new char[length1 + length2]; System.arraycopy(first, 0, result, 0, length1); System.arraycopy(second, 0, result,... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
public static final char[] concatWith( char[] name, char[][] array, char separator) { int nameLength = name == null ? 0 : name.length; if (nameLength == 0) return concatWith(array, separator); | public static final char[] concatWith(char[] name, char[][] array, char separator) { int nameLength = name == null ? 0 : name.length; if (nameLength == 0) return concatWith(array, separator); | public static final char[] concatWith( char[] name, char[][] array, char separator) { int nameLength = name == null ? 0 : name.length; if (nameLength == 0) return concatWith(array, separator); int length = array == null ? 0 : array.length; if (length == 0) return name; int size = nameLength; int index = length; while... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int length = array == null ? 0 : array.length; if (length == 0) return name; | int length = array == null ? 0 : array.length; if (length == 0) return name; | public static final char[] concatWith( char[] name, char[][] array, char separator) { int nameLength = name == null ? 0 : name.length; if (nameLength == 0) return concatWith(array, separator); int length = array == null ? 0 : array.length; if (length == 0) return name; int size = nameLength; int index = length; while... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
int size = nameLength; int index = length; while (--index >= 0) if (array[index].length > 0) size += array[index].length + 1; char[] result = new char[size]; index = size; for (int i = length - 1; i >= 0; i--) { int subLength = array[i].length; if (subLength > 0) { index -= subLength; System.arraycopy(array[i], 0, resu... | int size = nameLength; int index = length; while (--index >= 0) if (array[index].length > 0) size += array[index].length + 1; char[] result = new char[size]; index = size; for (int i = length - 1; i >= 0; i--) { int subLength = array[i].length; if (subLength > 0) { index -= subLength; System.arraycopy(array[i], 0, resu... | public static final char[] concatWith( char[] name, char[][] array, char separator) { int nameLength = name == null ? 0 : name.length; if (nameLength == 0) return concatWith(array, separator); int length = array == null ? 0 : array.length; if (length == 0) return name; int size = nameLength; int index = length; while... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
System.arraycopy(name, 0, result, 0, nameLength); return result; } | public static final char[] concatWith( char[] name, char[][] array, char separator) { int nameLength = name == null ? 0 : name.length; if (nameLength == 0) return concatWith(array, separator); int length = array == null ? 0 : array.length; if (length == 0) return name; int size = nameLength; int index = length; while... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
for (int i = array.length; --i >= 0;) { char[] subarray = array[i]; for (int j = subarray.length; --j >= 0;) if (subarray[j] == character) return true; | for (int i = array.length; --i >= 0;) { char[] subarray = array[i]; for (int j = subarray.length; --j >= 0;) if (subarray[j] == character) return true; } return false; | public static final boolean contains(char character, char[][] array) { for (int i = array.length; --i >= 0;) { char[] subarray = array[i]; for (int j = subarray.length; --j >= 0;) if (subarray[j] == character) return true; } return false;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
return false; } | public static final boolean contains(char character, char[][] array) { for (int i = array.length; --i >= 0;) { char[] subarray = array[i]; for (int j = subarray.length; --j >= 0;) if (subarray[j] == character) return true; } return false;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
int toCopyLength = toCopy.length; char[][] result = new char[toCopyLength][]; for (int i = 0; i < toCopyLength; i++) { char[] toElement = toCopy[i]; int toElementLength = toElement.length; char[] resultElement = new char[toElementLength]; System.arraycopy(toElement, 0, resultElement, 0, toElementLength); result[i] = re... | int toCopyLength = toCopy.length; char[][] result = new char[toCopyLength][]; for (int i = 0; i < toCopyLength; i++) { char[] toElement = toCopy[i]; int toElementLength = toElement.length; char[] resultElement = new char[toElementLength]; System.arraycopy(toElement, 0, resultElement, 0, toElementLength); result[i] = re... | public static final char[][] deepCopy(char[][] toCopy) { int toCopyLength = toCopy.length; char[][] result = new char[toCopyLength][]; for (int i = 0; i < toCopyLength; i++) { char[] toElement = toCopy[i]; int toElementLength = toElement.length; char[] resultElement = new char[toElementLength]; System.arraycopy(toE... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
return result; } | public static final char[][] deepCopy(char[][] toCopy) { int toCopyLength = toCopy.length; char[][] result = new char[toCopyLength][]; for (int i = 0; i < toCopyLength; i++) { char[] toElement = toCopy[i]; int toElementLength = toElement.length; char[] resultElement = new char[toElementLength]; System.arraycopy(toE... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java | |
int i = toBeFound.length; int j = array.length - i; | int i = toBeFound.length; int j = array.length - i; | public static final boolean endsWith(char[] array, char[] toBeFound) { int i = toBeFound.length; int j = array.length - i; if (j < 0) return false; while (--i >= 0) if (toBeFound[i] != array[i + j]) return false; return true;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
if (j < 0) return false; while (--i >= 0) if (toBeFound[i] != array[i + j]) | if (j < 0) | public static final boolean endsWith(char[] array, char[] toBeFound) { int i = toBeFound.length; int j = array.length - i; if (j < 0) return false; while (--i >= 0) if (toBeFound[i] != array[i + j]) return false; return true;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e33c1f7b0c1f9dbe66a73370c1b98e653087c2df/CharOperation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/CharOperation.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.