-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into arksap2002/bugs/fix-error-window-size
- Loading branch information
Showing
65 changed files
with
2,348 additions
and
934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 11 additions & 3 deletions
14
core/src/main/kotlin/org/jetbrains/research/testspark/core/data/ChatMessage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
package org.jetbrains.research.testspark.core.data | ||
|
||
data class ChatMessage( | ||
val role: String, | ||
open class ChatMessage protected constructor( | ||
val role: ChatRole, | ||
val content: String, | ||
) | ||
) { | ||
enum class ChatRole { | ||
User, | ||
Assistant, | ||
} | ||
} | ||
|
||
class ChatUserMessage(content: String) : ChatMessage(ChatRole.User, content) | ||
class ChatAssistantMessage(content: String) : ChatMessage(ChatRole.Assistant, content) |
15 changes: 15 additions & 0 deletions
15
core/src/main/kotlin/org/jetbrains/research/testspark/core/data/ClassType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.jetbrains.research.testspark.core.data | ||
|
||
/** | ||
* Enumeration representing different types of classes. | ||
* | ||
* @param representation The string representation of the class type. | ||
*/ | ||
enum class ClassType(val representation: String) { | ||
INTERFACE("interface"), | ||
ABSTRACT_CLASS("abstract class"), | ||
CLASS("class"), | ||
DATA_CLASS("data class"), | ||
INLINE_VALUE_CLASS("inline value class"), | ||
OBJECT("object"), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
plugins { | ||
kotlin("jvm") | ||
id("org.jetbrains.intellij") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(kotlin("stdlib")) | ||
|
||
implementation(project(":langwrappers")) // Interfaces that cover language-specific logic | ||
implementation(project(":core")) | ||
} | ||
|
||
intellij { | ||
rootProject.properties["platformVersion"]?.let { version.set(it.toString()) } | ||
plugins.set(listOf("java")) | ||
} | ||
|
||
tasks.named("verifyPlugin") { enabled = false } | ||
tasks.named("runIde") { enabled = false } | ||
tasks.named("runPluginVerifier") { enabled = false } | ||
|
||
tasks { | ||
buildSearchableOptions { | ||
enabled = false | ||
} | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(rootProject.properties["jvmToolchainVersion"].toString().toInt()) | ||
} |
Oops, something went wrong.