Skip to content

Commit

Permalink
Add missing 'artifact.type' to networks
Browse files Browse the repository at this point in the history
Networks based on commit interaction data now correctly have an edge
attribute called 'artifact.type'.
Value of column 'artifact.type' in commit interaction data is
'CommitInteraction' until potentially overwritten in
artifact network construction

Signed-off-by: Leo Sendelbach <s8lesend@stud.uni-saarland.de>
  • Loading branch information
Leo-Send committed Aug 7, 2024
1 parent 860d4ee commit 849123a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions util-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -863,14 +863,15 @@ create.empty.pasta.list = function() {
COMMIT.INTERACTION.LIST.COLUMNS = c(
"func", "commit.hash", "file",
"base.hash", "base.func", "base.file",
"base.author", "interacting.author"
"base.author", "interacting.author",
"artifact.type"
)

## declare the datatype for each column in the constant 'COMMIT.INTERACTION.LIST.COLUMNS'
COMMIT.INTERACTION.LIST.DATA.TYPES = c(
"character", "character", "character",
"character", "character", "character",
"character", "character"
"character", "character", "character"
)

COMMIT.INTERACTION.GLOBAL.FILE.FUNCTION.NAME = "GLOBAL"
Expand Down Expand Up @@ -952,6 +953,7 @@ read.commit.interactions = function(data.path = NULL) {
## Author data will be merged from commit data in \code{update.commit.interactions}.
interactions["base.author"] = NA_character_
interactions["interacting.author"] = NA_character_
interactions["artifact.type"] = "CommitInteraction"
return(interactions)
})))

Expand Down

0 comments on commit 849123a

Please sign in to comment.