<commit_before>package edu.ucsb.cs56.w14.lab05.lesleykhuu;
public class NBAPlayer {
    private int jerseyNum; // jerseyNum: numbers under the bar code, e.g. 3
    // //note: String because leading zeros may be significant

    private String name; // name of the NBA Player, e.g "<NAME>"
    
    /**
       Two-arg constructor
       @param jerseyNum  player's jersey number, e.g. 3
       @param name name of the NBA Player, e.g "<NAME>"
    */

    public NBAPlayer(int jerseyNum, String name) {
      // @@@ STUB so do nothing
        this.jerseyNum = jerseyNum;
        this.name = name;
    }

    /** 
	Getter for jerseyNum
	@return jerseyNum, player's jersey number, e.g. 3
    */

    public int getJerseyNum () { 

        return this.jerseyNum; 
    }

    /** 
	Getter for name
	@return name of the NBA Player, e.g "<NAME>"
    */
    public String getName () {
        return "<NAME>"; 
    }


    /**
       convert to String representation in format [jerseyNum,name]
       e.g. <code>[3,"<NAME>"]</code>

       @return formatted string, [jerseyNum,name]
    */

    @Override
    public String toString() {
	//return super.toString(); // in stub, return super class (as if not overridden)
	// OR: return "[STUB]";     
        return "[" + this.jerseyNum + "," + this.name + "]";

    }


    /** hashcode to be used for hash tables, etc.
	based only on the jerseyNum value.
     */

    @Override
    public int hashCode() {
    //    return super.hashCode(); // in stub, return super class (as if not overridden)
	// OR: return 42; // WORST POSSIBLE HASH CODE IN PRACTICE; ok for testing tests
    //    return (this.getJerseyNum()).hashCode();
        Integer i = new Integer(this.getJerseyNum());
        int retval = i.hashCode();
        return retval;

    }

    /** compare for equality based on jerseyNum
	@return true if parameter is a NBA Player with same jerseyNum, otherwise false
     */

    @Override
    public boolean equals(Object o) {
        //return super.equals(o); // as if not overridden
        
    // OR: return false;
	// OR: return true;
	// Note: there is not good "always wrong" stub value for a boolean method
	//   It will be "correct" half the time by accident.
        if (! (o instanceof NBAPlayer))
            return false;
        NBAPlayer x = (NBAPlayer) o;
        return ( this.getJerseyNum() == (x.getJerseyNum()) && this.getName().equals(x.getName()));
    }

}<commit_msg>completed main in NBAPlayer.java<commit_after>package edu.ucsb.cs56.w14.lab05.lesleykhuu;
public class NBAPlayer {
    private int jerseyNum; // jerseyNum: numbers under the bar code, e.g. 3
    // //note: String because leading zeros may be significant

    private String name; // name of the NBA Player, e.g "<NAME>"
    
    /**
       Two-arg constructor
       @param jerseyNum  player's jersey number, e.g. 3
       @param name name of the NBA Player, e.g "<NAME>"
    */

    public NBAPlayer(int jerseyNum, String name) {
      // @@@ STUB so do nothing
        this.jerseyNum = jerseyNum;
        this.name = name;
    }

    /** 
	Getter for jerseyNum
	@return jerseyNum, player's jersey number, e.g. 3
    */

    public int getJerseyNum () { 

        return this.jerseyNum; 
    }

    /** 
	Getter for name
	@return name of the NBA Player, e.g "<NAME>"
    */
    public String getName () {
        return "<NAME>"; 
    }


    /**
       convert to String representation in format [jerseyNum,name]
       e.g. <code>[3,"<NAME>"]</code>

       @return formatted string, [jerseyNum,name]
    */

    @Override
    public String toString() {
	//return super.toString(); // in stub, return super class (as if not overridden)
	// OR: return "[STUB]";     
        return "[" + this.jerseyNum + "," + this.name + "]";

    }


    /** hashcode to be used for hash tables, etc.
	based only on the jerseyNum value.
     */

    @Override
    public int hashCode() {
    //    return super.hashCode(); // in stub, return super class (as if not overridden)
	// OR: return 42; // WORST POSSIBLE HASH CODE IN PRACTICE; ok for testing tests
    //    return (this.getJerseyNum()).hashCode();
        Integer i = new Integer(this.getJerseyNum());
        int retval = i.hashCode();
        return retval;

    }

    /** compare for equality based on jerseyNum
	@return true if parameter is a NBA Player with same jerseyNum, otherwise false
     */

    @Override
    public boolean equals(Object o) {
        //return super.equals(o); // as if not overridden
        
    // OR: return false;
	// OR: return true;
	// Note: there is not good "always wrong" stub value for a boolean method
	//   It will be "correct" half the time by accident.
        if (! (o instanceof NBAPlayer))
            return false;
        NBAPlayer x = (NBAPlayer) o;
        return ( this.getJerseyNum() == (x.getJerseyNum()) && this.getName().equals(x.getName()));
    }
    
    public static void main(String [] args){
        NBAPlayer player = new NBAPlayer(3,"<NAME>");
        System.out.println(player.toString());

    }

}
{'fraction_non_alphanumeric': 0.12265084075173097, 'fraction_numerical': 0.004945598417408506, 'mean_word_length': 2.234804862444018, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '3745199', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1504, 'n_words': 523}