-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of attributeDescriptors, a new json field that describ…
…es used metrics (#3091) * Add draft implementation of attributeDescriptors #1066 * Refactor Codemaat Tests and code cleanup * Change readme and doc instructions for codemaat usage * Add tests to CodeMaat to verify new file content and add equal method * Refactor Merge Tests * Refactor equals check * Add and Refactor Mergefilter Tests for AttributeDescriptor support * Add AttributeDescriptor support and add tests * Refactor tests to use junit.jupiter * Add help function to remove unused attributeDescriptors * Add removal call for unused descriptors to set-root function * Add tests for attributeDescriptor handling * Add test to main class for 'remove' and 'set root' with descriptors * Add descriptors with tests to SourceMonitor * Remove spek2 test environment in some places * Add flag for attributeDescriptor cleanup * Refactor descriptor removal to terminate faster * Add attributeDescriptors to gitlog parser with tests * Add attributeDescriptors to metricgardener with tests * Add attributeDescriptor test and refactor sm-importer test, so that no files are left behind * Add changelog entry * Refactor test names and clear up file names
- Loading branch information
Showing
60 changed files
with
1,174 additions
and
612 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
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
87 changes: 87 additions & 0 deletions
87
analysis/filter/EdgeFilter/src/test/resources/empty-but-descriptors.json
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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"projectName": "Sample Project with Edges", | ||
"apiVersion": "1.0", | ||
"nodes": [ | ||
{ | ||
"name": "root", | ||
"type": "Folder", | ||
"attributes": {}, | ||
"children": [] | ||
} | ||
], | ||
"edges": [ | ||
{ | ||
"fromNodeName": "/root/leaf 1", | ||
"toNodeName": "/root/Parent 1/leaf 3", | ||
"attributes": { | ||
"pairingRate": 90, | ||
"avgCommits": 30 | ||
} | ||
}, | ||
{ | ||
"fromNodeName": "/root/leaf 1", | ||
"toNodeName": "/root/leaf 2", | ||
"attributes": { | ||
"pairingRate": 30, | ||
"avgCommits": 10 | ||
} | ||
}, | ||
{ | ||
"fromNodeName": "/root/Parent 1/Parent 2/leaf 4", | ||
"toNodeName": "/root/leaf 2", | ||
"attributes": { | ||
"pairingRate": 60, | ||
"avgCommits": 20 | ||
} | ||
}, | ||
{ | ||
"fromNodeName": "/root/Parent 1/Parent 2/leaf 5", | ||
"toNodeName": "/root/Parent 1/Parent 2/leaf 4", | ||
"attributes": { | ||
"pairingRate": 80, | ||
"avgCommits": 30 | ||
} | ||
}, | ||
{ | ||
"fromNodeName": "/root/Parent 1/Parent 2/leaf 4", | ||
"toNodeName": "/root/Parent 1/leaf 3", | ||
"attributes": { | ||
"pairingRate": 60, | ||
"avgCommits": 40 | ||
} | ||
}, | ||
{ | ||
"fromNodeName": "/root/Parent 1/leaf 3", | ||
"toNodeName": "/root/leaf 1", | ||
"attributes": { | ||
"pairingRate": 70, | ||
"avgCommits": 30 | ||
} | ||
} | ||
], | ||
"attributeTypes": { | ||
"nodes": { | ||
"rloc": "absolute", | ||
"functions": "absolute", | ||
"mcc": "absolute" | ||
}, | ||
"edges": { | ||
"pairingRate": "relative", | ||
"avgCommits": "absolute" | ||
} | ||
}, | ||
"attributeDescriptors": { | ||
"Test": { | ||
"description": "a", | ||
"hintLowValue": "b", | ||
"hintHighValue": "c", | ||
"link": "d" | ||
}, | ||
"Test2": { | ||
"description": "a1", | ||
"hintLowValue": "b2", | ||
"hintHighValue": "c3", | ||
"link": "d4" | ||
} | ||
} | ||
} |
Oops, something went wrong.