forked from se-sic/coronet
-
Notifications
You must be signed in to change notification settings - Fork 0
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 se-sic#263 from Leo-Send/commitnetwork
Add Commit Networks Reviewed-by: Thomas Bock <[email protected]> Reviewed-by: Christian Hechtl <[email protected]>
- Loading branch information
Showing
13 changed files
with
798 additions
and
124 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 |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
## Copyright 2021 by Niklas Schneider <[email protected]> | ||
## Copyright 2022 by Jonathan Baumann <[email protected]> | ||
## Copyright 2024 by Maximilian Löffler <[email protected]> | ||
## Copyright 2024 by Leo Sendelbach <[email protected]> | ||
## All Rights Reserved. | ||
|
||
|
||
|
@@ -65,6 +66,7 @@ ARTIFACT = "feature" # function, feature, file, featureexpression (only relevant | |
|
||
AUTHOR.RELATION = "mail" # mail, cochange, issue | ||
ARTIFACT.RELATION = "cochange" # cochange, callgraph, mail, issue | ||
COMMIT.RELATION = "commit.interaction" # commit.interaction, cochange | ||
|
||
|
||
## / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | ||
|
@@ -73,13 +75,16 @@ 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("commits.filter.base.artifact", TRUE) | ||
proj.conf$update.value("commit.interactions", TRUE) | ||
## specify that custom event timestamps should be read from 'custom-events.list' | ||
proj.conf$update.value("custom.event.timestamps.file", "custom-events.list") | ||
proj.conf$print() | ||
|
||
## initialize network configuration | ||
net.conf = NetworkConf$new() | ||
net.conf$update.values(updated.values = list(author.relation = AUTHOR.RELATION, artifact.relation = ARTIFACT.RELATION)) | ||
net.conf$update.values(updated.values = list(author.relation = AUTHOR.RELATION, | ||
artifact.relation = ARTIFACT.RELATION, | ||
commit.relation = COMMIT.RELATION)) | ||
net.conf$print() | ||
|
||
## get ranges | ||
|
@@ -141,6 +146,7 @@ x$get.author.network() | |
x$update.network.conf(updated.values = list(author.directed = FALSE)) | ||
x$get.author.network() | ||
x$get.artifact.network() | ||
x$get.commit.network() | ||
x$reset.environment() | ||
x$get.networks() | ||
x$update.network.conf(updated.values = list(author.only.committers = FALSE, author.directed = FALSE)) | ||
|
@@ -201,6 +207,7 @@ y$update.network.conf(updated.values = list(edge.attributes = c("date"))) | |
y$get.author.network() | ||
y$update.network.conf(updated.values = list(edge.attributes = c("hash"))) | ||
y$get.artifact.network() | ||
y$get.commit.network() | ||
y$get.networks() | ||
y$update.network.conf(updated.values = list(author.only.committers = FALSE, author.directed = TRUE)) | ||
h = y$get.bipartite.network() | ||
|
@@ -232,6 +239,8 @@ sample.pull.requests = add.vertex.attribute.author.issue.count(my.networks, x.da | |
## add vertex attributes for the project-level network | ||
x.net.as.list = list("1970-01-01 00:00:00-2030-01-01 00:00:00" = x$get.author.network()) | ||
sample.entire = add.vertex.attribute.author.commit.count(x.net.as.list, x.data, aggregation.level = "complete") | ||
## add vertex attributes to commit network. Default value 'NO_AUTHOR' is used if vertex is not in commit data | ||
add.vertex.attribute.commit.network(x$get.commit.network(), x.data, attr.name = "author.name", default.value = "NO_AUTHOR") | ||
|
||
|
||
## / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | ||
|
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
Oops, something went wrong.