Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Commit-Analysis-ML
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ahmad, Rawel
Commit-Analysis-ML
Commits
64bcdb73
Commit
64bcdb73
authored
1 year ago
by
Rawel
Browse files
Options
Downloads
Patches
Plain Diff
since commitutils always creates a connection, we should stop that by saving the commit manually
parent
36e97988
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Data/Utils/HeuristicUtils.py
+3
-2
3 additions, 2 deletions
Data/Utils/HeuristicUtils.py
with
3 additions
and
2 deletions
Data/Utils/HeuristicUtils.py
+
3
−
2
View file @
64bcdb73
...
@@ -31,9 +31,10 @@ def run_worker(chunk: list[dict]):
...
@@ -31,9 +31,10 @@ def run_worker(chunk: list[dict]):
continue
continue
repo_node
=
get_config_nodes_repo_dict
()[
mapping
[
"
vcc_config_code
"
]]
repo_node
=
get_config_nodes_repo_dict
()[
mapping
[
"
vcc_config_code
"
]]
commit_utils
=
CommitUtils
(
Tru
e
,
repo_node
,
mapping
[
"
vcc_config_code
"
]
)
commit_utils
=
CommitUtils
(
Fals
e
,
repo_node
,
None
)
# We do not need to fetch by remote since the heuristic only uses local commits
# We do not need to fetch by remote since the heuristic only uses local commits
commit_utils
.
get_commit_by_sha
(
most_blamed_commit
,
False
)
commit
=
commit_utils
.
get_commit_by_sha
(
most_blamed_commit
,
False
)
db_repo
.
save_commit
(
commit
,
mapping
[
"
vcc_config_code
"
])
db_repo
.
update_vcc_fixing_commit
(
db_repo
.
update_vcc_fixing_commit
(
mapping
[
"
mapping_id
"
],
mapping
[
"
mapping_id
"
],
mapping
[
"
cve_id
"
],
mapping
[
"
cve_id
"
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment