Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 2 | 0.989 | stmt_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 338 | Bio/Graphics/GenomeDiagram/_Diagram.py |
2 | 11 | 363 | Bio/Graphics/GenomeDiagram/_Diagram.py |
| ||||
if track_level not in self.tracks: # No track at that level self.tracks[track_level] = track # so just add it else: # Already a track there, so shunt all higher tracks up one occupied_levels = self.get_levels( ) # Get list of occupied levels... occupied_levels.sort( ) # ...sort it... occupied_levels.reverse( ) # ...reverse it (highest first) for val in occupied_levels: if val>=track: # If track value >= that to be added self.tracks[val+1] = self.tracks[val] # ...increment by 1 self.tracks[track_level] = track # And put the new track in self.tracks[track_level].track_level = track_level |
| ||||
if track_level not in self.tracks: # No track at that level self.tracks[track_level] = newtrack # so just add it else: # Already a track there, so shunt all higher tracks up one occupied_levels = self.get_levels( ) # Get list of occupied levels... occupied_levels.sort( ) # ...sort it... occupied_levels.reverse( ) # ...reverse (highest first)... for val in occupied_levels: if val>=track_level: # Track value >= that to be added self.tracks[val+1] = self.tracks[val] # ..increment by 1 self.tracks[track_level] = newtrack # And put the new track in self.tracks[track_level].track_level = track_level |
| |||
if track_level not in self.tracks: # No track at that level self.tracks[track_level] = [[#variable1a478240]] else: # Already a track there, so shunt all higher tracks up one occupied_levels = self.get_levels( ) # Get list of occupied levels... occupied_levels.sort( ) # ...sort it... occupied_levels.reverse( ) # ...reverse it (highest first) # ...reverse (highest first)... for val in occupied_levels: if val>= [[#variable78b71480]]: # If track value >= that to be added # Track value >= that to be added self.tracks[val+1] = self.tracks[val] # ...increment by 1 # ..increment by 1 self.tracks[track_level] = [[#variable1a478240]] self.tracks[track_level].track_level = track_level |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1a478240]] | track # so just add it |
1 | 2 | [[#1a478240]] | newtrack # so just add it |
2 | 1 | [[#78b71480]] | track |
2 | 2 | [[#78b71480]] | track_level |