<commit_before>package org.mwc.debrief.lite.gui.custom.narratives;

import java.awt.Component;
import java.awt.Font;

import javax.swing.Box;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.ListCellRenderer;

import MWC.TacticalData.NarrativeEntry;

public class NarrativePanelItemRenderer extends JPanel implements
    ListCellRenderer<NarrativeEntry>
{

  /**
   * 
   */
  private static final long serialVersionUID = -2227870470228775898L;

  @Override
  public Component getListCellRendererComponent(JList<? extends NarrativeEntry> list,
      NarrativeEntry value, int index, boolean isSelected, boolean cellHasFocus)
  {
    final Box mainPanel = Box.createVerticalBox();
    final Box header = Box.createHorizontalBox();
    final JPanel body = new JPanel();
    final JLabel time = new JLabel(value.getDTGString());
    final Font originalFont = time.getFont();
    final Font smallFont = new Font(originalFont.getName(), originalFont.getStyle(), 9);
    final Font bigFont = new Font(originalFont.getName(), originalFont.getStyle(), 15);
    time.setFont(smallFont);
    final JLabel trackName = new JLabel(value.getTrackName());
    trackName.setFont(smallFont);
    final JLabel typeName = new JLabel(value.getType());
    typeName.setFont(smallFont);
    header.add(time);
    header.add(Box.createHorizontalStrut(20));
    header.add(trackName);
    header.add(Box.createHorizontalStrut(20));
    header.add(typeName);
    
    final JLabel name = new JLabel(value.getName());
    body.add(name);
    //body.setAlignmentX(JScrollPane.LEFT_ALIGNMENT);
    //mainPanel.setBackground(Color.black);
    
    name.setFont(bigFont);
    mainPanel.add(Box.createVerticalStrut(20));
    mainPanel.add(header);
    mainPanel.add(Box.createVerticalStrut(5));
    mainPanel.add(body);
    return mainPanel;
  }
}<commit_msg>Showing the content instead of the title.<commit_after>package org.mwc.debrief.lite.gui.custom.narratives;

import java.awt.Component;
import java.awt.Font;

import javax.swing.Box;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.ListCellRenderer;

import MWC.TacticalData.NarrativeEntry;

public class NarrativePanelItemRenderer extends JPanel implements
    ListCellRenderer<NarrativeEntry>
{

  /**
   * 
   */
  private static final long serialVersionUID = -2227870470228775898L;

  @Override
  public Component getListCellRendererComponent(JList<? extends NarrativeEntry> list,
      NarrativeEntry value, int index, boolean isSelected, boolean cellHasFocus)
  {
    final Box mainPanel = Box.createHorizontalBox();
    final Box content = Box.createVerticalBox();
    final Box header = Box.createHorizontalBox();
    final JPanel body = new JPanel();
    final JLabel time = new JLabel(value.getDTGString());
    final Font originalFont = time.getFont();
    final Font smallFont = new Font(originalFont.getName(), originalFont.getStyle(), 9);
    final Font bigFont = new Font(originalFont.getName(), originalFont.getStyle(), 15);
    time.setFont(smallFont);
    final JLabel trackName = new JLabel(value.getTrackName());
    trackName.setFont(smallFont);
    final JLabel typeName = new JLabel(value.getType());
    typeName.setFont(smallFont);
    header.add(time);
    header.add(Box.createHorizontalStrut(20));
    header.add(trackName);
    header.add(Box.createHorizontalStrut(20));
    header.add(typeName);
    
    final JLabel name = new JLabel(value.getEntry());
    body.add(name);
    //body.setAlignmentX(JScrollPane.LEFT_ALIGNMENT);
    //mainPanel.setBackground(Color.black);
    
    name.setFont(bigFont);
    content.add(Box.createVerticalStrut(20));
    content.add(header);
    content.add(Box.createVerticalStrut(5));
    content.add(body);
    
    //JLabel highlightIcon = new JPanel();
    
    return content;
  }
}
{'fraction_non_alphanumeric': 0.11291569992266048, 'fraction_numerical': 0.014952307295694767, 'mean_word_length': 4.2933151432469305, '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': '4829581', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1182, 'n_words': 244}