Skip to content

Commit b1b503b

Browse files
committed
Use only manual commits for co-change analysis
1 parent 98d9ce4 commit b1b503b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cypher/GitLog/Add_CHANGED_TOGETHER_WITH_relationships_to_git_files.cypher

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
// Determine global file count, global file count threshold (filter out refactoring commits) and global update commits
44
MATCH (git_commit_global:Git:Commit)-[:CONTAINS_CHANGE]->(:Git:Change)-[:UPDATES]->(git_file_global:Git:File)
55
WHERE git_file_global.deletedAt IS NULL
6+
AND git_commit_global.isManualCommit
67
WITH git_commit_global, count(DISTINCT git_file_global) AS commitFileCount
78
WITH percentileDisc(commitFileCount, 0.95) AS globalFileCountThreshold
89
,count(git_commit_global) AS globalUpdateCommitCount
910
// Main section
1011
MATCH (git_commit:Git:Commit)-[:CONTAINS_CHANGE]->(git_change:Git:Change)-[:UPDATES]->(git_file:Git:File)
12+
WHERE git_commit.isManualCommit
1113
MATCH (git_repository:Git&Repository)-[:HAS_FILE]->(git_file)
1214
WHERE git_file.deletedAt IS NULL
1315
// Order files to assure, that pairs of distinct files are grouped together (fileA, fileB) without (fileB, fileA)

0 commit comments

Comments
 (0)