I have been asked to submit testimony as an expert witness in a software piracy trial due to the fact that I have 30 years of experience in the language being used.
I am familiar with Beyond Compare as I have used it for years to compare versions of my own source code.
Now I am trying to use it to compare source owned by two different developers.
There are hundreds of files that need to be compared so it just isn't practical to eyeball all this code and calculate a percentage. I have been asked to provide a percentage number for each source file (of the same name) in which the code matches exactly.
For example here is a report:
6259 same line(s)
261 unimportant left orphan line(s)
110 unimportant right orphan line(s)
207 unimportant difference line(s)
3782 important left orphan line(s)
2430 important right orphan line(s)
1248 important difference line(s)
752 difference section(s)
With only the above information, would it be possible that I could write an algorithm that would use this report data to give me a percentage of matching lines of code?
I am familiar with Beyond Compare as I have used it for years to compare versions of my own source code.
Now I am trying to use it to compare source owned by two different developers.
There are hundreds of files that need to be compared so it just isn't practical to eyeball all this code and calculate a percentage. I have been asked to provide a percentage number for each source file (of the same name) in which the code matches exactly.
For example here is a report:
6259 same line(s)
261 unimportant left orphan line(s)
110 unimportant right orphan line(s)
207 unimportant difference line(s)
3782 important left orphan line(s)
2430 important right orphan line(s)
1248 important difference line(s)
752 difference section(s)
With only the above information, would it be possible that I could write an algorithm that would use this report data to give me a percentage of matching lines of code?
Comment