rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
workbenchWindow = null; }
workbenchWindow = null; }
public void dispose() { workbenchWindow = null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/05487638d23edcd33f28502039810d951e6b5724/OpenPreferencesAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/OpenPreferencesAction.java
if (workbenchWindow == null) { return; } WorkbenchPreferenceDialog.createDialogOn(null).open(); }
if (workbenchWindow == null) { return; } PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, null, null, null); dialog.open(); }
public void run() { if (workbenchWindow == null) { // action has been dispose return; } WorkbenchPreferenceDialog.createDialogOn(null).open(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/05487638d23edcd33f28502039810d951e6b5724/OpenPreferencesAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/OpenPreferencesAction.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/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.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/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.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/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.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/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.java
setModified(true);
public void setSize(int size) { if (size != _size) { _size = size; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.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/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.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/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.java
setModified(true);
public void setVersion(double version) { if (version != _version) { _version = version; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/DLFileVersionModel.java/clean/portal-ejb/src/com/liferay/portlet/documentlibrary/model/DLFileVersionModel.java
state.addRedoMarker(iVisited.getBodyNode()); state.addNodeInstruction(iVisited.getBodyNode());
public void execute(EvaluationState state, InstructionContext ctx) { UntilNode iVisited = (UntilNode)ctx; state.addBreakableInstruction(iVisited, untilConditionCheck); state.addNodeInstruction(iVisited.getConditionNode()); state.addRedoMarker(iV...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/81b65a06cf2e7f741d8249bcbaff08f0bba6d794/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
module.defineMethod("public_methods", callbackFactory.getMethod("methods"));
module.defineMethod("public_methods", callbackFactory.getMethod("public_methods"));
public static void createObjectClass(RubyClass module) { CallbackFactory callbackFactory = module.getRuntime().callbackFactory(RubyObject.class); Callback equal = callbackFactory.getMethod("equal", IRubyObject.class); module.defineMethod("==", equal); module.defineMethod("===", equal); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/abfe85d15f992ecf4447b155d177050fe2239c3b/RubyObject.java/buggy/src/org/jruby/RubyObject.java
return configure(new JobView());
return configure(new ProgressView());
public Object create() throws CoreException { if (APPEARANCE_PREFERENCE_PAGE.equals(id)) return configure(new ViewsPreferencePage()); if (COLORS_AND_FONTS_PREFERENCE_PAGE.equals(id)) return configure(new ColorsAndFontsPreferencePage()); if (DECORATORS_PREFERENCE_PAGE.equal...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/852f4fa051527b55d573274f8d387f43109b3ff6/ExtensionFactory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/ExtensionFactory.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/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.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/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setFirstReadDate(Date firstReadDate) { if (((firstReadDate == null) && (_firstReadDate != null)) || ((firstReadDate != null) && (_firstReadDate == null)) || ((firstReadDate != null) && (_firstReadDate != null) && !firstReadDate.equals(_firstReadDate))) { _firstReadDate = firstReadDate; setMod...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setLastReadDate(Date lastReadDate) { if (((lastReadDate == null) && (_lastReadDate != null)) || ((lastReadDate != null) && (_lastReadDate == null)) || ((lastReadDate != null) && (_lastReadDate != null) && !lastReadDate.equals(_lastReadDate))) { _lastReadDate = lastReadDate; setModified(true);...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.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/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setReadCount(int readCount) { if (readCount != _readCount) { _readCount = readCount; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setReceiptId(String receiptId) { if (((receiptId == null) && (_receiptId != null)) || ((receiptId != null) && (_receiptId == null)) || ((receiptId != null) && (_receiptId != null) && !receiptId.equals(_receiptId))) { if (!XSS_ALLOW_RECEIPTID) { receiptId = XSSUtil.strip(receiptId); } _re...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setRecipientAddress(String recipientAddress) { if (((recipientAddress == null) && (_recipientAddress != null)) || ((recipientAddress != null) && (_recipientAddress == null)) || ((recipientAddress != null) && (_recipientAddress != null) && !recipientAddress.equals(_recipientAddress))) { if (!XSS...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setRecipientName(String recipientName) { if (((recipientName == null) && (_recipientName != null)) || ((recipientName != null) && (_recipientName == null)) || ((recipientName != null) && (_recipientName != null) && !recipientName.equals(_recipientName))) { if (!XSS_ALLOW_RECIPIENTNAME) { rec...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setSentDate(Date sentDate) { if (((sentDate == null) && (_sentDate != null)) || ((sentDate != null) && (_sentDate == null)) || ((sentDate != null) && (_sentDate != null) && !sentDate.equals(_sentDate))) { _sentDate = sentDate; setModified(true); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
setModified(true);
public void setSubject(String subject) { if (((subject == null) && (_subject != null)) || ((subject != null) && (_subject == null)) || ((subject != null) && (_subject != null) && !subject.equals(_subject))) { if (!XSS_ALLOW_SUBJECT) { subject = XSSUtil.strip(subject); } _subject = subject; setModi...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.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/MailReceiptModel.java/buggy/portal-ejb/src/com/liferay/portlet/mail/model/MailReceiptModel.java
} catch (ReturnJump re) { return re.getReturnValue();
} catch (ReturnJump rj) { if (rj.getTarget() == this) { return rj.getReturnValue(); } throw rj;
public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d533e9e7ef5cae0a5436a0354565291691167114/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
if (block.fixed) {
if (block.getStyle().isFixed()) {
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
} else if (block.absolute) {
} else if (block.getStyle().isAbsolute()) {
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
IdentValue decoration = c.getCurrentStyle().getIdent(CSSName.TEXT_DECORATION);
IdentValue decoration = calculatedStyle.getIdent(CSSName.TEXT_DECORATION);
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
c.getDecorations().addLast(new TextDecoration(decoration, 0, c.getCurrentStyle().getColor(), FontUtil.getLineMetrics(c, null)));
c.getDecorations().addLast(new TextDecoration(decoration, 0, calculatedStyle.getColor(), FontUtil.getLineMetrics(c, null)));
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
if (box.relative) {
if (box.getStyle().isRelative()) {
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
if (ContentUtil.isListItem(c.getCurrentStyle())) {
if (ContentUtil.isListItem(calculatedStyle)) {
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
if (!box.absolute) {
if (!box.getStyle().isAbsolute()) {
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
} if (style != null) { c.popStyle();
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
CalculatedStyle style = c.getCurrentStyle();
CalculatedStyle style = block.getStyle().getCalculatedStyle();
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("b...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
CalculatedStyle style = c.getCurrentStyle();
CalculatedStyle style = box.getStyle().getCalculatedStyle();
public static void paintBackground(Context c, Box box, Rectangle bounds) { Box block = box; // cache the background color //no sense getBackgroundColor(c); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty(CSS...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
block.repeat = style.getIdent(CSSName.BACKGROUND_REPEAT); block.attachment = style.getIdent(CSSName.BACKGROUND_ATTACHMENT);
public static void paintBackground(Context c, Box box, Rectangle bounds) { Box block = box; // cache the background color //no sense getBackgroundColor(c); // get the css properties CalculatedStyle style = c.getCurrentStyle(); String back_image = style.getStringProperty(CSS...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
Border margin = block.getMarginWidth();
Border margin = block.getStyle().getMarginWidth();
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
BorderPainter.paint(bounds, BorderPainter.ALL, c.getCurrentStyle(), c.getGraphics(), c.getCtx(), 0);
BorderPainter.paint(bounds, BorderPainter.ALL, block.getStyle().getCalculatedStyle(), c.getGraphics(), c.getCtx(), 0);
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
Relative.translateRelative(ctx, true);
Relative.translateRelative(ctx, block.getStyle().getCalculatedStyle(), true);
public static void paintRelative(Context ctx, Box block, boolean restyle) { Relative.translateRelative(ctx, true); paintNormal(ctx, block, restyle); Relative.untranslateRelative(ctx, true); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
Relative.untranslateRelative(ctx, true);
Relative.untranslateRelative(ctx, block.getStyle().getCalculatedStyle(), true);
public static void paintRelative(Context ctx, Box block, boolean restyle) { Relative.translateRelative(ctx, true); paintNormal(ctx, block, restyle); Relative.untranslateRelative(ctx, true); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/d78edbe00854320b48eb4ef97095b253df533dd8/BoxRendering.java/clean/src/java/org/xhtmlrenderer/render/BoxRendering.java
clearUsers.clear(userGroupId);
public UserGroup remove(String userGroupId) throws NoSuchUserGroupException, SystemException { Session session = null; try { session = openSession(); UserGroup userGroup = (UserGroup)session.get(UserGroup.class, userGroupId); if (userGroup == null) { _log.warn("No UserGroup exists with the primary key ...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5131f2a6018784d83d566a6e657e02bb5cd77488/UserGroupPersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/UserGroupPersistence.java
if (currentBounds.y >= lastBounds.y && currentBounds.y < lastBounds.y + lastBounds.width) {
if (currentBounds.y >= lastBounds.y && currentBounds.y < lastBounds.y + lastBounds.height) {
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/f5914d1366ab5e440b34d7b1db752ef467d33f70/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
for (int j = i+1; j < pendingFloats.size(); j++) { FloatedBlockBox following = (FloatedBlockBox)pendingFloats.get(j); following.y = block.y; }
public void floatPending(LayoutContext c, BlockFormattingContext bfc, List pendingFloats) { if (pendingFloats.size() > 0) { for (int i = 0; i < pendingFloats.size(); i++) { if (i != 0) { c.setFloatingY(0d); } FloatedBlockBox block = (...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/f5914d1366ab5e440b34d7b1db752ef467d33f70/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
private void position(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { moveAllTheWayOver(current, direction); alignToLastOpposingFloat(cssCtx, bfc, current, direction); alignToLastFloat(cssCtx, bfc, current, direction); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/f5914d1366ab5e440b34d7b1db752ef467d33f70/FloatManager.java/clean/src/java/org/xhtmlrenderer/layout/FloatManager.java
box.setState(box.DONE);
public static Box layoutChildren(Context c, Box box, Content content) { List contentList = content.getChildContent(c); if (contentList == null) { return box; } if (contentList.size() == 0) { return box; }//we can do this if there is no content, right? ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5ab8d19beb25fd96c93f800f8de2bacad5331774/Boxing.java/clean/src/java/org/xhtmlrenderer/layout/Boxing.java
int original_height = block.height;
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a02f21737e5cac245dc17710370c9c1eda2116b3/BoxLayout.java/buggy/src/java/org/xhtmlrenderer/layout/BoxLayout.java
if (child.getNodeType() == child.COMMENT_NODE) {
if (child.getNodeType() == Node.COMMENT_NODE) {
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a02f21737e5cac245dc17710370c9c1eda2116b3/BoxLayout.java/buggy/src/java/org/xhtmlrenderer/layout/BoxLayout.java
if (child.getNodeType() == child.ELEMENT_NODE) {
if (child.getNodeType() == Node.ELEMENT_NODE) {
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height int original_height = block.height; Element elem = (Element) box.getNode(); // prepare for th...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/a02f21737e5cac245dc17710370c9c1eda2116b3/BoxLayout.java/buggy/src/java/org/xhtmlrenderer/layout/BoxLayout.java
return RubyNumeric.fix2int(((RubyString)o1).callMethod("<=>", (RubyString)o2));
StringMetaClass stringMC = (StringMetaClass)((RubyObject)o1).getMetaClass(); return RubyNumeric.fix2int( stringMC.op_cmp.call(stringMC.getRuntime(), (RubyString)o1, "<=>", new IRubyObject[] {(RubyString)o2}, false));
public int compare(Object o1, Object o2) { IRubyObject obj1 = (IRubyObject) o1; IRubyObject obj2 = (IRubyObject) o2; if (o1 instanceof RubyFixnum && o2 instanceof RubyFixnum) { long diff = RubyNumeric.fix2long(obj1) - RubyNumeric.fix2long(obj2); return di...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c0fab8d04fa8e9ab360549a713b46891222be5e1/RubyArray.java/clean/src/org/jruby/RubyArray.java
str.append(sep.callMethod("+", tmp));
str.append(((StringMetaClass)sep.getMetaClass()).op_plus.call(getRuntime(), sep, "+", new IRubyObject[] {tmp}, false));
public RubyString join(RubyString sep) { int length = getLength(); if (length == 0) { getRuntime().newString(""); } boolean taint = isTaint() || sep.isTaint(); RubyString str; IRubyObject tmp = entry(0); taint |= tmp.isTaint(); if (tmp instanceof Ru...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c0fab8d04fa8e9ab360549a713b46891222be5e1/RubyArray.java/clean/src/org/jruby/RubyArray.java
private InlineBox calculateInline(Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align) { //u.p("line calc with avail = " + avail); // calculate the starting index int start = 0; if(prev != null && prev.node == node) { start...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/InlineLayout.java/buggy/src/java/org/joshy/html/InlineLayout.java
public Box layoutChildren(Context c, Box box) { //u.p("InlineLayout.layoutChildren(: " + box); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); if(!box.isAnonymous()) { if(isBlockLayout(box.getElement(),c)) { return super.layoutChildren(c,box); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/InlineLayout.java/buggy/src/java/org/joshy/html/InlineLayout.java
if(debug_counter > 143) {
final int limit = 20; if(debug_counter > limit) {
public Box layoutChildren(Context c, Box box) { //u.p("InlineLayout.layoutChildren(: " + box); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); if(!box.isAnonymous()) { if(isBlockLayout(box.getElement(),c)) { return super.layoutChildren(c,box); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/InlineLayout.java/buggy/src/java/org/joshy/html/InlineLayout.java
if(debug_counter > 143) {
if(debug_counter > limit) {
public Box layoutChildren(Context c, Box box) { //u.p("InlineLayout.layoutChildren(: " + box); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); if(!box.isAnonymous()) { if(isBlockLayout(box.getElement(),c)) { return super.layoutChildren(c,box); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/InlineLayout.java/buggy/src/java/org/joshy/html/InlineLayout.java
public Box layoutChildren(Context c, Box box) { //u.p("InlineLayout.layoutChildren(: " + box); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); if(!box.isAnonymous()) { if(isBlockLayout(box.getElement(),c)) { return super.layoutChildren(c,box); ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/InlineLayout.java/buggy/src/java/org/joshy/html/InlineLayout.java
private void _fixNewLine() throws PortalException, SystemException { // This is a workaround for a limitation in Oracle sqlldr's inability // insert new line characters for long varchar columns. See // http://forums.liferay.com/index.php?showtopic=2761&hl=oracle for more // information. boolean checkNewLine = fal...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/618461f8eea7bb76ea7b6bcfd7e6d340cb704137/FixOracleAction.java/buggy/portal-ejb/src/com/liferay/portal/events/FixOracleAction.java
ExportAction.DEFAULT_CMS_GROUP_ID, 0, 1);
ExportAction.DEFAULT_CMS_GROUP_ID, 0, 5);
private void _fixNewLine() throws PortalException, SystemException { // This is a workaround for a limitation in Oracle sqlldr's inability // insert new line characters for long varchar columns. See // http://forums.liferay.com/index.php?showtopic=2761&hl=oracle for more // information. boolean checkNewLine = fal...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/618461f8eea7bb76ea7b6bcfd7e6d340cb704137/FixOracleAction.java/buggy/portal-ejb/src/com/liferay/portal/events/FixOracleAction.java
if (articles.size() == 1) { JournalArticle article = (JournalArticle)articles.get(0);
for (int i = 0; i < articles.size(); i++) { JournalArticle article = (JournalArticle)articles.get(i);
private void _fixNewLine() throws PortalException, SystemException { // This is a workaround for a limitation in Oracle sqlldr's inability // insert new line characters for long varchar columns. See // http://forums.liferay.com/index.php?showtopic=2761&hl=oracle for more // information. boolean checkNewLine = fal...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/618461f8eea7bb76ea7b6bcfd7e6d340cb704137/FixOracleAction.java/buggy/portal-ejb/src/com/liferay/portal/events/FixOracleAction.java
for (int i = 0; i < articles.size(); i++) { article = (JournalArticle)articles.get(i);
for (int j = 0; j < articles.size(); j++) { article = (JournalArticle)articles.get(j);
private void _fixNewLine() throws PortalException, SystemException { // This is a workaround for a limitation in Oracle sqlldr's inability // insert new line characters for long varchar columns. See // http://forums.liferay.com/index.php?showtopic=2761&hl=oracle for more // information. boolean checkNewLine = fal...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/618461f8eea7bb76ea7b6bcfd7e6d340cb704137/FixOracleAction.java/buggy/portal-ejb/src/com/liferay/portal/events/FixOracleAction.java
break;
private void _fixNewLine() throws PortalException, SystemException { // This is a workaround for a limitation in Oracle sqlldr's inability // insert new line characters for long varchar columns. See // http://forums.liferay.com/index.php?showtopic=2761&hl=oracle for more // information. boolean checkNewLine = fal...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/618461f8eea7bb76ea7b6bcfd7e6d340cb704137/FixOracleAction.java/buggy/portal-ejb/src/com/liferay/portal/events/FixOracleAction.java
root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes;
root.panel.view.getContext().debug_draw_boxes = !root.panel.view.getContext().debug_draw_boxes;
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_boxes = !root.panel.view.c.debug_draw_boxes; root.panel.view.repaint(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes;
root.panel.view.getContext().debug_draw_inline_boxes = !root.panel.view.getContext().debug_draw_inline_boxes;
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_inline_boxes = !root.panel.view.c.debug_draw_inline_boxes; root.panel.view.repaint(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes;
root.panel.view.getContext().debug_draw_line_boxes = !root.panel.view.getContext().debug_draw_line_boxes;
public void actionPerformed( ActionEvent evt ) { root.panel.view.c.debug_draw_line_boxes = !root.panel.view.c.debug_draw_line_boxes; root.panel.view.repaint(); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
if ( root.panel.view.c.css instanceof CSSBank ) { inspector = new DOMInspector( root.panel.view.doc );
if ( root.panel.view.getContext().css instanceof CSSBank ) { inspector = new DOMInspector( root.panel.view.getDocument() );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
inspector = new DOMInspector( root.panel.view.doc, root.panel.view.c, (XRStyleReference)root.panel.view.c.css );
inspector = new DOMInspector( root.panel.view.getDocument(), root.panel.view.getContext(), (XRStyleReference)root.panel.view.getContext().css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
if ( root.panel.view.c.css instanceof CSSBank ) { inspector.setForDocument( root.panel.view.doc );
if ( root.panel.view.getContext().css instanceof CSSBank ) { inspector.setForDocument( root.panel.view.getDocument() );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
inspector.setForDocument( root.panel.view.doc, root.panel.view.c, (XRStyleReference)root.panel.view.c.css );
inspector.setForDocument( root.panel.view.getDocument(), root.panel.view.getContext(), (XRStyleReference)root.panel.view.getContext().css );
public void actionPerformed( ActionEvent evt ) { if ( inspectorFrame == null ) { inspectorFrame = new JFrame( "DOM Tree Inspector" ); } if ( inspector == null ) { // inspectorFrame = new JFrame("DOM Tree Inspector"); // CLEAN: this is...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/624e150f307bd101e9ac6c8c8a352fa03998d20c/BrowserMenuBar.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/BrowserMenuBar.java
!appServerType.equals("pramati") &&
protected void checkArguments() { if (Validator.isNull(baseDir)) { throw new IllegalArgumentException( "The system property deployer.base.dir is not set"); } if (Validator.isNull(destDir)) { throw new IllegalArgumentException( "The system property deployer.dest.dir is not set"); } if (Validator.isNull(a...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0fd32acf65802b502b226084a4b5a5f5425f9a12/BaseDeployer.java/buggy/portal-ejb/src/com/liferay/portal/tools/BaseDeployer.java
Rectangle box = new Rectangle(block.x + margin.left + border.left - 1, block.y + margin.top + border.top - 1,
Rectangle box = new Rectangle(block.x + margin.left + border.left, block.y + margin.top + border.top,
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/36d41d42515cf524c6b858498cb3adfef5f8bed8/BackgroundPainter.java/clean/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
if (setChangeListeners == null) { boolean hadListeners = hasListeners(); setChangeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (setChangeListeners instanceof Collection) { listenerList = (Collection) setChangeListeners; } else { ISetChangeListener l = (ISetCh...
changeSupport.addListener(SetChangeEvent.TYPE, listener);
public void addSetChangeListener(ISetChangeListener listener) { if (setChangeListeners == null) { boolean hadListeners = hasListeners(); setChangeListeners = listener; if (!hadListeners) { firstListenerAdded(); } return; } Collection listenerList; if (setChangeListeners instanceof Collection) { list...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableSet.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/set/AbstractObservableSet.java
if (setChangeListeners == listener) { setChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (setChangeListeners instanceof Collection) { Collection listenerList = (Collection) setChangeListeners; listenerList.remove(listener); if (listenerList.size() == 0) { setChangeListeners = null...
changeSupport.removeListener(SetChangeEvent.TYPE, listener);
public void removeSetChangeListener(ISetChangeListener listener) { if (setChangeListeners == listener) { setChangeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (setChangeListeners instanceof Collection) { Collection listenerList = (Collection) setChangeListeners; list...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableSet.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/set/AbstractObservableSet.java
return Util.equals(this.enabler, that.enabler) && Util.equals(this.getWindow(), that.getWindow());
return equals(this.enabler, that.enabler) && equals(this.getWindow(), that.getWindow());
public final boolean equals(final Object object) { if (object instanceof LegacySelectionEnablerWrapper) { final LegacySelectionEnablerWrapper that = (LegacySelectionEnablerWrapper) object; return Util.equals(this.enabler, that.enabler) && Util.equals(this.getWindow(), that.getWindow()); } return false; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ba8772da3d063410cc9112f7f53da28a447f2704/LegacySelectionEnablerWrapper.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/expressions/LegacySelectionEnablerWrapper.java
public void run() { // go in ready state started = true; byte[] sizeArr = new byte[4]; while (!Thread.currentThread().isInterrupted()) { // check connection status if (!isConnected()) { break; } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Received remote identity: " + obj);
if (logVerbose) { log().verbose("Received remote identity: " + obj); }
public void run() { // go in ready state started = true; byte[] sizeArr = new byte[4]; while (!Thread.currentThread().isInterrupted()) { // check connection status if (!isConnected()) { break; } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Received magicId: " + remoteMagicId);
if (logVerbose) { log().verbose("Received magicId: " + remoteMagicId); }
public void run() { // go in ready state started = true; byte[] sizeArr = new byte[4]; while (!Thread.currentThread().isInterrupted()) { // check connection status if (!isConnected()) { break; } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Received identity reply: " + obj);
if (logVerbose) { log().verbose("Received identity reply: " + obj); }
public void run() { // go in ready state started = true; byte[] sizeArr = new byte[4]; while (!Thread.currentThread().isInterrupted()) { // check connection status if (!isConnected()) { break; } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Got streams");
if (logVerbose) { log().verbose("Got streams"); }
public ConnectionHandler(Controller controller, Socket socket) throws ConnectionException { super(controller); if (socket == null) { throw new NullPointerException("Socket is null"); } if (socket.isClosed() || !socket.isConnected()) { throw new ConnectionE...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose( "Sending my identity, nick: '" + myIdentity.member.nick + "', ID: " + myIdentity.member.id);
if (logVerbose) { log().verbose( "Sending my identity, nick: '" + myIdentity.member.nick + "', ID: " + myIdentity.member.id); }
public ConnectionHandler(Controller controller, Socket socket) throws ConnectionException { super(controller); if (socket == null) { throw new NullPointerException("Socket is null"); } if (socket.isClosed() || !socket.isConnected()) { throw new ConnectionE...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Connect took " + took + "ms");
if (logVerbose) { log().verbose("Connect took " + took + "ms"); }
public ConnectionHandler(Controller controller, Socket socket) throws ConnectionException { super(controller); if (socket == null) { throw new NullPointerException("Socket is null"); } if (socket.isClosed() || !socket.isConnected()) { throw new ConnectionE...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
public void setMember(Member member) { this.member = member; //if (member != null && member.isOnLAN()) { // getController().getNodeManager().addChatMember(member); // } }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Shutting down");
if (logVerbose) { log().verbose("Shutting down"); }
public void shutdown() { if (shutdown) { return; } shutdown = true; log().verbose("Shutting down"); boolean wasStarted = started; started = false; // Clear magic ids myMagicId = null; remoteMagicId = null; // Trigger all waiting treads...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
log().verbose("Waited for empty sendbuffer, clear now, proceeding");
if (logVerbose) { log().verbose( "Waited for empty sendbuffer, clear now, proceeding"); }
public void waitForEmptySendQueue() { boolean waited = false; while (!messagesToSend.isEmpty() && isConnected()) { try { // log().verbose("Waiting for empty send buffer"); waited = true; // Wait a bit the let the send queue get empty ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ConnectionHandler.java/buggy/src/main/de/dal33t/powerfolder/net/ConnectionHandler.java
if (mbMessage.isNew() || mbMessage.isModified()) { session = openSession(); if (mbMessage.isNew()) { MBMessage mbMessageModel = new MBMessage(); mbMessageModel.setTopicId(mbMessage.getTopicId()); mbMessageModel.setMessageId(mbMessage.getMessageId()); mbMessageModel.setCompanyId(mbMessage.getCompanyId()); mbMessageMode...
session = openSession(); session.saveOrUpdate(mbMessage); session.flush(); mbMessage.setNew(false);
public com.liferay.portlet.messageboards.model.MBMessage update( com.liferay.portlet.messageboards.model.MBMessage mbMessage) throws SystemException { Session session = null; try { if (mbMessage.isNew() || mbMessage.isModified()) { session = openSession(); if (mbMessage.isNew()) { MBMessage mbMessageMo...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBMessagePersistence.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/persistence/MBMessagePersistence.java
addDownload(event.getDownload());
addOrUpdateDownload(event.getDownload());
public void downloadRequested(TransferManagerEvent event) { addDownload(event.getDownload()); }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c04b32667837548ee5710851c46a20d60638af07/DownloadsTableModel.java/clean/src/main/de/dal33t/powerfolder/ui/transfer/DownloadsTableModel.java
addDownload(event.getDownload());
addOrUpdateDownload(event.getDownload());
public void pendingDownloadEnqueud(TransferManagerEvent event) { addDownload(event.getDownload()); }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c04b32667837548ee5710851c46a20d60638af07/DownloadsTableModel.java/clean/src/main/de/dal33t/powerfolder/ui/transfer/DownloadsTableModel.java
suite.addTest(ScriptTestSuite.suite());
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(TestRubyObject.class)); suite.addTest(new TestSuite(TestRubyNil.class)); suite.addTest(new TestSuite(TestRubyHash.class)); suite.addTest(new TestSuite(TestRubyTime.class)); suite.add...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4c0a90262b62b83d3fc5717371745bcc928c2b/MainTestSuite.java/buggy/org/jruby/test/MainTestSuite.java
workspaceLocation = Platform.getLocation().toOSString();
String name = null; if (cmdLineArgs.length > i + 1) name = cmdLineArgs[i+1]; if (name != null && name.indexOf("-") == -1) workspaceLocation = name; else workspaceLocation = Platform.getLocation().toOSString();
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/ee5df4327898d6396d062470f23eca8adae4cb18/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java
String priorityName = priority[0]; String priorityImage = priority[1]; double priorityValue = GetterUtil.getDouble(priority[2]);
try { String priorityName = priority[0]; String priorityImage = priority[1]; double priorityValue = GetterUtil.getDouble(priority[2]);
public static String[] getThreadPriority( PortletPreferences prefs, double value, ThemeDisplay themeDisplay) throws Exception { String[] priorities = prefs.getValues("priorities", new String[0]); for (int i = 0; i < priorities.length; i++) { String[] priority = StringUtil.split(priorities[i]); String priority...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/86aef0b238e0f296d902d993a3467ca758145317/MBUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/MBUtil.java
if (value == priorityValue) { if (!priorityImage.startsWith(Http.HTTP)) { priorityImage = themeDisplay.getPathThemeImage() + priorityImage;
if (value == priorityValue) { if (!priorityImage.startsWith(Http.HTTP)) { priorityImage = themeDisplay.getPathThemeImage() + priorityImage; } return new String[] {priorityName, priorityImage};
public static String[] getThreadPriority( PortletPreferences prefs, double value, ThemeDisplay themeDisplay) throws Exception { String[] priorities = prefs.getValues("priorities", new String[0]); for (int i = 0; i < priorities.length; i++) { String[] priority = StringUtil.split(priorities[i]); String priority...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/86aef0b238e0f296d902d993a3467ca758145317/MBUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/MBUtil.java
return new String[] {priorityName, priorityImage};
} catch (Exception e) {
public static String[] getThreadPriority( PortletPreferences prefs, double value, ThemeDisplay themeDisplay) throws Exception { String[] priorities = prefs.getValues("priorities", new String[0]); for (int i = 0; i < priorities.length; i++) { String[] priority = StringUtil.split(priorities[i]); String priority...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/86aef0b238e0f296d902d993a3467ca758145317/MBUtil.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/util/MBUtil.java
String categoryId, String topicId, String messageId, PageContext pageContext, RenderResponse res)
String categoryId, String messageId, PageContext pageContext, RenderResponse res)
public static String getBreadcrumbs( String categoryId, String topicId, String messageId, PageContext pageContext, RenderResponse res) throws Exception { if (Validator.isNotNull(topicId) && Validator.isNotNull(messageId)) { MBMessage message = MBMessageLocalServiceUtil.getMessage( topicId, messageId); ret...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBUtil.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/util/MBUtil.java
if (Validator.isNotNull(topicId) && Validator.isNotNull(messageId)) { MBMessage message = MBMessageLocalServiceUtil.getMessage( topicId, messageId);
if (Validator.isNotNull(messageId)) { MBMessage message = MBMessageLocalServiceUtil.getMessage(messageId);
public static String getBreadcrumbs( String categoryId, String topicId, String messageId, PageContext pageContext, RenderResponse res) throws Exception { if (Validator.isNotNull(topicId) && Validator.isNotNull(messageId)) { MBMessage message = MBMessageLocalServiceUtil.getMessage( topicId, messageId); ret...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBUtil.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/util/MBUtil.java
new BigDecimal("12.3"), new BigDecimal(500), new BigDecimal(500), new BigDecimal("12.3"), SYMBOL);
new BigDecimal("12.3"), new BigDecimal(500), new BigDecimal(500), new BigDecimal("12.3"), SYMBOL, null);
public static Message getTestableExecutionReport() { Message aMessage = FIXMessageUtil.newExecutionReport(new InternalID("456"), CL_ORD_ID, "987", ExecTransType.STATUS, ExecType.PARTIAL_FILL, OrdStatus.PARTIALLY_FILLED, Side.BUY, new BigDecimal(1000), new BigDecimal("12.3"), ne...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/6a34478b554292b36701d7eaebf25a934e3abba0/OrderManagerTest.java/buggy/source/trunk/src/test/java/org/marketcetera/photon/OrderManagerTest.java
fOut.write("\n".getBytes()); for (int i = 0; i < list.length; i++) { fOut.write((list[i].toDetailString() + "\n").getBytes());
fOut.write("\r\n".getBytes()); StringBuilder details = new StringBuilder(); for (int i = 0; i < list.length; i++) { list[i].toDetailString(details); details.append("\r\n");
public static boolean writeFileList(Collection<FileInfo> fileInfos, String header, File logFile) { if (logFile == null) { throw new NullPointerException("Logfile is null"); } if (fileInfos == null) { throw new NullPointerException("Files are null"); } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c0f64d9b80454961a41fbb95d8f7a566f704896c/Debug.java/buggy/src/main/de/dal33t/powerfolder/util/Debug.java
fOut.write(details.toString().getBytes());
public static boolean writeFileList(Collection<FileInfo> fileInfos, String header, File logFile) { if (logFile == null) { throw new NullPointerException("Logfile is null"); } if (fileInfos == null) { throw new NullPointerException("Files are null"); } ...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c0f64d9b80454961a41fbb95d8f7a566f704896c/Debug.java/buggy/src/main/de/dal33t/powerfolder/util/Debug.java
public TreeTest(String testName) { super(testName);
public TreeTest(String testName, int tagging) { super(testName, tagging);
public TreeTest(String testName) { super(testName); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2d68822a79e6e20d403c2debfba4b04bdf2e5057/TreeTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/performance/TreeTest.java
String topicId = ParamUtil.getString(req, "topicId");
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { try { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); MBMessageDisplay messageDisplay = MBM...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/ViewMessageAction.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/action/ViewMessageAction.java
topicId, messageId, req.getRemoteUser());
messageId, req.getRemoteUser());
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { try { String topicId = ParamUtil.getString(req, "topicId"); String messageId = ParamUtil.getString(req, "messageId"); MBMessageDisplay messageDisplay = MBM...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/ViewMessageAction.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/action/ViewMessageAction.java
if (userTracker.isNew() || userTracker.isModified()) { session = openSession(); if (userTracker.isNew()) { UserTracker userTrackerModel = new UserTracker(); userTrackerModel.setUserTrackerId(userTracker.getUserTrackerId()); userTrackerModel.setCompanyId(userTracker.getCompanyId()); userTrackerModel.setUserId(userTrack...
session = openSession(); session.saveOrUpdate(userTracker); session.flush(); userTracker.setNew(false);
public com.liferay.portal.model.UserTracker update( com.liferay.portal.model.UserTracker userTracker) throws SystemException { Session session = null; try { if (userTracker.isNew() || userTracker.isModified()) { session = openSession(); if (userTracker.isNew()) { UserTracker userTrackerModel = new User...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/UserTrackerPersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/UserTrackerPersistence.java