Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Merge requests
!1
Main
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Closed
Main
main
into
26-html2markdown
Overview
0
Commits
39
Pipelines
0
Changes
2
Closed
Main
David Rouquet
requested to merge
main
into
26-html2markdown
9 months ago
Overview
0
Commits
39
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
7364be88
Prev
Next
Show latest version
2 files
+
10
−
231
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
7364be88
Remove unused JS parsers in favor of RegexParser
· 7364be88
Eliott Sammier
authored
Jul 31, 2024
tetras_extraction/script/src/extract.py
+
1
−
13
View file @ 7364be88
Edit in single-file editor
Open in Web IDE
Show full file
@@ -148,14 +148,6 @@ def compare_files(f1: str, f2: str):
def
main
():
g
=
create_graph
()
# Create or reset debug log files for all activity parsers, to compare their
# results afterwards
parsers
=
(
"
Match
"
,
"
Xpath
"
,
"
Regex
"
)
logfiles
=
[
f
"
/tmp/
{
p
}
Parser_debuglog.txt
"
for
p
in
parsers
]
for
logfile
in
logfiles
:
with
open
(
logfile
,
"
w
"
)
as
f
:
print
(
""
,
file
=
f
)
if
MACAO_VERSION
==
"
full
"
:
# Run the parser once for each version, but with the same RDF graph
for
Context
.
version
in
[
"
macao_12
"
,
"
macao_3
"
]:
@@ -163,12 +155,8 @@ def main():
parse_manifest
(
g
)
else
:
parse_manifest
(
g
)
export_graph
(
g
)
# Compare log files 2 by 2
compare_files
(
logfiles
[
0
],
logfiles
[
1
])
compare_files
(
logfiles
[
0
],
logfiles
[
2
])
compare_files
(
logfiles
[
1
],
logfiles
[
2
])
export_graph
(
g
)
if
__name__
==
"
__main__
"
:
Loading