CloneSet337


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.980compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18115
Bio/NMR/xpktools.py
28124
Bio/NMR/xpktools.py
Clone Instance
1
Line Count
8
Source Line
115
Source File
Bio/NMR/xpktools.py

def _try_open_read(fn): 
 # Try to open a file for reading.  Exit on IOError
   try :
       
     infile = open(fn,"r") 
   except IOError,e: 
     print "file",fn,"could not be opened for reading - quitting." 
     sys.exit(0) 
   return infile 


Clone Instance
2
Line Count
8
Source Line
124
Source File
Bio/NMR/xpktools.py

def _try_open_write(fn): 
 # Try to open a file for writing.  Exit on IOError
   try :
       
     infile = open(fn,"w") 
   except IOError,e: 
     print "file",fn,"could not be opened for writing - quitting." 
     sys.exit(0) 
   return infile 


Clone AbstractionParameter Count: 3Parameter Bindings

def [[#variable2ecdabe0]](fn):
  # Try to open a file for writing.  Exit on IOError
  # Try to open a file for reading.  Exit on IOError
  try :
  
    infile = open(fn, [[#variable2ecdab40]]) 
  except IOError,e:
  
    print "file",fn, [[#variable2ecdaac0]]
    sys.exit(0) 
  return infile 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2ecdabe0]]
_try_open_write 
12[[#2ecdabe0]]
_try_open_read 
21[[#2ecdab40]]
"w" 
22[[#2ecdab40]]
"r" 
31[[#2ecdaac0]]
"could not be opened for writing - quitting." 
32[[#2ecdaac0]]
"could not be opened for reading - quitting."