diff --git a/python/src/com/jetbrains/python/codeInsight/mlcompletion/builtinsPopularityWeights.json b/python/pluginResources/mlcompletion/builtinsPopularityWeights.json similarity index 100% rename from python/src/com/jetbrains/python/codeInsight/mlcompletion/builtinsPopularityWeights.json rename to python/pluginResources/mlcompletion/builtinsPopularityWeights.json diff --git a/python/src/com/jetbrains/python/codeInsight/mlcompletion/importPopularityWeights.json b/python/pluginResources/mlcompletion/importPopularityWeights.json similarity index 100% rename from python/src/com/jetbrains/python/codeInsight/mlcompletion/importPopularityWeights.json rename to python/pluginResources/mlcompletion/importPopularityWeights.json diff --git a/python/src/com/jetbrains/python/codeInsight/mlcompletion/keywordsNumeration.json b/python/pluginResources/mlcompletion/keywordsNumeration.json similarity index 100% rename from python/src/com/jetbrains/python/codeInsight/mlcompletion/keywordsNumeration.json rename to python/pluginResources/mlcompletion/keywordsNumeration.json diff --git a/python/src/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionHelpers.kt b/python/src/com/jetbrains/python/codeInsight/mlcompletion/PyMlCompletionHelpers.kt index e880f2312a94..66c246dc969a 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("importPopularityWeights.json") - val builtinsPopularity = initMapFromJsonResource("builtinsPopularityWeights.json") + val importPopularity = initMapFromJsonResource("/mlcompletion/importPopularityWeights.json") + val builtinsPopularity = initMapFromJsonResource("/mlcompletion/builtinsPopularityWeights.json") - private val keyword2id = initMapFromJsonResource("keywordsNumeration.json") + private val keyword2id = initMapFromJsonResource("/mlcompletion/keywordsNumeration.json") fun getKeywordId(kw: String): Int? = keyword2id[kw]