Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 4 | 0.951 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 49 | Bio/HMM/MarkovModel.py |
2 | 14 | 64 | Bio/HMM/MarkovModel.py |
| ||||
def _all_blank(self,first_alphabet,second_alphabet): """Return a dictionary with all counts set to zero. This uses the letters in the first and second alphabet to create a dictionary with keys of two tuples organized as (letter of first alphabet, letter of second alphabet). The values are all set to 0. """ all_blank = { } for first_state in first_alphabet.letters: for second_state in second_alphabet.letters: all_blank[(first_state,second_state)] = 0 return all_blank |
| ||||
def _all_pseudo(self,first_alphabet,second_alphabet): """Return a dictionary with all counts set to a default value. This takes the letters in first alphabet and second alphabet and creates a dictionary with keys of two tuples organized as: (letter of first alphabet, letter of second alphabet). The values are all set to the value of the class attribute DEFAULT_PSEUDO. """ all_counts = { } for first_state in first_alphabet.letters: for second_state in second_alphabet.letters: all_counts[(first_state,second_state)] = self.DEFAULT_PSEUDO return all_counts |
| |||
def [[#variable19a8d400]](self,first_alphabet,second_alphabet): [[#variable19a8d360]] [[#variable19a8d2e0]]= { } for first_state in first_alphabet.letters: for second_state in second_alphabet.letters: [[#variable19a8d2e0]][(first_state,second_state)] = [[#variable19a8d280]] return [[#variable19a8d2e0]] |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#19a8d400]] | _all_pseudo |
1 | 2 | [[#19a8d400]] | _all_blank |
2 | 1 | [[#19a8d360]] | """Return a dictionary with all counts set to a default value. This takes the letters in first alphabet and second alphabet and creates a dictionary with keys of two tuples organized as: (letter of first alphabet, letter of second alphabet). The values are all set to the value of the class attribute DEFAULT_PSEUDO. """ |
2 | 2 | [[#19a8d360]] | """Return a dictionary with all counts set to zero. This uses the letters in the first and second alphabet to create a dictionary with keys of two tuples organized as (letter of first alphabet, letter of second alphabet). The values are all set to 0. """ |
3 | 1 | [[#19a8d2e0]] | all_counts |
3 | 2 | [[#19a8d2e0]] | all_blank |
4 | 1 | [[#19a8d280]] | self.DEFAULT_PSEUDO |
4 | 2 | [[#19a8d280]] | 0 |