-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from SCPhantom/jakob-updates
Change commit filtering and network building regarding the untracked files and base artifact Reviewed-by: Claus Hunsen <[email protected]> Reviewed-by: Thomas Bock <[email protected]>
- Loading branch information
Showing
20 changed files
with
587 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
## Copyright 2017 by Christian Hechtl <[email protected]> | ||
## Copyright 2017 by Felix Prasse <[email protected]> | ||
## Copyright 2017-2018 by Thomas Bock <[email protected]> | ||
## Copyright 2018 by Jakob Kronawitter <[email protected]> | ||
## All Rights Reserved. | ||
|
||
|
||
|
@@ -60,7 +61,7 @@ ARTIFACT.RELATION = "cochange" # cochange, callgraph, mail, issue | |
|
||
## initialize project configuration | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", TRUE) | ||
proj.conf$update.value("commits.filter.base.artifact", TRUE) | ||
# proj.conf$print() | ||
|
||
## initialize network configuration | ||
|
@@ -85,7 +86,7 @@ x = NetworkBuilder$new(project.data = x.data, network.conf = net.conf) | |
# x.data$get.synchronicity() | ||
# x.data$group.artifacts.by.data.column("commits", "author.name") | ||
# x.data$get.commits.filtered() | ||
# x.data$get.commits.filtered.empty() | ||
# x.data$get.commits.filtered.uncached(remove.untracked.files = TRUE, remove.base.artifact = FALSE) | ||
# x.data$get.mails() | ||
# x.data$get.authors() | ||
# x.data$get.data.path() | ||
|
@@ -126,7 +127,7 @@ y = NetworkBuilder$new(project.data = y.data, network.conf = net.conf) | |
# y.data$get.synchronicity() | ||
# y.data$group.artifacts.by.data.column("commits", "author.name") | ||
# y.data$get.commits.filtered() | ||
# y.data$get.commits.filtered.empty() | ||
# y.data$get.commits.filtered.uncached(remove.untracked.files = TRUE, remove.base.artifact = FALSE) | ||
# y.data$get.mails() | ||
# y.data$get.authors() | ||
# y.data$get.data.path() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
## Copyright 2018 by Claus Hunsen <[email protected]> | ||
## Copyright 2018 by Barbara Eckl <[email protected]> | ||
## Copyright 2018 by Thomas Bock <[email protected]> | ||
## Copyright 2018 by Jakob Kronawitter <[email protected]> | ||
## All Rights Reserved. | ||
|
||
|
||
|
@@ -44,26 +45,22 @@ test_that("Cut commit and mail data to same date range.", { | |
|
||
x.data = ProjectData$new(proj.conf) | ||
|
||
commit.data.expected = data.frame(commit.id = sprintf("<commit-%s>", c(32712, 32712, 32713, 32713)), | ||
date = get.date.from.string(c("2016-07-12 15:58:59", "2016-07-12 15:58:59", "2016-07-12 16:00:45", | ||
"2016-07-12 16:00:45")), | ||
author.name = c("Björn", "Björn", "Olaf", "Olaf"), | ||
author.email = c("[email protected]", "[email protected]", "[email protected]", | ||
"[email protected]"), | ||
committer.date = get.date.from.string(c("2016-07-12 15:58:59", "2016-07-12 15:58:59", "2016-07-20 10:00:44", | ||
"2016-07-20 10:00:44")), | ||
committer.name = c("Björn", "Björn", "Björn", "Björn"), | ||
committer.email = c("[email protected]", "[email protected]", "[email protected]", "[email protected]"), | ||
hash = c("72c8dd25d3dd6d18f46e2b26a5f5b1e2e8dc28d0", "72c8dd25d3dd6d18f46e2b26a5f5b1e2e8dc28d0", | ||
"5a5ec9675e98187e1e92561e1888aa6f04faa338", "5a5ec9675e98187e1e92561e1888aa6f04faa338"), | ||
changed.files = as.integer(c(1, 1, 1, 1)), | ||
added.lines = as.integer(c(1, 1, 1, 1)), | ||
deleted.lines = as.integer(c(1, 1, 0, 0)), | ||
diff.size = as.integer(c(2, 2, 1, 1)), | ||
file = c("test.c", "test.c", "test.c", "test.c"), | ||
artifact = c("A", "defined(A)", "A", "defined(A)"), | ||
artifact.type = c("Feature", "FeatureExpression", "Feature", "FeatureExpression"), | ||
artifact.diff.size = as.integer(c(1, 1, 1, 1))) | ||
commit.data.expected = data.frame(commit.id = sprintf("<commit-%s>", c(32712, 32713)), | ||
date = get.date.from.string(c("2016-07-12 15:58:59", "2016-07-12 16:00:45")), | ||
author.name = c("Björn", "Olaf"), | ||
author.email = c("[email protected]", "[email protected]"), | ||
committer.date = get.date.from.string(c("2016-07-12 15:58:59", "2016-07-20 10:00:44")), | ||
committer.name = c("Björn", "Björn"), | ||
committer.email = c("[email protected]", "[email protected]"), | ||
hash = c("72c8dd25d3dd6d18f46e2b26a5f5b1e2e8dc28d0", "5a5ec9675e98187e1e92561e1888aa6f04faa338"), | ||
changed.files = as.integer(c(1, 1)), | ||
added.lines = as.integer(c(1, 1)), | ||
deleted.lines = as.integer(c(1, 0)), | ||
diff.size = as.integer(c(2, 1)), | ||
file = c("test.c", "test.c"), | ||
artifact = c("A", "A"), | ||
artifact.type = c("Feature", "Feature"), | ||
artifact.diff.size = as.integer(c(1, 1))) | ||
|
||
mail.data.expected = data.frame(author.name = c("Thomas"), | ||
author.email = c("[email protected]"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
## Copyright 2017-2018 by Christian Hechtl <[email protected]> | ||
## Copyright 2017 by Claus Hunsen <[email protected]> | ||
## Copyright 2018 by Barbara Eckl <[email protected]> | ||
## Copyright 2018 by Jakob Kronawitter <[email protected]> | ||
## All Rights Reserved. | ||
|
||
|
||
|
@@ -36,7 +37,7 @@ test_that("Network construction of the undirected artifact-cochange network", { | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(artifact.relation = "cochange")) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
## Copyright 2017 by Felix Prasse <[email protected]> | ||
## Copyright 2018 by Barbara Eckl <[email protected]> | ||
## Copyright 2018 by Thomas Bock <[email protected]> | ||
## Copyright 2018 by Jakob Kronawitter <[email protected]> | ||
## All Rights Reserved. | ||
|
||
|
||
|
@@ -139,7 +140,7 @@ test_that("Amount of authors (author.all.authors, author.only.committers).", { | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
|
||
## update network configuration | ||
|
@@ -198,7 +199,7 @@ test_that("Network construction of the undirected author-cochange network", { | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "cochange")) | ||
|
||
|
@@ -243,7 +244,7 @@ test_that("Network construction of the undirected but temorally ordered author-c | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "cochange", author.directed = FALSE, | ||
author.respect.temporal.order = TRUE)) | ||
|
@@ -285,7 +286,7 @@ test_that("Network construction of the directed author-cochange network", { | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "cochange", author.directed = TRUE)) | ||
|
||
|
@@ -326,7 +327,7 @@ test_that("Network construction of the directed author-cochange network without | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "cochange", author.directed = TRUE, | ||
author.respect.temporal.order = FALSE)) | ||
|
@@ -372,7 +373,7 @@ test_that("Network construction of the undirected simplified author-cochange net | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "cochange", simplify = TRUE)) | ||
|
||
|
@@ -420,7 +421,7 @@ test_that("Network construction of the undirected author-issue network with all | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
proj.conf$update.value("issues.only.comments", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "issue")) | ||
|
@@ -511,7 +512,7 @@ test_that("Network construction of the undirected author-issue network with just | |
|
||
## configurations | ||
proj.conf = ProjectConf$new(CF.DATA, CF.SELECTION.PROCESS, CASESTUDY, ARTIFACT) | ||
proj.conf$update.value("artifact.filter.base", FALSE) | ||
proj.conf$update.value("commits.filter.base.artifact", FALSE) | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = "issue")) | ||
|
||
|
Oops, something went wrong.