Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertex attributes (updated) #93

Merged
merged 34 commits into from
Feb 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3ca6063
Add commit count as vertex attribute
Nov 26, 2017
cafa3ab
Add further vertex attributes
Nov 27, 2017
32944cb
Add author classification attribute
Nov 27, 2017
fe2721c
Minor refactoring on vertex attributes
Nov 29, 2017
0371351
Fix implementation of active author range vertex attribute
Dec 4, 2017
39065fd
Rename util-covariates.R to util-networks-covariates.R
Dec 4, 2017
e3c6510
Rename what parameter to aggregation
Dec 4, 2017
cd261ad
Add comments to vertex attribute methods
Dec 4, 2017
a8ca406
Refactor code of vertex attributes
Dec 5, 2017
288c927
Extend add.vertex.attribute.first.activity to work on mail, commits a…
Dec 5, 2017
d7d8986
Add default value for missing vertex attributes
Dec 5, 2017
2549f2b
Improve author role classification
Dec 6, 2017
bca66be
Add explicit return
Dec 12, 2017
efd9b2d
Add test for splitting project data
Dec 17, 2017
06ec950
Add multiple tests for vertex attributes
Dec 17, 2017
df52ac7
Fix network attribute unit tests
Dec 19, 2017
8ae1abf
Fix artifact count attribute implementation
Dec 19, 2017
b9f0bd3
Add tests for network vertex attributes
Dec 19, 2017
3e20fb2
Comments for network-covariates tests
Dec 21, 2017
9f53875
Add more vertex attributes
Dec 29, 2017
a002dfa
Add tests for artifact vertex attributes
Dec 29, 2017
289196a
Refactor tests on network attributes
clhunsen Feb 14, 2018
c6418c5
Update core-peripheral module
clhunsen Feb 14, 2018
0eafcd0
Update networks-covariates module
clhunsen Feb 14, 2018
ac678f6
Fix section dividers in some files
clhunsen Feb 15, 2018
07c85db
Add additional FIXME items for the 'ProjectData$get.artifacts' problem
clhunsen Feb 15, 2018
217e41c
Add ability to the earliest and latest data timestamps
clhunsen Feb 15, 2018
52eae7f
Extend aggregation levels for data-splitting-by-network functionality
clhunsen Feb 15, 2018
5242e76
Add author-classification attributes based on classification result
clhunsen Feb 15, 2018
0c1868a
Add 'date.offset' to possible edge attributes
clhunsen Feb 15, 2018
4810ac5
Move 'get.commit.data' to the data module
clhunsen Feb 16, 2018
056cd22
Add example on vertex attributes to showcase file
clhunsen Feb 16, 2018
9684f39
Minor fixes from review in PR #93
clhunsen Feb 19, 2018
253433d
Merge branch 'dev' into vertex-attributes
clhunsen Feb 19, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Updates to the parameters can be done by calling `NetworkConf$update.variables(.
- `edge.attributes`
* The list of edge-attribute names and information
* a subset of the following as a single vector:
- timestamp information: *`"date"`*,
- timestamp information: *`"date"`*, `"date.offset"`
- author information: `"author.name"`, `"author.email"`
- committer information: `"committer.date"`, `"committer.name"`, `"committer.email"`
- e-mail information: *`"message.id"`*, *`"thread"`*, `"subject"`
Expand Down
23 changes: 23 additions & 0 deletions showcase.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,29 @@ y = NetworkBuilder$new(project.data = y.data, network.conf = net.conf)
# plot.network(g)


## / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
## Vertex attributes -------------------------------------------------------

# ## define bins for network construction
# mybins = c("2012-07-10 15:58:00", "2012-07-15 16:02:00", "2012-07-20 16:04:00", "2012-07-25 16:06:30")
# ## split data into ranges
# cf.data = split.data.time.based(x.data, bins = mybins)
# ## construct (author) networks from range data
# my.networks = lapply(cf.data, function(range.data) {
# y = NetworkBuilder$new(project.data = range.data, network.conf = net.conf)
# return (y$get.author.network())
# })
# ## add commit-count vertex attributes
# sample = add.vertex.attribute.commit.count.author(my.networks, x.data, aggregation.level = "range")
# sample.cumulative = add.vertex.attribute.commit.count.author(my.networks, x.data, aggregation.level = "cumulative")
# ## add email-address vertex attribute
# sample.mail = add.vertex.attribute.author.email(my.networks, x.data, "author.email")

# ## 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.commit.count.author(x.net.as.list, x.data, aggregation.level = "complete")


## / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
## Bulk methods for Codeface ranges ----------------------------------------

Expand Down
Loading