mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
LLM-29021 Remove obsolete AskAI and mini chat modules
Remove obsolete AskAI and mini chat modules, configurations, and evaluation artifacts. Clean affected plugin metadata, run configurations, project structure checks, and ACP file-change conversion tests. (cherry picked from commit 4d14ee7659f19eb5a7f41c3b630a179abe63e087) (cherry picked from commit 0d8c2ff5df7e372ee977f428b5411a9dc27081c8) IJ-MR-211001 GitOrigin-RevId: acbcef0bff1ddda0aa2eee8ae8cfceaa44999fd4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5a94ae3a3b
commit
f0f29b7eac
-7
@@ -7,7 +7,6 @@ import com.intellij.openapi.actionSystem.ActionManager
|
||||
import com.intellij.openapi.actionSystem.AnAction
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent
|
||||
import com.intellij.openapi.actionSystem.AnActionWrapper
|
||||
import com.intellij.openapi.actionSystem.Separator
|
||||
import com.intellij.openapi.project.DumbAware
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
@@ -16,12 +15,6 @@ internal class XNextToolbarActionsGroup : ActionGroup(), DumbAware {
|
||||
private val actionList = arrayListOf<AnAction>()
|
||||
|
||||
init {
|
||||
ActionManager.getInstance().getAction("MiniAiChat.Toggle")?.let {
|
||||
actionList.add(AnActionWrapper(it) )
|
||||
}
|
||||
|
||||
actionList.add(Separator.create())
|
||||
|
||||
ActionManager.getInstance().getAction("HideAllWindows")?.let {
|
||||
actionList.add(object : AnActionWrapper(it) {
|
||||
init {
|
||||
|
||||
-3
@@ -53,8 +53,6 @@
|
||||
"intellij.ml.llm.android",
|
||||
"intellij.ml.llm.android.tests",
|
||||
"intellij.ml.llm.apiTestsWithJava",
|
||||
"intellij.ml.llm.askai",
|
||||
"intellij.ml.llm.askai.tests",
|
||||
"intellij.ml.llm.aui.events",
|
||||
"intellij.ml.llm.aui.events.tests",
|
||||
"intellij.ml.llm.automation",
|
||||
@@ -242,7 +240,6 @@
|
||||
"intellij.ml.llm.mcp.tests",
|
||||
"intellij.ml.llm.mdx.nextEdits.backend",
|
||||
"intellij.ml.llm.microservices",
|
||||
"intellij.ml.llm.minichat",
|
||||
"intellij.ml.llm.nextEdits.acp.backend",
|
||||
"intellij.ml.llm.nextEdits.agents.backend",
|
||||
"intellij.ml.llm.nextEdits.backend",
|
||||
|
||||
-6
@@ -48,7 +48,6 @@ import com.intellij.cce.metric.PrecisionMetric
|
||||
import com.intellij.cce.metric.PreservedApi
|
||||
import com.intellij.cce.metric.RelatedFileValidationSuccess
|
||||
import com.intellij.cce.metric.SessionsCountMetric
|
||||
import com.intellij.cce.metric.WasAskAICalledMetric
|
||||
import com.intellij.cce.metric.WithoutHighlightErrorsSessionRatio
|
||||
import com.intellij.cce.metric.WithoutSyntaxErrorsSessionRatio
|
||||
import com.intellij.cce.metric.context.MeanContextLines
|
||||
@@ -592,11 +591,6 @@ object Metrics {
|
||||
dependencies = MetricDependencies(Analysis.FAILED_RELATED_FILE_VALIDATIONS)
|
||||
) { RelatedFileValidationSuccess() }
|
||||
|
||||
val WAS_ASK_AI_CALLED: EvalMetric = EvalMetric(
|
||||
threshold = 1.0,
|
||||
dependencies = MetricDependencies(Execution.ACTUAL_SMART_CHAT_ENDPOINTS)
|
||||
) { WasAskAICalledMetric() }
|
||||
|
||||
val FUNCTION_CALLING: EvalMetric = EvalMetric(
|
||||
threshold = 1.0,
|
||||
dependencies = MetricDependencies(
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
package com.intellij.cce.metric
|
||||
|
||||
import com.intellij.cce.core.Session
|
||||
import com.intellij.cce.evaluable.AIA_ACTUAL_SMART_CHAT_ENDPOINTS
|
||||
import com.intellij.cce.metric.util.Sample
|
||||
|
||||
class WasAskAICalledMetric : ConfidenceIntervalMetric<Double>() {
|
||||
|
||||
override val showByDefault: Boolean = true
|
||||
override val valueType: MetricValueType = MetricValueType.DOUBLE
|
||||
override val name: String = "Was Ask AI Called ratio"
|
||||
override val description: String = "Ratio of cases, where Ask AI feature was called"
|
||||
|
||||
override val value: Double
|
||||
get() = compute(sample)
|
||||
|
||||
override fun evaluate(sessions: List<Session>): Number {
|
||||
val fileSample = Sample()
|
||||
sessions
|
||||
.flatMap { it.lookups }
|
||||
.forEach {
|
||||
val calledSmartChatEndpoints = it.additionalInfo[AIA_ACTUAL_SMART_CHAT_ENDPOINTS]
|
||||
val wasAskAICalled = if (calledSmartChatEndpoints == "interact_with_ide") 1.0 else 0.0
|
||||
fileSample.add(wasAskAICalled)
|
||||
coreSample.add(wasAskAICalled)
|
||||
}
|
||||
return fileSample.mean()
|
||||
}
|
||||
|
||||
override fun compute(sample: List<Double>): Double = sample.average()
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
"language": "Another",
|
||||
"projectPath": "../ml-eval/keycloak",
|
||||
"repository": "https://github.com/keycloak/keycloak",
|
||||
"revision": "a21e95c5aedf755693b97cdc2425dc56b249395f",
|
||||
"outputDir": "bin/ml-eval-askai-keycloak-output",
|
||||
"strategy": {
|
||||
"collectContextOnly": false
|
||||
},
|
||||
"actions": {
|
||||
"evaluationRoots": [
|
||||
"."
|
||||
],
|
||||
"_sourceFile": "remote:https://huggingface.co/datasets/JetBrains/ask_ai_dataset/resolve/main/askai/askai_keycloak_dataset.json",
|
||||
"sourceFile": "config:../../staticdataset/askai/askai_keycloak_dataset.json"
|
||||
},
|
||||
"interpret": {
|
||||
"saveLogs": true,
|
||||
"sessionProbability": 1.0,
|
||||
"sessionSeed": null,
|
||||
"sessionsLimit": 1000,
|
||||
"filesLimit": 1000,
|
||||
"order": "LINEAR",
|
||||
"trainTestSplit": 70,
|
||||
"registry": ""
|
||||
},
|
||||
"reports": {
|
||||
"evaluationTitle": "Default",
|
||||
"defaultMetrics": null,
|
||||
"sessionsFilters": [],
|
||||
"comparisonFilters": []
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,6 @@
|
||||
"plugins/llm/integration-tests/tests/testSrc/com/intellij/ml/llm/integration/tests/nextEdit/NextEditFiltersTest.kt",
|
||||
"plugins/llm/integration-tests/tests/testSrc/com/intellij/ml/llm/integration/tests/nextEdit/NextEditStateTest.kt",
|
||||
"plugins/llm/junie/src/com/intellij/ml/llm/junie/JunieChatMessageHandler.kt",
|
||||
"plugins/llm/minichat/src/com/intellij/ml/llm/riderNext/latest/miniAiChat/agentOrchestration/MiniChatOrchestrator.kt",
|
||||
"plugins/llm/nextEdits/src/com/intellij/ml/llm/nextEdits/language/UniversalLanguageNextEditSettings.kt",
|
||||
"plugins/llm/nextEdits/src/com/intellij/ml/llm/nextEdits/session/NextEditSession.kt",
|
||||
"plugins/llm/nextEdits/tests/test/editor/CaretMovementNextEditTest.kt",
|
||||
|
||||
@@ -1,319 +0,0 @@
|
||||
[
|
||||
{
|
||||
"path": "README.md",
|
||||
"sessionsCount": 11,
|
||||
"actions": [
|
||||
{
|
||||
"sessionId": "d13b10ad-d85b-4a59-9831-b83ff23c17d1",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "restart the ide"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "bd299abe-594d-4940-b350-51c53bb22670",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "enable zoom with ctrl mouse wheel"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "fb082793-6bf9-4a8b-974e-9edcfdd5eccc",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Open root pom.xml"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "2094d624-485a-4dfb-b6e5-d85a2ddc7536",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Run the project"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "086fc855-fdcd-4387-b319-e8cf023f6fe6",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Debug the project"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "69618797-eb42-46c6-8691-1b757f42a446",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Open git log"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "a4a3fd6a-ef0d-45c9-9f27-f72e73b112b7",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Drop last 3 commits"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "a405d4c0-eab2-4e52-b0b1-1bbcd0518ea3",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "What is detached head"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "62f3b350-27ab-4426-847a-3a5093e10e19",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "How exportRealm is typically used?"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "95b8f14d-bf81-4f43-aa35-72aa6913ac42",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "reset all to the previous commit and build project"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "308c49d9-a4f4-4dfa-b7d3-68fc2fc22275",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "My eyes are hurting looking at the IDE"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "misc/keycloak-test-helper/src/main/java/org/keycloak/test/FluentTestsHelper.java",
|
||||
"sessionsCount": 1,
|
||||
"actions": [
|
||||
{
|
||||
"sessionId": "1fcd6539-e40f-48a6-96b7-739f84f80969",
|
||||
"offset": 6621,
|
||||
"type": "MOVE_CARET"
|
||||
},
|
||||
{
|
||||
"sessionId": "1fcd6539-e40f-48a6-96b7-739f84f80969",
|
||||
"text": " ",
|
||||
"completable": false,
|
||||
"type": "PRINT_TEXT"
|
||||
},
|
||||
{
|
||||
"sessionId": "1fcd6539-e40f-48a6-96b7-739f84f80969",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Reformat changed code"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "1fcd6539-e40f-48a6-96b7-739f84f80969",
|
||||
"type": "ROLLBACK"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "services/src/main/java/org/keycloak/social/twitter/TwitterIdentityProvider.java",
|
||||
"sessionsCount": 4,
|
||||
"actions": [
|
||||
{
|
||||
"sessionId": "70bbebc6-d639-4768-b04e-ecd7d9551199",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "find all usages of `WebApplicationException`"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "5308ad49-89d7-4b78-99ff-b267969f77fc",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "find all usages of `WebApplicationException` without usages in imports"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "6ca479e7-b84d-49a7-899e-837dea292373",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "where is the main authorization code"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
},
|
||||
{
|
||||
"sessionId": "d065ce0b-a56e-4ffd-9671-7253f1d6f48f",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "find tests for auth API"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "misc/keycloak-test-helper/src/main/java/org/keycloak/test/builders/ClientBuilder.java",
|
||||
"sessionsCount": 1,
|
||||
"actions": [
|
||||
{
|
||||
"sessionId": "93928147-17df-4a05-b6c5-4ee6bd0259a5",
|
||||
"offset": 0,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "rename ExportUtils to ExportUtil"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "core/src/main/java/org/keycloak/representations/info/ServerInfoRepresentation.java",
|
||||
"sessionsCount": 1,
|
||||
"actions": [
|
||||
{
|
||||
"sessionId": "daebaff2-820e-4b26-85c6-c02c857d62c8",
|
||||
"offset": 1150,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "does this have any tests"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "misc/keycloak-test-helper/src/main/java/org/keycloak/test/builders/UserBuilder.java",
|
||||
"sessionsCount": 1,
|
||||
"actions": [
|
||||
{
|
||||
"sessionId": "15aa6552-8564-45b9-bb0f-2c7022220e78",
|
||||
"offset": 1150,
|
||||
"expectedText": "",
|
||||
"nodeProperties": {
|
||||
"tokenType": "NONE",
|
||||
"location": "PROJECT",
|
||||
"features": [],
|
||||
"additional": {
|
||||
"prompt": "Add a breakpoint at every place where `rep` is changed"
|
||||
}
|
||||
},
|
||||
"type": "CALL_FEATURE"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user