<commit_before>package org.thilanka.messaging.domain;

import org.thilanka.device.board.AndroidThingsBoard;
import org.thilanka.device.pin.PinDirection;
import org.thilanka.device.pin.PinProperty;
import org.thilanka.device.pin.PinValue;

/**
 * The java class that represents a Pin that gets serialized to json and back
 * during the communication with AppInventor and the AndroidThings board.
 * 
 * @author <NAME> (<EMAIL>)
 *
 */
public class HeaderPin {

  private String mName;

  private PinProperty mProperty;

  private PinValue mValue;

  private AndroidThingsBoard mAndroidThingsBoard;

  private PinDirection mDirection;

  private String mLabel = "default";

  /**
   * @return the corresponding name of the pin.
   */
  public String getName() {
    return mName;
  }

  /**
   * @param pName
   *          the name of the pin to set
   */
  public void setName(String pName) {
    mName = pName;
  }

  /**
   * @return the property
   */
  public PinProperty getProperty() {
    return mProperty;
  }

  /**
   * @param property
   *          the property to set
   */
  public void setProperty(PinProperty pProperty) {
    mProperty = pProperty;
  }

  /**
   * @return the value
   */
  public PinValue getValue() {
    return mValue;
  }

  /**
   * @param pValue
   *          the value to set
   */
  public void setValue(PinValue pValue) {
    mValue = pValue;
  }

  /**
   * @return the AndroidThingsBoard
   */
  public AndroidThingsBoard getAndroidThingsBoard() {
    return mAndroidThingsBoard;
  }

  /**
   * @param pAndroidThingsBoard
   *          the AndroidThingsBoard to set
   */
  public void setAndroidThingsBoard(AndroidThingsBoard pAndroidThingsBoard) {
    mAndroidThingsBoard = pAndroidThingsBoard;
  }

  /**
   * @return the Direction
   */
  public PinDirection getDirection() {
    return mDirection;
  }

  /**
   * @param pDirection
   *          the direction to set
   */
  public void setDirection(PinDirection pDirection) {
    mDirection = pDirection;
  }

  /**
   * @return the label
   */
  public String getLabel() {
    return mLabel;
  }

  /**
   * @param pLabel
   *          the label to set
   */
  public void setLabel(String pLabel) {
    mLabel = pLabel;
  }

  public boolean isInvalid() {
    // TODO Auto-generated method stub
    return true;
  }

  @Override
  public String toString() {
    return "HeaderPin [number:" + mName + ", property:" + mProperty.toString()
        + ", value:" + mValue.toString() + ", androidThingsBoard:"
        + mAndroidThingsBoard.getName() + ", direction:" + mDirection.toString()
        + ", label: " + mLabel + "]";
  }

}
<commit_msg>Fixed a small logic error for invalid check<commit_after>package org.thilanka.messaging.domain;

import org.thilanka.device.board.AndroidThingsBoard;
import org.thilanka.device.pin.PinDirection;
import org.thilanka.device.pin.PinProperty;
import org.thilanka.device.pin.PinValue;

/**
 * The java class that represents a Pin that gets serialized to json and back
 * during the communication with AppInventor and the AndroidThings board.
 * 
 * @author <NAME> (<EMAIL>)
 *
 */
public class HeaderPin {

  private String mName;

  private PinProperty mProperty;

  private PinValue mValue;

  private AndroidThingsBoard mAndroidThingsBoard;

  private PinDirection mDirection;

  private String mLabel = "default";

  /**
   * @return the corresponding name of the pin.
   */
  public String getName() {
    return mName;
  }

  /**
   * @param pName
   *          the name of the pin to set
   */
  public void setName(String pName) {
    mName = pName;
  }

  /**
   * @return the property
   */
  public PinProperty getProperty() {
    return mProperty;
  }

  /**
   * @param property
   *          the property to set
   */
  public void setProperty(PinProperty pProperty) {
    mProperty = pProperty;
  }

  /**
   * @return the value
   */
  public PinValue getValue() {
    return mValue;
  }

  /**
   * @param pValue
   *          the value to set
   */
  public void setValue(PinValue pValue) {
    mValue = pValue;
  }

  /**
   * @return the AndroidThingsBoard
   */
  public AndroidThingsBoard getAndroidThingsBoard() {
    return mAndroidThingsBoard;
  }

  /**
   * @param pAndroidThingsBoard
   *          the AndroidThingsBoard to set
   */
  public void setAndroidThingsBoard(AndroidThingsBoard pAndroidThingsBoard) {
    mAndroidThingsBoard = pAndroidThingsBoard;
  }

  /**
   * @return the Direction
   */
  public PinDirection getDirection() {
    return mDirection;
  }

  /**
   * @param pDirection
   *          the direction to set
   */
  public void setDirection(PinDirection pDirection) {
    mDirection = pDirection;
  }

  /**
   * @return the label
   */
  public String getLabel() {
    return mLabel;
  }

  /**
   * @param pLabel
   *          the label to set
   */
  public void setLabel(String pLabel) {
    mLabel = pLabel;
  }

  public boolean isInvalid() {
    // TODO Auto-generated method stub
    return false;
  }

  @Override
  public String toString() {
    return "HeaderPin [number:" + mName + ", property:" + mProperty.toString()
        + ", value:" + mValue.toString() + ", androidThingsBoard:"
        + mAndroidThingsBoard.getName() + ", direction:" + mDirection.toString()
        + ", label: " + mLabel + "]";
  }

}

{'fraction_non_alphanumeric': 0.10460959548447789, 'fraction_numerical': 0.0, 'mean_word_length': 2.651098901098901, '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': '5323061', 'n_tokens_mistral': 1666, 'n_tokens_neox': 1587, 'n_words': 431}