rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
current.setMarkerData(markerData);
private static void positionVertically( LayoutContext c, Box container, LineBox current, MarkerData markerData) { if (current.getChildCount() == 0) { current.height = 0; } else { LineMetrics strutLM = container.getStyle().getLineMetrics(c); VerticalAlignCont...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8201cacc8af3fd808d6f2e488d68abbbd79a0b0/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
current.addNonFlowContent(abs);
if (abs != null) { current.addNonFlowContent(abs); }
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e8201cacc8af3fd808d6f2e488d68abbbd79a0b0/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
addTest(new JFacePerformanceSuite());
public UIPerformanceTestSuite() { addTest(new ActivitiesPerformanceSuite()); addTest(new PresentationPerformanceTestSuite()); addTest(new WorkbenchPerformanceSuite()); addTest(new ViewPerformanceSuite()); addTest(new EditorPerformanceSuite()); addTest(new TestSuite(Commands...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2d68822a79e6e20d403c2debfba4b04bdf2e5057/UIPerformanceTestSuite.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/performance/UIPerformanceTestSuite.java
public void handleChange(IObservable source) {
public void handleChange(ChangeEvent event) {
public void testScenario14() { Text t1 = new Text(getComposite(), SWT.BORDER); Text t2 = new Text(getComposite(), SWT.BORDER); getDbc().bindValue(SWTObservables.observeText(t1, SWT.Modify), BeansObservables.observeValue(adventure, "name"), null); getDbc().bindValue(SWTObservables.obser...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/PropertyScenarios.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/PropertyScenarios.java
public void handleChange(IObservable source) {
public void handleChange(ChangeEvent event) {
public void handleChange(IObservable source) { // Count how many times adventure has changed counter[0]++; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6aecdb31231a8602dbf72944625703c440949c78/PropertyScenarios.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/PropertyScenarios.java
log().warn(
log().info(
private boolean processBroadcast(DatagramPacket packet) { if (packet == null) { throw new NullPointerException("Packet is null"); } if (packet.getData() == null) { throw new NullPointerException("Packet data is null"); } byte[] content = new byte[packet.getLe...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/3088012a817f09615cb41d472a74fce5ebca6029/BroadcastMananger.java/clean/src/main/de/dal33t/powerfolder/net/BroadcastMananger.java
String plid = ParamUtil.getString(request, "p_l_id");
String plid = _getPlid(request.getPathInfo(), ParamUtil.getString(request, "p_l_id"));
public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { if (USE_LAYOUT_CACHE_FILTER) { _log.debug("Layout Cache is enabled"); } else { _log.debug("Layout Cache is disabled"); } HttpServletRequest request = (HttpServletRequest)req; HttpServle...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8311ae9570b25acf1411b7be0c2156fbdfc27de9/LayoutCacheFilter.java/buggy/portal-ejb/src/com/liferay/portal/servlet/filters/layoutcache/LayoutCacheFilter.java
synchronized (FriendlyURLServlet.class) { ServletContext ctx = filterConfig.getServletContext(); _companyId = ctx.getInitParameter("company_id"); _friendly = GetterUtil.getBoolean(filterConfig.getInitParameter( "friendly")); }
public void init(FilterConfig filterConfig) { }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8311ae9570b25acf1411b7be0c2156fbdfc27de9/LayoutCacheFilter.java/buggy/portal-ejb/src/com/liferay/portal/servlet/filters/layoutcache/LayoutCacheFilter.java
nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilClass.defineMethod("to_a", getMethodToA()); nilClass.defineMethod("inspect", getMethodInspect());
nilClass.defineMethod("type", getMethod("m_type")); nilClass.defineMethod("to_i", getMethod("m_to_")); nilClass.defineMethod("to_s", getMethod("m_to_s")); nilClass.defineMethod("to_a", getMethod("m_to_a")); nilClass.defineMethod("inspect", getMethod("m_inspect"));
public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getObjectClass()); nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilCl...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/60d09f0d06e157ff7d9bb828d89273706e4e2798/RbNilClass.java/buggy/org/jruby/core/RbNilClass.java
nilClass.defineMethod("&", getMethodAnd()); nilClass.defineMethod("|", getMethodOr()); nilClass.defineMethod("^", getMethodXor());
nilClass.defineMethod("&", getMethod("op_and", RubyObject.class)); nilClass.defineMethod("|", getMethod("op_or", RubyObject.class)); nilClass.defineMethod("^", getMethod("op_xor", RubyObject.class));
public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getObjectClass()); nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilCl...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/60d09f0d06e157ff7d9bb828d89273706e4e2798/RbNilClass.java/buggy/org/jruby/core/RbNilClass.java
/*
public static void layoutContent(LayoutContext c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obje...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/BlockBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
int down = 0; if (child_box.getStyle().isClearLeft()) { down = Math.max(down, c.getBlockFormattingContext().getLeftDownDistance(child_box)); } if (child_box.getStyle().isClearRight()) { down = Math.max(down, c.getBlockFormattingContext().getRightDownDistance(child_box)); } int diff = down - child_box.y; if...
int currentX = child_box.x; c.getBlockFormattingContext().clear(c, child_box); box.height += child_box.x - currentX;
public static void layoutContent(LayoutContext c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obje...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/BlockBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
*/
public static void layoutContent(LayoutContext c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obje...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e4a850d2659ab4206b49796821938803b48f1797/BlockBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
if (input == null) return null;
protected IEditorPart getEditorPart() { return page.findEditor(input); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/9def7f1877569634a15129fdfdba108be21ce3b0/NavigationLocation.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/NavigationLocation.java
configHash.aset(RubyString.newString(runtime, key), RubyString.newString(runtime, value));
configHash.aset(runtime.newString(key), runtime.newString(value));
private void setConfig(String key, String value) { Ruby runtime = configHash.getRuntime(); configHash.aset(RubyString.newString(runtime, key), RubyString.newString(runtime, value)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RbConfig.java/clean/src/org/jruby/libraries/RbConfig.java
LogFactoryUtil.setLogFactory(new LogFactoryImpl());
LogFactoryUtil.setLogFactory(new CommonsLogFactoryImpl());
public void run(String[] ids) throws ActionException { // Set default locale String userLanguage = SystemProperties.get("user.language"); String userCountry = SystemProperties.get("user.country"); String userVariant = SystemProperties.get("user.variant"); if (Validator.isNull(userVariant)) { Locale.setDefault(n...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c26c278b568cc398e3f9799f5354d071a7fcb4ef/InitAction.java/clean/portal-ejb/src/com/liferay/portal/events/InitAction.java
IRubyObject topSelf = new RubyObject(runtime, runtime.getClasses().getObjectClass());
IRubyObject topSelf = new RubyObject(runtime, runtime.getObject());
public static IRubyObject createTopSelf(final Ruby runtime) { IRubyObject topSelf = new RubyObject(runtime, runtime.getClasses().getObjectClass()); topSelf.defineSingletonMethod("to_s", new Callback() { /** * @see org.jruby.runtime.callback.Callback#execute(IRubyObject, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
return runtime.getClasses().getObjectClass().include(args);
return runtime.getObject().include(args);
public static IRubyObject createTopSelf(final Ruby runtime) { IRubyObject topSelf = new RubyObject(runtime, runtime.getClasses().getObjectClass()); topSelf.defineSingletonMethod("to_s", new Callback() { /** * @see org.jruby.runtime.callback.Callback#execute(IRubyObject, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
return runtime.getClasses().getObjectClass().rbPublic(args);
return runtime.getObject().rbPublic(args);
public static IRubyObject createTopSelf(final Ruby runtime) { IRubyObject topSelf = new RubyObject(runtime, runtime.getClasses().getObjectClass()); topSelf.defineSingletonMethod("to_s", new Callback() { /** * @see org.jruby.runtime.callback.Callback#execute(IRubyObject, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
return runtime.getClasses().getObjectClass().rbPrivate(args);
return runtime.getObject().rbPrivate(args);
public static IRubyObject createTopSelf(final Ruby runtime) { IRubyObject topSelf = new RubyObject(runtime, runtime.getClasses().getObjectClass()); topSelf.defineSingletonMethod("to_s", new Callback() { /** * @see org.jruby.runtime.callback.Callback#execute(IRubyObject, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
return runtime.getClasses().getObjectClass().include(args);
return runtime.getObject().include(args);
public IRubyObject execute(IRubyObject recv, IRubyObject[] args) { runtime.secure(4); return runtime.getClasses().getObjectClass().include(args); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
return runtime.getClasses().getObjectClass().rbPublic(args);
return runtime.getObject().rbPublic(args);
public IRubyObject execute(IRubyObject recv, IRubyObject[] args) { return runtime.getClasses().getObjectClass().rbPublic(args); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
return runtime.getClasses().getObjectClass().rbPrivate(args);
return runtime.getObject().rbPrivate(args);
public IRubyObject execute(IRubyObject recv, IRubyObject[] args) { return runtime.getClasses().getObjectClass().rbPrivate(args); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/TopSelfFactory.java/buggy/src/org/jruby/TopSelfFactory.java
u.p("really starting new thread"); u.p("threaded = " + threaded);
public synchronized void startLayout(Graphics g) { if(isLayoutDone()) { u.p("really starting new thread"); u.p("threaded = " + threaded); done = false; graphics = g; if(threaded) { new Thread(this).start(); } else { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3c2f0ef16203d2439d43879f53050721938d14f5/LayoutThread.java/clean/src/java/org/xhtmlrenderer/swing/LayoutThread.java
public synchronized void startRender(Graphics g) { g.setColor(Color.black); if(this.isLayoutDone()) { if(panel.body_box != null) { //u.p("really painting: " + panel.body_box); try { panel.doRender(); } catch (Throwable thr) { ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3c2f0ef16203d2439d43879f53050721938d14f5/LayoutThread.java/clean/src/java/org/xhtmlrenderer/swing/LayoutThread.java
protected void startLayout(Graphics g) {
public void startLayout(Graphics g) {
protected void startLayout(Graphics g) { this.removeAll(); if ( g == null ) { return; } if ( doc == null ) { return; } Element html = (Element)doc.getDocumentElement(); //Element body = x.child( html, "body" ); //body = html; // se...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/040a341c611461667189a970db0e981b4033ce96/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
public void doRender() {
protected void doRender() {
public void doRender() { layout.getRenderer().paint( getRenderingContext().getContext(), body_box ); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/040a341c611461667189a970db0e981b4033ce96/HTMLPanel.java/buggy/src/java/org/xhtmlrenderer/swing/HTMLPanel.java
info.setInlineBox(currentIB);
private static InlineBox addNestedInlineBoxes(LayoutContext c, LineBox line, List elementStack, int cbWidth) { InlineBox currentIB = null; InlineBox previousIB = null; boolean first = true; for (Iterator i = elementStack.iterator(); i.hasNext();) { InlineBoxInfo in...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/896815046512a694d058c8675cf95500abc248aa/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
if (currentLine.isFirstLine() && hasFirstLinePCs) { lbContext.setMaster(TextUtil.transformText( text.getText(), c.getCurrentStyle())); }
public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/896815046512a694d058c8675cf95500abc248aa/InlineBoxing.java/clean/src/java/org/xhtmlrenderer/layout/InlineBoxing.java
System.out.println(""+isChecked());
view.setShowHeartbeats(isChecked());
public void run() { System.out.println(""+isChecked()); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/baf951cf5ccda70586b4d9ffdcb6835d0bcfe319/ShowHeartbeatsAction.java/clean/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/actions/ShowHeartbeatsAction.java
needsRestart |= !Util.equals(locale.getLanguage(), Translation .getActiveLocale().getLanguage());
needsRestart |= !Util.equals(locale, Translation.getActiveLocale());
public void save() { // Write properties into core writeTrigger.triggerCommit(); // Set locale if (languageChooser.getSelectedItem() instanceof Locale) { Locale locale = (Locale) languageChooser.getSelectedItem(); // Check if we need to restart needsResta...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/77b577b2e8f30cae24327d6a2981376708ffddb6/GeneralSettingsTab.java/buggy/src/main/de/dal33t/powerfolder/ui/preferences/GeneralSettingsTab.java
getQuoteJmsTemplate().convertAndSend(quoteMessage);
getQuoteJmsOperations().convertAndSend(quoteMessage);
public void simulateQuote(MSymbol symbol) { MarketDataSnapshotFullRefresh quoteMessage = new MarketDataSnapshotFullRefresh(); quoteMessage.setField(new Symbol(symbol.getBaseSymbol())); //agl not setting any other fields as only care about the symbol for mocking getQuoteJmsTemplate().convertAndSend(quoteMessage); }
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/ba5aa8e52b830c2120eb01f3cd9004890ae578e2/MockQuoteFeed.java/buggy/source/trunk/plugins/org.marketcetera.photon.tests/src/test/java/org/marketcetera/photon/scripting/MockQuoteFeed.java
MessageHolder latestMessage = null; for (MessageHolder holder : messages) { Message message = holder.getMessage(); if (filter(holder)) {
MessageHolder latestMessageHolder = null; for (MessageHolder loopMessageHolder : messages) { if (filter(loopMessageHolder)) {
public MessageHolder evaluate(List<MessageHolder> messages) { MessageHolder latestMessage = null; for (MessageHolder holder : messages) { Message message = holder.getMessage(); if (filter(holder)) { try { if (latestMessage == null){ latestMessage = holder; } else { Date newTime = message.get...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/48153406f5051ec752935487d4f294d7298761d8/LatestMessageFunction.java/buggy/source/trunk/src/main/java/org/marketcetera/photon/editors/LatestMessageFunction.java
if (latestMessage == null){ latestMessage = holder;
if (latestMessageHolder == null){ latestMessageHolder = loopMessageHolder;
public MessageHolder evaluate(List<MessageHolder> messages) { MessageHolder latestMessage = null; for (MessageHolder holder : messages) { Message message = holder.getMessage(); if (filter(holder)) { try { if (latestMessage == null){ latestMessage = holder; } else { Date newTime = message.get...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/48153406f5051ec752935487d4f294d7298761d8/LatestMessageFunction.java/buggy/source/trunk/src/main/java/org/marketcetera/photon/editors/LatestMessageFunction.java
Date newTime = message.getUtcTimeStamp(TransactTime.FIELD); Date existingTime = latestMessage.getMessage().getUtcTimeStamp(TransactTime.FIELD); int compareVal = newTime.compareTo(existingTime); if (compareVal > 0 || (compareVal == 0 && holder.getMessageReference() > latestMessage.getMessageReference())) { latestMessage...
if (isLater(loopMessageHolder, latestMessageHolder)){ latestMessageHolder = loopMessageHolder;
public MessageHolder evaluate(List<MessageHolder> messages) { MessageHolder latestMessage = null; for (MessageHolder holder : messages) { Message message = holder.getMessage(); if (filter(holder)) { try { if (latestMessage == null){ latestMessage = holder; } else { Date newTime = message.get...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/48153406f5051ec752935487d4f294d7298761d8/LatestMessageFunction.java/buggy/source/trunk/src/main/java/org/marketcetera/photon/editors/LatestMessageFunction.java
return latestMessage;
return latestMessageHolder;
public MessageHolder evaluate(List<MessageHolder> messages) { MessageHolder latestMessage = null; for (MessageHolder holder : messages) { Message message = holder.getMessage(); if (filter(holder)) { try { if (latestMessage == null){ latestMessage = holder; } else { Date newTime = message.get...
52787 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52787/48153406f5051ec752935487d4f294d7298761d8/LatestMessageFunction.java/buggy/source/trunk/src/main/java/org/marketcetera/photon/editors/LatestMessageFunction.java
ib.setParent(this);
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2486e0a7d32e8bf7a5ba0aa3c3626b52ad12da3c/LineBox.java/buggy/src/java/org/xhtmlrenderer/render/LineBox.java
if (ib.isChildrenExceedBounds()) { setChildrenExceedBounds(true); }
Boxing.checkExceeds(ib); propagateChildProperties(ib);
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) { throw new NullPointerException("trying to add null child"); } if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (chil...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/2486e0a7d32e8bf7a5ba0aa3c3626b52ad12da3c/LineBox.java/buggy/src/java/org/xhtmlrenderer/render/LineBox.java
super(runtime, (RubyClass) runtime.getClasses().getClassFromPath("Java::JavaClass"), javaClass);
super(runtime, (RubyClass) runtime.getModule("Java").getClass("JavaClass"), javaClass);
private JavaClass(Ruby runtime, Class javaClass) { super(runtime, (RubyClass) runtime.getClasses().getClassFromPath("Java::JavaClass"), javaClass); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
RubyClass result = javaModule.defineClassUnder("JavaClass", runtime.getClasses().getJavaObjectClass());
RubyClass result = javaModule.defineClassUnder("JavaClass", runtime.getClass("JavaObject"));
public static RubyClass createJavaClassClass(Ruby runtime, RubyModule javaModule) { RubyClass result = javaModule.defineClassUnder("JavaClass", runtime.getClasses().getJavaObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(JavaClass.class); result.includeModule(runt...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
result.includeModule(runtime.getClasses().getComparableModule());
result.includeModule(runtime.getModule("Comparable"));
public static RubyClass createJavaClassClass(Ruby runtime, RubyModule javaModule) { RubyClass result = javaModule.defineClassUnder("JavaClass", runtime.getClasses().getJavaObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(JavaClass.class); result.includeModule(runt...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
throw getRuntime().newTypeError(lengthArgument, getRuntime().getClasses().getIntegerClass());
throw getRuntime().newTypeError(lengthArgument, getRuntime().getClass("Integer"));
public JavaObject new_array(IRubyObject lengthArgument) { if (! (lengthArgument instanceof RubyInteger)) { throw getRuntime().newTypeError(lengthArgument, getRuntime().getClasses().getIntegerClass()); } int length = (int) ((RubyInteger) lengthArgument).getLongValue(); return n...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/JavaClass.java/clean/src/org/jruby/javasupport/JavaClass.java
return ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG;
return ph.getLexState() == LexState.EXPR_ARG;
private boolean IS_ARG() { return ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
ph.setCommandStart(true);
public NODE yycompile(String f, int line) { RubyId sl_id = ruby.intern("SCRIPT_LINES__"); if (!ph.isCompileForEval() && ruby.getSecurityLevel() == 0 && ruby.getClasses().getObjectClass().isConstantDefined(sl_id)) { RubyHash hash = (RubyHash)ruby.getClasses().getObjectClass().getConstant(sl_...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
boolean space_seen = false; boolean cmd_state;
int space_seen = 0;
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
cmd_state = ph.isCommandStart(); ph.setCommandStart(false);
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
space_seen = true;
space_seen++;
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
ph.setCommandStart(true);
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (IS_ARG() && space_seen && !ISSPACE(c)) {
if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
(!IS_ARG() || space_seen)) {
(!IS_ARG() || space_seen != 0)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG) {
if (ph.getLexState() == LexState.EXPR_END) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (IS_ARG() && space_seen && !ISSPACE(c)) {
if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
(IS_ARG() && space_seen && !ISSPACE(c))) {
(IS_ARG() && space_seen != 0 && !ISSPACE(c))) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
(IS_ARG() && space_seen && !ISSPACE(c))) {
(IS_ARG() && space_seen != 0 && !ISSPACE(c))) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
(IS_ARG() && space_seen)) {
(IS_ARG() && space_seen != 0)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG || ISSPACE(c)) {
if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (IS_ARG() && space_seen) {
if (IS_ARG() && space_seen != 0) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
} else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; }
} else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call");
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
} else if (IS_ARG() && space_seen) {
} else if (IS_ARG() && space_seen != 0) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (!IS_ARG()) { if (space_seen && ph.getLexState() == LexState.EXPR_ENDARG) { c = Token.tLBRACE_ARG; } if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG) { c = Token.tLBRACE; }
if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE;
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
space_seen = true; continue retry;
space_seen = 1; continue retry;
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (IS_ARG() && space_seen && !ISSPACE(c)) {
if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
/* * xxx shouldn't check if valid option variable */
/* xxx shouldn't check if valid option variable */
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
case '&': case '`': case '\'': case '+':
case '&': case '`': case '\'': case '+':
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
if (CMDARG_P() && state != LexState.EXPR_CMDARG) {
if (CMDARG_P()) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG) { if (cmd_state) { ph.setLexState(LexState.EXPR_CMDARG); } else {
ph.getLexState() == LexState.EXPR_ARG) {
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
}
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
yyVal = /* last_id = */ ruby.intern(tok());
yyVal = ruby.intern(tok());
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\00...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/buggy/org/jruby/parser/DefaultRubyParser.java
IMarker[] markers = getSelectedMarkers(selection); for (int i = 0; i < markers.length; i++) { if (IDE.getMarkerHelpRegistry().hasResolutions(markers[i])) {
if(Util.isSingleConcreteSelection(selection)){ if(IDE.getMarkerHelpRegistry().hasResolutions(getSelectedMarker())){
public void selectionChanged(IStructuredSelection selection) { IMarker[] markers = getSelectedMarkers(selection); for (int i = 0; i < markers.length; i++) { if (IDE.getMarkerHelpRegistry().hasResolutions(markers[i])) { setEnabled(true); return; } } setEnabled(false); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7dbbcd197c4d9896669ffabd778f42aee079a909/ActionResolveMarker.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionResolveMarker.java
public void selectionChanged(IStructuredSelection selection) { IMarker[] markers = getSelectedMarkers(selection); for (int i = 0; i < markers.length; i++) { if (IDE.getMarkerHelpRegistry().hasResolutions(markers[i])) { setEnabled(true); return; } } setEnabled(false); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7dbbcd197c4d9896669ffabd778f42aee079a909/ActionResolveMarker.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ActionResolveMarker.java
buildPreference = new Button(parent, SWT.CHECK); buildPreference.setText("Restore 2.1 rebuild actions for this session"); buildPreference.setSelection(WorkbenchActionBuilder.INCLUDE_REBUILD_ACTIONS); buildPreference.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { WorkbenchAc...
buildPreference = new Button(parent, SWT.CHECK | SWT.TOP); buildPreference.setText("Restore 2.1 rebuild actions for this session"); buildPreference .setSelection(WorkbenchActionBuilder.INCLUDE_REBUILD_ACTIONS); buildPreference.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) {...
private void createBuildControls(Composite parent) { buildPreference = new Button(parent, SWT.CHECK); buildPreference.setText("Restore 2.1 rebuild actions for this session"); //$NON-NLS-1$ buildPreference.setSelection(WorkbenchActionBuilder.INCLUDE_REBUILD_ACTIONS); buildPreference.addSelectionListener(new Selecti...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
WorkbenchActionBuilder.setIncludeRebuildActions(buildPreference.getSelection()); }
WorkbenchActionBuilder.setIncludeRebuildActions(buildPreference .getSelection()); }
public void widgetSelected(SelectionEvent e) { WorkbenchActionBuilder.setIncludeRebuildActions(buildPreference.getSelection()); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
createBuildControls(parent); createRefreshControls(parent); return parent; }
Composite spacer = new Composite(parent,SWT.NONE); createBuildControls(spacer); GridData spacerData = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); spacer.setLayoutData(spacerData); spacer.setLayout(new GridLayout()); return spacer; }
protected Control createContents(Composite parent) { createBuildControls(parent); createRefreshControls(parent); return parent; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
}
}
public void init(IWorkbench workbench) { //Nothing to do here }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
slider.setSelection(FAST); setLabelText(FAST); boolean autoRefresh = ResourcesPlugin.getPlugin().getPluginPreferences().getDefaultBoolean( ResourcesPlugin.PREF_AUTO_REFRESH); autoRefreshButton.setSelection(autoRefresh); pollingRefreshText.setEnabled(autoRefresh); pollingRefreshText.setText( ResourcesPlugin.getPlugin()...
setLabelText(FAST); }
protected void performDefaults() { slider.setSelection(FAST); setLabelText(FAST); boolean autoRefresh = ResourcesPlugin.getPlugin().getPluginPreferences().getDefaultBoolean( ResourcesPlugin.PREF_AUTO_REFRESH); autoRefreshButton.setSelection(autoRefresh); pollingRefreshText.setEnabled(autoRefresh); pollingRe...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
Platform.getPlugin(Platform.PI_RUNTIME).getPluginPreferences().setValue( Platform.PREF_PLATFORM_PERFORMANCE, slider.getSelection()); Platform.getPlugin(Platform.PI_RUNTIME).savePluginPreferences();
Platform.getPlugin(Platform.PI_RUNTIME).savePluginPreferences();
public boolean performOk() { Platform.getPlugin(Platform.PI_RUNTIME).getPluginPreferences().setValue( Platform.PREF_PLATFORM_PERFORMANCE, slider.getSelection()); Platform.getPlugin(Platform.PI_RUNTIME).savePluginPreferences(); Preferences preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); boolea...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
Preferences preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); boolean autoRefresh = autoRefreshButton.getSelection(); preferences.setValue(ResourcesPlugin.PREF_AUTO_REFRESH, autoRefresh); if (autoRefresh) { preferences.setValue( ResourcesPlugin.PREF_REFRESH_POLLING_DELAY, pollingRefreshText.getText());...
return super.performOk(); }
public boolean performOk() { Platform.getPlugin(Platform.PI_RUNTIME).getPluginPreferences().setValue( Platform.PREF_PLATFORM_PERFORMANCE, slider.getSelection()); Platform.getPlugin(Platform.PI_RUNTIME).savePluginPreferences(); Preferences preferences = ResourcesPlugin.getPlugin().getPluginPreferences(); boolea...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
String string; switch (value) { case SLOW : string = WorkInProgressMessages.getString("WorkInProgressPreferencePage.SlowTitle"); break; case FAST : string = WorkInProgressMessages.getString("WorkInProgressPreferencePage.FastTitle"); break; default : string = WorkInProgressMessages.getString("WorkInProgressPreferencePag...
String string; switch (value) { case SLOW: string = WorkInProgressMessages .getString("WorkInProgressPreferencePage.SlowTitle"); break; case FAST: string = WorkInProgressMessages .getString("WorkInProgressPreferencePage.FastTitle"); break; default: string = WorkInProgressMessages .getString("WorkInProgressPreferencePag...
protected void setLabelText(int value) { String string; switch (value) { case SLOW : string = WorkInProgressMessages.getString("WorkInProgressPreferencePage.SlowTitle"); //$NON-NLS-1$ break; case FAST : string = WorkInProgressMessages.getString("WorkInProgressPreferencePage.FastTitle"); //$NON-NLS-1$ ...
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d9f077f11edb05a527f887adc8741e37bc3a1982/WorkInProgressPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/misc/WorkInProgressPreferencePage.java
getExtents().width - (margin.left + border.left + padding.left) - (margin.right + border.right + padding.right), getExtents().height - (margin.top + border.top + padding.top) - (margin.bottom + border.bottom + padding.bottom));
getExtents().width - block.totalHorizontalPadding(), getExtents().height - block.totalVerticalPadding() );
public void shrinkExtents(Box block) { extents_stack.push(getExtents()); Border border = block.border; Border padding = block.padding; Border margin = block.margin; Rectangle rect = new Rectangle(0, 0, getExtents().width - (margin.left + border.left + padding.left) ...
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/4ec75287ffc45886f71dceab6cc12aeaa9033bd5/Context.java/buggy/src/java/org/xhtmlrenderer/layout/Context.java
setModified(true);
public void setCategoryId(String categoryId) { if (((categoryId == null) && (_categoryId != null)) || ((categoryId != null) && (_categoryId == null)) || ((categoryId != null) && (_categoryId != null) && !categoryId.equals(_categoryId))) { if (!XSS_ALLOW_CATEGORYID) { categoryId = XSSUtil.strip(categoryI...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.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/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.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/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.java
setModified(true);
public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.java
setModified(true);
public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.java
setModified(true);
public void setLastPostDate(Date lastPostDate) { if (((lastPostDate == null) && (_lastPostDate != null)) || ((lastPostDate != null) && (_lastPostDate == null)) || ((lastPostDate != null) && (_lastPostDate != null) && !lastPostDate.equals(_lastPostDate))) { _lastPostDate = lastPostDate; setModified(true);...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.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/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.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/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.java
setModified(true);
public void setParentCategoryId(String parentCategoryId) { if (((parentCategoryId == null) && (_parentCategoryId != null)) || ((parentCategoryId != null) && (_parentCategoryId == null)) || ((parentCategoryId != null) && (_parentCategoryId != null) && !parentCategoryId.equals(_parentCategoryId))) { if (!XSS...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.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/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.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/MBCategoryModel.java/buggy/portal-ejb/src/com/liferay/portlet/messageboards/model/MBCategoryModel.java
value = getCreateDate().compareTo(mbMessage.getCreateDate());
value = DateUtil.compareTo(getCreateDate(), mbMessage.getCreateDate());
public int compareTo(Object obj) { if (obj == null) { return -1; } MBMessage mbMessage = (MBMessage)obj; int value = 0; value = getCreateDate().compareTo(mbMessage.getCreateDate()); if (value != 0) { return value; } value = getMessageId().compareTo(mbMessage.getMessageId()); if (value != 0) { return val...
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0f4675cccf5487b482133977e732e847e320f104/MBMessageModel.java/clean/portal-ejb/src/com/liferay/portlet/messageboards/model/MBMessageModel.java
super("File", RubyFile.class, runtime.getClasses().getIoClass());
super("File", RubyFile.class, runtime.getClass("IO"));
public FileMetaClass(Ruby runtime) { super("File", RubyFile.class, runtime.getClasses().getIoClass()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/FileMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
extendObject(runtime.getClasses().getFileTestModule());
extendObject(runtime.getModule("FileTest"));
protected void initializeClass() { Ruby runtime = getRuntime(); RubyString separator = runtime.newString(File.separator); separator.freeze(); defineConstant("SEPARATOR", separator); defineConstant("Separator", separator); RubyString altSeparator = runtime.newString(File.separatorCha...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/FileMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
RubyFileStat.createFileStatClass(runtime);
protected void initializeClass() { Ruby runtime = getRuntime(); RubyString separator = runtime.newString(File.separator); separator.freeze(); defineConstant("SEPARATOR", separator); defineConstant("Separator", separator); RubyString altSeparator = runtime.newString(File.separatorCha...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ca6b16e996ea9af83ce593594b9c69b9364a9924/FileMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
for (int i = 0; i < completedDls.length; i++) {
for (int i = 0; i < completedDls.length; i++) {
public void clearCompletedDownloads() { Download[] completedDls = getCompletedDownloads(); completedDownloads.clear(); for (int i = 0; i < completedDls.length; i++) { listenerSupport.completedDownloadRemoved(new TransferManagerEvent( this, completedDls[i]))...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/652e070779285a419392fff7d375d332ec5d1c17/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java
transferFound = downloads.remove(transfer.getFile()) != null;
transferFound = downloads.containsKey(transfer.getFile());
void setCompleted(Transfer transfer) { boolean transferFound = false; if (transfer instanceof Download) { Download download = (Download) transfer; transferFound = downloads.remove(transfer.getFile()) != null; if (transferFound) { // Add to list of comple...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/652e070779285a419392fff7d375d332ec5d1c17/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java
if (transferFound) { completedDownloads.add((Download) transfer);
if (!transferFound) { return; }
void setCompleted(Transfer transfer) { boolean transferFound = false; if (transfer instanceof Download) { Download download = (Download) transfer; transferFound = downloads.remove(transfer.getFile()) != null; if (transferFound) { // Add to list of comple...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/652e070779285a419392fff7d375d332ec5d1c17/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java
FileInfo fInfo = transfer.getFile();
FileInfo fInfo = transfer.getFile(); Folder folder = fInfo.getFolder(getController() .getFolderRepository()); if (folder != null) { folder.scanDownloadFile(fInfo, download.getTempFile());
void setCompleted(Transfer transfer) { boolean transferFound = false; if (transfer instanceof Download) { Download download = (Download) transfer; transferFound = downloads.remove(transfer.getFile()) != null; if (transferFound) { // Add to list of comple...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/652e070779285a419392fff7d375d332ec5d1c17/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java
Folder folder = fInfo.getFolder(getController() .getFolderRepository()); if (folder != null) { folder.broadcastMessage(new FolderFilesChanged( (Download) transfer));
folder.broadcastMessage(new FolderFilesChanged( (Download) transfer)); }
void setCompleted(Transfer transfer) { boolean transferFound = false; if (transfer instanceof Download) { Download download = (Download) transfer; transferFound = downloads.remove(transfer.getFile()) != null; if (transferFound) { // Add to list of comple...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/652e070779285a419392fff7d375d332ec5d1c17/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java
folder.scanDownloadFile(fInfo, download.getTempFile()); }
downloads.remove(transfer.getFile()); completedDownloads.add((Download) transfer);
void setCompleted(Transfer transfer) { boolean transferFound = false; if (transfer instanceof Download) { Download download = (Download) transfer; transferFound = downloads.remove(transfer.getFile()) != null; if (transferFound) { // Add to list of comple...
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/652e070779285a419392fff7d375d332ec5d1c17/TransferManager.java/buggy/src/main/de/dal33t/powerfolder/transfer/TransferManager.java