Changes between Version 2 and Version 3 of WxInterface/DupCode


Ignore:
Timestamp:
Sep 17, 2014, 4:09:56 PM (10 years ago)
Author:
manualwiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WxInterface/DupCode

    v2 v3  
    11= Duplicated code analysis = 
    2 This service is available under the ”Duplicated code” tab. 
     2This service is available under the ”Duplicated code” tab. (To learn more about the provided duplicated code analysis please visit CloneIdentifiErl.) 
     3In the Duplicated code menu the algorithm and its parameters can be set (it is not necessary to set every parameter). 
    34 
    4 You can add files to run the analysis on either in the top left textbox (which also has an autocomplete feature), and using the 'Add file/regexp' button. 
     5[[Image(wx_main.png)]] 
    56 
    6 Parameters that can be configured for the analysis: 
    7 * Min length: the minimum length of duplicates to be searched (length is in tokens) 
    8 * Min number of dups: the minimum number of duplicates that has to be in the same group 
    9 * Overlap amount: maximum length that duplicates can overlap each other (length is in tokens) 
     7By clicking on the Run analysis button the analysis starts. When it finishes the results are shown and can be further browsed.  
     8A clone group can be selected from the Group dropdown list. After a group is selected the possible clone instances can be selected from the Right/Left browser dropdown lists. 
    109 
    11 After configuring, you can run the analysis with the "Run analysis" button. 
     10[[Image(wx_result.png)]] 
    1211 
    13 The results can be examinated by choosing a code group ("Group" selection list) and selecting codes to be shown in the left and right [wiki:WxInterface/CodeBrowser Code browser].  
    14 ("Left browser and right browser" selection lists).  
    15 You can highlight the small differences in similar codes with the "Show diffs" button. 
     12== Load previously saved result == 
     13 
     14In this interface it is also available to display the result of a previously saved duplicated code result. To display such result click on the Load results... button and enter the name of the saved result. 
     15 
     16== Search duplicate code by selection == 
     17 
     18It is possible to make a selection in the source code and start the duplicate code analysis by right clicking after that selecting the Search duplicates in the selection menu. This will start the {{{matrix}}} algorithm which will search for duplicates of the selection in the entire database.