<commit_before>package com.github.gtache.lsp.utils

import java.io.File
import java.net.{URI, URL}

import com.github.gtache.lsp.utils.ApplicationUtils.computableWriteAction
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.editor.{Document, Editor}
import com.intellij.openapi.fileEditor.{FileDocumentManager, FileEditorManager, OpenFileDescriptor, TextEditor}
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.project.{Project, ProjectUtil}
import com.intellij.openapi.vfs.{LocalFileSystem, VirtualFile}
import com.intellij.psi.PsiFile
import org.eclipse.lsp4j.TextDocumentIdentifier

/**
  * Various file / uri related methods
  */
object FileUtils {
  val os: OS.Value = if (System.getProperty("os.name").toLowerCase.contains("win")) OS.WINDOWS else OS.UNIX
  val COLON_ENCODED: String = "%3A"
  val SPACE_ENCODED: String = "%20"
  val URI_FILE_BEGIN: String = "file:"
  val URI_VALID_FILE_BEGIN: String = "file:///"
  val URI_PATH_SEP: Char = '/'

  val LSP_ROOT_DIR: String = "lsp/"
  val LSP_LOG_DIR: String = LSP_ROOT_DIR + "out/"
  val LSP_CONFIG_DIR: String = LSP_ROOT_DIR + "conf/"
  private val LOG: Logger = Logger.getInstance(this.getClass)

  def extFromPsiFile(psiFile: PsiFile): String = {
    psiFile.getVirtualFile.getExtension
  }
<commit_msg>Fixes wrong log dir<commit_after>package com.github.gtache.lsp.utils

import java.io.File
import java.net.{URI, URL}

import com.github.gtache.lsp.utils.ApplicationUtils.computableWriteAction
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.editor.{Document, Editor}
import com.intellij.openapi.fileEditor.{FileDocumentManager, FileEditorManager, OpenFileDescriptor, TextEditor}
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.project.{Project, ProjectUtil}
import com.intellij.openapi.vfs.{LocalFileSystem, VirtualFile}
import com.intellij.psi.PsiFile
import org.eclipse.lsp4j.TextDocumentIdentifier

/**
  * Various file / uri related methods
  */
object FileUtils {
  val os: OS.Value = if (System.getProperty("os.name").toLowerCase.contains("win")) OS.WINDOWS else OS.UNIX
  val COLON_ENCODED: String = "%3A"
  val SPACE_ENCODED: String = "%20"
  val URI_FILE_BEGIN: String = "file:"
  val URI_VALID_FILE_BEGIN: String = "file:///"
  val URI_PATH_SEP: Char = '/'

  val LSP_ROOT_DIR: String = "lsp/"
  val LSP_LOG_DIR: String = LSP_ROOT_DIR + "log/"
  val LSP_CONFIG_DIR: String = LSP_ROOT_DIR + "conf/"
  private val LOG: Logger = Logger.getInstance(this.getClass)

  def extFromPsiFile(psiFile: PsiFile): String = {
    psiFile.getVirtualFile.getExtension
  }

{'fraction_non_alphanumeric': 0.11482889733840304, 'fraction_numerical': 0.003041825095057034, 'mean_word_length': 5.147196261682243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '979182', 'n_tokens_mistral': 911, 'n_tokens_neox': 902, 'n_words': 181}