<commit_before>/*
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */

package org.toml.lang

import com.intellij.openapi.fileTypes.ExactFileNameMatcher
import com.intellij.openapi.fileTypes.ExtensionFileNameMatcher
import com.intellij.openapi.fileTypes.FileTypeConsumer
import com.intellij.openapi.fileTypes.FileTypeFactory


class TomlFileTypeFactory : FileTypeFactory() {
    override fun createFileTypes(consumer: FileTypeConsumer) {
        consumer.consume(TomlFileType,
            ExactFileNameMatcher("Cargo.lock"),
            ExtensionFileNameMatcher(TomlFileType.DEFAULTS.EXTENSION))
    }
}<commit_msg>Register Gopkg.lock as a TOML file (GO-4774)<commit_after>/*
 * Use of this source code is governed by the MIT license that can be
 * found in the LICENSE file.
 */

package org.toml.lang

import com.intellij.openapi.fileTypes.ExactFileNameMatcher
import com.intellij.openapi.fileTypes.ExtensionFileNameMatcher
import com.intellij.openapi.fileTypes.FileTypeConsumer
import com.intellij.openapi.fileTypes.FileTypeFactory


class TomlFileTypeFactory : FileTypeFactory() {
    override fun createFileTypes(consumer: FileTypeConsumer) {
        consumer.consume(TomlFileType,
            ExactFileNameMatcher("Cargo.lock"),
            ExactFileNameMatcher("Gopkg.lock"),
            ExtensionFileNameMatcher(TomlFileType.DEFAULTS.EXTENSION))
    }
}
{'fraction_non_alphanumeric': 0.08067940552016985, 'fraction_numerical': 0.0028308563340410475, 'mean_word_length': 4.417624521072797, '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': '678679', 'n_tokens_mistral': 416, 'n_tokens_neox': 400, 'n_words': 87}