Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–14 unchanged (14 lines)
15import com.owncloud.android.lib.resources.assistant.chat.model.SessionTask
16import com.owncloud.android.lib.resources.assistant.v2.model.Task
17import com.owncloud.android.lib.resources.assistant.v2.model.TaskTypeData
18import com.owncloud.android.lib.resources.assistant.v2.model.TranslationRequest
19
20interface AssistantRemoteRepository {
21 suspend fun getTaskTypes(): List<TaskTypeData>?
22
23 suspend fun createTask(input: String, taskType: TaskTypeData): RemoteOperationResult<Void>
24
25 suspend fun getTaskList(taskType: String): List<Task>?
26
27 suspend fun deleteTask(id: Long): RemoteOperationResult<Void>
…lines 28–43 unchanged (16 lines)

After

…lines 1–14 unchanged (14 lines)
15import com.owncloud.android.lib.resources.assistant.chat.model.SessionTask
16import com.owncloud.android.lib.resources.assistant.v2.model.Task
17import com.owncloud.android.lib.resources.assistant.v2.model.TaskTypeData
18import com.owncloud.android.lib.resources.assistant.v2.model.TranslationRequest
19
20interface AssistantRemoteRepository {
21 suspend fun fetchTaskTypes(): List<TaskTypeData>?
22
23 suspend fun createTask(input: String, taskType: TaskTypeData): RemoteOperationResult<Void>
24
25 suspend fun getTaskList(taskType: String): List<Task>?
26
27 suspend fun deleteTask(id: Long): RemoteOperationResult<Void>
…lines 28–43 unchanged (16 lines)

Before

source_file
block_comment "/*\n * Nextcloud - Android Client\n *\n * SPDX-FileCopyrightTex"...
package_header
package "package"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "assistant"
. "."
identifier "repository"
. "."
identifier "remote"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "operations"
. "."
identifier "RemoteOperationResult"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "ChatMessage"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "ChatMessageRequest"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "CreateConversation"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "Session"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "SessionTask"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "v2"
. "."
identifier "model"
. "."
identifier "Task"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "v2"
. "."
identifier "model"
. "."
identifier "TaskTypeData"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "v2"
. "."
identifier "model"
. "."
identifier "TranslationRequest"
class_declaration
interface "interface"
identifier "AssistantRemoteRepository"
class_body
{ "{"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "getTaskTypes"
function_value_parameters
( "("
) ")"
: ":"
nullable_type
user_type
identifier "List"
type_arguments
< "<"
type_projection
user_type
identifier "TaskTypeData"
> ">"
? "?"
function_declaration (+29 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration (+23 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "sendChatMessage"
function_value_parameters
( "("
parameter
identifier "request"
: ":"
user_type
identifier "ChatMessageRequest"
) ")"
: ":"
nullable_type
user_type
identifier "ChatMessage"
? "?"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "createConversation"
function_value_parameters
( "("
parameter
identifier "title"
: ":"
user_type
identifier "String"
) ")"
: ":"
nullable_type
user_type
identifier "CreateConversation"
? "?"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "checkSession"
function_value_parameters
( "("
parameter
identifier "sessionId"
: ":"
user_type
identifier "String"
) ")"
: ":"
nullable_type
user_type
identifier "Session"
? "?"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "generateSession"
function_value_parameters
( "("
parameter
identifier "sessionId"
: ":"
user_type
identifier "String"
) ")"
: ":"
nullable_type
user_type
identifier "SessionTask"
? "?"
function_declaration (+25 nodes collapsed)
function_declaration (+29 nodes collapsed)
} "}"

After

source_file
block_comment "/*\n * Nextcloud - Android Client\n *\n * SPDX-FileCopyrightTex"...
package_header
package "package"
qualified_identifier
identifier "com"
. "."
identifier "nextcloud"
. "."
identifier "client"
. "."
identifier "assistant"
. "."
identifier "repository"
. "."
identifier "remote"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "common"
. "."
identifier "operations"
. "."
identifier "RemoteOperationResult"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "ChatMessage"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "ChatMessageRequest"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "CreateConversation"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "Session"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "chat"
. "."
identifier "model"
. "."
identifier "SessionTask"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "v2"
. "."
identifier "model"
. "."
identifier "Task"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "v2"
. "."
identifier "model"
. "."
identifier "TaskTypeData"
import
import "import"
qualified_identifier
identifier "com"
. "."
identifier "owncloud"
. "."
identifier "android"
. "."
identifier "lib"
. "."
identifier "resources"
. "."
identifier "assistant"
. "."
identifier "v2"
. "."
identifier "model"
. "."
identifier "TranslationRequest"
class_declaration
interface "interface"
identifier "AssistantRemoteRepository"
class_body
{ "{"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "fetchTaskTypes"
function_value_parameters
( "("
) ")"
: ":"
nullable_type
user_type
identifier "List"
type_arguments
< "<"
type_projection
user_type
identifier "TaskTypeData"
> ">"
? "?"
function_declaration (+29 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration (+23 nodes collapsed)
function_declaration (+25 nodes collapsed)
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "sendChatMessage"
function_value_parameters
( "("
parameter
identifier "request"
: ":"
user_type
identifier "ChatMessageRequest"
) ")"
: ":"
nullable_type
user_type
identifier "ChatMessage"
? "?"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "createConversation"
function_value_parameters
( "("
parameter
identifier "title"
: ":"
user_type
identifier "String"
) ")"
: ":"
nullable_type
user_type
identifier "CreateConversation"
? "?"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "checkSession"
function_value_parameters
( "("
parameter
identifier "sessionId"
: ":"
user_type
identifier "String"
) ")"
: ":"
nullable_type
user_type
identifier "Session"
? "?"
function_declaration
modifiers
function_modifier
suspend "suspend"
fun "fun"
identifier "generateSession"
function_value_parameters
( "("
parameter
identifier "sessionId"
: ":"
user_type
identifier "String"
) ")"
: ":"
nullable_type
user_type
identifier "SessionTask"
? "?"
function_declaration (+25 nodes collapsed)
function_declaration (+29 nodes collapsed)
} "}"