<commit_before>package org.jetbrains.cabal.highlight;

import com.intellij.lexer.Lexer;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase;
import com.intellij.psi.tree.IElementType;
import gnu.trove.THashMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.cabal.parser.CabalLexer;
import org.jetbrains.cabal.parser.CabalTokelTypes;
import org.jetbrains.haskell.highlight.HaskellHighlighter;

import java.util.Map;

public class CabalHighlighter extends SyntaxHighlighterBase {
  private static final Map<IElementType, TextAttributesKey> keys1;

  @NotNull
  public Lexer getHighlightingLexer() {
    return new CabalLexer();
  }


  static {
    keys1 = new THashMap<IElementType, TextAttributesKey>();

    keys1.put(CabalTokelTypes.STRING, new HaskellHighlighter().getSTRING_LITERAL());
    keys1.put(CabalTokelTypes.END_OF_LINE_COMMENT, new HaskellHighlighter().getCOMMENT_STYLE());
    keys1.put(CabalTokelTypes.COMMENT, new HaskellHighlighter().getCOMMENT_STYLE());


  }

  @NotNull
  public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
    return pack(keys1.get(tokenType));
  }

}<commit_msg>Fix compilation<commit_after>package org.jetbrains.cabal.highlight;

import com.intellij.lexer.Lexer;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase;
import com.intellij.psi.tree.IElementType;
import gnu.trove.THashMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.cabal.parser.CabalLexer;
import org.jetbrains.cabal.parser.CabalTokelTypes;
import org.jetbrains.haskell.highlight.HaskellHighlighter;

import java.util.Map;

public class CabalHighlighter extends SyntaxHighlighterBase {
  private static final Map<IElementType, TextAttributesKey> keys1;

  @NotNull
  public Lexer getHighlightingLexer() {
    return new CabalLexer();
  }


  static {
    keys1 = new THashMap<IElementType, TextAttributesKey>();

    keys1.put(CabalTokelTypes.STRING, HaskellHighlighter.STRING_LITERAL);
    keys1.put(CabalTokelTypes.END_OF_LINE_COMMENT, HaskellHighlighter.COMMENT_STYLE);
    keys1.put(CabalTokelTypes.COMMENT, HaskellHighlighter.COMMENT_STYLE);


  }

  @NotNull
  public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
    return pack(keys1.get(tokenType));
  }

}
{'fraction_non_alphanumeric': 0.09651699538396978, 'fraction_numerical': 0.005035669324381032, 'mean_word_length': 6.032448377581121, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6035324', 'n_tokens_mistral': 864, 'n_tokens_neox': 802, 'n_words': 120}