Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 0 | 1.000 | stmt_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 240 | Bio/Graphics/GenomeDiagram/_CircularDrawer.py |
2 | 13 | 339 | Bio/Graphics/GenomeDiagram/_LinearDrawer.py |
| ||||
top_track = max(self.drawn_tracks) # The 'highest' track to draw trackunit_sum = 0 # Holds total number of 'units' taken up by all tracks trackunits = { } # Holds start and end units for each track keyed by track number heightholder = 0 # placeholder variable for track in range(1,top_track+1): # track numbers to 'draw' try : trackheight = self._parent[track].height # Get track height except : trackheight = 1 # ...or default to 1 trackunit_sum+=trackheight # increment total track unit height trackunits[track] = (heightholder,heightholder+trackheight) heightholder+=trackheight # move to next height |
| ||||
top_track = max(self.drawn_tracks) # The 'highest' track number to draw trackunit_sum = 0 # Total number of 'units' for the tracks trackunits = { } # The start and end units for each track, keyed by track number heightholder = 0 # placeholder variable for track in range(1,top_track+1): # for all track numbers to 'draw' try : trackheight = self._parent[track].height # Get track height except : trackheight = 1 # ...or default to 1 trackunit_sum+=trackheight # increment total track unit height trackunits[track] = (heightholder,heightholder+trackheight) heightholder+=trackheight # move to next height |
| |||
top_track = max(self.drawn_tracks) # The 'highest' track to draw # The 'highest' track number to draw trackunit_sum = 0 # Holds total number of 'units' taken up by all tracks # Total number of 'units' for the tracks trackunits = { } # Holds start and end units for each track keyed by track number # The start and end units for each track, keyed by track number heightholder = 0 # placeholder variable for track in range(1,top_track+1): # track numbers to 'draw' # for all track numbers to 'draw' try : trackheight = self._parent[track].height # Get track height except : trackheight = 1 # ...or default to 1 trackunit_sum+=trackheight # increment total track unit height trackunits[track] = (heightholder,heightholder+trackheight) heightholder+=trackheight # move to next height |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |