<commit_before>package de.lessvoid.nifty.tools;

/**
 * Alpha helper class to manage alpha values.
 * @author void
 */
public class Alpha {
  private static final int SCALE_SHORT_MODE = 0x11;
  private static final float MAX_INT_VALUE = 255.0f;
  private static final int HEX_BASE = 16;

  private float alpha = 0.0f;

  public Alpha(final String color) {
      this.alpha = getAFromString(color);
  }

  public Alpha(final float newAlpha) {
      this.alpha = newAlpha;
  }

  /**
   * linear interpolate between this color and the given color.
   * @param end end color
   * @param t t in [0,1]<commit_msg>Alpha Constants for full and zero alpha values added<commit_after>package de.lessvoid.nifty.tools;

/**
 * Alpha helper class to manage alpha values.
 * @author void
 */
public class Alpha {
  public static final Alpha ZERO = new Alpha(0.0f);
  public static final Alpha FULL = new Alpha(1.0f);

  private static final int SCALE_SHORT_MODE = 0x11;
  private static final float MAX_INT_VALUE = 255.0f;
  private static final int HEX_BASE = 16;

  private float alpha = 0.0f;

  public Alpha(final String color) {
      this.alpha = getAFromString(color);
  }

  public Alpha(final float newAlpha) {
      this.alpha = newAlpha;
  }

  /**
   * linear interpolate between this color and the given color.
   * @param end end color
   * @param t t in [0,1]
{'fraction_non_alphanumeric': 0.08823529411764706, 'fraction_numerical': 0.022058823529411766, 'mean_word_length': 3.279874213836478, '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': '5388667', 'n_tokens_mistral': 452, 'n_tokens_neox': 420, 'n_words': 153}