© Sudipta Mukherjee 2016

Sudipta Mukherjee, Source Code Analytics With Roslyn and JavaScript Data Visualization, 10.1007/978-1-4842-1925-6_5

5. Code Mining

Sudipta Mukherjee

(1)Varthur Hobli, India

Code is art, and like other art forms like music and painting, good source code exhibits similar patterns. These are not only design patterns—they are regular code patterns that occur frequently. The information about code patterns can be helpful in a multitude of situations.

Useful Patterns in Code Mining

For example, these patterns can be useful in identifying duplicate to near duplicate code blocks, checking the difference between two versions of the same code, identifying dependancies, detecting plagiarism, and understanding the construction of the ...

Get Source Code Analytics With Roslyn and JavaScript Data Visualization now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.