<commit_before>/**
 * Completion.ts
 */

import { editorManager } from "./../EditorManager"

import * as types from "vscode-languageserver-types"

import * as Log from "./../../Log"
import * as Helpers from "./../../Plugins/Api/LanguageClient/LanguageClientHelpers"
import { configuration } from "./../Configuration"
import { languageManager } from "./../Language"

import * as CompletionUtility from "./CompletionUtility"

export const getCompletions = async (language: string, filePath: string, line: number, character: number): Promise<types.CompletionItem[]> => {

    if (configuration.getValue("editor.completions.mode") != "oni") {
        return null
    }

    if (Log.isDebugLoggingEnabled()) {
        Log.debug(`[COMPLETION] Requesting completions at line ${line} and character ${character}`)
    }

    const args = {
        textDocument: {
            uri: Helpers.wrapPathInFileUri(filePath),
        },
        position: {
            line,
            character,
        },
    }
    let result = null<commit_msg>Fix lint issue<commit_after>/**
 * Completion.ts
 */

import { editorManager } from "./../EditorManager"

import * as types from "vscode-languageserver-types"

import * as Log from "./../../Log"
import * as Helpers from "./../../Plugins/Api/LanguageClient/LanguageClientHelpers"
import { configuration } from "./../Configuration"
import { languageManager } from "./../Language"

import * as CompletionUtility from "./CompletionUtility"

export const getCompletions = async (language: string, filePath: string, line: number, character: number): Promise<types.CompletionItem[]> => {

    if (configuration.getValue("editor.completions.mode") !== "oni") {
        return null
    }

    if (Log.isDebugLoggingEnabled()) {
        Log.debug(`[COMPLETION] Requesting completions at line ${line} and character ${character}`)
    }

    const args = {
        textDocument: {
            uri: Helpers.wrapPathInFileUri(filePath),
        },
        position: {
            line,
            character,
        },
    }
    let result = null
{'fraction_non_alphanumeric': 0.14098837209302326, 'fraction_numerical': 0.0, 'mean_word_length': 2.7889908256880735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4622410', 'n_tokens_mistral': 568, 'n_tokens_neox': 565, 'n_words': 149}