Some similarity metric adjustments
Some similarity metric adjustments

This makes the text similarity metric treat \r as equivalent
to \n and makes it skip whitespace immediately following a line
terminator, so line indentation will have less effect on the
difference measurement (and so \r\n will be treated as just a
single line terminator).

This also separates the text and binary hash calculators into
two separate functions instead of have more if statements inside
the loop. This should make it easier to have more differentiated
heuristics in the future if we so wish.

jamieleecool/ptest,jflesch/libgit2-mariadb,sygool/libgit2,linquize/libgit2,skabel/manguse,iankronquist/libgit2,joshtriplett/libgit2,stewid/libgit2,sim0629/libgit2,chiayolin/libgit2,amyvmiwei/libgit2,JIghtuse/libgit2,maxiaoqian/libgit2,MrHacky/libgit2,jeffhostetler/public_libgit2,zodiac/libgit2.js,yosefhackmon/libgit2,Tousiph/Demo1,KTXSoftware/libgit2,iankronquist/libgit2,joshtriplett/libgit2,jeffhostetler/public_libgit2,chiayolin/libgit2,sim0629/libgit2,joshtriplett/libgit2,magnus98/TEST,magnus98/TEST,kenprice/libgit2,MrHacky/libgit2,saurabhsuniljain/libgit2,kissthink/libgit2,KTXSoftware/libgit2,chiayolin/libgit2,yosefhackmon/libgit2,t0xicCode/libgit2,rcorre/libgit2,iankronquist/libgit2,Tousiph/Demo1,yosefhackmon/libgit2,yongthecoder/libgit2,stewid/libgit2,skabel/manguse,mrksrm/Mingijura,yongthecoder/libgit2,raybrad/libit2,KTXSoftware/libgit2,spraints/libgit2,jeffhostetler/public_libgit2,spraints/libgit2,magnus98/TEST,saurabhsuniljain/libgit2,Aorjoa/libgit2_maked_lib,evhan/libgit2,magnus98/TEST,mingyaaaa/libgit2,Snazz2001/libgit2,spraints/libgit2,claudelee/libgit2,skabel/manguse,leoyanggit/libgit2,KTXSoftware/libgit2,jamieleecool/ptest,Tousiph/Demo1,Snazz2001/libgit2,falqas/libgit2,ardumont/libgit2,JIghtuse/libgit2,amyvmiwei/libgit2,claudelee/libgit2,mcanthony/libgit2,joshtriplett/libgit2,Tousiph/Demo1,sygool/libgit2,magnus98/TEST,ardumont/libgit2,dleehr/libgit2,ardumont/libgit2,yongthecoder/libgit2,Snazz2001/libgit2,t0xicCode/libgit2,swisspol/DEMO-libgit2,JIghtuse/libgit2,chiayolin/libgit2,sygool/libgit2,Corillian/libgit2,amyvmiwei/libgit2,sygool/libgit2,claudelee/libgit2,oaastest/libgit2,yongthecoder/libgit2,mingyaaaa/libgit2,whoisj/libgit2,mhp/libgit2,Corillian/libgit2,Snazz2001/libgit2,Tousiph/Demo1,zodiac/libgit2.js,swisspol/DEMO-libgit2,iankronquist/libgit2,jflesch/libgit2-mariadb,mingyaaaa/libgit2,dleehr/libgit2,mcanthony/libgit2,JIghtuse/libgit2,raybrad/libit2,jeffhostetler/public_libgit2,mrksrm/Mingijura,mhp/libgit2,kenprice/libgit2,since2014/libgit2,Corillian/libgit2,ardumont/libgit2,swisspol/DEMO-libgit2,MrHacky/libgit2,maxiaoqian/libgit2,oaastest/libgit2,oaastest/libgit2,Aorjoa/libgit2_maked_lib,rcorre/libgit2,JIghtuse/libgit2,mrksrm/Mingijura,leoyanggit/libgit2,oaastest/libgit2,kenprice/libgit2,jeffhostetler/public_libgit2,raybrad/libit2,since2014/libgit2,oaastest/libgit2,leoyanggit/libgit2,rcorre/libgit2,mhp/libgit2,leoyanggit/libgit2,nokiddin/libgit2,rcorre/libgit2,spraints/libgit2,jflesch/libgit2-mariadb,mhp/libgit2,claudelee/libgit2,t0xicCode/libgit2,whoisj/libgit2,joshtriplett/libgit2,mrksrm/Mingijura,jflesch/libgit2-mariadb,t0xicCode/libgit2,dleehr/libgit2,skabel/manguse,maxiaoqian/libgit2,stewid/libgit2,swisspol/DEMO-libgit2,mcanthony/libgit2,nokiddin/libgit2,mhp/libgit2,evhan/libgit2,jflesch/libgit2-mariadb,rcorre/libgit2,MrHacky/libgit2,mrksrm/Mingijura,claudelee/libgit2,stewid/libgit2,Snazz2001/libgit2,Corillian/libgit2,maxiaoqian/libgit2,Corillian/libgit2,saurabhsuniljain/libgit2,jamieleecool/ptest,zodiac/libgit2.js,mingyaaaa/libgit2,JIghtuse/libgit2,saurabhsuniljain/libgit2,amyvmiwei/libgit2,linquize/libgit2,kissthink/libgit2,nokiddin/libgit2,nokiddin/libgit2,falqas/libgit2,claudelee/libgit2,dleehr/libgit2,stewid/libgit2,mhp/libgit2,yosefhackmon/libgit2,dleehr/libgit2,sim0629/libgit2,saurabhsuniljain/libgit2,zodiac/libgit2.js,whoisj/libgit2,kissthink/libgit2,linquize/libgit2,yongthecoder/libgit2,whoisj/libgit2,sim0629/libgit2,Aorjoa/libgit2_maked_lib,sygool/libgit2,kissthink/libgit2,jamieleecool/ptest,swisspol/DEMO-libgit2,since2014/libgit2,yosefhackmon/libgit2,KTXSoftware/libgit2,falqas/libgit2,since2014/libgit2,mingyaaaa/libgit2,maxiaoqian/libgit2,ardumont/libgit2,whoisj/libgit2,maxiaoqian/libgit2,t0xicCode/libgit2,MrHacky/libgit2,Aorjoa/libgit2_maked_lib,iankronquist/libgit2,linquize/libgit2,t0xicCode/libgit2,iankronquist/libgit2,nokiddin/libgit2,jeffhostetler/public_libgit2,raybrad/libit2,chiayolin/libgit2,raybrad/libit2,Aorjoa/libgit2_maked_lib,amyvmiwei/libgit2,spraints/libgit2,zodiac/libgit2.js,nokiddin/libgit2,linquize/libgit2,mcanthony/libgit2,Corillian/libgit2,Tousiph/Demo1,swisspol/DEMO-libgit2,jflesch/libgit2-mariadb,kissthink/libgit2,linquize/libgit2,falqas/libgit2,leoyanggit/libgit2,saurabhsuniljain/libgit2,chiayolin/libgit2,since2014/libgit2,KTXSoftware/libgit2,mingyaaaa/libgit2,ardumont/libgit2,oaastest/libgit2,MrHacky/libgit2,magnus98/TEST,spraints/libgit2,dleehr/libgit2,sygool/libgit2,amyvmiwei/libgit2,sim0629/libgit2,skabel/manguse,kenprice/libgit2,yongthecoder/libgit2,stewid/libgit2,mrksrm/Mingijura,since2014/libgit2,mcanthony/libgit2,mcanthony/libgit2,rcorre/libgit2,skabel/manguse,leoyanggit/libgit2,Snazz2001/libgit2,kissthink/libgit2,kenprice/libgit2,yosefhackmon/libgit2,whoisj/libgit2,joshtriplett/libgit2,sim0629/libgit2,evhan/libgit2,falqas/libgit2,kenprice/libgit2,falqas/libgit2,evhan/libgit2