Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 5 | 0.953 | stmt_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 346 | Bio/SeqUtils/__init__.py |
2 | 12 | 46 | Scripts/xbbtools/xbb_translations.py |
| ||||
if length>20: short = "%s ... %s"%(seq[ :10],seq[ -10: ]) else: short = seq #TODO? Remove the date as this would spoil any unit test... date = time.strftime("%y %b %d, %X",time.localtime(time.time( ))) header = "GC_Frame: %s, "%date for nt in ["a","t","g","c"]: header+="%s:%d "%(nt,seq.count(nt.upper( ))) header+=""" Sequence: %s, %d nt, %0.2f %%GC """ %(short.lower( ),length,GC(seq)) |
| ||||
if length>20: short = "%s ... %s"%(seq[ :10],seq[ -10: ]) else: short = seq date = time.strftime("%y %b %d, %X",time.localtime(time.time( ))) res = "%s: %s, "%(txt,date) for nt in ["a","t","g","c"]: res+="%s:%d "%(nt,seq.count(nt.upper( ))) res+=""" Sequence: %s, %d nt, %0.2f %%GC """ %(short.lower( ),length,self.gc(seq)) |
| |||
if length>20: short = "%s ... %s"%(seq[ :10],seq[ -10: ]) else: short = seq #TODO? Remove the date as this would spoil any unit test... date = time.strftime("%y %b %d, %X",time.localtime(time.time( ))) [[#variable2f9fab40]]= [[#variable2f9fafe0]]% [[#variable2f9fafc0]] for nt in ["a","t","g","c"]: [[#variable2f9fab40]]+="%s:%d "%(nt,seq.count(nt.upper( ))) [[#variable2f9fab40]]+= [[#variable2f9fa520]]%(short.lower( ),length, [[#variable78a55860]](seq)) |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2f9fab40]] | res |
1 | 2 | [[#2f9fab40]] | header |
2 | 1 | [[#2f9fafe0]] | "%s: %s, " |
2 | 2 | [[#2f9fafe0]] | "GC_Frame: %s, " |
3 | 1 | [[#2f9fafc0]] | (txt,date) |
3 | 2 | [[#2f9fafc0]] | date |
4 | 1 | [[#2f9fa520]] | """ Sequence: %s, %d nt, %0.2f %%GC """ |
4 | 2 | [[#2f9fa520]] | """ Sequence: %s, %d nt, %0.2f %%GC """ |
5 | 1 | [[#78a55860]] | self.gc |
5 | 2 | [[#78a55860]] | GC |