===================================================================== Found a 149 line (474 tokens) duplication in the following files: Starting at line 213 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/CpuIndicator.java Starting at line 161 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/MsgIndicator.java slotInitialized("idleThreshold", new_value); } public double getNormalThreshold() { return normalThreshold; } double getNormalThreshold__NoWarn() { return normalThreshold; } Object getNormalThreshold__AsObject() { return new Double(normalThreshold); } public void setNormalThreshold(double __new_value) { double __old_value = normalThreshold; this.normalThreshold = __new_value; slotModified("normalThreshold", new Double(__old_value), new Double(__new_value), true, true); } public void setNormalThreshold__AsObject(Object __new_value) { Object __old_value = getNormalThreshold__AsObject(); this.normalThreshold = force_double(__new_value); slotModified("normalThreshold", __old_value, __new_value, true, true); } protected void initializeNormalThreshold(double new_value) { this.normalThreshold = new_value; slotInitialized("normalThreshold", new Double(new_value)); } void initializeNormalThreshold__AsObject(Object new_value) { this.normalThreshold = force_double(new_value); slotInitialized("normalThreshold", new_value); } public double getFranticThreshold() { return franticThreshold; } double getFranticThreshold__NoWarn() { return franticThreshold; } Object getFranticThreshold__AsObject() { return new Double(franticThreshold); } public void setFranticThreshold(double __new_value) { double __old_value = franticThreshold; this.franticThreshold = __new_value; slotModified("franticThreshold", new Double(__old_value), new Double(__new_value), true, true); } public void setFranticThreshold__AsObject(Object __new_value) { Object __old_value = getFranticThreshold__AsObject(); this.franticThreshold = force_double(__new_value); slotModified("franticThreshold", __old_value, __new_value, true, true); } protected void initializeFranticThreshold(double new_value) { this.franticThreshold = new_value; slotInitialized("franticThreshold", new Double(new_value)); } void initializeFranticThreshold__AsObject(Object new_value) { this.franticThreshold = force_double(new_value); slotInitialized("franticThreshold", new_value); } public double getBusyThreshold() { return busyThreshold; } double getBusyThreshold__NoWarn() { return busyThreshold; } Object getBusyThreshold__AsObject() { return new Double(busyThreshold); } public void setBusyThreshold(double __new_value) { double __old_value = busyThreshold; this.busyThreshold = __new_value; slotModified("busyThreshold", new Double(__old_value), new Double(__new_value), true, true); } public void setBusyThreshold__AsObject(Object __new_value) { Object __old_value = getBusyThreshold__AsObject(); this.busyThreshold = force_double(__new_value); slotModified("busyThreshold", __old_value, __new_value, true, true); } protected void initializeBusyThreshold(double new_value) { this.busyThreshold = new_value; slotInitialized("busyThreshold", new Double(new_value)); } void initializeBusyThreshold__AsObject(Object new_value) { this.busyThreshold = force_double(new_value); slotInitialized("busyThreshold", new_value); } private static final int calmThreshold__HashVar__ = "calmThreshold".hashCode(); private static final int idleThreshold__HashVar__ = "idleThreshold".hashCode(); private static final int normalThreshold__HashVar__ = "normalThreshold".hashCode(); ===================================================================== Found a 181 line (406 tokens) duplication in the following files: Starting at line 183 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 149 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Node.java slotInitialized("cpuLoadAverage", new_value); } public Metric getMsgIn() { return msgIn; } Metric getMsgIn__NoWarn() { return msgIn; } Object getMsgIn__AsObject() { return msgIn; } protected void initializeMsgIn(Metric new_value) { this.msgIn = new_value; slotInitialized("msgIn", new_value); } void initializeMsgIn__AsObject(Object new_value) { this.msgIn = force_Metric(new_value); slotInitialized("msgIn", new_value); } public String getStatus() { return status; } String getStatus__NoWarn() { return status; } Object getStatus__AsObject() { return status; } public void setStatus(String __new_value) { String __old_value = status; this.status = __new_value; slotModified("status", __old_value, __new_value, true, true); } public void setStatus__AsObject(Object __new_value) { Object __old_value = getStatus__AsObject(); this.status = force_String(__new_value); slotModified("status", __old_value, __new_value, true, true); } protected void initializeStatus(String new_value) { this.status = new_value; slotInitialized("status", new_value); } void initializeStatus__AsObject(Object new_value) { this.status = force_String(new_value); slotInitialized("status", new_value); } public Metric getCpuLoadMJips() { return cpuLoadMJips; } Metric getCpuLoadMJips__NoWarn() { return cpuLoadMJips; } Object getCpuLoadMJips__AsObject() { return cpuLoadMJips; } protected void initializeCpuLoadMJips(Metric new_value) { this.cpuLoadMJips = new_value; slotInitialized("cpuLoadMJips", new_value); } void initializeCpuLoadMJips__AsObject(Object new_value) { this.cpuLoadMJips = force_Metric(new_value); slotInitialized("cpuLoadMJips", new_value); } public Metric getBytesOut() { return bytesOut; } Metric getBytesOut__NoWarn() { return bytesOut; } Object getBytesOut__AsObject() { return bytesOut; } protected void initializeBytesOut(Metric new_value) { this.bytesOut = new_value; slotInitialized("bytesOut", new_value); } void initializeBytesOut__AsObject(Object new_value) { this.bytesOut = force_Metric(new_value); slotInitialized("bytesOut", new_value); } public Metric getMsgOut() { return msgOut; } Metric getMsgOut__NoWarn() { return msgOut; } Object getMsgOut__AsObject() { return msgOut; } protected void initializeMsgOut(Metric new_value) { this.msgOut = new_value; slotInitialized("msgOut", new_value); } void initializeMsgOut__AsObject(Object new_value) { this.msgOut = force_Metric(new_value); slotInitialized("msgOut", new_value); } public Metric getVmSize() ===================================================================== Found a 98 line (319 tokens) duplication in the following files: Starting at line 41 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/MsgInIndicator.java Starting at line 41 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/MsgOutIndicator.java } protected void collectSlotValues(java.util.Properties __props) { super.collectSlotValues(__props); Object __value; __value = getWatchSlot__AsObject(); __props.put("watchSlot", __value != null ? __value : NIL); } public String getWatchSlot() { return watchSlot; } String getWatchSlot__NoWarn() { return watchSlot; } Object getWatchSlot__AsObject() { return watchSlot; } public void setWatchSlot(String __new_value) { String __old_value = watchSlot; this.watchSlot = __new_value; slotModified("watchSlot", __old_value, __new_value, true, true); } public void setWatchSlot__AsObject(Object __new_value) { Object __old_value = getWatchSlot__AsObject(); this.watchSlot = force_String(__new_value); slotModified("watchSlot", __old_value, __new_value, true, true); } protected void initializeWatchSlot(String new_value) { this.watchSlot = new_value; slotInitialized("watchSlot", new_value); } void initializeWatchSlot__AsObject(Object new_value) { this.watchSlot = force_String(new_value); slotInitialized("watchSlot", new_value); } private static final int watchSlot__HashVar__ = "watchSlot".hashCode(); protected Object getLocalValue(String __slot) { int __key = __slot.hashCode(); if (watchSlot__HashVar__ == __key) return getWatchSlot__AsObject(); else return super.getLocalValue(__slot); } protected void setLocalValue(String __slot, Object __value) { int __key = __slot.hashCode(); if (watchSlot__HashVar__ == __key) setWatchSlot__AsObject(__value); else super.setLocalValue(__slot, __value); } protected void initializeLocalValue(String __slot, Object __value) { int __key = __slot.hashCode(); if (watchSlot__HashVar__ == __key) initializeWatchSlot__AsObject(__value); else super.initializeLocalValue(__slot, __value); } public SlotDescription slotMetaData__WatchSlot() { SlotDescription __desc = new SlotDescription(); __desc.name = "watchSlot"; __desc.prototype = "msgOutIndicator"; ===================================================================== Found a 56 line (201 tokens) duplication in the following files: Starting at line 862 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 821 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Node.java if (__value != null) { __desc.is_overridden = true; __desc.value = __value; } else { __desc.is_overridden = false; } return __desc; } public SlotDescription slotMetaData__LoadAverage() { SlotDescription __desc = new SlotDescription(); __desc.name = "loadAverage"; __desc.prototype = "host"; __desc.value = getLoadAverage__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; } public SlotDescription slotMetaData__Jips() { SlotDescription __desc = new SlotDescription(); __desc.name = "jips"; __desc.prototype = "host"; __desc.value = getJips__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; } public SlotDescription slotMetaData__EffectiveMJips() { SlotDescription __desc = new SlotDescription(); __desc.name = "effectiveMJips"; __desc.prototype = "host"; __desc.value = getEffectiveMJips__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; } public SlotDescription slotMetaData__Count() { SlotDescription __desc = new SlotDescription(); __desc.name = "count"; __desc.prototype = "host"; __desc.value = getCount__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; } ===================================================================== Found a 31 line (190 tokens) duplication in the following files: Starting at line 499 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 472 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Node.java Host __new_frame = (Host) __raw_new; Object __old; Object __new; __old = __old_frame.getLoadAverage__AsObject(); __new = __new_frame.getLoadAverage__AsObject(); if (__new != null) { if (__old == null || !__old.equals(__new)) { fireChange("loadAverage", __old, __new); } } __old = __old_frame.getJips__AsObject(); __new = __new_frame.getJips__AsObject(); if (__new != null) { if (__old == null || !__old.equals(__new)) { fireChange("jips", __old, __new); } } __old = __old_frame.getEffectiveMJips__AsObject(); __new = __new_frame.getEffectiveMJips__AsObject(); if (__new != null) { if (__old == null || !__old.equals(__new)) { fireChange("effectiveMJips", __old, __new); } } __old = __old_frame.getCount__AsObject(); __new = __new_frame.getCount__AsObject(); if (__new != null) { if (__old == null || !__old.equals(__new)) { fireChange("count", __old, __new); } } ===================================================================== Found a 69 line (146 tokens) duplication in the following files: Starting at line 87 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 85 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Node.java __props.put("count", __value != null ? __value : NIL); } public Metric getBytesIn() { return bytesIn; } Metric getBytesIn__NoWarn() { return bytesIn; } Object getBytesIn__AsObject() { return bytesIn; } protected void initializeBytesIn(Metric new_value) { this.bytesIn = new_value; slotInitialized("bytesIn", new_value); } void initializeBytesIn__AsObject(Object new_value) { this.bytesIn = force_Metric(new_value); slotInitialized("bytesIn", new_value); } public Metric getCpuLoadAverage() { return cpuLoadAverage; } Metric getCpuLoadAverage__NoWarn() { return cpuLoadAverage; } Object getCpuLoadAverage__AsObject() { return cpuLoadAverage; } protected void initializeCpuLoadAverage(Metric new_value) { this.cpuLoadAverage = new_value; slotInitialized("cpuLoadAverage", new_value); } void initializeCpuLoadAverage__AsObject(Object new_value) { this.cpuLoadAverage = force_Metric(new_value); slotInitialized("cpuLoadAverage", new_value); } public Metric getMsgIn() ===================================================================== Found a 53 line (138 tokens) duplication in the following files: Starting at line 215 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 157 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Host.java slotInitialized("effectiveMJips", new_value); } public String getStatus() { return status; } String getStatus__NoWarn() { return status; } Object getStatus__AsObject() { return status; } public void setStatus(String __new_value) { String __old_value = status; this.status = __new_value; slotModified("status", __old_value, __new_value, true, true); } public void setStatus__AsObject(Object __new_value) { Object __old_value = getStatus__AsObject(); this.status = force_String(__new_value); slotModified("status", __old_value, __new_value, true, true); } protected void initializeStatus(String new_value) { this.status = new_value; slotInitialized("status", new_value); } void initializeStatus__AsObject(Object new_value) { this.status = force_String(new_value); slotInitialized("status", new_value); } public Metric getCount() ===================================================================== Found a 53 line (136 tokens) duplication in the following files: Starting at line 215 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 80 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Indicator.java __props.put("msgOut", __value != null ? __value : NIL); } public String getStatus() { return status; } String getStatus__NoWarn() { return status; } Object getStatus__AsObject() { return status; } public void setStatus(String __new_value) { String __old_value = status; this.status = __new_value; slotModified("status", __old_value, __new_value, true, true); } public void setStatus__AsObject(Object __new_value) { Object __old_value = getStatus__AsObject(); this.status = force_String(__new_value); slotModified("status", __old_value, __new_value, true, true); } protected void initializeStatus(String new_value) { this.status = new_value; slotInitialized("status", new_value); } void initializeStatus__AsObject(Object new_value) { this.status = force_String(new_value); slotInitialized("status", new_value); } public Metric getBytesIn() ===================================================================== Found a 50 line (134 tokens) duplication in the following files: Starting at line 165 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/CpuIndicator.java Starting at line 49 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/MsgInIndicator.java __props.put("watchSlot", __value != null ? __value : NIL); } public String getWatchSlot() { return watchSlot; } String getWatchSlot__NoWarn() { return watchSlot; } Object getWatchSlot__AsObject() { return watchSlot; } public void setWatchSlot(String __new_value) { String __old_value = watchSlot; this.watchSlot = __new_value; slotModified("watchSlot", __old_value, __new_value, true, true); } public void setWatchSlot__AsObject(Object __new_value) { Object __old_value = getWatchSlot__AsObject(); this.watchSlot = force_String(__new_value); slotModified("watchSlot", __old_value, __new_value, true, true); } protected void initializeWatchSlot(String new_value) { this.watchSlot = new_value; slotInitialized("watchSlot", new_value); } void initializeWatchSlot__AsObject(Object new_value) { this.watchSlot = force_String(new_value); slotInitialized("watchSlot", new_value); } ===================================================================== Found a 33 line (133 tokens) duplication in the following files: Starting at line 91 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/visualizer/tree/FrameNode.java Starting at line 47 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/visualizer/tree/ShapeGraphicNode.java } public boolean hasChild(TreeNode child) { return (cachedChildren.contains(child)); } public void insert(MutableTreeNode child, int index) { cachedChildren.add(child); super.insert(child, index); } public void add(MutableTreeNode newChild) { cachedChildren.add(newChild); super.add(newChild); } public void remove(int childIndex) { TreeNode child = getChildAt(childIndex); cachedChildren.remove(child); super.remove(childIndex); } public void remove(MutableTreeNode aChild) { cachedChildren.remove(aChild); super.remove(aChild); } public void removeAllChildren() { cachedChildren.clear(); super.removeAllChildren(); } } ===================================================================== Found a 25 line (121 tokens) duplication in the following files: Starting at line 582 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 603 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Indicator.java private static final int vmSize__HashVar__ = "vmSize".hashCode(); protected Object getLocalValue(String __slot) { int __key = __slot.hashCode(); if (bytesIn__HashVar__ == __key) return getBytesIn__AsObject(); else if (jips__HashVar__ == __key) return getJips__AsObject(); else if (persistSizeLast__HashVar__ == __key) return getPersistSizeLast__AsObject(); else if (status__HashVar__ == __key) return getStatus__AsObject(); else if (cpuLoadMJips__HashVar__ == __key) return getCpuLoadMJips__AsObject(); else if (loadAverage__HashVar__ == __key) return getLoadAverage__AsObject(); else if (cpuLoadAverage__HashVar__ == __key) return getCpuLoadAverage__AsObject(); else if (msgIn__HashVar__ == __key) return getMsgIn__AsObject(); else if (effectiveMJips__HashVar__ == __key) return getEffectiveMJips__AsObject(); else if (count__HashVar__ == __key) ===================================================================== Found a 20 line (117 tokens) duplication in the following files: Starting at line 275 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/TopologyFrameUpdaterPlugin.java Starting at line 292 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/TopologyFrameUpdaterPlugin.java Metric msgOut = agent.getMsgOut(); // JAZ no need to use the dynamic accessors // Metric cpu= (Metric) agent.getValue("cpuLoadAverage"); // Metric msgIn= (Metric) agent.getValue("msgIn"); // Metric msgOut = (Metric) agent.getValue("msgOut"); if (cpu == null || msgIn ==null || msgOut ==null || (cpu.getCredibility() <= 0.1) || (msgIn.getCredibility() <= 0.1) || (msgOut.getCredibility() <= 0.1) ) return "unknown"; double norm= 0.34 * cpu.doubleValue() + 0.0033 * msgIn.doubleValue() + 0.0033 * msgOut.doubleValue(); if (norm <= 0.0) return "idle"; if (norm <= 0.2) return "calm"; if (norm <= 0.5) return "normal"; if (norm <= 1.0) return "busy"; if (norm <= 2.0) return "frantic"; return "frantic"; } private void updateIndicator(Indicator indicatorFrame) { ===================================================================== Found a 21 line (112 tokens) duplication in the following files: Starting at line 203 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/rss/AgentDS.java Starting at line 272 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/rss/DestinationDS.java String[] parameters = { key }; ResourceNode node = new ResourceNode(); node.kind = "Integrater"; node.parameters = parameters; ResourceNode formula = new ResourceNode(); formula.kind = "Formula"; formula.parameters = new String[0]; ResourceNode[] path = { node, formula }; DataFormula dependency = RSS.instance().getPathFormula(path); registerDependency(dependency, "Formula"); } protected DataValue doCalculation(DataFormula.Values values) { DataValue computedValue = values.get("Formula"); DataValue defaultValue = defaultValue(); return DataValue.mostCredible(computedValue, defaultValue); } } ===================================================================== Found a 18 line (111 tokens) duplication in the following files: Starting at line 203 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/rss/AgentDS.java Starting at line 67 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/rss/DecayingHistoryFormula.java String[] parameters = { key }; ResourceNode node = new ResourceNode(); node.kind = "Integrater"; node.parameters = parameters; ResourceNode formula = new ResourceNode(); formula.kind = "Formula"; formula.parameters = new String[0]; ResourceNode[] path = { node, formula }; DataFormula dependency = RSS.instance().getPathFormula(path); registerDependency(dependency, "Formula"); } protected DataValue doCalculation(DataFormula.Values values) { DataValue computedValue = values.get("Formula"); DataValue defaultValue = defaultValue(); return DataValue.mostCredible(computedValue, defaultValue); } ===================================================================== Found a 13 line (110 tokens) duplication in the following files: Starting at line 566 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 587 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Indicator.java fireChange("msgOut", null, __new); } } private static final int bytesIn__HashVar__ = "bytesIn".hashCode(); private static final int jips__HashVar__ = "jips".hashCode(); private static final int persistSizeLast__HashVar__ = "persistSizeLast".hashCode(); private static final int status__HashVar__ = "status".hashCode(); private static final int cpuLoadMJips__HashVar__ = "cpuLoadMJips".hashCode(); private static final int loadAverage__HashVar__ = "loadAverage".hashCode(); private static final int cpuLoadAverage__HashVar__ = "cpuLoadAverage".hashCode(); private static final int msgIn__HashVar__ = "msgIn".hashCode(); private static final int effectiveMJips__HashVar__ = "effectiveMJips".hashCode(); private static final int count__HashVar__ = "count".hashCode(); ===================================================================== Found a 10 line (109 tokens) duplication in the following files: Starting at line 290 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/visualizer/ShapeContainer.java Starting at line 343 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/visualizer/ShapeGraphic.java ShapeGraphic cloned = (ShapeGraphic) this.clone(); cloned.frameModel = fmodel; if (frame != null) cloned.setFrame(frame); cloned.setPrototype(false); cloned.shapePrototype = (shapePrototype != null ? ((RectangularShape) shapePrototype.clone()) : null); cloned.shape = cloned.createShape(); org.cougaar.core.qos.frame.Frame parent = getFrame(); if (cloned.predicate != null && parent != null) cloned.predicate = new FramePredicate(cloned.predicate, (String) parent.getValue("name")); ===================================================================== Found a 16 line (106 tokens) duplication in the following files: Starting at line 70 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 70 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Node.java __props.put("vmSize", __value != null ? __value : NIL); } protected void collectContainerSlotValues(java.util.Properties __props) { super.collectContainerSlotValues(__props); Object __value; __value = getLoadAverage__AsObject(); __props.put("loadAverage", __value != null ? __value : NIL); __value = getJips__AsObject(); __props.put("jips", __value != null ? __value : NIL); __value = getEffectiveMJips__AsObject(); __props.put("effectiveMJips", __value != null ? __value : NIL); __value = getCount__AsObject(); __props.put("count", __value != null ? __value : NIL); ===================================================================== Found a 17 line (105 tokens) duplication in the following files: Starting at line 869 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/FrameGen.java Starting at line 905 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/FrameGen.java private void writeSetterAsObject(PrintWriter writer, String prototype, String slot, Attributes attrs, String type) { if (isReadOnly(prototype, slot)) return; boolean synchronize = relation_prototypes.contains(prototype); String accessor_name = fixName(slot, true); String fixed_name = fixName(slot, false); boolean memberp = isMember(prototype, slot); boolean notify_listeners_p = notifyListeners(prototype, slot); boolean notify_blackboard_p = notifyBlackboard(prototype, slot); writer.print("\n\n public "); if (synchronize) writer.print("synchronized "); writer.println("void set" +accessor_name+ AsObject+ ===================================================================== Found a 11 line (104 tokens) duplication in the following files: Starting at line 60 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 58 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Node.java __props.put("cpuLoadAverage", __value != null ? __value : NIL); __value = getMsgIn__AsObject(); __props.put("msgIn", __value != null ? __value : NIL); __value = getStatus__AsObject(); __props.put("status", __value != null ? __value : NIL); __value = getCpuLoadMJips__AsObject(); __props.put("cpuLoadMJips", __value != null ? __value : NIL); __value = getBytesOut__AsObject(); __props.put("bytesOut", __value != null ? __value : NIL); __value = getMsgOut__AsObject(); __props.put("msgOut", __value != null ? __value : NIL); ===================================================================== Found a 29 line (101 tokens) duplication in the following files: Starting at line 901 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Agent.java Starting at line 784 of /usr/local/dashboard/working/qos/src/org/cougaar/core/qos/frame/topology/Indicator.java __desc.value = getBytesOut__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; } public SlotDescription slotMetaData__Count() { SlotDescription __desc = new SlotDescription(); __desc.name = "count"; __desc.prototype = "host"; __desc.value = getCount__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; } public SlotDescription slotMetaData__VmSize() { SlotDescription __desc = new SlotDescription(); __desc.name = "vmSize"; __desc.prototype = "node"; __desc.value = getVmSize__AsObject(); __desc.is_overridden = false; __desc.is_writable = false; return __desc; }