fn(commit$0, facts$1) =>
let commits$2 = $1.commits;
let project_name$3 = $0.project_name;
{
account_created: $1.account_created,
branch_latest_commit_hash: match @core.branch-latest-snapshot(commits: $2, project_name: $3, branch: $0.branch, index: 0, found: #none) {
#none(_) =>
#none,
#some(latest$4) =>
#some($4.event_hash)
},
is_branch_creator: match @core.branch-first-snapshot(commits: $2, project_name: $3, branch: $0.branch, index: 0, found: #none) {
#none(_) =>
false,
#some(first$5) =>
@core.equal(left: $5.account_id, right: $1.account_id)
},
merged_in_project: match $0.merged_commit_hash {
#none(_) =>
false,
#some(merged$6) =>
@core.project-has-snapshot(commits: $2, project_name: $3, hash: #some($6), index: 0)
},
modules_in_other_projects: @core.strings-in(
items: @core.snapshot-module-names(modules: $0.modules, index: 0),
set: @core.other-project-module-names(commits: $2, project_name: $3, index: 0),
index: 0
),
parent_in_project: match $0.parent_commit_hash {
#none(_) =>
false,
#some(parent$7) =>
@core.project-has-snapshot(commits: $2, project_name: $3, hash: #some($7), index: 0)
},
project_has_commits: @core.project-has-snapshot(commits: $2, project_name: $3, hash: #none, index: 0)
}