<commit_before>package nl.rubensten.texifyidea.run.compiler

import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectRootManager
import nl.rubensten.texifyidea.run.BibtexRunConfiguration
import nl.rubensten.texifyidea.util.OperatingSystem

/**
 * @author <NAME>
 */
internal object BibtexCompiler : Compiler<BibtexRunConfiguration> {

    override val displayName = "BibTeX"
    override val executableName = "bibtex"

    override fun getCommand(runConfig: BibtexRunConfiguration, project: Project): List<String>? {
        val command = mutableListOf<String>()

        val moduleRoots = ProjectRootManager.getInstance(project).contentSourceRoots

        command.apply {
            add(runConfig.compilerPath ?: BiberCompiler.executableName)

            runConfig.compilerArguments?.let { addAll(it.split("""\s+""".toRegex())) }<commit_msg>Use bibtex executablename in bibtex run config, fixes #765<commit_after>package nl.rubensten.texifyidea.run.compiler

import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectRootManager
import nl.rubensten.texifyidea.run.BibtexRunConfiguration
import nl.rubensten.texifyidea.util.OperatingSystem

/**
 * @author <NAME>
 */
internal object BibtexCompiler : Compiler<BibtexRunConfiguration> {

    override val displayName = "BibTeX"
    override val executableName = "bibtex"

    override fun getCommand(runConfig: BibtexRunConfiguration, project: Project): List<String>? {
        val command = mutableListOf<String>()

        val moduleRoots = ProjectRootManager.getInstance(project).contentSourceRoots

        command.apply {
            add(runConfig.compilerPath ?: executableName)

            runConfig.compilerArguments?.let { addAll(it.split("""\s+""".toRegex())) }
{'fraction_non_alphanumeric': 0.10286677908937605, 'fraction_numerical': 0.0016863406408094434, 'mean_word_length': 4.5625, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3832200', 'n_tokens_mistral': 535, 'n_tokens_neox': 507, 'n_words': 92}