Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
trainbenchmark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stgroup
trainbenchmark
Commits
bb8e3d8c
Commit
bb8e3d8c
authored
5 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
Fix cloc script.
parent
013fc969
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
trainbenchmark/cloc/run-cloc.sh
+5
-3
5 additions, 3 deletions
trainbenchmark/cloc/run-cloc.sh
with
5 additions
and
3 deletions
trainbenchmark/cloc/run-cloc.sh
+
5
−
3
View file @
bb8e3d8c
...
@@ -37,7 +37,7 @@ $CLOC_CMD --report-file=ser-relrag-manual-result.txt ../trainbenchmark-tool-jast
...
@@ -37,7 +37,7 @@ $CLOC_CMD --report-file=ser-relrag-manual-result.txt ../trainbenchmark-tool-jast
# $CLOC_CMD --report-file=ser-relrag-generated-result.txt ../trainbenchmark-tool-jastadd-relast/src/main/java 2>>cloc-errors.log
# $CLOC_CMD --report-file=ser-relrag-generated-result.txt ../trainbenchmark-tool-jastadd-relast/src/main/java 2>>cloc-errors.log
# $CLOC_CMD --sum-reports --report_file=trainbenchmark namelookup-result.txt intrinsic-result.txt relrag-result.txt relrag-manual-result.txt relrag-generated-result.txt 2>>cloc-errors.log
# $CLOC_CMD --sum-reports --report_file=trainbenchmark namelookup-result.txt intrinsic-result.txt relrag-result.txt relrag-manual-result.txt relrag-generated-result.txt 2>>cloc-errors.log
CFC_CMD
=
"
grep -o 'if
\|
for
\|
return'
"
CFC_CMD
=
'
grep -o '
if
'
\|
'
for
'
\|
'
return
'
'
echo
"CFC stats"
>
cfcs.txt
echo
"CFC stats"
>
cfcs.txt
echo
"base:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-base/src/main/jastadd/
{
Helpers.
*
,Enums.jadd
}
|
wc
-l
)
"
>>
cfcs.txt
echo
"base:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-base/src/main/jastadd/
{
Helpers.
*
,Enums.jadd
}
|
wc
-l
)
"
>>
cfcs.txt
echo
"namelookup:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-namelookup-base/src/main/jastadd/
*
.j
{
add,rag
}
|
wc
-l
)
+ queries:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-namelookup-base/src/main/jastadd/queries/
*
|
wc
-l
)
"
>>
cfcs.txt
echo
"namelookup:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-namelookup-base/src/main/jastadd/
*
.j
{
add,rag
}
|
wc
-l
)
+ queries:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-namelookup-base/src/main/jastadd/queries/
*
|
wc
-l
)
"
>>
cfcs.txt
...
@@ -45,7 +45,7 @@ echo "intrinsic: $($CFC_CMD ../trainbenchmark-tool-jastadd-intrinsic-base/src/ma
...
@@ -45,7 +45,7 @@ echo "intrinsic: $($CFC_CMD ../trainbenchmark-tool-jastadd-intrinsic-base/src/ma
echo
"relast:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-relast-base/src/main/jastadd/
*
.j
{
add,rag
}
|
wc
-l
)
+ queries:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-relast-base/src/main/jastadd/queries/
*
|
wc
-l
)
"
>>
cfcs.txt
echo
"relast:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-relast-base/src/main/jastadd/
*
.j
{
add,rag
}
|
wc
-l
)
+ queries:
$(
$CFC_CMD
../trainbenchmark-tool-jastadd-relast-base/src/main/jastadd/queries/
*
|
wc
-l
)
"
>>
cfcs.txt
cat
cfcs.txt
cat
cfcs.txt
AC_CMD
=
'grep -w '
syn
''
AC_CMD
=
'grep -w '
syn
'
\|'
inh
'
'
# \|inh
# \|inh
echo
"AC stats"
>
acs.txt
echo
"AC stats"
>
acs.txt
echo
"base:
$(
$AC_CMD
../trainbenchmark-tool-jastadd-base/src/main/jastadd/
{
Helpers.
*
,Enums.jadd
}
|
wc
-l
)
"
>>
acs.txt
echo
"base:
$(
$AC_CMD
../trainbenchmark-tool-jastadd-base/src/main/jastadd/
{
Helpers.
*
,Enums.jadd
}
|
wc
-l
)
"
>>
acs.txt
...
@@ -56,4 +56,6 @@ cat acs.txt
...
@@ -56,4 +56,6 @@ cat acs.txt
fi
fi
(
for
t
in
*
-result
.txt
;
do
echo
-e
"
\n
==>
$t
<=="
;
cat
$t
;
done
)
echo
"LOC stats"
echo
"Language files blank comment code"
(
for
t
in
*
-result
.txt
;
do
echo
-e
"==>
$t
<=="
;
grep
-v
-e
'---'
-e
'SUM'
-e
'Language'
-e
'github'
$t
;
done
)
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