Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (26 sloc) 711 Bytes
#
# indentation.R, 30 Jan 16
#
# Data from:
# Reading Beside the Lines: {Indentation} as a Proxy for Complexity Metrics
# Abram Hindle and Michael W. Godfrey and Richard C. Holt
#
# Example from:
# Empirical Software Engineering using R
# Derek M. Jones
source("ESEUR_config.r")
plot_layout(2,3)
indent_acf=function(lang_str)
{
indent=read.csv(paste0(ESEUR_dir, "time-series/src-indent/sfmirror.", lang_str,
",distribution.dat"), as.is=TRUE, header=FALSE)
acf(indent$V1, lag.max=20, xlab="Characters", col=point_col,)
text(15, 0.8, labels=lang_str, col="blue", cex=1.4)
}
indent_acf("cpp")
indent_acf("c")
indent_acf("java")
indent_acf("php")
indent_acf("pl")
indent_acf("py")
# indent_acf("h")
You can’t perform that action at this time.