From a7a7d2d05cd9814b7dd6ad23c03cf47c014fafa8 Mon Sep 17 00:00:00 2001 From: "andrey.matveev" Date: Thu, 24 Oct 2019 13:27:37 +0700 Subject: [PATCH] EA-215137 Move resources for ml completion GitOrigin-RevId: 88aefbefcd569216dd8357a65da9cd98802caf1f --- .../codeInsight/mlcompletion/PyMlCompletionHelpers.kt | 6 +++--- .../mlcompletion/builtinsPopularityWeights.json | 0 .../codeInsight}/mlcompletion/importPopularityWeights.json | 0 .../codeInsight}/mlcompletion/keywordsNumeration.json | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename python/{resources => src/com/jetbrains/python/codeInsight}/mlcompletion/builtinsPopularityWeights.json (100%) rename python/{resources => src/com/jetbrains/python/codeInsight}/mlcompletion/importPopularityWeights.json (100%) rename python/{resources => src/com/jetbrains/python/codeInsight}/mlcompletion/keywordsNumeration.json (100%) diff --git a/python/src/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionHelpers.kt b/python/src/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionHelpers.kt index 66c246dc969a..e880f2312a94 100644 --- a/python/src/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionHelpers.kt +++ b/python/src/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionHelpers.kt @@ -11,10 +11,10 @@ object PyMlCompletionHelpers { private val LOG = Logger.getInstance("#com.jetbrains.python.codeInsight.completion.mlcompletion") // imports and builtins popularity was calculated on github by number of search results for each present builtins or import - val importPopularity = initMapFromJsonResource("/mlcompletion/importPopularityWeights.json") - val builtinsPopularity = initMapFromJsonResource("/mlcompletion/builtinsPopularityWeights.json") + val importPopularity = initMapFromJsonResource("importPopularityWeights.json") + val builtinsPopularity = initMapFromJsonResource("builtinsPopularityWeights.json") - private val keyword2id = initMapFromJsonResource("/mlcompletion/keywordsNumeration.json") + private val keyword2id = initMapFromJsonResource("keywordsNumeration.json") fun getKeywordId(kw: String): Int? = keyword2id[kw] diff --git a/python/resources/mlcompletion/builtinsPopularityWeights.json b/python/src/com/jetbrains/python/codeInsight/mlcompletion/builtinsPopularityWeights.json similarity index 100% rename from python/resources/mlcompletion/builtinsPopularityWeights.json rename to python/src/com/jetbrains/python/codeInsight/mlcompletion/builtinsPopularityWeights.json diff --git a/python/resources/mlcompletion/importPopularityWeights.json b/python/src/com/jetbrains/python/codeInsight/mlcompletion/importPopularityWeights.json similarity index 100% rename from python/resources/mlcompletion/importPopularityWeights.json rename to python/src/com/jetbrains/python/codeInsight/mlcompletion/importPopularityWeights.json diff --git a/python/resources/mlcompletion/keywordsNumeration.json b/python/src/com/jetbrains/python/codeInsight/mlcompletion/keywordsNumeration.json similarity index 100% rename from python/resources/mlcompletion/keywordsNumeration.json rename to python/src/com/jetbrains/python/codeInsight/mlcompletion/keywordsNumeration.json