CloneSet328


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.951compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11449
Bio/HMM/MarkovModel.py
21464
Bio/HMM/MarkovModel.py
Clone Instance
1
Line Count
14
Source Line
49
Source File
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 


Clone Instance
2
Line Count
14
Source Line
64
Source File
Bio/HMM/MarkovModel.py

    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 


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#19a8d400]]
_all_pseudo 
12[[#19a8d400]]
_all_blank 
21[[#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.
        """ 
22[[#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.
        """ 
31[[#19a8d2e0]]
all_counts 
32[[#19a8d2e0]]
all_blank 
41[[#19a8d280]]
self.DEFAULT_PSEUDO 
42[[#19a8d280]]
0