<commit_before>package playn.core;


public abstract class PaddedTextLayout extends AbstractTextLayout
{
  // this is used to reserve one pixel of padding around the edge of our rendered text which makes
  // antialising work much more nicely
  protected final float pad;

  @Override
  public float width() {
    // reserve a pixel on the left and right to make antialiasing work better
    return super.width() + 2*pad;
  }

  @Override
  public float height() {
    // reserve a pixel on the top and bottom to make antialiasing work better
    return super.height() + 2*pad;
  }

  protected PaddedTextLayout (Graphics gfx, String text, TextFormat format)
  {
    super(text, format);
    this.pad = 1/gfx.scaleFactor();
  }
}<commit_msg>Formatting.<commit_after>package playn.core;


public abstract class PaddedTextLayout extends AbstractTextLayout
{
  // this is used to reserve one pixel of padding around the edge of our rendered text which makes
  // antialising work much more nicely
  protected final float pad;

  @Override
  public float width() {
    // reserve a pixel on the left and right to make antialiasing work better
    return super.width() + 2*pad;
  }

  @Override
  public float height() {
    // reserve a pixel on the top and bottom to make antialiasing work better
    return super.height() + 2*pad;
  }

  protected PaddedTextLayout (Graphics gfx, String text, TextFormat format) {
    super(text, format);
    this.pad = 1/gfx.scaleFactor();
  }
}
{'fraction_non_alphanumeric': 0.07510148849797023, 'fraction_numerical': 0.0040595399188092015, 'mean_word_length': 3.4017857142857144, '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': '6803133', 'n_tokens_mistral': 424, 'n_tokens_neox': 410, 'n_words': 174}