rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
return AdapterUtils.go((CategoryGroup) result, new HashMap());
return AdapterUtils.go((CategoryGroup) result, newCache());
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java
return AdapterUtils.go((Category) result, new HashMap());
return AdapterUtils.go((Category) result, newCache());
static public DataObject adaptLoadedCGCIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result, new HashMap()); } else if (rootNodeType.equals(Category.class)){ return AdapterUtils.go((Category) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java
return AdapterUtils.go((Project) result, new HashMap());
return AdapterUtils.go((Project) result, newCache());
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new Has...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java
return AdapterUtils.go((Dataset) result, new HashMap());
return AdapterUtils.go((Dataset) result, newCache());
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result, new HashMap()); } else if (rootNodeType.equals(Dataset.class)){ return AdapterUtils.go((Dataset) result, new Has...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java
if (null == p.getProjectId()) {
if (null == p.getProjectId()) {
static public ProjectData go(Project p, Map cache) { if (check(cache,p)) { return (ProjectData) from(cache, p); } ProjectData pd = new ProjectData(); to(cache, p, pd); if (null == p.getProjectId()) { if (log.isDebugEnabled())log.debug(nullId+p); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java
m.put(init_time,new Date());
static Map newCache() { Map m = new HashMap(); m.put(null,null); // This keeps things from getting hairy return m; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java
module.defineModuleFunction("select", callbackFactory.getOptSingletonMethod("select"));
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) {
protected NoteTreeNode(NoteTreeNode parent, DisplayedNote data) {
public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/d0681c368f8b555700e4ef73b079e6a225f180f2/NoteTreeNode.java/buggy/trunk/src/de/berlios/koalanotes/display/NoteTreeNode.java
if (isSelected() == selected) { return; }
public void setSelected(boolean selected) { List<TreeItem> selectionTemp = Arrays.asList(treeItem.getParent().getSelection()); List<TreeItem> selection = new LinkedList<TreeItem>(selectionTemp); if (selected) { selection.add(treeItem); } else { selection.remove(treeItem); } TreeItem[] newSelection = selectio...
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/d0681c368f8b555700e4ef73b079e6a225f180f2/NoteTreeNode.java/buggy/trunk/src/de/berlios/koalanotes/display/NoteTreeNode.java
super(runtime, null, superClass, runtime.getObject(), "Module", RubyModule.class);
super(runtime, null, superClass, runtime.getObject().getCRef(), "Module", RubyModule.class);
public ModuleMetaClass(IRuby runtime, RubyClass superClass) { super(runtime, null, superClass, runtime.getObject(), "Module", RubyModule.class); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/ModuleMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ModuleMetaClass.java
public RubyClass newSubClass(String name, RubyModule parent) { return new ModuleMetaClass(name, this, parent);
public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { return new ModuleMetaClass(name, this, parentCRef);
public RubyClass newSubClass(String name, RubyModule parent) { return new ModuleMetaClass(name, this, parent); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/ModuleMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ModuleMetaClass.java
if (!currentP.identical(previousP))
Permissions tmpDetails = new Permissions(previousP); if (currentP.isSet(Flag.LOCKED)) { tmpDetails.set(Flag.LOCKED); } else { tmpDetails.unSet(Flag.LOCKED); } if (!currentP.identical(tmpDetails))
protected boolean managedPermissions(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // setup boolean altered = false; Permissions previousP = previousDetails == null ? null : previousDetails.getPermissions(); Permissions currentP = c...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/36bb3b3ff2057894b05b208ab4ef1b9ce950164a/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
&& !source.getOwner().getId().equals( newDetails.getOwner().getId())) {
&& !newDetails.getOwner().getId().equals( source.getOwner().getId())) {
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/36bb3b3ff2057894b05b208ab4ef1b9ce950164a/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
"You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner() .getId()));
"You are not authorized to set the Experimenter" + " for %s to %s", obj, source.getOwner()));
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/36bb3b3ff2057894b05b208ab4ef1b9ce950164a/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
"You are not authorized to set the ExperimenterGroupID" + " for %s to %d", obj, source.getGroup() .getId()));
"You are not authorized to set the ExperimenterGroup" + " for %s to %s", obj, source.getGroup()));
public Details newTransientDetails(IObject obj) { checkReady("transientDetails"); if (obj == null) throw new ApiUsageException("Argument cannot be null."); if (hasPrivilegedToken(obj)) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = cd.createDetails(); if (sou...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/36bb3b3ff2057894b05b208ab4ef1b9ce950164a/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
private JToolBar buildViewBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.setBorder(null); JToggleButton b = new JToggleButton( controller.getAction(HiViewerControl.TREE_VIEW)); bar.add(b); b = new ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/HiViewerToolBar.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerToolBar.java
Class targetType = (Class) c2c().get(current.getClass());
Class targetType = findClass(current.getClass());
public Object findTarget(Object current){ // IMMUTABLES if (null == current | current instanceof Integer | current instanceof String) // TODO can use findTarget then for these as well. { return current; } else // Special cases TODO put into doFindTarget if (current instanceof Date){ return new Timest...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/afec4b5da2a19f70c897c6d87552b4e998da56cb/ModelMapper.java/clean/components/common/src/ome/util/ModelMapper.java
(Category)controller.getCategories(group).get(i);
(Category)controller.getCategories(group).get(selectedCategory);
private void buildGUI() { Container container = getContentPane(); container.setLayout(new BorderLayout(2,2)); JPanel listPanel = new JPanel(); listPanel.setLayout(new GridLayout(1,2)); JPanel leftPanel = new JPanel(); leftPanel.setLayout(new BorderLayout(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a47b86cb03a09b865a88769c10a7d57151002bd0/CategoryUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryUI.java
(Category)controller.getCategories(group).get(i);
(Category)controller.getCategories(group).get(selectedCategory);
public void valueChanged(ListSelectionEvent e) { int i = categoryList.getSelectedIndex(); CategoryGroup group = (CategoryGroup)controller.getCategoryGroups().get(selectedGroup); Category cat = (Category)controller....
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a47b86cb03a09b865a88769c10a7d57151002bd0/CategoryUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryUI.java
return _allCategories;
if(_allCategories==null){ return new LinkedHashMap(); } else{ return _allCategories; }
public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); ...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/77f6af59c63a9bb06fc5f97887a10f33495a1eb0/SearchArticleBean.java/clean/src/java/com/idega/block/article/bean/SearchArticleBean.java
if(!getSearchCategory().equals("-1")){
if(!("-1").equals(getSearchCategory())){
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/77f6af59c63a9bb06fc5f97887a10f33495a1eb0/SearchArticleBean.java/clean/src/java/com/idega/block/article/bean/SearchArticleBean.java
int n = Integer.parseInt(args[0]);
public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); int i, c; String s = ""; Integer ii; // the original program used: // Hashtable ht = new Hashtable(); // John Olsson points out that Hashtable is for synchronized access // and we should use instead: HashMap ht =...
53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/hash.java/buggy/tests/shootout/java-start/hash.java
FlowLayout(FlowLayout.LEFT, 0, 0)) {
FlowLayout(FlowLayout.LEFT, 0, 0)) {
private void createUI() { setLayout(new BorderLayout()); tabs = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0)) { public Dimension getPreferredSize() { if (getParent() == null) return getPreferredSize(); // calculate the preferre...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/93be14b35e2ec723a91a9660ce4217f9947cf7b5/SparkTabbedPane.java/buggy/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTabbedPane.java
if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); }
public void mouseClicked(MouseEvent e) { }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/93be14b35e2ec723a91a9660ce4217f9947cf7b5/SparkTabbedPane.java/buggy/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTabbedPane.java
if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); }
public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/93be14b35e2ec723a91a9660ce4217f9947cf7b5/SparkTabbedPane.java/buggy/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTabbedPane.java
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); } invalid...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/00fab4f4f794528a2db5b65568d6efec6e2e119d/SparkTab.java/buggy/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTab.java
put(varName,toolType);
put(varName,tool);
WC(final Broker broker) { _broker = broker; try { String tools = (String) _broker.getValue("config","TemplateTools"); Enumeration tenum = new StringTokenizer(tools); while (tenum.hasMoreElements()) { String toolName = (String) tenum.nextElement(); try { ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2b733b59c2820d3bfe96a20a52e269bad07b066e/WC.java/buggy/webmacro/src/org/webmacro/servlet/WC.java
" is a " + name.getClass());
" is a " + c + ": " + v);
final public ContextTool getTool(String name) throws InvalidContextException { try { return (ContextTool) getMacro(name); } catch (ClassCastException ce) { throw new InvalidContextException("Not a tool, " + name + " is a " + name.getClass()); } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2b733b59c2820d3bfe96a20a52e269bad07b066e/WC.java/buggy/webmacro/src/org/webmacro/servlet/WC.java
WebContext wc = (WebContext) clone(null);
WebContext wc = (WebContext) clone();
final public WebContext clone( final HttpServletRequest req, final HttpServletResponse resp) { try { // want: new local vars, both existing tools tables, no bean, // plus store req and resp somewhere, plus existing broker WebContext wc = (WebContext) clone(null); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/278b4a35f5c73b37a3381dc75821bfaa4d3aa3d0/WebContext.java/buggy/webmacro/src/org/webmacro/servlet/WebContext.java
this.myName, name, desc, ignoreRegex);
this.myName, name, desc, ignoreRegexs);
public MethodVisitor visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) { MethodVisitor mv = cv.visitMethod(access, name, desc, signature, exceptions); if (!instrument) return mv; return mv == null ? null : new MethodInstrumenter(classData...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/ClassInstrumenter.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/ClassInstrumenter.java
final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp)
final String owner, final String myName, final String myDescriptor, final Collection ignoreRegexs)
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = i...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/MethodInstrumenter.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/MethodInstrumenter.java
this.ignoreRegex = ignoreRegexp;
this.ignoreRegexs = ignoreRegexs;
public MethodInstrumenter(ClassData classData, final MethodVisitor mv, final String owner, final String myName, final String myDescriptor, final Pattern ignoreRegexp) { super(mv); this.classData = classData; this.ownerClass = owner; this.myName = myName; this.myDescriptor = myDescriptor; this.ignoreRegex = i...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/MethodInstrumenter.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/MethodInstrumenter.java
} else { model.setState(ANNOTATIONS_READY); fireStateChange();
public void manageAnnotationEditing(boolean b) { if (model.getState() != ClipBoard.EDIT_ANNOTATIONS) throw new IllegalStateException("This method can only be invoked " + "in the EDIT_ANNOTATIONS state."); if (b) { view.manageAnnotation(); retrieve...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3feec30057da68977528d8509d07bff5c080fb40/ClipBoardComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardComponent.java
initListener();
void initialize(ClipBoardControl controller, ClipBoardModel model) { if (controller == null) throw new NullPointerException("No control."); if (model == null) throw new NullPointerException("No model."); this.model = model; this.controller = controller; initComponents(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/ClipBoardUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoardUI.java
public void composingNotification(final String from, String packetID) { SwingUtilities.invokeLater(new Runnable() { public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/GroupChatRoom.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/GroupChatRoom.java
public void run() { String bareAddress = StringUtils.parseBareAddress(from); if (bareAddress.equals(getRoomname())) { String nickname = StringUtils.parseResource(from); String isTypingText = Res.getString("message.is.typ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/GroupChatRoom.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/GroupChatRoom.java
public void setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications) { sendNotifications = sendAndReceiveTypingNotifications; if (sendAndReceiveTypingNotifications) { SparkManager.getMessageEventManager().addMessageEventNotificationListener(messageManager); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/GroupChatRoom.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/GroupChatRoom.java
private void setupListeners() { chat.addParticipantStatusListener(new DefaultParticipantStatusListener() { public void kicked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.kicked.from.room", nick...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/GroupChatRoom.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/GroupChatRoom.java
public void addLog(String action, Class klass, Long id) {
public void addLog(String action, Class klass, Long id) {
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + kl...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
EventLog l = new EventLog(); l.setAction(action); l.setType(klass.getName()); l.setIdList(id.toString()); l.setDetails(CurrentDetails.createDetails()); l.getGraphHolder().setToken(null, token); CurrentDetails.getCreationEvent().addEventLog(l);
CurrentDetails.addLog( action, klass, id );
public void addLog(String action, Class klass, Long id) { Assert.notNull(action); Assert.notNull(klass); Assert.notNull(id); if (Event.class.isAssignableFrom(klass) || EventLog.class.isAssignableFrom(klass) || EventDiff.class.isAssignableFrom(klass)) { log.debug("Not logging creation of logging type:" + kl...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
Assert.notNull(d); if (isSystemType(klass))
if ( d == null || isSystemType(klass) )
public boolean allowLoad(Class<? extends IObject> klass, Details d) { Assert.notNull(klass); Assert.notNull(d); if (isSystemType(klass)) return true; return SecurityFilter.passesFilter(this, d); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
if ( currentDetails.getCreationEvent() == null ) { newDetails.setCreationEvent( previousDetails.getCreationEvent() ); return true; }
protected boolean managedEvent(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getCreationEvent(), currentDetails .getCreationEvent())) { // no one change them. throw new SecurityViolation(String.format( ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
if (locked) { throw new SecurityViolation("Cannot change group for entity:" + obj); } else if (currentDetails.getGroup() == null) {
if ( currentDetails.getGroup() == null ) {
protected boolean managedGroup(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (!idEqual(previousDetails.getGroup(), cur...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
} if (locked) { throw new SecurityViolation("Object locked! " + "Cannot change group for entity:" + obj);
protected boolean managedGroup(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { // previous and current have different ids. either change it and return // true if permitted, or throw an exception. if (!idEqual(previousDetails.getGroup(), cur...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
throw new SecurityViolation("Cannot change owner for:" + obj);
throw new SecurityViolation("Object locked! " + "Cannot change owner for:" + obj);
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
if (currentDetails.getOwner() == null) { newDetails.setOwner(previousDetails.getOwner()); return true; }
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
protected boolean managedOwner(boolean locked, boolean privileged, IObject obj, Details previousDetails, Details currentDetails, Details newDetails) { if (!idEqual(previousDetails.getOwner(), currentDetails.getOwner())) { if (locked) { throw new SecurityViolation("Cannot change owner for:" + obj); } // i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
if (iObject == null)
if (iObject == null || isSystemType( iObject.getClass() ))
public void markLockedIfNecessary(IObject iObject) { if (iObject == null) return; Set<IObject> s = new HashSet<IObject>(); IObject[] candidates = em.getLockCandidates(iObject); for (IObject object : candidates) { s.add(object); // TODO NEED TO CHECK FOR OWNERSHIP etc. etc. } CurrentDetails.appendLockCandid...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
if (recv.getRuntime().getLoadService().load(file.toString())) { return recv.getRuntime().getTrue(); } return recv.getRuntime().getFalse();
recv.getRuntime().getLoadService().load(file.toString()); return recv.getRuntime().getTrue();
public static IRubyObject load(IRubyObject recv, IRubyObject[] args) { RubyString file = (RubyString)args[0]; if (recv.getRuntime().getLoadService().load(file.toString())) { return recv.getRuntime().getTrue(); } return recv.getRuntime().getFalse(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ee934b89304925fd623a76285f84cfb31cb3695f/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
Experimenter foundUser = iQuery.get(Experimenter.class,user.getId());
Experimenter foundUser = internalGetExperimenter(user.getId());
public void addGroups(Experimenter user, ExperimenterGroup[] groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = iQuery.get(Experimenter.class,user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup f...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
iQuery.get(ExperimenterGroup.class, group.getId());
internalGetGroup(group.getId());
public void addGroups(Experimenter user, ExperimenterGroup[] groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = iQuery.get(Experimenter.class,user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup f...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
final LocalUpdate update = iUpdate; final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); ExperimenterGroup group = internalLookupGroup(groupName); copy.getDetails().setGroup(group); securitySystem.doAction(copy, new SecureAction(){ public IObject updateObject(IObject obj) { update.flush(); return null...
public void changeGroup(IObject iObject, String groupName) { // TODO Auto-generated method stub }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Experimenter owner = internalLookupExperimenter(omeName); copy.getDetails().setOwner(owner); iUpdate.saveObject(copy);
public void changeOwner(IObject iObject, String omeName) { // TODO Auto-generated method stub }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Permissions p = new Permissions().applyMask(perms); copy.getDetails().setPermissions(p); iUpdate.saveObject(copy);
public void changePermissions(IObject iObject, Permissions perms) { // TODO Auto-generated method stub }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
public Experimenter createExperimenter(Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups)
public Experimenter createExperimenter( Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups)
public Experimenter createExperimenter(Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
defaultGroupMap.link( getGroup(defaultGroup.getId()), e);
defaultGroupMap.link( internalGetGroup(defaultGroup.getId()), e);
public Experimenter createExperimenter(Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
groupMap.link( getGroup(group.getId()), e);
groupMap.link( internalGetGroup(group.getId()), e);
public Experimenter createExperimenter(Experimenter experimenter, ExperimenterGroup defaultGroup, ExperimenterGroup[] otherGroups) {// TODO check that no other group is default Experimenter e = copyUser( experimenter ); if ( defaultGroup == null || defaultGroup.getId() == null ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
return g;
return lookupGroup(g.getName());
public ExperimenterGroup createGroup(ExperimenterGroup group) { group = copyGroup( group ); ExperimenterGroup g = iUpdate.saveAndReturnObject( group ); return g; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
lookupGroup("system"),
internalLookupGroup("system"),
public Experimenter createSystemUser(Experimenter newSystemUser) { Experimenter e = createExperimenter( newSystemUser, lookupGroup("system"), new ExperimenterGroup[]{ lookupGroup("user") } ); return e; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
Experimenter e = createExperimenter(newUser, lookupGroup("user"),null);
Experimenter e = createExperimenter( newUser, internalLookupGroup("user"),null);
public Experimenter createUser(Experimenter newUser) { Experimenter e = createExperimenter(newUser, lookupGroup("user"),null); return e; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
Experimenter e = getExperimenter(user.getId());
Experimenter e = internalGetExperimenter(user.getId());
public void deleteExperimenter( Experimenter user ) { Experimenter e = getExperimenter(user.getId()); int count = jdbc.update("delete from password where experimenter_id = ?", e.getId()); if ( count == 0 ) { log.info("No password found for user " +e.getOmeName() +". ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51bca7b98918ffeec3bfbe06121fa0c606f5da26/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
public MetaClass newSingletonClass() { MetaClass newClass = new MetaClass(getRuntime(), this);
public MetaClass newSingletonClass(RubyModule parentModule) { MetaClass newClass = new MetaClass(getRuntime(), this, parentModule);
public MetaClass newSingletonClass() { MetaClass newClass = new MetaClass(getRuntime(), this); newClass.infectBy(this); return newClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/32d84ae899fd3c367ef3800d0984b69f53209031/RubyClass.java/clean/src/org/jruby/RubyClass.java
newClass.makeMetaClass(getMetaClass());
newClass.makeMetaClass(getMetaClass(), newClass);
public RubyClass newSubClass(String name, RubyModule parentModule) { Ruby runtime = getRuntime(); RubyClass newClass = new RubyClass(runtime, runtime.getClasses().getClassClass(), this, parentModule, name); newClass.makeMetaClass(getMetaClass()); newClass.inheritedBy(this); runtim...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/32d84ae899fd3c367ef3800d0984b69f53209031/RubyClass.java/clean/src/org/jruby/RubyClass.java
Browser browser = model.getBrowser(); ImageDisplay d = browser.getSelectedDisplay();
public void propertyChange(PropertyChangeEvent pce) { Browser browser = model.getBrowser(); ImageDisplay d = browser.getSelectedDisplay(); String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Point p = browser.getPopupPoint(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aaed3948a4c0b3282991cf3a892a7670ca368625/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
browser.setSelectedDisplay((ImageDisplay) pce.getNewValue());
model.getBrowser().setSelectedDisplay( (ImageDisplay) pce.getNewValue());
public void propertyChange(PropertyChangeEvent pce) { Browser browser = model.getBrowser(); ImageDisplay d = browser.getSelectedDisplay(); String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Point p = browser.getPopupPoint(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aaed3948a4c0b3282991cf3a892a7670ca368625/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
ImageDisplay d = model.getBrowser().getSelectedDisplay();
public void propertyChange(PropertyChangeEvent pce) { Browser browser = model.getBrowser(); ImageDisplay d = browser.getSelectedDisplay(); String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Point p = browser.getPopupPoint(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aaed3948a4c0b3282991cf3a892a7670ca368625/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows;
int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); availableRows = articleItemBean.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow...
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java
int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows;
catch (XmlException e) { e.printStackTrace();
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java
for (int i = start.intValue(); i < maxRow; i++) { ArticleListBean a = new ArticleListBean(String.valueOf(i), testHeadlines[i], testPublished[i], testAuthors[i], testStatus[i]); if (i == 5) { a.setTestStyle("color:red"); } _dataModel.set(a, i);
catch (IOException e) { e.printStackTrace();
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java
throw new IllegalArgumentException(msg);
throw new ApiUsageException(msg);
public static void errorOnViolation(Class implClass, Method mthd, Object[] args) throws ValidationException { /* find concrete method */ Method implMethod; try { implMethod = implClass.getMethod(mthd.getName(), (Class[]) mthd .getParameterTypes()); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d102caba308a2112d9a1fb39652435611207cd3e/ApiConstraintChecker.java/clean/components/server/src/ome/annotations/ApiConstraintChecker.java
throw new IllegalArgumentException(msg);
throw new ApiUsageException(msg);
public static void errorOnViolation(Class implClass, Method mthd, Object[] args) throws ValidationException { /* find concrete method */ Method implMethod; try { implMethod = implClass.getMethod(mthd.getName(), (Class[]) mthd .getParameterTypes()); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d102caba308a2112d9a1fb39652435611207cd3e/ApiConstraintChecker.java/clean/components/server/src/ome/annotations/ApiConstraintChecker.java
throw new IllegalArgumentException(msg);
throw new ApiUsageException(msg);
public static void errorOnViolation(Class implClass, Method mthd, Object[] args) throws ValidationException { /* find concrete method */ Method implMethod; try { implMethod = implClass.getMethod(mthd.getName(), (Class[]) mthd .getParameterTypes()); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d102caba308a2112d9a1fb39652435611207cd3e/ApiConstraintChecker.java/clean/components/server/src/ome/annotations/ApiConstraintChecker.java
defineMethod("fcntl", Arity.twoArguments());
protected void initializeClass() { includeModule(getRuntime().getModule("Enumerable")); // TODO: Implement tty? and isatty. We have no real capability to // determine this from java, but if we could set tty status, then // we could invoke jruby differently to allow stdin to retur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54594cf2641226a173f9dc7981b2fbb511d7061e/IOMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IOMetaClass.java
searchArticlesNode.setVisibleInMenus(false);
public void addArticleViews(IWBundle bundle){ ContentViewManager cViewManager = ContentViewManager.getInstance(bundle.getApplication()); ViewNode contentNode = cViewManager.getContentNode(); DefaultViewNode articleNode = new DefaultViewNode("article",contentNode); articleNode.setJspUri(bundle.getJSPURI("createar...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/44c7553551d463f44b7cb7cf5d0a43b62412701b/IWBundleStarter.java/buggy/src/java/com/idega/block/article/IWBundleStarter.java
assertEquals("nil", RubyNil.inspect(rubyNil).getValue());
assertEquals("nil", RubyNil.inspect(rubyNil).toString());
public void testInspect() { assertEquals("nil", RubyNil.inspect(rubyNil).getValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/TestRubyNil.java/buggy/test/org/jruby/test/TestRubyNil.java
assertEquals("", RubyNil.to_s(rubyNil).getValue());
assertEquals("", RubyNil.to_s(rubyNil).toString());
public void testToS() { assertEquals("", RubyNil.to_s(rubyNil).getValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/TestRubyNil.java/buggy/test/org/jruby/test/TestRubyNil.java
return RubyFixnum.zero(recv.getRuntime()); }
return RubyFixnum.zero(recv.getRuntime()); }
public static RubyFixnum to_i(IRubyObject recv) { return RubyFixnum.zero(recv.getRuntime()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/39c53cd7958c3b95ef4124a65a62d1e1cac24c84/RubyNil.java/buggy/src/org/jruby/RubyNil.java
getCurrentContext().pushClass(getClasses().getObjectClass());
private void init() { getIterStack().push(Iter.ITER_NOT); getFrameStack().push(); topFrame = getCurrentFrame(); getScope().push(); topScope = currentScope(); setCurrentVisibility(Visibility.PRIVATE); classes = new RubyClasses(this); classes.initCoreClasses(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f75018181746a5807539db933ad4144d55240425/Ruby.java/clean/src/org/jruby/Ruby.java
return "SemanticType"+(semanticTypeId==null ? ":Hash"+this.hashCode() : ":"+semanticTypeId);
return "SemanticType"+(semanticTypeId==null ? ":Hash_"+this.hashCode() : ":Id_"+semanticTypeId);
public String toString(){ return "SemanticType"+(semanticTypeId==null ? ":Hash"+this.hashCode() : ":"+semanticTypeId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/SemanticType.java/clean/components/common/src/ome/model/SemanticType.java
if (movieIndex == Player.MOVIE_Z) max = maxZ;
MoviePaneMng(MoviePane view, PlayerUIMng playerUIMng, Registry registry, int maxT, int maxZ, MovieSettings settings) { this.view = view; this. playerUIMng = playerUIMng; this.registry = registry; this.maxT = maxT; this.maxZ = maxZ; max = maxT; curSt...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/69d9ca849e67dccda3286f8ae868fd51e5634768/MoviePaneMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/movie/pane/MoviePaneMng.java
startTField.setActionCommand(""+START_T); startTField.addActionListener(this); startTField.addFocusListener(this); endTField.setActionCommand(""+END_T); endTField.addActionListener(this); endTField.addFocusListener(this); startZField.setActionCommand(""+START_Z); startZField.addActionListener(this); startZField.addFocu...
attachFieldListeners(startTField, START_T); attachFieldListeners(endTField, END_T); attachFieldListeners(startZField, START_Z); attachFieldListeners(endZField, END_Z);
void attachListeners() { //TexField startTField = view.getMovieStartT(); endTField = view.getMovieEndT(); startZField = view.getMovieStartZ(); endZField = view.getMovieEndZ(); startTField.setActionCommand(""+START_T); startTField.addActionListener(this); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/69d9ca849e67dccda3286f8ae868fd51e5634768/MoviePaneMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/movie/pane/MoviePaneMng.java
int width, height; width = img.getWidth(); height = img.getHeight();
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd07cb02b8ddef458b76281e758695eaa977dbf0/BrowserCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java
Rectangle imgRect = new Rectangle(0, 0, width, height);
Rectangle imgRect = new Rectangle(0, 0, img.getWidth(), img.getHeight());
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd07cb02b8ddef458b76281e758695eaa977dbf0/BrowserCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java
} else { width = img.getWidth(); height = img.getHeight(); if (x+viewRect.width < imgRect.width) width = x+viewRect.width; if (y+viewRect.height < imgRect.height) height = y+viewRect.height;
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd07cb02b8ddef458b76281e758695eaa977dbf0/BrowserCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd07cb02b8ddef458b76281e758695eaa977dbf0/BrowserCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java
classes.addAll(sourceFileData.getChildren());
classes.addAll(sourceFileData.getClasses());
public SortedSet getClasses() { SortedSet classes = new TreeSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter.next(); classes.addAll(sourceFileData.getChildren()); } return classes; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/7f42310aa94d3450acefa63804376619941a31c5/PackageData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/PackageData.java
threadContext.callSuper(args);
result = threadContext.callSuper(args);
public void visitSuperNode(SuperNode iVisited) { if (threadContext.getCurrentFrame().getLastClass() == null) { throw new NameError(runtime, "Superclass method '" + threadContext.getCurrentFrame().getLastFunc() + "' disabled."); } Block tmpBlock = ArgsUtil.beginCallArgs(threadContext)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/87cd159e65e50f4157091c667b2f04e958262442/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
threadContext.callSuper(args);
result = threadContext.callSuper(args);
public void visitZSuperNode(ZSuperNode iVisited) { if (threadContext.getCurrentFrame().getLastClass() == null) { throw new NameError(runtime, "superclass method '" + runtime.getCurrentFrame().getLastFunc() + "' disabled"); } IRubyObject[] args = threadContext.getCurrentFrame().getArg...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/87cd159e65e50f4157091c667b2f04e958262442/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
if (je.getJumpType() == JumpException.JumpType.NextJump) { handleNext(je); } else if (je.getJumpType() == JumpException.JumpType.RedoJump) { handleRedo(je); } else if (je.getJumpType() == JumpException.JumpType.BreakJump) {
if (je.getJumpType() == JumpException.JumpType.BreakJump) {
public IRubyObject begin(Node node) { clearResult(); if (node != null) { try { // for each call to internalEval, push down new stacks (to isolate eval runs that still want to be logically separate pushCurrentInstructionStack(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ed5fe768829dd43ebf13861d9031b19571d6e898/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
} } if (currentException != null && !handlingException) { if (currentException.getJumpType() == JumpException.JumpType.RedoJump) { handleRedo(currentException); } else if (currentException.getJumpType() == JumpException.JumpType.NextJump) { handleNext(currentException);
public IRubyObject begin(Node node) { clearResult(); if (node != null) { try { // for each call to internalEval, push down new stacks (to isolate eval runs that still want to be logically separate pushCurrentInstructionStack(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ed5fe768829dd43ebf13861d9031b19571d6e898/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
addInstruction(iVisited, exceptionRethrower);
handlingException = true; addInstruction(iVisited, exceptionContinuer);
private void handleNext(JumpException je) { NextNode iVisited = (NextNode)je.getSecondaryData(); while (!(getCurrentInstructionStack().isEmpty() || peekCurrentInstructionBundle().redoable)) { InstructionBundle ib = peekCurrentInstructionBundle(); if (ib.ensured) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ed5fe768829dd43ebf13861d9031b19571d6e898/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
handlingException = false;
private void handleNext(JumpException je) { NextNode iVisited = (NextNode)je.getSecondaryData(); while (!(getCurrentInstructionStack().isEmpty() || peekCurrentInstructionBundle().redoable)) { InstructionBundle ib = peekCurrentInstructionBundle(); if (ib.ensured) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ed5fe768829dd43ebf13861d9031b19571d6e898/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
handlingException = false;
private void handleRedo(JumpException je) { RedoNode iVisited = (RedoNode)je.getSecondaryData(); while (!(getCurrentInstructionStack().isEmpty() || peekCurrentInstructionBundle().redoable)) { InstructionBundle ib = peekCurrentInstructionBundle(); if (ib.ensured) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ed5fe768829dd43ebf13861d9031b19571d6e898/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
_colorName = null;
final public WikiPage parse(WikiPageBuilder builder) throws ParseException { Token t; label_1: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case QUOTED_BLOCK: case BOLD: case UNDERLINE: case ITALIC: case LT: case GT: c...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b3eb520f27d3c9af235ee5b06769be73322daec/WikiParser.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParser.java
for (Iterator it = nsr.parse().iterator(); it.hasNext();)
nsr.parse(); for (Iterator it = nsr.process().iterator(); it.hasNext();)
public void DISABLEDtestReal() throws Exception { File currentDir = new File(System.getProperty("user.dir"));// TODO Util File mappings = new File(currentDir.getParent() + File.separator + "common" + File.separator + "resources" + File.separator + "Mappings.ome.xml"); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/ExampleUsageTest.java/buggy/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
sr = new SaxReader("type.xml");
File f = new File(ExampleUsageTest.class.getResource("type.xml").getFile()); sr = new SaxReader(f);
protected void setUp() throws Exception { sr = new SaxReader("type.xml"); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/ExampleUsageTest.java/buggy/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
Set set = sr.parse();
sr.parse(); Set set = sr.process();
public void testONE() { Set set = sr.parse(); log.info("Results of parse:" + set); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type", st); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/ExampleUsageTest.java/buggy/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
Set set = sr.parse();
sr.parse(); Set set = sr.process();
public void testWithWriting() throws Exception { Set set = sr.parse(); for (Iterator it = set.iterator(); it.hasNext();) { SemanticType st = (SemanticType) it.next(); VelocityHelper vh = new VelocityHelper(); vh.put("type", st); // FileWriter fw = ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/ExampleUsageTest.java/buggy/components/dsl/test/ome/dsl/utests/ExampleUsageTest.java
Element body = (Element)webResponse.getDOM().getDocumentElement().getElementsByTagName("body").item(0); NodeList elems = body.getElementsByTagName("textarea"); response = elems.item(0).getChildNodes().item(0).getNodeValue();
NodeList list = webResponse.getDOM().getDocumentElement().getElementsByTagName("div"); int length = list.getLength(); for (int i = 0; i < length; i++) { Element element = (Element)list.item(i); if ("result_box".equals(element.getAttribute("id"))) { Node translation = element.getFirstChild(); if (translation != null) { ...
private static String useGoogleTranslator(String text, TranslationType type) { String response = null; String urlString = "http://translate.google.com/translate_t?text=" + text + "&langpair=" + type.getID(); // disable scripting to avoid requiring js.jar HttpUnitOptions.setScriptingEnabl...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/93b8449904967783211de8a56a69f1cec482d118/TranslatorUtil.java/clean/src/plugins/translator/src/java/org/jivesoftware/spark/translator/TranslatorUtil.java
int startReal, int endReal, int yStart, int yEnd, PixelsStatsEntry[] histogramData) { this.histogramData = histogramData; this.manager = manager; initSizeBin(); setWindowLimits(mini, maxi); setInputWindow(startReal, endReal); controlOutputStart = yStart; heightStart = tS-yStart; heightEnd = yEnd-topBorder; setKnobO...
int startReal, int endReal, int yStart, int yEnd, PixelsStatsEntry[] histogramData) { this.histogramData = histogramData; this.manager = manager; initSizeBin(); setWindowLimits(mini, maxi); setInputWindow(startReal, endReal); controlOutputStart = yStart; heightStart = tS-yStart; heightEnd = yEnd-topBorder; setKnobO...
HistogramPanel(HistogramDialogManager manager, int mini, int maxi, int startReal, int endReal, int yStart, int yEnd, PixelsStatsEntry[] histogramData) { this.histogramData = histogramData; this.manager = manager; initSizeBin(); setWindowLimits(mini, maxi); setInputWindow(startReal, endReal); //contro...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/HistogramPanel.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/HistogramPanel.java