Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
24 | 2 | 2 | 0.957 | stmt_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 24 | 37 | Bio/PropertyManager.py |
2 | 16 | 63 | Bio/PropertyManager.py |
| ||||
try : return self.class_property[klass][property] except KeyError: pass # Is there a property resolver? try : return self.class_property_resolver[klass][property](self,klass,property) except KeyError: pass # What about the class resolver? try : return self.class_resolver[klass](self,klass,property) except KeyError: pass # That failed, so we walk up the class tree, depth-first and # left-to-right (same as Python). For each class, check if # the property exists, then check if the property resolver # exists, and finally, check for the class resolver. bases = list(klass.__bases__) |
| ||||
try : return self.class_property[base][property] except KeyError: pass try : return self.class_property_resolver[base][property](self,klass,property) except KeyError: pass try : return self.class_resolver[base](self,klass,property) except KeyError: pass # this is why the search is depth-first/right-left bases[ :0] = list(base.__bases__) |
| |||
try : return self.class_property[ [[#variable2e7eb340]]][property] except KeyError: pass # Is there a property resolver? try : return self.class_property_resolver[ [[#variable2e7eb340]]][property](self,klass,property) except KeyError: pass # What about the class resolver? try : return self.class_resolver[ [[#variable2e7eb340]]](self,klass,property) except KeyError: pass # That failed, so we walk up the class tree, depth-first and # left-to-right (same as Python). For each class, check if # the property exists, then check if the property resolver # exists, and finally, check for the class resolver. # this is why the search is depth-first/right-left [[#variable5f06d640]]= list( [[#variable2e7eb340]].__bases__) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2e7eb340]] | klass |
1 | 2 | [[#2e7eb340]] | base |
2 | 1 | [[#5f06d640]] | bases |
2 | 2 | [[#5f06d640]] | bases[ :0] |