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.958 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 144 | Bio/Seq.py |
2 | 14 | 160 | Bio/Seq.py |
| ||||
if hasattr(other,"alphabet"): #other should be a Seq or a MutableSeq if not Alphabet._check_type_compatible([self.alphabet,other.alphabet]): raise TypeError("Incompatable alphabets %s and %s"%(repr(self.alphabet),repr(other.alphabet))) #They should be the same sequence type (or one of them is generic) a = Alphabet._consensus_alphabet([self.alphabet,other.alphabet]) return self.__class__(str(self)+str(other),a) elif isinstance(other,basestring): #other is a plain string - use the current alphabet return self.__class__(str(self)+other,self.alphabet) else: raise TypeError |
| ||||
if hasattr(other,"alphabet"): #other should be a Seq or a MutableSeq if not Alphabet._check_type_compatible([self.alphabet,other.alphabet]): raise TypeError("Incompatable alphabets %s and %s"%(repr(self.alphabet),repr(other.alphabet))) #They should be the same sequence type (or one of them is generic) a = Alphabet._consensus_alphabet([self.alphabet,other.alphabet]) return self.__class__(str(other)+str(self),a) elif isinstance(other,basestring): #other is a plain string - use the current alphabet return self.__class__(other+str(self),self.alphabet) else: raise TypeError |
| |||
if hasattr(other,"alphabet"): #other should be a Seq or a MutableSeq if not Alphabet._check_type_compatible([self.alphabet,other.alphabet]): raise TypeError("Incompatable alphabets %s and %s"%(repr(self.alphabet),repr(other.alphabet))) #They should be the same sequence type (or one of them is generic) a = Alphabet._consensus_alphabet([self.alphabet,other.alphabet]) return self.__class__(str( [[#variable195f08a0]])+str( [[#variable195f0800]]),a) elif isinstance(other,basestring): #other is a plain string - use the current alphabet return self.__class__( [[#variable195f0780]]+ [[#variable195f0700]],self.alphabet) else: raise TypeError |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#195f08a0]] | other |
1 | 2 | [[#195f08a0]] | self |
2 | 1 | [[#195f0800]] | self |
2 | 2 | [[#195f0800]] | other |
3 | 1 | [[#195f0780]] | other |
3 | 2 | [[#195f0780]] | str(self) |
4 | 1 | [[#195f0700]] | str(self) |
4 | 2 | [[#195f0700]] | other |