rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
this.targetEditor = targetEditor; | public void setActiveEditor(IAction action, IEditorPart targetEditor) { // TODO Auto-generated method stub } | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/c7273b4eae645cf907e1c657438fbc494b47b8f1/RunScriptActionDelegate.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/actions/RunScriptActionDelegate.java | |
java.lang.String topicId, java.lang.String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) | java.lang.String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) | public void addMessageResources(java.lang.String categoryId, java.lang.String topicId, java.lang.String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
public void deleteDiscussionMessage(java.lang.String topicId, java.lang.String messageId) | public void deleteDiscussionMessage(java.lang.String messageId) | public void deleteDiscussionMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
public void deleteMessage(java.lang.String topicId, java.lang.String messageId) | public void deleteMessage(java.lang.String messageId) | public void deleteMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
java.lang.String topicId, java.lang.String messageId) | java.lang.String messageId) | public com.liferay.portlet.messageboards.model.MBMessage getMessage( java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
java.lang.String topicId, java.lang.String messageId, java.lang.String userId) | java.lang.String messageId, java.lang.String userId) | public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay( java.lang.String topicId, java.lang.String messageId, java.lang.String userId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
java.lang.String topicId, java.lang.String messageId) | java.lang.String messageId) | public void subscribeMessage(java.lang.String userId, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
java.lang.String topicId, java.lang.String messageId) | java.lang.String messageId) | public void unsubscribeMessage(java.lang.String userId, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) | java.lang.String messageId, java.lang.String subject, java.lang.String body) | public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files, | java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files, | public com.liferay.portlet.messageboards.model.MBMessage updateMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files, javax.portlet.PortletPreferences prefs) throws com.liferay.portal.PortalException, co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/MBMessageLocalService.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/service/spring/MBMessageLocalService.java |
if (na.getMask().sameSubnet(addr, na.getAddress())) | if (na.isValid() && na.getMask().sameSubnet(addr, na.getAddress())) { | public static boolean isOnAnySubnet(Inet4Address addr) { if (localAddresses == null) { NetworkHelper nh = NetworkHelper.getInstance(); if (nh == null) { LOG.verbose("Subnet test not supported on this platform."); return false; } localA... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/149369b881f8c5fc9bac6e7e9629c9f1fe81689e/NetworkUtil.java/buggy/src/main/de/dal33t/powerfolder/util/net/NetworkUtil.java |
} | public static boolean isOnAnySubnet(Inet4Address addr) { if (localAddresses == null) { NetworkHelper nh = NetworkHelper.getInstance(); if (nh == null) { LOG.verbose("Subnet test not supported on this platform."); return false; } localA... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/149369b881f8c5fc9bac6e7e9629c9f1fe81689e/NetworkUtil.java/buggy/src/main/de/dal33t/powerfolder/util/net/NetworkUtil.java | |
public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, int noex) { | public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, Visibility visibility) { | public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, int noex) { this.name = name; this.originalName = originalName; this.recvClass = recvClass; this.origin = origin; this.method = method; this.noex = noex; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f05423516c2d1bfe54c4363eedb9654f7cfb6898/CacheEntry.java/buggy/org/jruby/internal/runtime/methods/CacheEntry.java |
this.noex = noex; | this.visibility = visibility; | public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, int noex) { this.name = name; this.originalName = originalName; this.recvClass = recvClass; this.origin = origin; this.method = method; this.noex = noex; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f05423516c2d1bfe54c4363eedb9654f7cfb6898/CacheEntry.java/buggy/org/jruby/internal/runtime/methods/CacheEntry.java |
int cmd_data_pos = property.indexOf(CMD_DATA); | int cmd_data_pos = property.lastIndexOf(CMD_DATA); | private String buildCommandLine(String workspace) { String property = System.getProperty(PROP_VM); if (property == null) { MessageDialog .openError( window.getShell(), IDEWorkbenchMessages ... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/69eb92afe2e2aaa1b9487e5c19f6b7e0eaf47f09/OpenWorkspaceAction.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/OpenWorkspaceAction.java |
public Object getContent(Context c) { | public List getContent(Context c) { | public Object getContent(Context c) { return ContentUtil.getInlineContentList(_elem, c); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/bbe26e114cd1f823901a5ca3d63b5fccfdfedf81/ReplacedContent.java/clean/src/java/org/xhtmlrenderer/layout/content/ReplacedContent.java |
if (mbMessageFlag.isNew() || mbMessageFlag.isModified()) { session = openSession(); if (mbMessageFlag.isNew()) { MBMessageFlag mbMessageFlagModel = new MBMessageFlag(); mbMessageFlagModel.setTopicId(mbMessageFlag.getTopicId()); mbMessageFlagModel.setMessageId(mbMessageFlag.getMessageId()); mbMessageFlagModel.setUserId... | session = openSession(); session.saveOrUpdate(mbMessageFlag); session.flush(); mbMessageFlag.setNew(false); | public com.liferay.portlet.messageboards.model.MBMessageFlag update( com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) throws SystemException { Session session = null; try { if (mbMessageFlag.isNew() || mbMessageFlag.isModified()) { session = openSession(); if (mbMessageFlag.isNew()) { ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBMessageFlagPersistence.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/service/persistence/MBMessageFlagPersistence.java |
public void handleValueChange( IObservableValue source, ValueDiff diff) { | public void handleValueChange(ValueChangeEvent event) { | public LabelProviderTest2() { // Create shell shell = new Shell(Display.getCurrent()); { // Initialize shell listOfRenamables = new WritableList(); list = new ListViewer(shell); ObservableListContentProvider contentProvider = new ObservableListContentProvider(); list.setContentProvider(contentProvider); l... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/LabelProviderTest2.java/clean/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/LabelProviderTest2.java |
public void handleValueChange( IObservableValue source, ValueDiff diff) { | public void handleValueChange(ValueChangeEvent event) { | public void handleValueChange( IObservableValue source, ValueDiff diff) { boolean shouldEnable = selectedRenamable .getValue() != null; removeButton.setEnabled(shouldEnable); renameButton.setEnabled(shouldEnable); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/LabelProviderTest2.java/clean/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/LabelProviderTest2.java |
try { final IBindingService bindingService = (IBindingService) PlatformUI .getWorkbench().getService(IBindingService.class); forwardTriggerSequences = bindingService .getActiveBindingsFor(commandForward); backwardTriggerSequences = bindingService .getActiveBindingsFor(commandBackward); } catch (final ComponentException... | final IBindingService bindingService = (IBindingService) PlatformUI .getWorkbench().getAdapter(IBindingService.class); forwardTriggerSequences = bindingService .getActiveBindingsFor(commandForward); backwardTriggerSequences = bindingService .getActiveBindingsFor(commandBackward); | private void openDialog(WorkbenchPage page) { final int MAX_ITEMS = 22; selection = null; final Shell dialog = new Shell(getWorkbenchWindow().getShell(), SWT.MODELESS); Display display = dialog.getDisplay(); dialog.setLayout(new FillLayout()); final Table table = new Table(dialog, SWT.SINGLE | SWT.FULL_SELECT... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2aa0965bbe6d7e1c9acd243af620354c7eb93e19/CyclePartAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CyclePartAction.java |
if (child.getMaster().getStyle().isBottomAuto()) { child.getMaster().positionAbsolute(c); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(getExtents(c)); Boxing.layout(c, (BlockBox)child.getMaster(), child.getLayoutData().getContent()); child.getMaster().positionAbsolute(c); } else { c.reInit(child... | layoutAbsoluteChild(c, child); if (child.getMaster().getStyle().isAvoidPageBreakInside() && child.getMaster().crossesPageBreak(c)) { ((BlockBox)child.getMaster()).setNeedPageClear(true); | private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/42bbce02cb8402bb5185ef484773e4f227fdc055/Layer.java/clean/src/java/org/xhtmlrenderer/layout/Layer.java |
child.getMaster().positionAbsolute(c); c.reInit(child.getLayoutData().getParentStyle()); c.setExtents(getExtents(c)); Boxing.layout(c, (BlockBox)child.getMaster(), child.getLayoutData().getContent()); | layoutAbsoluteChild(c, child); ((BlockBox)child.getMaster()).setNeedPageClear(false); | private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/42bbce02cb8402bb5185ef484773e4f227fdc055/Layer.java/clean/src/java/org/xhtmlrenderer/layout/Layer.java |
getMaster().positionAbsolute(c); | ((BlockBox)getMaster()).positionAbsolute(c); | private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { getMaster().positionAbsolute(c); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/42bbce02cb8402bb5185ef484773e4f227fdc055/Layer.java/clean/src/java/org/xhtmlrenderer/layout/Layer.java |
fixed.y = -rect.y; | fixed.y = 0; | private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/42bbce02cb8402bb5185ef484773e4f227fdc055/Layer.java/clean/src/java/org/xhtmlrenderer/layout/Layer.java |
fixed.positionAbsolute(c); | ((BlockBox)fixed).positionAbsolute(c); | private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/42bbce02cb8402bb5185ef484773e4f227fdc055/Layer.java/clean/src/java/org/xhtmlrenderer/layout/Layer.java |
c.setCurrentPage(i); | c.setPage(i, page); | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ed4e30c75a418dcfba3deca3184e2026f7497d16/BasicPanel.java/clean/src/java/org/xhtmlrenderer/swing/BasicPanel.java |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { | public static void justifyLine(Context c, LineBox line, int width) { if (line.width > width) { | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox)line.getChild( i ), temp_list ); | for (int i = 0; i < line.getChildCount(); i++) { splitInlineBox(c, (InlineBox) line.getChild(i), temp_list); | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
for ( int i = 0; i < temp_list.size(); i++ ) { InlineBox box = (InlineBox)temp_list.get( i ); | for (int i = 0; i < temp_list.size(); i++) { InlineBox box = (InlineBox) temp_list.get(i); | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
line.addChild( box ); | line.addChild(box); | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
int spaces = ( line.getChildCount() - 1 ); float spacer = extra / (float)spaces; | int spaces = (line.getChildCount() - 1); float spacer = extra / (float) spaces; | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
for ( int i = 0; i < line.getChildCount(); i++ ) { InlineBox box = (InlineBox)line.getChild( i ); box.x = total_lengths + (int)( spacer * (float)i ); | for (int i = 0; i < line.getChildCount(); i++) { InlineBox box = (InlineBox) line.getChild(i); box.x = total_lengths + (int) (spacer * (float) i); | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); | private static void splitInlineBox(Context c, InlineBox ibox, List temp_list) { if (!(ibox instanceof InlineTextBox)) { temp_list.add(ibox.copy()); | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); | InlineTextBox box = (InlineTextBox) ibox; String[] words = words(box); | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
if ( words.length < 2 ) { temp_list.add( box ); | if (words.length < 2) { temp_list.add(box); | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
int currentWordPosition = box.start_index + box.getSubstring().indexOf( words[0] ); for ( int i = 0; i < words.length; i++ ) { InlineTextBox copy = (InlineTextBox)box.copy(); copy.setSubstring( currentWordPosition, currentWordPosition + words[i].length() ); | int currentWordPosition = box.start_index + box.getSubstring().indexOf(words[0]); for (int i = 0; i < words.length; i++) { InlineTextBox copy = (InlineTextBox) box.copy(); copy.setSubstring(currentWordPosition, currentWordPosition + words[i].length()); | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
copy.width = FontUtil.len( c, copy ); temp_list.add( copy ); if ( i == 0 ) { | copy.width = FontUtil.len(c, copy); temp_list.add(copy); if (i == 0) { | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
} else if ( i == words.length - 1 ) { | } else if (i == words.length - 1) { | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
private static String[] words( InlineTextBox box ) { | private static String[] words(InlineTextBox box) { | private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
String[] words = text.split( "\\s" ); | String[] words = text.split("\\s"); | private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e137ab23808681c08f5b5cb777f93dc9c7d84363/TextAlignJustify.java/buggy/src/java/org/xhtmlrenderer/layout/inline/TextAlignJustify.java |
.equals(propertyChangeEvent.getProperty())) { | .equals(propertyChangeEvent.getProperty()) || IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR.equals(propertyChangeEvent.getProperty())) { | public void propertyChange(PropertyChangeEvent propertyChangeEvent) { if (IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR .equals(propertyChangeEvent.getProperty())) { update(); IContributionManager parent = getParent(); if (p... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/51e92fd6abcc618652938175012f421ba31a0a67/PerspectiveBarContributionItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveBarContributionItem.java |
if (journalStructure.isNew() || journalStructure.isModified()) { session = openSession(); if (journalStructure.isNew()) { JournalStructure journalStructureModel = new JournalStructure(); journalStructureModel.setCompanyId(journalStructure.getCompanyId()); journalStructureModel.setStructureId(journalStructure.getStruct... | session = openSession(); session.saveOrUpdate(journalStructure); session.flush(); journalStructure.setNew(false); | public com.liferay.portlet.journal.model.JournalStructure update( com.liferay.portlet.journal.model.JournalStructure journalStructure) throws SystemException { Session session = null; try { if (journalStructure.isNew() || journalStructure.isModified()) { session = openSession(); if (journalStructure.isNew(... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/JournalStructurePersistence.java/clean/portal-ejb/src/com/liferay/portlet/journal/service/persistence/JournalStructurePersistence.java |
throw new IndexError(runtime, "offset " + idx + " too large for struct (size:" + values.length + ")"); | throw getRuntime().newIndexError("offset " + idx + " too large for struct (size:" + values.length + ")"); | public IRubyObject aref(IRubyObject key) { if (key instanceof RubyString || key instanceof RubySymbol) { return getByName(key.asSymbol()); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { throw new IndexError(run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new IndexError(runtime, "offset " + idx + " too large for struct (size:" + values.length + ")"); | throw getRuntime().newIndexError("offset " + idx + " too large for struct (size:" + values.length + ")"); | public IRubyObject aref(IRubyObject key) { if (key instanceof RubyString || key instanceof RubySymbol) { return getByName(key.asSymbol()); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { throw new IndexError(run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new IndexError(runtime, "offset " + idx + " too large for struct (size:" + values.length + ")"); | throw getRuntime().newIndexError("offset " + idx + " too large for struct (size:" + values.length + ")"); | public IRubyObject aset(IRubyObject key, IRubyObject value) { if (key instanceof RubyString || key instanceof RubySymbol) { return setByName(key.asSymbol(), value); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new IndexError(runtime, "offset " + idx + " too large for struct (size:" + values.length + ")"); | throw getRuntime().newIndexError("offset " + idx + " too large for struct (size:" + values.length + ")"); | public IRubyObject aset(IRubyObject key, IRubyObject value) { if (key instanceof RubyString || key instanceof RubySymbol) { return setByName(key.asSymbol(), value); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
runtime.yield(values[i]); | getRuntime().yield(values[i]); | public IRubyObject each() { for (int i = 0; i < values.length; i++) { runtime.yield(values[i]); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return runtime.getTrue(); | return getRuntime().getTrue(); | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return runtime.getFalse(); | return getRuntime().getFalse(); | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return runtime.getFalse(); | return getRuntime().getFalse(); | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return runtime.getFalse(); | return getRuntime().getFalse(); | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return runtime.getTrue(); | return getRuntime().getTrue(); | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
String name = runtime.getCurrentFrame().getLastFunc(); | String name = getRuntime().getCurrentFrame().getLastFunc(); | public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.ent... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new NameError(runtime, name + " is not struct member"); | throw new NameError(getRuntime(), name + " is not struct member"); | public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.ent... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new NameError(runtime, name + " is not struct member"); | throw new NameError(getRuntime(), name + " is not struct member"); | private IRubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); | throw getRuntime().newArgumentError("struct size differs (" + args.length +" for " + size + ")"); | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
values[i] = runtime.getNil(); | values[i] = getRuntime().getNil(); | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return runtime.getNil(); | return getRuntime().getNil(); | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return RubyString.newString(runtime, sb.toString()); | return getRuntime().newString(sb.toString()); | public RubyString inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getMetaClass().getName()).append(' '); for (int i = 0... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new ArgumentError(runtime, "can't dump anonymous class"); | throw getRuntime().newArgumentError("can't dump anonymous class"); | public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw new ArgumentError(runtime, "can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
output.dumpObject(RubySymbol.newSymbol(runtime, className)); | output.dumpObject(RubySymbol.newSymbol(getRuntime(), className)); | public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw new ArgumentError(runtime, "can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
RubyArray result = RubyArray.newArray(recv.getRuntime(), member.getLength()); | RubyArray result = recv.getRuntime().newArray(member.getLength()); | public static RubyArray members(IRubyObject recv) { RubyArray member = (RubyArray) getInstanceVariable((RubyClass) recv, "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); RubyArray result = RubyArray.newArray(recv.getRuntime(), member.getLength()); for (int i = 0; i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
result.append(RubyString.newString(recv.getRuntime(), member.entry(i).asSymbol())); | result.append(recv.getRuntime().newString(member.entry(i).asSymbol())); | public static RubyArray members(IRubyObject recv) { RubyArray member = (RubyArray) getInstanceVariable((RubyClass) recv, "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); RubyArray result = RubyArray.newArray(recv.getRuntime(), member.getLength()); for (int i = 0; i... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
if (!isTaint() && runtime.getSafeLevel() >= 4) { throw new SecurityError(runtime, "Insecure: can't modify struct"); | if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw new SecurityError(getRuntime(), "Insecure: can't modify struct"); | private void modify() { testFrozen("Struct is frozen"); if (!isTaint() && runtime.getSafeLevel() >= 4) { throw new SecurityError(runtime, "Insecure: can't modify struct"); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
RubyArray member = RubyArray.newArray(recv.getRuntime()); | RubyArray member = recv.getRuntime().newArray(); | public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = RubyArray.newArray(recv.getRuntime()); for (int i = name == null ? 0 :... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
RubyStruct clone = new RubyStruct(runtime, getMetaClass()); | RubyStruct clone = new RubyStruct(getRuntime(), getMetaClass()); | public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(runtime, getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
String name = runtime.getCurrentFrame().getLastFunc(); | String name = getRuntime().getCurrentFrame().getLastFunc(); | public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!membe... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new NameError(runtime, name + " is not struct member"); | throw new NameError(getRuntime(), name + " is not struct member"); | public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!membe... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
throw new NameError(runtime, name + " is not struct member"); | throw new NameError(getRuntime(), name + " is not struct member"); | private IRubyObject setByName(String name, IRubyObject value) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).as... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return RubyFixnum.newFixnum(runtime, values.length); | return getRuntime().newFixnum(values.length); | public RubyFixnum size() { return RubyFixnum.newFixnum(runtime, values.length); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return RubyArray.newArray(runtime, values); | return getRuntime().newArray(values); | public RubyArray to_a() { return RubyArray.newArray(runtime, values); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
return RubyString.newString(runtime, "#<" + getMetaClass().getName() + ">"); | return getRuntime().newString("#<" + getMetaClass().getName() + ">"); | public RubyString to_s() { return RubyString.newString(runtime, "#<" + getMetaClass().getName() + ">"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java |
public IRubyObject raise(IRubyObject exc) { receivedException = exc; // FIXME return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/aa3fe2195e86c2c426f4012089ef8c66a66e925c/ThreadClass.java/buggy/org/jruby/ThreadClass.java | ||
}); | }, getProgressService()); | protected void refresh() { uiJob.setPriority(Job.INTERACTIVE); uiJob.setSystem(true); if (refreshJob == null) { refreshJob = new RestartableJob( Messages.format("MarkerView.refreshTitle", new Object[] {getTitle()}),//$NON-NLS-1$ new IRunnableWithProgress() { public void run(IProgressMonitor monitor) th... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3210b6df2e6fad056bb3f8ba7a63a227a932a18e/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java |
block.colspan = (int) c.getCurrentStyle().getFloatPropertyProportionalHeight(CSSName.FS_COLSPAN, 0, c.getCtx()); block.rowspan = (int) c.getCurrentStyle().getFloatPropertyProportionalHeight(CSSName.FS_ROWSPAN, 0, c.getCtx()); | block.colspan = (int) c.getCurrentStyle().getNumberProperty(CSSName.FS_COLSPAN); block.rowspan = (int) c.getCurrentStyle().getNumberProperty(CSSName.FS_ROWSPAN); | public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/794bef6c836a266f6bb86ba30929fb2f32d33147/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java |
port.addEntry(entry); | public void testGetProgress() { Portfolio port = new Portfolio(null, PORTFOLIO_NAME); PositionEntry entry = new PositionEntry(port, "NAME", new InternalID( "1234")); Message aMessage = FIXMessageUtil.newExecutionReport(new InternalID("1234"), new InternalID("456"), "987", ExecTransType.STATUS, ExecType.PARTIA... | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/a4d5e61ae89195496e52d3057b11ca28b49268d8/PortfolioTest.java/clean/source/trunk/src/test/java/org/marketcetera/photon/model/PortfolioTest.java | |
long totalSizeUploadingTo = uploadingToSize(upload | long totalPlannedSizeUploadingTo = uploadingToSize(upload | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c2a69dde217574a45de8ad4284d7d52d5a5667ad/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java |
if (totalSizeUploadingTo < 0) { totalSizeUploadingTo = 0; | if (totalPlannedSizeUploadingTo < 0) { totalPlannedSizeUploadingTo = 0; | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c2a69dde217574a45de8ad4284d7d52d5a5667ad/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java |
totalSizeUploadingTo += plannedSizeUploadingTo | totalPlannedSizeUploadingTo += plannedSizeUploadingTo | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c2a69dde217574a45de8ad4284d7d52d5a5667ad/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java |
if (totalSizeUploadingTo <= 5 * 1024 * 1024) { if (totalSizeUploadingTo >= 0) { | if (totalPlannedSizeUploadingTo <= 5 * 1024 * 1024) { if (totalPlannedSizeUploadingTo >= 0) { | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c2a69dde217574a45de8ad4284d7d52d5a5667ad/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java |
.formatBytesShort(totalSizeUploadingTo)); | .formatBytesShort(totalPlannedSizeUploadingTo)); | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/c2a69dde217574a45de8ad4284d7d52d5a5667ad/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java |
predLevel = (int)wc.mScale[id - 1]; | predLevel = (int) wc.mScale[id - 1]; | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
maxLevel = (int)wc.mScale[mote]; | maxLevel = (int) wc.mScale[mote]; | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
double curNbs[] = (double[])wc.mPredNB[mote]; | double curNbs[] = (double[]) wc.mPredNB[mote]; | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
updInfo[(int)wc.mScale[mote] - 1].add(new UpdateNB(mote, nb)); | updInfo[(int) wc.mScale[mote] - 1].add(new UpdateNB(mote, nb)); | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java | ||
neighbors[levelIdx] = new NeighborInfo[] {new NeighborInfo(id, 0)}; | neighbors[levelIdx] = new NeighborInfo[] { new NeighborInfo(id, 0) }; | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
UpdateNB curNb = (UpdateNB)updInfo[levelIdx].get(nb); | UpdateNB curNb = (UpdateNB) updInfo[levelIdx].get(nb); | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
double[] nbCoeff = (double[])wc.mUpdCoeff[curNb.predID]; neighbors[levelIdx][nb + 1] = new NeighborInfo(curNb.predID + 1, (float)nbCoeff[curNb.coeffIndex]); | double[] nbCoeff = (double[]) wc.mUpdCoeff[curNb.predID]; neighbors[levelIdx][nb + 1] = new NeighborInfo(curNb.predID + 1, (float) nbCoeff[curNb.coeffIndex]); | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
double[] predNb = (double[])wc.mPredNB[id - 1]; double[] predCoeff = (double[])wc.mPredCoeff[id - 1]; | double[] predNb = (double[]) wc.mPredNB[id - 1]; double[] predCoeff = (double[]) wc.mPredCoeff[id - 1]; | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
neighbors[levelIdx][nb + 1] = new NeighborInfo((int)predNb[nb], (float)predCoeff[nb]); | neighbors[levelIdx][nb + 1] = new NeighborInfo((int) predNb[nb], (float) predCoeff[nb]); | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/2df03952c4a0e178f4072ba8df53d40c895e731b/WaveletMote.java/buggy/java/edu/rice/compass/WaveletMote.java |
categoryId, topicId, messageId, addCommunityPermissions, | categoryId, messageId, addCommunityPermissions, | private void _upgradeMessage(String categoryId, String topicId) throws Exception { Connection con = null; PreparedStatement ps = null; ResultSet rs = null; try { con = DataAccess.getConnection(Constants.DATA_SOURCE); ps = con.prepareStatement(_UPGRADE_MESSAGE_1); ps.setString(1, topicId); rs = ps.executeQ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/d6b02fdb73be07a1fc7332713e89293b3822dfb8/UpgradeMessageBoards.java/clean/portal-ejb/src/com/liferay/portal/upgrade/v4_0_0/UpgradeMessageBoards.java |
return mapping.findForward("portlet.alfresco_content.view"); | if (Validator.isNull(previewURL)) { return mapping.findForward("portlet.alfresco_content.view_1"); } else { return mapping.findForward("portlet.alfresco_content.view_2"); } | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { PortletPreferences prefs = req.getPreferences(); String baseURL = prefs.getValue("base-url", StringPool.BLANK); String indexURL = prefs.getValue("index-url", Stri... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/7e67a14daae0c7cceb4a1f93e1813055289edf7a/ViewAction.java/clean/portal-ejb/src/com/liferay/portlet/alfrescocontent/action/ViewAction.java |
separator = "\n\n"; | separator = IOHandler.PARAGRAPH_DELIMETER; | public RubyString internalGets(IRubyObject[] args) { checkReadable(); IRubyObject sepVal = getRuntime().getGlobalVariables().get("$/"); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (sep... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/bfc752d452498803705e38ec187ad20d17a675c4/RubyIO.java/buggy/src/org/jruby/RubyIO.java |
suite.addTestSuite(LexerTest.class); suite.addTestSuite(ScriptRegistryTest.class); | public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(StockOrderTicketViewTest.class); suite.addTestSuite(FIXMessagesViewTest.class); suite.addTestSuite(FillsViewTest.class); suite.addTestSuite(AveragePricesViewTest.class); suite.addTestSuite(ParserTest.class); return suite; } | 52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/ba5aa8e52b830c2120eb01f3cd9004890ae578e2/TS_Photon.java/clean/source/trunk/plugins/org.marketcetera.photon.tests/src/test/java/org/marketcetera/photon/TS_Photon.java | |
getRuntime().yield(RubyFixnum.newFixnum(getRuntime(), i)); | getRuntime().yield(getRuntime().newFixnum(i)); | public IRubyObject each() { if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { long endLong = ((RubyNumeric) end).getLongValue(); long i = ((RubyNumeric) begin).getLongValue(); if (!isExclusive) { endLong += 1; } for (; i < en... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
return RubyBoolean.newBoolean(getRuntime(), result); | return getRuntime().newBoolean(result); | public IRubyObject equal(IRubyObject obj) { if (!(obj instanceof RubyRange)) { return getRuntime().getFalse(); } RubyRange otherRange = (RubyRange) obj; boolean result = begin.equals(otherRange.begin) && end.equals(otherRange.end) && isExclusiv... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
return RubyBoolean.newBoolean(getRuntime(), isExclusive); | return getRuntime().newBoolean(isExclusive); | public RubyBoolean exclude_end_p() { return RubyBoolean.newBoolean(getRuntime(), isExclusive); } | 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 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.