rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax();
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); StatsFactory sf = new StatsFactory(); int w = 0; List<Channel> channels = pixels.getChannels(); for (Channel channel : channels) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Without it, we have to assume that the order in // which the channel bindings was created matches up with the order // of the channels linked to the pixels set. ChannelBinding cb = cbs.get(w); double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax(); //Test sf.computeLocationStats(pixels, buf, planeDef, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb.setNoiseReduction(Boolean.TRUE); float start = cb.getInputStart(); float end = cb.getInputEnd(); //TODO: find a better way. if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart())); cb.setInputEnd(new Float(sf.getInputEnd())); w++; } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ceec9c92013d03d7fbe03409fa65e37949152a57/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
float start = cb.getInputStart(); float end = cb.getInputEnd(); if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart()));
cb.setInputStart(new Float(sf.getInputStart()));
private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); StatsFactory sf = new StatsFactory(); int w = 0; List<Channel> channels = pixels.getChannels(); for (Channel channel : channels) { // FIXME: This is where we need to have the ChannelBinding --> // Channel linkage. Without it, we have to assume that the order in // which the channel bindings was created matches up with the order // of the channels linked to the pixels set. ChannelBinding cb = cbs.get(w); double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax(); //Test sf.computeLocationStats(pixels, buf, planeDef, w); //cb[w].setNoiseReduction(new Boolean(sf.isNoiseReduction())); cb.setNoiseReduction(Boolean.TRUE); float start = cb.getInputStart(); float end = cb.getInputEnd(); //TODO: find a better way. if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart())); cb.setInputEnd(new Float(sf.getInputEnd())); w++; } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ceec9c92013d03d7fbe03409fa65e37949152a57/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java
listener.modelChanged(treeModel);
listener.modelChanged(this);
private void updateTreeModel() { if(source == null) { treeModel = new SemanticTypeTree("(empty)"); return; } List typesList = source.getRelevantTypes(); SemanticType[] types = new SemanticType[typesList.size()]; typesList.toArray(types); treeModel = new SemanticTypeTree(source.getDataset().getName()+ " Attributes",types); HeatMapFilter.filter(treeModel); for(Iterator iter = modelListeners.iterator(); iter.hasNext();) { HeatMapModelListener listener = (HeatMapModelListener)iter.next(); listener.modelChanged(treeModel); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4eb7129fd009b6f34f1eda2cdfe74bc4a184ee93/HeatMapModel.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapModel.java
addInputEventListener(new PBasicInputEventHandler() { public void mouseClicked(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDownSensitive) { ((MouseDownSensitive)node).respondMouseClick(e); e.setHandled(true); } else { pickPath.popNode(node); } } } public void mouseMoved(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseOverSensitive) { ((MouseOverSensitive)node).respondMouseEnter(e); e.setHandled(true); } else { pickPath.popNode(node); } } } }); addInputEventListener(new PDragSequenceEventHandler() { public void startDrag(PInputEvent e) { setIsDragging(true); } public void drag(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDragSensitive) { ((MouseDragSensitive)node).respondDrag(e); e.setHandled(true); } else { pickPath.popNode(node); } } } public void endDrag(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDragSensitive) { ((MouseDragSensitive)node).respondEndDrag(e); e.setHandled(true); } } } });
addInputEventListener(BrowserViewEventDispatcher.getDefaultMouseHandler()); addInputEventListener(BrowserViewEventDispatcher.getDefaultDragHandler());
private void init(BrowserTopModel topModel) { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); backgroundNode = new BackgroundNode(); getLayer().addChild(backgroundNode); layoutMap = new HashMap(); footprint = new Rectangle2D.Double(0,0,0,0); hoverSensitive = new HashSet(); regionSensitive = new HashSet(); removeInputEventListener(getZoomEventHandler()); removeInputEventListener(getPanEventHandler()); // default panning mode (may replace this, but probably not) overlayCamera = new BrowserCamera(topModel,getCamera()); hoverSensitive.add(overlayCamera); regionSensitive.add(overlayCamera); scaleToShow = true; addMouseListener(new MouseAdapter() { public void mouseEntered(MouseEvent me) { for(Iterator iter = hoverSensitive.iterator(); iter.hasNext();) { HoverSensitive hover = (HoverSensitive)iter.next(); hover.contextEntered(); } } public void mouseExited(MouseEvent me) { for(Iterator iter = hoverSensitive.iterator(); iter.hasNext();) { HoverSensitive hover = (HoverSensitive)iter.next(); hover.contextExited(); } } }); // OK, now, dispatch to the underlying nodes addInputEventListener(new PBasicInputEventHandler() { public void mouseClicked(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDownSensitive) { ((MouseDownSensitive)node).respondMouseClick(e); e.setHandled(true); } else { pickPath.popNode(node); } } } public void mouseMoved(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseOverSensitive) { ((MouseOverSensitive)node).respondMouseEnter(e); e.setHandled(true); } else { pickPath.popNode(node); } } } }); addInputEventListener(new PDragSequenceEventHandler() { // OK, rant: this is stupid that this isn't the default behavior. // Jesse Grosjean, fix this thing, man, come on man. public void startDrag(PInputEvent e) { setIsDragging(true); } public void drag(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDragSensitive) { ((MouseDragSensitive)node).respondDrag(e); e.setHandled(true); } else { pickPath.popNode(node); } } } public void endDrag(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDragSensitive) { ((MouseDragSensitive)node).respondEndDrag(e); e.setHandled(true); } } } }); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/90683ded676656b27eef88c8c5096a007442c06c/BrowserView.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/BrowserView.java
public org.jruby.runtime.RubyRuntime getRuntime() {
public RubyRuntime getRuntime() { Asserts.assertTrue(this.runtime != null, "runtime shouldn't be null");
public org.jruby.runtime.RubyRuntime getRuntime() { return this.runtime; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5d81c9b241cfde36fd62602eb41786ab5a0cd134/Ruby.java/buggy/org/jruby/Ruby.java
Object o = this.testFindCGCIHierarchies();
Object o = this.testFindDatasetAnnotationsSetForExperimenter();
public void testHessian(){ OMEData data = new OMEPerformanceData(); OMEData old = getData(); Set imgs = new HashSet(); imgs.add(new Integer(101)); imgs.add(new Integer(12)); imgs.add(new Integer(5393)); imgs.add(new Integer(4954)); imgs.add(new Integer(3919)); imgs.add(new Integer(1273)); data.imgsCGCI=imgs; setData(data); Object o = this.testFindCGCIHierarchies(); Utils.structureSize(o); setData(old); log.info(getData()); Utils.structureSize(this.testFindCGCIHierarchies()); Utils.structureSize(this.testFindDatasetAnnotationsSet()); Utils.structureSize(this.testFindDatasetAnnotationsSetForExperimenter()); Utils.structureSize(this.testFindImageAnnotationsSet()); Utils.structureSize(this.testFindImageAnnotationsSetForExperimenter()); Utils.structureSize(this.testFindPDIHierarchies()); Utils.structureSize(this.testLoadCGCIHierarchyCategory()); Utils.structureSize(this.testLoadCGCIHierarchyCategoryGroup()); Utils.structureSize(this.testLoadPDIHierarchyDataset()); Utils.structureSize(this.testLoadPDIHierarchyProject()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/OmeroServiceTest.java/clean/components/server/test/org/openmicroscopy/omero/server/itests/OmeroServiceTest.java
setStatus(null, -1);
public void setHierarchyRoots(Set roots) { if (model.getState() != LOADING_HIERARCHY) throw new IllegalStateException( "This method can only be invoked in the LOADING_HIERARCHY "+ "state."); model.createBrowser(roots); model.fireThumbnailLoading(); fireStateChange(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e123367d3b024349b8d299ef57fb0e01d9f51942/HiViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java
protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors()));
protected void onContext(OmeroContext ctx) { ServiceFactory sf = new ServiceFactory( ctx ); IQuery q = sf.getQueryService(); assertTrue( Advised.class.isAssignableFrom( q.getClass() ));
protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors())); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java
ctx.applyBeanPropertyValues(re,"omeis.providers.re.RenderingEngine");
ctx.applyBeanPropertyValues(re,RenderingEngine.class);
public void testConfigureBean() throws Exception { OmeroContext ctx = OmeroContext.getInternalServerContext(); ctx.applyBeanPropertyValues(re,"omeis.providers.re.RenderingEngine"); assertTrue(re.pdCalled); assertTrue(re.pmCalled); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java
System.out.println(Arrays.asList(
assertTrue(0 < Arrays.asList(
public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java
Object.class, true, true)));
Object.class, true, true)).size());
public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java
long userID = model.getUserID(); long groupID = model.getRootGroupID(); TreeImageDisplay d;
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the NEW or READY state."); } if (categories == null) throw new IllegalArgumentException("Categories shouln't be null."); if (images == null) throw new IllegalArgumentException("No image."); if (images.length == 0) throw new IllegalArgumentException("No image."); if (m != Classifier.CLASSIFY_MODE && m != Classifier.DECLASSIFY_MODE) throw new IllegalArgumentException("Classification mode not " + "supported."); ImageData img; ClassificationVisitor visitor; List nodes; long userID = model.getUserID(); long groupID = model.getRootGroupID(); TreeImageDisplay d; int editorType = model.getBrowserType(); for (int i = 0; i < images.length; i++) { img = images[i]; visitor = new ClassificationVisitor(this, img, categories); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); nodes = visitor.getFoundNodes(); d = TreeViewerTranslator.transformDataObject(img, userID, groupID); if (editorType == CATEGORY_EXPLORER) { if (m == Classifier.CLASSIFY_MODE) { createNodes(nodes, d, getLastSelectedDisplay().getParentDisplay()); } else removeNodes(nodes); } else if (editorType == PROJECT_EXPLORER || editorType == IMAGES_EXPLORER) view.updateNodes(nodes, img); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/825a134e9202523cfddb0eda4cc2bf69f7aef3a0/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
createNodes(nodes, d, getLastSelectedDisplay().getParentDisplay());
last = getLastSelectedDisplay(); if (last == null) createNodes(nodes, d, null); else createNodes(nodes, d, last.getParentDisplay());
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the NEW or READY state."); } if (categories == null) throw new IllegalArgumentException("Categories shouln't be null."); if (images == null) throw new IllegalArgumentException("No image."); if (images.length == 0) throw new IllegalArgumentException("No image."); if (m != Classifier.CLASSIFY_MODE && m != Classifier.DECLASSIFY_MODE) throw new IllegalArgumentException("Classification mode not " + "supported."); ImageData img; ClassificationVisitor visitor; List nodes; long userID = model.getUserID(); long groupID = model.getRootGroupID(); TreeImageDisplay d; int editorType = model.getBrowserType(); for (int i = 0; i < images.length; i++) { img = images[i]; visitor = new ClassificationVisitor(this, img, categories); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); nodes = visitor.getFoundNodes(); d = TreeViewerTranslator.transformDataObject(img, userID, groupID); if (editorType == CATEGORY_EXPLORER) { if (m == Classifier.CLASSIFY_MODE) { createNodes(nodes, d, getLastSelectedDisplay().getParentDisplay()); } else removeNodes(nodes); } else if (editorType == PROJECT_EXPLORER || editorType == IMAGES_EXPLORER) view.updateNodes(nodes, img); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/825a134e9202523cfddb0eda4cc2bf69f7aef3a0/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
view.updateNodes(nodes, img);
*/ view.updateNodes(nodes, img);
public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the NEW or READY state."); } if (categories == null) throw new IllegalArgumentException("Categories shouln't be null."); if (images == null) throw new IllegalArgumentException("No image."); if (images.length == 0) throw new IllegalArgumentException("No image."); if (m != Classifier.CLASSIFY_MODE && m != Classifier.DECLASSIFY_MODE) throw new IllegalArgumentException("Classification mode not " + "supported."); ImageData img; ClassificationVisitor visitor; List nodes; long userID = model.getUserID(); long groupID = model.getRootGroupID(); TreeImageDisplay d; int editorType = model.getBrowserType(); for (int i = 0; i < images.length; i++) { img = images[i]; visitor = new ClassificationVisitor(this, img, categories); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); nodes = visitor.getFoundNodes(); d = TreeViewerTranslator.transformDataObject(img, userID, groupID); if (editorType == CATEGORY_EXPLORER) { if (m == Classifier.CLASSIFY_MODE) { createNodes(nodes, d, getLastSelectedDisplay().getParentDisplay()); } else removeNodes(nodes); } else if (editorType == PROJECT_EXPLORER || editorType == IMAGES_EXPLORER) view.updateNodes(nodes, img); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/825a134e9202523cfddb0eda4cc2bf69f7aef3a0/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
throw new ReturnJump(runtime.getNil());
result = runtime.getNil();
public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition position = threadContext.getPosition(); Block tmpBlock = ArgsUtil.beginCallArgs(runtime); IRubyObject recv = null; try { recv = eval(iVisited.getIterNode()); } finally { threadContext.setPosition(position); ArgsUtil.endCallArgs(runtime, tmpBlock); } result = recv.getInternalClass().call(recv, "each", null, CallType.NORMAL); return; } catch (RetryJump rExcptn) { } } /* } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); */ } catch (BreakJump bExcptn) { // result = runtime.getNil(); throw new ReturnJump(runtime.getNil()); } finally { runtime.getIterStack().pop(); runtime.getBlockStack().pop(); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2498daa752f173b4b6559c0df4a40f716bdc23d7/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
throw new ReturnJump(runtime.getNil());
result = runtime.getNil();
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisited.getIterNode()); return; } catch (RetryJump rExcptn) { } } /* } catch (ReturnJump rExcptn) { result = rExcptn.getReturnValue(); */ } catch (BreakJump bExcptn) { // result = runtime.getNil(); throw new ReturnJump(runtime.getNil()); } finally { threadContext.getIterStack().pop(); threadContext.getBlockStack().pop(); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2498daa752f173b4b6559c0df4a40f716bdc23d7/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
} catch (ReturnJump rExcptn) { return rExcptn.getReturnValue();
} catch (BreakJump rExcptn) { throw new ReturnJump(ruby.getNil());
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! ruby.isBlockGiven()) { throw new RaiseException(ruby, ruby.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Namespace oldNamespace = ruby.getNamespace(); ruby.setNamespace(getCurrentFrame().getNamespace()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); getDynamicVarsStack().push(currentBlock.getDynamicVariables()); ruby.pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } if (value == null) { value = RubyArray.newArray(ruby, 0); } ICallable method = currentBlock.getMethod(); if (method == null) { return ruby.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = prepareArguments(value, self, currentBlock.getVar(), checkArguments); try { while (true) { try { return method.call(ruby, self, null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { return ruby.getNil(); } catch (ReturnJump rExcptn) { return rExcptn.getReturnValue(); } finally { getIterStack().pop(); ruby.popClass(); getDynamicVarsStack().pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); ruby.setNamespace(oldNamespace); getScopeStack().setTop(oldScope); getDynamicVarsStack().pop(); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7677ca971349ae5011a3a094c25cc087b47cfaa4/ThreadContext.java/buggy/org/jruby/runtime/ThreadContext.java
if(sticky && activated) { g2.setPaint(new Color(102,102,102)); g2.fill(getBounds().getBounds2D()); }
public void paint(PPaintContext context) { Graphics2D g2 = context.getGraphics(); g2.setColor(new Color(153,153,153)); g2.draw(getBounds().getBounds2D()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/BIcon.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BIcon.java
context.put ("OWNM", new ObjectWithNullMethod());
public void stuffContext (Context context) throws Exception { context.setEvaluationExceptionHandler ( new DefaultEvaluationExceptionHandler ()); context.put ("TestObject", new TestObject()); context.put ("NullTestObject", new NullTestObject()); context.put ("NullObject", null); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/ff709ec8523aa5b42a000462169b11be88cd46de/TestDefaultEEH.java/buggy/webmacro/test/unit/org/webmacro/template/TestDefaultEEH.java
if (!(oldValue.getClass().equals(newValue.getClass()))) { if (oldValue instanceof TreeImageDisplay) { TreeImageDisplay d = (TreeImageDisplay) oldValue; if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorSelectedPane( Editor.PROPERTIES_INDEX); } } }
public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name == null) return; if (name.equals(TreeViewer.CANCEL_LOADING_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else if (name.equals(Browser.POPUP_MENU_PROPERTY)) { Component c = (Component) pce.getNewValue(); Browser browser = model.getSelectedBrowser(); if (browser != null && c != null) view.showPopup(c, browser.getClickPoint()); } else if (name.equals(Browser.CLOSE_PROPERTY)) { Browser browser = (Browser) pce.getNewValue(); if (browser != null) view.removeBrowser(browser); } else if (name.equals(Editor.CLOSE_EDITOR_PROPERTY)) { Browser b = model.getSelectedBrowser(); TreeImageDisplay d = null; if (b != null) d = b.getLastSelectedDisplay(); int editorType = model.getEditorType(); model.removeEditor(); model.onComponentStateChange(true); if (editorType == TreeViewer.CREATE_EDITOR) resetSelectedDisplay(d); } else if (name.equals(Classifier.CLOSE_CLASSIFIER_PROPERTY)) { Browser b = model.getSelectedBrowser(); if (b != null) resetSelectedDisplay(b.getLastSelectedDisplay()); model.onComponentStateChange(true); } else if (name.equals(TreeViewer.FINDER_VISIBLE_PROPERTY)) { Boolean b = (Boolean) pce.getNewValue(); if (!b.booleanValue()) { model.clearFoundResults(); model.onComponentStateChange(true); } } else if (name.equals(TreeViewer.SELECTED_BROWSER_PROPERTY)) { Browser b = model.getSelectedBrowser(); Iterator i = model.getBrowsers().values().iterator(); Browser browser; while (i.hasNext()) { browser = (Browser) i.next(); browser.setSelected(browser.equals(b)); } } else if (name.equals(TreeViewer.THUMBNAIL_LOADING_PROPERTY)) { model.retrieveThumbnail((ImageData) pce.getNewValue()); } else if (name.equals(Browser.SELECTED_DISPLAY_PROPERTY)) { Object oldValue = pce.getOldValue(); Object newValue = pce.getNewValue(); if (oldValue != null && newValue != null) { //if (!(oldValue.getClass().equals(newValue.getClass()))) // model.setEditorSelectedPane(Editor.PROPERTIES_INDEX); } model.onSelectedDisplay(); view.updateMenuItems(); } else if (name.equals(TreeViewer.HIERARCHY_ROOT_PROPERTY)) { Map browsers = model.getBrowsers(); Iterator i = browsers.values().iterator(); while (i.hasNext()) ((Browser) i.next()).refreshTree(); } else if (name.equals( AddExistingObjectsDialog.EXISTING_ADD_PROPERTY)) { model.addExistingObjects((Set) pce.getNewValue()); } else if (name.equals(EditorSaverDialog.SAVING_DATA_EDITOR_PROPERTY)) { boolean b = ((Boolean) pce.getNewValue()).booleanValue(); model.saveInEditor(b); } else if (name.equals(DataHandler.ANNOTATED_PROPERTY) || name.equals(DataHandler.CLASSIFIED_PROPERTY)) { if (view.getDataHandler() == null) return; view.discardDataHandler(); Map browsers = model.getBrowsers(); Iterator i = browsers.values().iterator(); while (i.hasNext()) ((Browser) i.next()).refreshTree(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/TreeViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerControl.java
if (br != null) { try { br.close(); } catch (IOException e2) { } }
private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; } BufferedReader br = null; try { br = new BufferedReader(new FileReader(sourceFile)); } catch (FileNotFoundException e) { if (br != null) { try { br.close(); } catch (IOException e2) { } } return "<p>Unable to open " + sourceFile.getAbsolutePath() + "</p>"; } StringBuffer ret = new StringBuffer(); ret .append("<table cellspacing=\"0\" cellpadding=\"0\" class=\"src\">\n"); try { String lineStr; JavaToHtml javaToHtml = new JavaToHtml(); int lineNumber = 1; while ((lineStr = br.readLine()) != null) { ret.append("<tr>"); if (sourceFileData.isValidSourceLineNumber(lineNumber)) { long numberOfHits = sourceFileData.getHitCount(lineNumber); ret.append(" <td class=\"numLineCover\">&nbsp;" + lineNumber + "</td>"); if (numberOfHits > 0) { ret.append(" <td class=\"nbHitsCovered\">&nbsp;" + numberOfHits + "</td>"); ret .append(" <td class=\"src\"><pre class=\"src\">&nbsp;" + javaToHtml.process(lineStr) + "</pre></td>"); } else { ret.append(" <td class=\"nbHitsUncovered\">&nbsp;" + numberOfHits + "</td>"); ret .append(" <td class=\"src\"><pre class=\"src\"><span class=\"srcUncovered\">&nbsp;" + javaToHtml.process(lineStr) + "</span></pre></td>"); } } else { ret.append(" <td class=\"numLine\">&nbsp;" + lineNumber + "</td>"); ret.append(" <td class=\"nbHits\">&nbsp;</td>\n"); ret.append(" <td class=\"src\"><pre class=\"src\">&nbsp;" + javaToHtml.process(lineStr) + "</pre></td>"); } ret.append("</tr>\n"); lineNumber++; } } catch (IOException e) { ret.append("<tr><td>Error reading from file " + sourceFile.getAbsolutePath() + ": " + e.getLocalizedMessage() + "</td></tr>\n"); } finally { try { br.close(); } catch (IOException e) { } } ret.append("</table>\n"); return ret.toString(); }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
protected DataLoader createHierarchyLoader()
protected DataLoader createHierarchyLoader(boolean refresh)
protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ProjectModel.java
return new ProjectLoader(component, projectsID);
return new ProjectLoader(component, projectsID, refresh);
protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ProjectModel.java
backgroundColor = new Color(153,153,153,128);
backgroundColor = new Color(153,153,153,192);
public IconBar(int maxWidth) { this.maxWidth = maxWidth; backgroundColor = new Color(153,153,153,128); setBounds(getX(),getY(),maxWidth,currentHeight); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dfa9ae97d8f563906ba2ca4ea00d949bd0915064/BPalette.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BPalette.java
backgroundColor = new Color(0,51,153,128);
backgroundColor = new Color(0,51,153);
TitleBar(String name) { setBounds(bounds); titleName = name; backgroundColor = new Color(0,51,153,128); titleNode = new PText(name); titleNode.setPaint(Color.white); titleNode.setFont(titleFont); actionSet = new MouseDragActions(); actionSet.setDragAction(PiccoloModifiers.NORMAL, PiccoloActions.DRAG_MOVE_ACTION); addChild(titleNode); titleNode.setOffset(4,4); minimizeNode = new MinimizeIcon(); addChild(minimizeNode); minimizeNode.setOffset(measuredWidth-60,0); // we assign the minimize icon's behavior here because it's // always going to be applicable here. MouseDownActions mouseActions = minimizeNode.getMouseDownActions(); mouseActions.setMouseClickAction(PiccoloModifiers.NORMAL, new PiccoloAction() { public void execute() { // TODO: actually do something useful System.err.println("Minimize clicked"); } public void execute(PInputEvent e) { execute(); } }); minimizeNode.setMouseDownActions(mouseActions); hideNode = new HideIcon(); addChild(hideNode); hideNode.setOffset(measuredWidth-40,0); closeNode = new CloseIcon(); addChild(closeNode); closeNode.setOffset(measuredWidth-20,0); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dfa9ae97d8f563906ba2ca4ea00d949bd0915064/BPalette.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BPalette.java
if ((jjbitVec0[i2] & l2) != 0L && kind > 32)
if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 32)
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 32) kind = 32; break; case 49: case 1: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 48: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 3: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(14, 16); break; case 6: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(17, 20); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((jjbitVec0[i2] & l2) != 0L)
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 32) kind = 32; break; case 49: case 1: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 48: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 3: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(14, 16); break; case 6: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(17, 20); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((jjbitVec0[i2] & l2) != 0L)
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 32) kind = 32; break; case 49: case 1: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 48: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 3: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(14, 16); break; case 6: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(17, 20); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((jjbitVec0[i2] & l2) != 0L)
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 32) kind = 32; break; case 49: case 1: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 48: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 3: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(14, 16); break; case 6: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(17, 20); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((jjbitVec0[i2] & l2) != 0L)
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 32) kind = 32; break; case 49: case 1: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 48: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 3: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(14, 16); break; case 6: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(17, 20); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
if ((jjbitVec0[i2] & l2) != 0L)
if (jjCanMove_0(hiByte, i1, i2, l1, l2))
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 10: case 9: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 7: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 32) kind = 32; } else if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); if ((0x3ff000000000000L & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0x100000200L & l) != 0L) { if (kind > 27) kind = 27; } else if (curChar == 13) jjAddStates(9, 10); else if (curChar == 10) { if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); } if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 49: case 1: jjCheckNAddStates(11, 13); break; case 48: jjCheckNAddStates(11, 13); break; case 3: jjCheckNAddStates(14, 16); break; case 6: jjCheckNAddStates(17, 20); break; case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 32) jjstateSet[jjnewStateCnt++] = 14; break; case 14: if (curChar == 32 && kind > 26) kind = 26; break; case 15: if ((0x100000200L & l) != 0L && kind > 27) kind = 27; break; case 16: if ((0xfc00ffffffffffffL & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 20: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 21: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 22; break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 25: if (curChar == 58) jjstateSet[jjnewStateCnt++] = 26; break; case 26: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0xa7ffe06000000000L & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0xa7ffe06000000000L & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 29: if (curChar == 40) jjCheckNAdd(30); break; case 30: if ((0xfffffdffffffdbffL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 41 && kind > 20) kind = 20; break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(33, 36); break; case 41: if (curChar != 10) break; if (kind > 25) kind = 25; jjCheckNAddTwoStates(42, 44); break; case 42: case 43: if (curChar == 10 && kind > 24) kind = 24; break; case 44: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 43; break; case 45: if (curChar == 13) jjAddStates(9, 10); break; case 46: if (curChar == 10) jjCheckNAddTwoStates(42, 44); break; case 47: if (curChar == 10 && kind > 25) kind = 25; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 10: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 15) kind = 15; jjCheckNAdd(9); } else if (curChar == 64) { if (kind > 16) kind = 16; jjCheckNAdd(11); } break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); } else if ((0xf8000001f8000001L & l) != 0L) { if (kind > 32) kind = 32; } if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); else if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; else if (curChar == 91) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 94) jjCheckNAdd(9); break; case 49: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 48: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); else if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 0: if (curChar == 91) jjCheckNAddTwoStates(1, 2); break; case 1: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(11, 13); break; case 2: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(14, 16); break; case 4: if (curChar == 93 && kind > 9) kind = 9; break; case 5: if (curChar == 93) jjstateSet[jjnewStateCnt++] = 4; break; case 6: if ((0xffffffffdfffffffL & l) != 0L) jjCheckNAddStates(17, 20); break; case 8: if (curChar == 94) jjCheckNAdd(9); break; case 9: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 15) kind = 15; jjCheckNAdd(9); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(11); break; case 12: if (curChar == 94) jjstateSet[jjnewStateCnt++] = 10; break; case 16: if ((0xf8000001f8000001L & l) != 0L && kind > 32) kind = 32; break; case 17: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAddStates(4, 8); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if (curChar == 64) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(20, 21); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAdd(23); break; case 23: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 19) kind = 19; jjCheckNAddStates(21, 23); break; case 24: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(24, 25); break; case 26: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAddStates(24, 26); break; case 27: if ((0x47fffffe87ffffffL & l) == 0L) break; if (kind > 20) kind = 20; jjCheckNAdd(27); break; case 28: if ((0x47fffffe87ffffffL & l) != 0L) jjCheckNAddTwoStates(28, 29); break; case 30: jjAddStates(37, 38); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 23) kind = 23; jjCheckNAdd(32); break; case 33: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(0, 3); break; case 34: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(34, 35); break; case 35: if ((0x7fffffe00000000L & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddTwoStates(35, 36); break; case 36: if ((0x7fffffeL & l) == 0L) break; if (kind > 21) kind = 21; jjCheckNAddStates(27, 29); break; case 37: if ((0x7fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: if ((0x7fffffe00000000L & l) != 0L) jjCheckNAddStates(30, 32); break; case 39: if (curChar == 96 && kind > 22) kind = 22; break; case 40: if ((0x7fffffeL & l) != 0L) jjCheckNAddStates(33, 36); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L && kind > 32) kind = 32; break; case 49: case 1: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 48: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(11, 13); break; case 3: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(14, 16); break; case 6: if ((jjbitVec0[i2] & l2) != 0L) jjCheckNAddStates(17, 20); break; case 30: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(37, 38); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 48 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java
this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount);
this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.IterationCount);
public static Test suite() { TestSuite suite= new TestSuite(); suite.addTest(new TestSyntheticTemplate("load") { protected WebMacro createWebMacro() throws Exception { return new WM("org/webmacro/template/TST.properties"); } protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); this.testLoadAndToss(); this.testLoad(); } } ); return suite; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/e42588994a22f1f332ab8e3fae9f46ed86c27270/TestSyntheticTemplate.java/buggy/webmacro/test/unit/org/webmacro/template/TestSyntheticTemplate.java
this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount);
this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.IterationCount);
protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); this.testLoadAndToss(); this.testLoad(); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/e42588994a22f1f332ab8e3fae9f46ed86c27270/TestSyntheticTemplate.java/buggy/webmacro/test/unit/org/webmacro/template/TestSyntheticTemplate.java
ruby.getCurrentFrame().getSelf().toRubyObject(),
ruby.getCurrentFrame().getSelf(),
public IRubyObject callSuper(IRubyObject[] args) { if (ruby.getCurrentFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getCurrentFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIterStack().push(ruby.getCurrentIter().isNot() ? Iter.ITER_NOT : Iter.ITER_PRE); try { return ruby.getCurrentFrame().getLastClass().getSuperClass().call( ruby.getCurrentFrame().getSelf().toRubyObject(), ruby.getCurrentFrame().getLastFunc(), args, 3); } finally { ruby.getIterStack().pop(); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
self.toRubyObject(),
self,
public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, IRubyObject type) { if (!tracing && traceFunction != null) { tracing = true; // XXX if (file == null) { file = "(ruby)"; } if (type == null) type = ruby.getFalse(); ruby.getFrameStack().push(); try { traceFunction .call(new IRubyObject[] { RubyString.newString(ruby, event), RubyString.newString(ruby, file), RubyFixnum.newFixnum(ruby, line), RubySymbol.newSymbol(ruby, name), self.toRubyObject(), // XXX type.toRubyObject() }); } finally { ruby.getFrameStack().pop(); tracing = false; // XXX } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
type.toRubyObject() });
type });
public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, IRubyObject type) { if (!tracing && traceFunction != null) { tracing = true; // XXX if (file == null) { file = "(ruby)"; } if (type == null) type = ruby.getFalse(); ruby.getFrameStack().push(); try { traceFunction .call(new IRubyObject[] { RubyString.newString(ruby, event), RubyString.newString(ruby, file), RubyFixnum.newFixnum(ruby, line), RubySymbol.newSymbol(ruby, name), self.toRubyObject(), // XXX type.toRubyObject() }); } finally { ruby.getFrameStack().pop(); tracing = false; // XXX } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
return "ChannelComponent"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId);
return "ChannelComponent"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId);
public String toString(){ return "ChannelComponent"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/ChannelComponent.java/clean/components/common/src/ome/model/ChannelComponent.java
public RubyClass newSubClass(String name, RubyModule parent) { return new SymbolMetaClass(name, this, parent);
public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { return new SymbolMetaClass(name, this, parentCRef);
public RubyClass newSubClass(String name, RubyModule parent) { return new SymbolMetaClass(name, this, parent); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/SymbolMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/SymbolMetaClass.java
module.definePublicModuleFunction("remove_instance_variable", objectCallbackFactory.getMethod("remove_instance_variable", IRubyObject.class));
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineModuleFunction("Array", callbackFactory.getSingletonMethod("new_array", IRubyObject.class)); module.defineModuleFunction("Float", callbackFactory.getSingletonMethod("new_float", IRubyObject.class)); module.defineModuleFunction("Integer", callbackFactory.getSingletonMethod("new_integer", IRubyObject.class)); module.defineModuleFunction("String", callbackFactory.getSingletonMethod("new_string", IRubyObject.class)); module.defineModuleFunction("`", callbackFactory.getSingletonMethod("backquote", IRubyObject.class)); // TODO: Implement Kernel#abort module.defineModuleFunction("at_exit", callbackFactory.getSingletonMethod("at_exit")); module.defineModuleFunction("autoload", callbackFactory.getSingletonMethod("autoload", IRubyObject.class, IRubyObject.class)); // TODO: Implement Kernel#autoload? module.defineModuleFunction("binding", callbackFactory.getSingletonMethod("binding")); module.defineModuleFunction("block_given?", callbackFactory.getSingletonMethod("block_given")); // TODO: Implement Kernel#callcc module.defineModuleFunction("caller", callbackFactory.getOptSingletonMethod("caller")); module.defineModuleFunction("catch", callbackFactory.getSingletonMethod("rbCatch", IRubyObject.class)); module.defineModuleFunction("chomp", callbackFactory.getOptSingletonMethod("chomp")); module.defineModuleFunction("chomp!", callbackFactory.getOptSingletonMethod("chomp_bang")); module.defineModuleFunction("chop", callbackFactory.getSingletonMethod("chop")); module.defineModuleFunction("chop!", callbackFactory.getSingletonMethod("chop_bang")); module.defineModuleFunction("eval", callbackFactory.getOptSingletonMethod("eval")); // TODO: Implement Kernel#exec module.defineModuleFunction("exit", callbackFactory.getOptSingletonMethod("exit")); module.defineModuleFunction("exit!", callbackFactory.getOptSingletonMethod("exit_bang")); module.defineModuleFunction("fail", callbackFactory.getOptSingletonMethod("raise")); // TODO: Implement Kernel#fork module.defineModuleFunction("format", callbackFactory.getOptSingletonMethod("sprintf")); module.defineModuleFunction("gets", callbackFactory.getOptSingletonMethod("gets")); module.defineModuleFunction("global_variables", callbackFactory.getSingletonMethod("global_variables")); module.defineModuleFunction("gsub", callbackFactory.getOptSingletonMethod("gsub")); module.defineModuleFunction("gsub!", callbackFactory.getOptSingletonMethod("gsub_bang")); // TODO: Add deprecation to Kernel#iterator? (maybe formal deprecation mech.) module.defineAlias("iterator?", "block_given?"); module.defineModuleFunction("lambda", callbackFactory.getSingletonMethod("proc")); module.defineModuleFunction("load", callbackFactory.getOptSingletonMethod("load")); module.defineModuleFunction("local_variables", callbackFactory.getSingletonMethod("local_variables")); module.defineModuleFunction("loop", callbackFactory.getSingletonMethod("loop")); // Note: method_missing is documented as being in Object, but ruby appears to stick it in Kernel. module.defineModuleFunction("method_missing", callbackFactory.getOptSingletonMethod("method_missing")); module.defineModuleFunction("open", callbackFactory.getOptSingletonMethod("open")); module.defineModuleFunction("p", callbackFactory.getOptSingletonMethod("p")); module.defineModuleFunction("print", callbackFactory.getOptSingletonMethod("print")); module.defineModuleFunction("printf", callbackFactory.getOptSingletonMethod("printf")); module.defineModuleFunction("proc", callbackFactory.getSingletonMethod("proc")); // TODO: implement Kernel#putc module.defineModuleFunction("puts", callbackFactory.getOptSingletonMethod("puts")); module.defineAlias("raise", "fail"); module.defineModuleFunction("rand", callbackFactory.getOptSingletonMethod("rand")); module.defineModuleFunction("readline", callbackFactory.getOptSingletonMethod("readline")); module.defineModuleFunction("readlines", callbackFactory.getOptSingletonMethod("readlines")); module.defineModuleFunction("require", callbackFactory.getSingletonMethod("require", IRubyObject.class)); module.defineModuleFunction("scan", callbackFactory.getSingletonMethod("scan", IRubyObject.class)); // TODO: Implement Kernel#select module.defineModuleFunction("set_trace_func", callbackFactory.getSingletonMethod("set_trace_func", IRubyObject.class)); module.defineModuleFunction("sleep", callbackFactory.getSingletonMethod("sleep", IRubyObject.class)); module.defineModuleFunction("split", callbackFactory.getOptSingletonMethod("split")); module.defineAlias("sprintf", "format"); module.defineModuleFunction("srand", callbackFactory.getOptSingletonMethod("srand")); module.defineModuleFunction("sub", callbackFactory.getOptSingletonMethod("sub")); module.defineModuleFunction("sub!", callbackFactory.getOptSingletonMethod("sub_bang")); // Skipping: Kernel#syscall (too system dependent) module.defineModuleFunction("system", callbackFactory.getOptSingletonMethod("system")); // TODO: Implement Kernel#test (partial impl) module.defineModuleFunction("throw", callbackFactory.getOptSingletonMethod("rbThrow")); // TODO: Implement Kernel#trace_var module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); // TODO: Implement Kernel#untrace_var // TODO: Implement Kernel#warn // Defined p411 Pickaxe 2nd ed. module.defineModuleFunction("singleton_method_added", callbackFactory.getSingletonMethod("singleton_method_added", IRubyObject.class)); // Object methods module.definePublicModuleFunction("==", objectCallbackFactory.getMethod("equal", IRubyObject.class)); module.defineAlias("===", "=="); module.defineAlias("eql?", "=="); module.definePublicModuleFunction("to_s", objectCallbackFactory.getMethod("to_s")); module.definePublicModuleFunction("nil?", objectCallbackFactory.getMethod("nil_p")); module.definePublicModuleFunction("to_a", objectCallbackFactory.getMethod("to_a")); module.definePublicModuleFunction("hash", objectCallbackFactory.getMethod("hash")); module.definePublicModuleFunction("id", objectCallbackFactory.getMethod("id")); module.defineAlias("__id__", "id"); module.defineAlias("object_id", "id"); module.definePublicModuleFunction("is_a?", objectCallbackFactory.getMethod("kind_of", IRubyObject.class)); module.defineAlias("kind_of?", "is_a?"); module.definePublicModuleFunction("dup", objectCallbackFactory.getMethod("dup")); module.definePublicModuleFunction("equal?", objectCallbackFactory.getMethod("same", IRubyObject.class)); module.definePublicModuleFunction("type", objectCallbackFactory.getMethod("type_deprecated")); module.definePublicModuleFunction("class", objectCallbackFactory.getMethod("type")); module.definePublicModuleFunction("inspect", objectCallbackFactory.getMethod("inspect")); module.definePublicModuleFunction("=~", objectCallbackFactory.getMethod("match", IRubyObject.class)); module.definePublicModuleFunction("clone", objectCallbackFactory.getMethod("rbClone")); module.definePublicModuleFunction("display", objectCallbackFactory.getOptMethod("display")); module.definePublicModuleFunction("extend", objectCallbackFactory.getOptMethod("extend")); module.definePublicModuleFunction("freeze", objectCallbackFactory.getMethod("freeze")); module.definePublicModuleFunction("frozen?", objectCallbackFactory.getMethod("frozen")); module.defineModuleFunction("initialize_copy", objectCallbackFactory.getMethod("initialize_copy", IRubyObject.class)); module.definePublicModuleFunction("instance_eval", objectCallbackFactory.getOptMethod("instance_eval")); module.definePublicModuleFunction("instance_of?", objectCallbackFactory.getMethod("instance_of", IRubyObject.class)); module.definePublicModuleFunction("instance_variables", objectCallbackFactory.getMethod("instance_variables")); module.definePublicModuleFunction("instance_variable_get", objectCallbackFactory.getMethod("instance_variable_get", IRubyObject.class)); module.definePublicModuleFunction("instance_variable_set", objectCallbackFactory.getMethod("instance_variable_set", IRubyObject.class, IRubyObject.class)); module.definePublicModuleFunction("method", objectCallbackFactory.getMethod("method", IRubyObject.class)); module.definePublicModuleFunction("methods", objectCallbackFactory.getOptMethod("methods")); module.definePublicModuleFunction("private_methods", objectCallbackFactory.getMethod("private_methods")); module.definePublicModuleFunction("protected_methods", objectCallbackFactory.getMethod("protected_methods")); module.definePublicModuleFunction("public_methods", objectCallbackFactory.getOptMethod("public_methods")); module.definePublicModuleFunction("respond_to?", objectCallbackFactory.getOptMethod("respond_to")); module.definePublicModuleFunction("send", objectCallbackFactory.getOptMethod("send")); module.defineAlias("__send__", "send"); module.definePublicModuleFunction("singleton_methods", objectCallbackFactory.getMethod("singleton_methods")); module.definePublicModuleFunction("taint", objectCallbackFactory.getMethod("taint")); module.definePublicModuleFunction("tainted?", objectCallbackFactory.getMethod("tainted")); module.definePublicModuleFunction("untaint", objectCallbackFactory.getMethod("untaint")); return module; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/79e935db5c7a68676c9c113d21a3544014842401/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
klass = ruby.getInterpreter().getRubyClass();
klass = ruby.getRubyClass(); frame.setFile(ruby.getSourceFile()); frame.setLine(ruby.getSourceLine());
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b; self = newSelf; frame = ruby.getInterpreter().getRubyFrame(); klass = ruby.getInterpreter().getRubyClass(); // _block.frame.file = ruby_sourcefile; // _block.frame.line = ruby_sourceline; scope = ruby.getRubyScope(); prev = oldBlock; iter = ruby.getInterpreter().getRubyIter().getIter(); vmode = ruby.getInterpreter().getActMethodScope(); flags = BLOCK_D_SCOPE; dynamicVars = ruby.getInterpreter().getDynamicVars(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyBlock.java/clean/org/jruby/interpreter/RubyBlock.java
dynamicVars = ruby.getInterpreter().getDynamicVars();
dynamicVars = ruby.getDynamicVars();
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b; self = newSelf; frame = ruby.getInterpreter().getRubyFrame(); klass = ruby.getInterpreter().getRubyClass(); // _block.frame.file = ruby_sourcefile; // _block.frame.line = ruby_sourceline; scope = ruby.getRubyScope(); prev = oldBlock; iter = ruby.getInterpreter().getRubyIter().getIter(); vmode = ruby.getInterpreter().getActMethodScope(); flags = BLOCK_D_SCOPE; dynamicVars = ruby.getInterpreter().getDynamicVars(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyBlock.java/clean/org/jruby/interpreter/RubyBlock.java
SelectList sl = new SelectList(fruits, 3); context.put("sl-fruits", sl);
public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Hashtable context = null; try { wm = new WM(); context = new Hashtable(); Object names[] = { "prop" }; PropertyOperator.setProperty(context, names, "Example property"); } catch (Exception e) { e.printStackTrace(); } context.put("helloworld", "Hello World"); context.put("hello", "Hello"); context.put("file", "include.txt"); TestObject[] fruits = { new TestObject("apple",false), new TestObject("lemon",true), new TestObject("pear",false), new TestObject("orange",true), new TestObject("watermelon",false), new TestObject("peach",false), new TestObject("lime",true) }; context.put("fruits", fruits); context.put("flipper", new TestObject("flip",false)); System.out.println("*** CONTEXT ***"); { Enumeration elem = context.keys(); while (elem.hasMoreElements()) { Object key = elem.nextElement(); System.out.println("context: " + key + " --> " + context.get(key)); } } System.out.println("- - - - - - - - - - - - - - - - - - - -"); try { Template t1 = new StreamTemplate(wm.getBroker(), new InputStreamReader(System.in)); t1.parse(); System.out.println("*** PARAMETERS ***"); { Iterator i = t1.getParameterNames(); while (i.hasNext()) { String key = (String) i.next(); System.out.println("param: " + key + " --> " + t1.getParam(key)); } } Writer w = new OutputStreamWriter(System.out); System.out.println("*** RESULT ***"); t1.write(w,context); w.close(); System.out.println("*** DONE ***"); //System.out.println(result); } catch (Exception e) { e.printStackTrace(); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/StreamTemplate.java/buggy/webmacro/src/org/webmacro/engine/StreamTemplate.java
private void initComponents() { IconManager icons = IconManager.getInstance(); //movie controls play = new JButton(icons.getIcon(IconManager.PLAY)); play.setToolTipText(UIUtilities.formatToolTipText("Play movie.")); pause = new JButton(icons.getIcon(IconManager.PAUSE)); pause.setToolTipText(UIUtilities.formatToolTipText("Pause.")); stop = new JButton(icons.getIcon(IconManager.STOP)); stop.setToolTipText(UIUtilities.formatToolTipText("Stop movie.")); movieTypes = new JComboBox(selections); movieTypes.setSelectedIndex(getMovieTypeIndex(model.getMovieType())); // Spinner timepoint granularity is 1, so must be stepSize int max = model.getMaximumTimer(); fps = new JSpinner(new SpinnerNumberModel(model.getTimerDelay(), MoviePlayer.FPS_MIN, max, 1)); editor = new JTextField(""+model.getTimerDelay(), (""+max).length()); String s = "Select or enter the movie playback rate " + "(frames per second)."; editor.setToolTipText(UIUtilities.formatToolTipText(s)); fps.setEditor(editor); //movie selection int maxZ = model.getMaxZ(); zSlider = new TwoKnobsSlider(model.getMinZ(), maxZ, model.getStartZ(), model.getEndZ()); zSlider.setPaintEndLabels(false); zSlider.setPaintLabels(false); startZ = new JTextField(""+model.getStartZ(), (""+maxZ).length()); startZ.setToolTipText( UIUtilities.formatToolTipText("Enter the start z-section.")); endZ = new JTextField(""+model.getEndZ(), (""+maxZ).length()); endZ.setToolTipText( UIUtilities.formatToolTipText("Enter the end z-section.")); int maxT = model.getMaxT(); tSlider = new TwoKnobsSlider(model.getMinT(), maxT, model.getStartT(), model.getEndT()); tSlider.setPaintEndLabels(false); tSlider.setPaintLabels(false); startT = new JTextField(""+model.getStartT(), (""+maxT).length()); startT.setToolTipText( UIUtilities.formatToolTipText("Enter the start timepoint.")); endT = new JTextField(""+model.getEndT(), (""+maxT).length()); endT.setToolTipText( UIUtilities.formatToolTipText("Enter the end timepoint.")); acrossZ = new JRadioButton("Across Z"); acrossT = new JRadioButton("Across T"); acrossZT = new JRadioButton("Across Z and T"); ButtonGroup group = new ButtonGroup(); group.add(acrossZ); group.add(acrossT); group.add(acrossZT); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/MoviePlayerUI.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/player/MoviePlayerUI.java
{ presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); }
{ presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); }
private void buildPresentation(PixelsDimensions pxsDims) { presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); }
{ if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); else if (e instanceof AddROICanvas) handleAddROI((AddROICanvas) e); }
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ return renderingControl.getPixelsDims(); }
{ return renderingControl.getPixelsDims(); }
PixelsDimensions getPixelsDims() { return renderingControl.getPixelsDims(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); if (curImageID != request.getImageID()) { if (presentation == null) buildPresentation(pxsDims); initPresentation(request.getImageName(), pxsDims, false); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); registry.getEventBus().post(new RenderImage(curPixelsID)); control.disposeDialogs(); } showPresentation(); }
{ LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); if (curImageID != request.getImageID()) { if (presentation == null) buildPresentation(pxsDims); initPresentation(request.getImageName(), pxsDims, false); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); registry.getEventBus().post(new RenderImage(curPixelsID)); control.disposeDialogs(); } showPresentation(); }
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (curImageID != request.getImageID()) { if (presentation == null) buildPresentation(pxsDims); initPresentation(request.getImageName(), pxsDims, false); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); registry.getEventBus().post(new RenderImage(curPixelsID)); // have to dispose all windows linked control.disposeDialogs(); } showPresentation(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); }
{ curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); }
private void handleImageRendered(ImageRendered response) { curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ }
{ }
private void handleLoadImage(LoadImage request) { //TODO: REMOVE COMMENTS //control.showProgressNotifier(request.getImageName()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active);
boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active);
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.resetMagFactor(); showPresentation(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
showPresentation(); }
}
private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.resetMagFactor(); showPresentation(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); }
{ PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); renderingControl.setDefaultZ(z); renderingControl.setDefaultT(t); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); }
void onPlaneSelected(int z, int t) { PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); }
{ registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); bus.register(this, AddROICanvas.class); control = new ViewerCtrl(this); }
public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); }
{ if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); }
private void showPresentation() { if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
{ registry.getEventBus().post(new DisplayRendering()); }
{ registry.getEventBus().post(new DisplayRendering()); }
void showRendering() { registry.getEventBus().post(new DisplayRendering()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java
else {
else if (!selected && boldWhenActive) { textLabel.setFont(defaultFont); } else if(selected){ textLabel.setFont(defaultFont);
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { // textLabel.setFont(defaultFont); } invalidate(); repaint(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f025bf59efca040bc8b47fac943f829129bf5e5e/SparkTab.java/clean/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTab.java
t.blowup(true,Project.class,new HashSet(),new HashSet(), new HashMap());
t.blowup(true,Project.class,null,new HashSet(), new HashMap());
public void testFindAnnotations() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findAnnotations((Class) arg[0], (Set) arg[1], (Set) arg[2], (Map) arg[3]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(),new HashSet(), new HashMap()); t.blowup(true,Project.class,new HashSet(),new HashSet(), new HashMap()); t.blowup(false,Image.class,new HashSet(),new HashSet(), new HashMap()); // FIXME should check for empty sets. t.blowup(false,Dataset.class,new HashSet(),new HashSet(), new HashMap()); // param2: not null t.blowup(true,Dataset.class,null,new HashSet(), new HashMap()); // eek t.blowup(false,Dataset.class,new HashSet(),new HashSet(), null); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java
t.blowup(false,Project.class,new HashSet(), new HashMap()); t.blowup(false,CategoryGroup.class,new HashSet(), new HashMap());
public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()); t.blowup(true,Dataset.class,new HashSet(),new HashMap()); t.blowup(true,Image.class,new HashSet(),new HashMap()); t.blowup(false,Project.class,new HashSet(), new HashMap()); t.blowup(false,CategoryGroup.class,new HashSet(), new HashMap()); // param2: t.blowup(true,Project.class,null, new HashMap()); t.blowup(false,Project.class,new HashSet(),new HashMap()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java
t.blowup(false,Project.class,new HashSet(),new HashMap());
public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()); t.blowup(true,Dataset.class,new HashSet(),new HashMap()); t.blowup(true,Image.class,new HashSet(),new HashMap()); t.blowup(false,Project.class,new HashSet(), new HashMap()); t.blowup(false,CategoryGroup.class,new HashSet(), new HashMap()); // param2: t.blowup(true,Project.class,null, new HashMap()); t.blowup(false,Project.class,new HashSet(),new HashMap()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java
super(JumpType.RaiseJump); setException(actException, false);
this(actException, false);
public RaiseException(RubyException actException) { super(JumpType.RaiseJump); setException(actException, false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RaiseException.java/clean/src/org/jruby/exceptions/RaiseException.java
return new XBeanNamespaceHandlerResolver(getBeanClassLoader());
ClassLoader classLoader = getBeanClassLoader(); if (classLoader == null) { classLoader = Thread.currentThread().getContextClassLoader(); } return new XBeanNamespaceHandlerResolver(classLoader);
protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { return new XBeanNamespaceHandlerResolver(getBeanClassLoader()); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/043275a3e5677af7c7dd4ef4f2c6b93367601a01/XBeanXmlBeanDefinitionReader.java/clean/xbean-spring-v2/src/main/java/org/apache/xbean/spring/context/v2/XBeanXmlBeanDefinitionReader.java
if (y == 0) { throw getRuntime().newZeroDivisionError(); }
public IRubyObject op_div(IRubyObject other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_div(other); } else if (other instanceof RubyNumeric) { // Java / and % are not the same as ruby long x = getLongValue(); long y = ((RubyNumeric) other).getLongValue(); long div = x / y; long mod = x % y; if (mod < 0 && y > 0 || mod > 0 && y < 0) { div -= 1; } return getRuntime().newFixnum(div); } return callCoerced("/", other); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1a99d1af5cf0ec0affd4f78b7cf07aa50ed18d98/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java
catch (IOException e)
catch (IOException e)
private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); return false; } finally { if (_is != null) { try { _is.close(); } catch (Exception ignore) {} } } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java
if (_is != null)
if (_is != null)
private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); return false; } finally { if (_is != null) { try { _is.close(); } catch (Exception ignore) {} } } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java
URL url = _broker.getResource(resource);
URL url = null; ClassLoader cl = this.getClass().getClassLoader(); if (cl != null) { url = cl.getResource(resource); } else { url = ClassLoader.getSystemResource(resource); }
private final URL searchClasspath(String resource) { _log.debug("Searching classpath for "+resource); URL url = _broker.getResource(resource); if (url != null) { return url; } /* * look for locale specific resources AAAA{_xxxx_yyyyy_....}BBBBB */ String[] parts = parseLocalePath(resource); if (parts != null) { if (parts[1] != null) { resource = buildPath(parts[0],parts[1], parts[2]); return searchClasspath(resource); } } return null; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java
if (ids.size() == 0) return null;
if (ids!= null && ids.size() == 0) return null;
private List getDatasetAnnotations(List ids, int uID) throws DSOutOfServiceException, DSAccessException { if (ids.size() == 0) return null; Criteria c = AnnotationMapper.buildDatasetAnnotationCriteria(ids, uID); return (List) gateway.retrieveListSTSData("DatasetAnnotation", c); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fed0ed05f048d5a474a1999222d3c25066f2c644/DMSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java
manager.setDaoUtils((DaoUtils) daoUtils.proxy());
protected void setUp() throws Exception { super.setUp(); annotationDao = new Mock(AnnotationDao.class); containerDao = new Mock(ContainerDao.class); manager.setAnnotationDao((AnnotationDao) annotationDao.proxy()); manager.setContainerDao((ContainerDao) containerDao.proxy() ); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java
daoUtils = null;
protected void tearDown() throws Exception { manager = null; annotationDao = null; containerDao = null; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java
daoUtils.verify(); daoUtils.reset();
public void testAnnotationsWithVariousIdSets(){ /* * Image Anns; No Experimenter */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Return value ImageAnnotation an = new ImageAnnotation(); Image img = new Image(); img.setImageId(id); an.setImage(img); List result = new ArrayList(); result.add(an); // Run annotationDao.expects(once()).method("findImageAnnotations").with(same(ids)).will(returnValue(result)); Map map = manager.findImageAnnotations(ids ); for (Iterator i = map.keySet().iterator(); i.hasNext();) { Integer key = (Integer) i.next(); assertTrue("Key should be in our ids set.",ids.contains(key)); } annotationDao.verify(); annotationDao.reset(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java
daoUtils.verify(); daoUtils.reset();
public void testfindCGCIHiearchies(){ /* * CGCI Hierachies */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Result Image img = new Image(); img.setImageId(id); img.setClassifications(new HashSet()); Classification cla1 = new Classification(); img.getClassifications().add(cla1); Category c1 = new Category(); CategoryGroup cg1 = new CategoryGroup(); cla1.setCategory(c1); c1.setCategoryGroup(cg1); List result = new ArrayList(); result.add(img); // Run containerDao.expects(once()).method("findCGCIHierarchies").with(same(ids)).will(returnValue(result)); Set set = manager.findCGCIHierarchies(ids); List list = new ArrayList(set); assertTrue("There should only be one category group in the result not "+list.size(),list.size()==1); assertTrue("And that one c. group should be this one not "+list.get(0),list.get(0)==cg1); containerDao.verify(); containerDao.reset(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java
daoUtils.verify(); daoUtils.reset();
public void testfindPDIHierarchies(){ /* * PDI Hierachies */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Result Image img = new Image(); img.setImageId(id); img.setDatasets(new HashSet()); Dataset ds = new Dataset(); ds.setProjects(new HashSet()); Project prj = new Project(); img.getDatasets().add(ds); ds.getProjects().add(prj); List result = new ArrayList(); result.add(img); // Run containerDao.expects(once()).method("findPDIHierarchies").with(same(ids)).will(returnValue(result)); Set set = manager.findPDIHierarchies(ids ); List list = new ArrayList(set); assertTrue("There should only be one project in the result.",list.size()==1); assertTrue("And that one project must be this one.",list.get(0)==prj); containerDao.verify(); containerDao.reset(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java
if (!isEmpty(uri) || !reservedElementNames.contains(localName)) {
if (uri == null || uri.equals(SPRING_SCHEMA)) { if (BEAN_ELEMENT.equals(localName)) { return parseBeanDefinitionElement(childElement, true); } } else {
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = childElement.getNamespaceURI(); String localName = childElement.getLocalName(); if (!isEmpty(uri) || !reservedElementNames.contains(localName)) { Object value = parseBeanFromExtensionElement(childElement); if (value != null) { return value; } } else if (isEmpty(uri)) { if (BEAN_ELEMENT.equals(localName)) { return parseBeanDefinitionElement(childElement, true); } } } } return null; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e3e77e34324a35b4e0ceb96616c120691c6abf3a/XBeanXmlBeanDefinitionParser.java/buggy/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java
} } else if (isEmpty(uri)) { if (BEAN_ELEMENT.equals(localName)) { return parseBeanDefinitionElement(childElement, true);
protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = childElement.getNamespaceURI(); String localName = childElement.getLocalName(); if (!isEmpty(uri) || !reservedElementNames.contains(localName)) { Object value = parseBeanFromExtensionElement(childElement); if (value != null) { return value; } } else if (isEmpty(uri)) { if (BEAN_ELEMENT.equals(localName)) { return parseBeanDefinitionElement(childElement, true); } } } } return null; }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e3e77e34324a35b4e0ceb96616c120691c6abf3a/XBeanXmlBeanDefinitionParser.java/buggy/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java
text = "#"+index;
label = "#"+index; annotation = null;
public ROIShape(Shape shape, int index, Color lineColor, int shapeType, int channelIndex, ImageAffineTransform affineTransform) { this.shape = shape; this.index = index; this.lineColor = lineColor; this.channelIndex = channelIndex; this.shapeType = shapeType; this.affineTransform = affineTransform; text = "#"+index; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/62cb46f2999ce5e4031e9c21084b050b114692a8/ROIShape.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/defs/ROIShape.java
System.out.println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue());
ruby.getRuntime().getOutputStream().println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue());
public static RubyObject m_p(Ruby ruby, RubyObject recv, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue()); } } return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.out.print(ofs);
ruby.getRuntime().getOutputStream().print(ofs);
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (i > 0) { System.out.print(ofs); } System.out.print(args[i].isNil() ? "nil" : ((RubyString)args[i].funcall(ruby.intern("to_s"))).getValue()); } } System.out.print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue()); return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.out.print(args[i].isNil() ? "nil" :
ruby.getRuntime().getOutputStream().print(args[i].isNil() ? "nil" :
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (i > 0) { System.out.print(ofs); } System.out.print(args[i].isNil() ? "nil" : ((RubyString)args[i].funcall(ruby.intern("to_s"))).getValue()); } } System.out.print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue()); return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.out.print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue());
ruby.getRuntime().getOutputStream().print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue());
public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (i > 0) { System.out.print(ofs); } System.out.print(args[i].isNil() ? "nil" : ((RubyString)args[i].funcall(ruby.intern("to_s"))).getValue()); } } System.out.print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue()); return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue());
ruby.getRuntime().getOutputStream().print(((RubyString)m_sprintf(ruby, recv, args)).getValue());
public static RubyObject m_printf(Ruby ruby, RubyObject recv, RubyObject args[]) { System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.out.println();
ruby.getRuntime().getOutputStream().println();
public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray) { m_puts(ruby, recv, ((RubyArray)args[i]).toJavaArray()); } else { System.out.println(args[i].isNil() ? "nil" : ((RubyString)args[i].funcall(ruby.intern("to_s"))).getValue()); } } } return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.out.println(args[i].isNil() ? "nil" :
ruby.getRuntime().getOutputStream().println(args[i].isNil() ? "nil" :
public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray) { m_puts(ruby, recv, ((RubyArray)args[i]).toJavaArray()); } else { System.out.println(args[i].isNil() ? "nil" : ((RubyString)args[i].funcall(ruby.intern("to_s"))).getValue()); } } } return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
System.err.println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found.");
ruby.getRuntime().getErrorStream().println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found.");
public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".jar")) { File jarFile = new File(arg1.getValue()); if (!jarFile.exists()) { jarFile = new File(new File(ruby.getSourceFile()).getParentFile(), arg1.getValue()); if (!jarFile.exists()) { System.err.println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); } } if (jarFile.exists()) { try { ClassLoader javaClassLoader = new URLClassLoader(new URL[] { jarFile.toURL() }, ruby.getJavaClassLoader()); ruby.setJavaClassLoader(javaClassLoader); } catch (MalformedURLException murlExcptn) { } } } else { if (!arg1.getValue().endsWith(".rb")) { arg1 = RubyString.m_newString(ruby, arg1.getValue() + ".rb"); } ruby.getRuntime().loadFile(arg1, false); } return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java
new Object[] { self.getRuntime(), self });
new Object[] { runtime, self });
public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { Ruby.class, IRubyObject.class }); try { return (IRubyObject) method.invoke(null, new Object[] { self.getRuntime(), self }); } catch (InvocationTargetException e) { throw unrollException(e); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/TestHelper.java/buggy/src/org/jruby/util/TestHelper.java
} finally { runtime.getCurrentContext().popClass();
public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { Ruby.class, IRubyObject.class }); try { return (IRubyObject) method.invoke(null, new Object[] { self.getRuntime(), self }); } catch (InvocationTargetException e) { throw unrollException(e); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/TestHelper.java/buggy/src/org/jruby/util/TestHelper.java
throw runtime.newNameError("undefined method '" + methodName + "' for class '" + javaClass.getName() + "'");
throw runtime.newNameError("undefined method '" + methodName + "' for class '" + javaClass.getName() + "'", methodName);
public static JavaMethod createDeclared(IRuby runtime, Class javaClass, String methodName, Class[] argumentTypes) { try { Method method = javaClass.getDeclaredMethod(methodName, argumentTypes); return create(runtime, method); } catch (NoSuchMethodException e) { throw runtime.newNameError("undefined method '" + methodName + "' for class '" + javaClass.getName() + "'"); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/JavaMethod.java/buggy/src/org/jruby/javasupport/JavaMethod.java
experimenter = imgA.getExperimenter();
experimenter = mex.getExperimenter();
public static Map fillImageAnnotations(List l, TreeMap map) { Iterator i = l.iterator(); ImageAnnotation imgA; AnnotationData data; int ownerID; List list; Timestamp time = null; Experimenter experimenter; ModuleExecution mex; while (i.hasNext()) { imgA = (ImageAnnotation) i.next(); list = new ArrayList(); mex = imgA.getModuleExecution(); if (mex.getTimestamp() != null) time = PrimitiveTypesMapper.getTimestamp(mex.getTimestamp()); else time = PrimitiveTypesMapper.getDefaultTimestamp(); experimenter = imgA.getExperimenter(); ownerID = experimenter.getID(); data = new AnnotationData(imgA.getID(), ownerID, time); data.setAnnotation(imgA.getContent()); data.setOwnerFirstName(experimenter.getFirstName()); data.setOwnerLastName(experimenter.getLastName()); if (imgA.getTheZ() != null) data.setTheZ(imgA.getTheZ().intValue()); if (imgA.getTheT() != null) data.setTheT(imgA.getTheT().intValue()); list.add(data); map.put(new Integer(ownerID), list); } return map; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/46ee0e7f23268dcd5696292cc729c65f5a3a2bd2/AnnotationMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/AnnotationMapper.java
JPanel p = new JPanel(); p.setLayout(new GridBagLayout());
legendPanel = new JPanel(); legendPanel.setLayout(new GridBagLayout());
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT),
legendPanel.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT),
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION),
legendPanel.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION),
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE),
legendPanel.add(buildLegend(colors.getColor(Colors.REGEX_TITLE),
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION),
legendPanel.add(buildLegend( colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION),
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
p.add(buildLegend(colors.getColor(Colors.ANNOTATED),
legendPanel.add(buildLegend(colors.getColor(Colors.ANNOTATED),
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
return p;
return legendPanel;
private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one c.insets = new Insets(1, 1, 1, 1); Colors colors = Colors.getInstance(); p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), "Currently selected"), c); // two c.gridx = 1; c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), "Found in annotation"), c); // three c.gridx = 0; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), "Found in title"), c); // four c.gridx = 1; c.gridy = 1; p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), "Found in either"), c); //five c.gridx = 0; c.gridy = 2; p.add(buildLegend(colors.getColor(Colors.ANNOTATED), "Found in annotated"), c); return p; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java
return StringEvaluate.eval(ruby, self, this);
if (simple) { return getLiteral().to_s(); } else { return StringEvaluate.eval(ruby, self, this); }
public RubyObject eval(Ruby ruby, RubyObject self) { return StringEvaluate.eval(ruby, self, this); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/58f05ce53c167c336c9619e751471924f79325f3/DStrNode.java/buggy/org/jruby/nodes/DStrNode.java
setScrollPaneSize();
private void buildGUI() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); scrollPane = new JScrollPane(table); scrollPane.setBackground(GraphicCanvas.BACKGROUND); addComponents(scrollPane); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/StatsResultsPane.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/results/stats/StatsResultsPane.java
int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifications(); } else model.setState(READY);
switch (model.getSelectedTabbedIndex()) { case EditorUI.PROPERTIES_INDEX: int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifications(); break; case EditorUI.PERMISSIONS_INDEX: retrieveThumbnail(); break; default: model.setState(READY); }
public void activate() { switch (model.getState()) { case NEW: if (model.getEditorType() == PROPERTIES_EDITOR) { int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifications(); } else model.setState(READY); fireStateChange(); } break; case DISCARDED: throw new IllegalStateException( "This method can't be invoked in the DISCARDED state."); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java
model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller);
void initialize() { controller.initialize(view); view.initialize(controller, model); model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java
if (model.isClassificationLoaded()) return;
public void loadClassifications() { switch (model.getState()) { case DISCARDED: case LOADING_ANNOTATION: //return; } if (!(model.isClassified())) return; //model.setClassifications(null); model.fireClassificationLoading(); model.getParentModel().setStatus(true, TreeViewer.LOADING_TITLE, false); fireStateChange(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java
if (model.hasThumbnail()) firePropertyChange(TreeViewer.THUMBNAIL_LOADING_PROPERTY, null, model.getHierarchyObject());
retrieveThumbnail();
public void setAnnotations(Map map) { if (model.getState() == LOADING_ANNOTATION) { if (map != null) { model.setAnnotations(map); view.showAnnotations(); if (model.hasThumbnail()) firePropertyChange(TreeViewer.THUMBNAIL_LOADING_PROPERTY, null, model.getHierarchyObject()); } model.setState(READY); model.getParentModel().setStatus(false, "", true); fireStateChange(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java
retrieveThumbnail();
public void setChannelsData(List emissionWaves) { if (model.getState() != LOADING_CHANNEL_DATA) return; model.setChannelsData(emissionWaves); fireStateChange(); view.setChannelsData(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java