You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/07/29 19:35:44 UTC
[incubator-nlpcraft] branch master updated: Quick fixes.
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 603e6df Quick fixes.
new 64ab9ae Merge branch 'master' of https://github.com/apache/incubator-nlpcraft
603e6df is described below
commit 603e6df00a99913651f36e3ab0bd0cdc1eafdcc8
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Thu Jul 29 12:35:33 2021 -0700
Quick fixes.
---
.../main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java | 4 ++--
.../src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java b/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
index b8abb09..f6cf737 100644
--- a/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
+++ b/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
@@ -49,7 +49,7 @@ import static java.time.temporal.ChronoUnit.DAYS;
* intent matching logic. It uses OpenWeather API weather provider REST service for the actual
* weather information (https://openweathermap.org/api/one-call-api).
* <p>
- * NOTE: you must provide OpenWorldMap API key in 'OWM_API_KEY' system property.
+ * NOTE: you must provide OpenWeather API key in 'OWM_API_KEY' system property.
* See https://openweathermap.org/api for more information.
* <p>
* See 'README.md' file in the same folder for running and testing instructions.
@@ -78,7 +78,7 @@ public class WeatherModel extends NCModelFileAdapter {
private static final Set<String> LOCAL_WORDS = new HashSet<>(Arrays.asList("my", "local", "hometown"));
/**
- * Extracts geo location (city) from given solver context that is suitable for Dark Sky API weather service.
+ * Extracts geolocation (city) from given solver context that is suitable for Dark Sky API weather service.
*
* @param ctx Intent solver context.
* @param geoTokOpt Optional geo token.
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java
index db76f1c..c539782 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java
@@ -138,7 +138,7 @@ public class GeoManager {
*/
private static String getExternalIp() throws IOException {
try (BufferedReader in =
- new BufferedReader(new InputStreamReader(new URL("http://checkip.amazonaws.com").openStream()))) {
+ new BufferedReader(new InputStreamReader(new URL("https://checkip.amazonaws.com").openStream()))) {
return in.readLine();
}
}