Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-04-24 16:09:23 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3343ab4981ef4138dd61d26e493fc33234389879
3343ab49
1 parent
49909f44
Passage en locale French pour la sortie fichier
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
grog-recommendation/grog-recommendation-postprocess/src/main/java/org/legrog/recommendation/postprocess/PostprocessingRunner.java
grog-recommendation/grog-recommendation-postprocess/src/main/java/org/legrog/recommendation/postprocess/PostprocessingRunner.java
View file @
3343ab4
...
...
@@ -12,6 +12,7 @@ import org.springframework.stereotype.Component;
import
java.io.*
;
import
java.util.List
;
import
java.util.Locale
;
import
java.util.Properties
;
import
java.util.Set
;
import
java.util.stream.Collectors
;
...
...
@@ -61,7 +62,8 @@ public class PostprocessingRunner implements ApplicationRunner {
try
{
CSVPrinter
csvPrinter
=
new
CSVPrinter
(
new
FileWriter
(
new
File
(
dataDir
,
coverageFilename
)),
CSVFormat
.
TDF
.
withHeader
(
"c1 (item)"
,
"c2 (item-user)"
,
"c3 (item#)"
));
csvPrinter
.
printRecord
(
coverage
.
getC1
(),
coverage
.
getC2
(),
coverage
.
getC3
());
csvPrinter
.
printRecord
(
String
.
format
(
Locale
.
FRENCH
,
"%.3f"
,
coverage
.
getC1
()),
String
.
format
(
Locale
.
FRENCH
,
"%.3f"
,
coverage
.
getC2
()),
coverage
.
getC3
());
csvPrinter
.
close
();
}
catch
(
IOException
e
)
{
throw
new
PostprocessingException
(
"Can't write coverage file "
+
dataDir
+
coverageFilename
,
e
);
...
...
Please
register
or
login
to post a comment