Discovering Repetitive Code Changes in ML Systems

Patterns Groups That Have Been Found by R-CPATMiner

Pattern Group Projects Commits Change Graphs Total unique patterns Total instances Multi project patterns Single project patterns Links
Normal Mine
  • https://mledits.github.io/normal/directory.html
  • Super Mine
  • https://mledits.github.io/supermine/directory.html
  • Numpy 784 20826 35055 98 369 33(34%) 64(65%)
  • https://mledits.github.io/numpy/directory.html
  • TensorFlow
  • https://mledits.github.io/tensorflow/directory.html
  • src_super_mine 58 13555 30908 3513 12584 2203(63%) 1278(36%)
  • https://mledits.github.io/src_supermine/directory.html
  • src__mine
  • https://mledits.github.io/src_mine/directory.html
  • ICSE 951 163226 348681 28323 100866 17941(63%) 10271(36%)
  • https://mledits.github.io/icse_sp8/directory.html
  • Refactoring Detected by Python extention of RefactoringMiner

    Refactoring Kind Evidences Precision True positives Total manual validations
    Add Parameter Link 100.0% 160 160
    Move Class Link 100.0% 160 160
    Rename Method Link 98.75% 158 160
    Remove Parameter Link 97.52% 157 161
    Move Method Link 96.3% 156 162
    Rename Parameter Link 93.59% 146 156
    Move And Rename Method Link 88.08% 133 151
    Rename Class Link 99.2% 124 125
    Move And Rename Class Link 96.67% 116 120
    Reorder Parameter Link 98.11% 104 106
    Extract Method Link 97.03% 98 101
    Extract Class Link 98.82% 84 85
    Push Down Method Link 89.36% 84 94
    Pull Up Method Link 86.46% 83 96
    Parameterize Variable Link 87.23% 82 94
    Merge Parameter Link 91.07% 51 56
    Extract Subclass Link 100.0% 45 45
    Extract Superclass Link 95.24% 40 42
    Extract And Move Method Link 100.0% 37 37
    Split Parameter Link 92.59% 25 27
    Inline Method Link 85.71% 24 28
    Extract Variable Link 100.0% 10 10
    Change Parameter Type Link 90.0% 9 10
    Change Variable Type Link 100.0% 5 5
    Move And Inline Method Link 100.0% 1 1
    Inline Variable Link in progress 0 0
    Merge Variable Link in progress 0 0
    Rename Attribute Link in progress 0 0
    Rename Variable Link in progress 0 0
    +Total 95 2092 2192

    Tools

  • RefactoringMiner
  • R-CPATMiiner
  • Adaptor library