From f727f2a17963c72bdac7166e2b5f911245e19ac0 Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Mon, 27 May 2019 10:19:23 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../java/org/sadtech/autoresponder/Autoresponder.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 9909887..2c395ed 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.sadtech.autoresponder autoresponder - 1.6.0-RELEASE + 1.6.1-SNAPSHOT jar diff --git a/src/main/java/org/sadtech/autoresponder/Autoresponder.java b/src/main/java/org/sadtech/autoresponder/Autoresponder.java index a269541..829094e 100644 --- a/src/main/java/org/sadtech/autoresponder/Autoresponder.java +++ b/src/main/java/org/sadtech/autoresponder/Autoresponder.java @@ -97,10 +97,10 @@ public class Autoresponder { if (unit.getKeyWords() != null) { Set temp = new HashSet<>(unit.getKeyWords()); temp.retainAll(words); - log.info("Ключевые слова юнита: " + unit.getKeyWords() + " (" + unit.getKeyWords().size() + ")"); - log.info("Ключевые слова от пользователя: " + words); - log.info("Пересечение: " + temp + " (" + temp.size() + ")"); - log.info("Процент: " + (double) temp.size() / (double) unit.getKeyWords().size() * 100.0 + " Необходимо: " + unit.getMatchThreshold()); + log.info("Ключевые слова юнита: {} ({})", unit.getKeyWords(), unit.getKeyWords().size()); + log.info("Ключевые слова от пользователя: {}", words); + log.info("Пересечение: {} ({})", temp, temp.size()); + log.info("Процент: {} Необходимо: {}", (double) temp.size() / (double) unit.getKeyWords().size() * 100.0, unit.getMatchThreshold()); return (double) temp.size() / (double) unit.getKeyWords().size() * 100.0; } else { return 0.0; From 45be10d0ebc7ed84b438179804bbf1f400c5a449 Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Mon, 27 May 2019 10:22:41 +0300 Subject: [PATCH 2/2] release-1.6.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2c395ed..408b8dc 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.sadtech.autoresponder autoresponder - 1.6.1-SNAPSHOT + 1.6.1-RELEASE jar