anchor.diff: -%% Copyright (c) 2010, Huiqing Li, Simon Thompson
  -%% All rights reserved.
  +%% Copyright (c) 2010, Huiqing Li, Simon Thompson 
  +%% All rights reserved. 
   %%
   %% Redistribution and use in source and binary forms, with or without
   %% modification, are permitted provided that the following conditions are met:
  
positive.code: gen_fsm_to_record(FileName, SearchPaths, TabWidth) ->
      try_refactoring(refac_state_to_record, gen_fsm_to_record, [FileName, SearchPaths, TabWidth]).
  
  %@private
  gen_fsm_to_record_1(FileName, RecordName, RecordFields, StateFuns, IsTuple, SearchPaths, TabWidth) ->
      try_refactoring(refac_state_to_record, gen_fsm_to_record_1, 
  		    [FileName, RecordName, RecordFields, StateFuns, IsTuple, SearchPaths, TabWidth]).
  
negative.code: %% they are: the minimum length of an expression sequence, the minimum number of duplication times, and 
  %% a similarity score which should be between 0.1 and 1.0.
  %% </p>
  %% <p>  
  %% Usage: select <em> Detect Similar Code in Buffer </em> from <em> Refactor</em>, Wrangler will then prompt to 
  %% input the parameters needed.
  %% </p>   
  %% @spec similar_code_detection_in_buffer(FileName::filename(), MinLen::string(), MinFreq::string(), MinScore::string(), 
  %%		  			   SearchPaths::[dir()], TabWidth::integer()) ->  {ok, string()}
  -spec(similar_code_detection_in_buffer/6::(FileName::filename(), MinLen::string(), MinFreq::string(), MinScore::string(), 
  					   SearchPaths::[dir()], TabWidth::integer()) ->  {ok, string()}).
  similar_code_detection_in_buffer(FileName, MinLen, MinFreq, SimiScore, SearchPaths, TabWidth) ->
      try_refactoring(refac_sim_code, sim_code_detection, [[FileName],MinLen, MinFreq, SimiScore, SearchPaths, TabWidth]).
         
   
  %% ==================================================================================================
  %%@doc A similar code detector that searches for similar code across multiple Erlang modules.
  