<commit_before>package edu.gatech.oad.antlab.person;

/**
 *  A simple class for person 1
 *  returns their name and a
 *  modified string 
 *  
 *  @author Bob
 *  @version 1.1
 */
public class Person1 {
  /** Holds the persons real name */
  private String name;
  	/**
	 * The constructor, takes in the persons
	 * name
	 * @param pname the person's real name
	 */
  public Person1(String pname) {
    name = pname;
  }
  	/**
	 * This method should take the string
	 * input and return its characters rotated
	 * 2 positions.
	 * given "gtg123b" it should return
	 * "g123bgt".
	 *
	 * @param input the string to be modified
	 * @return the modified string
	 */
	private String calc(String input) {
	  //Person 1 put your implementation here
	  return null;
	}
	
	/**
	 * Return a string rep of this object
	 * that varies with an input string
	 *
	 * @param input the varying string
	 * @return the string representing the 
	 *         object
	 */
	public String toString(String input) {
	  return name + calc(input);
	}

}
<commit_msg>Modified Person1 with personal implementation<commit_after>package edu.gatech.oad.antlab.person;

/**
 *  A simple class for person 1
 *  returns their name and a
 *  modified string 
 *  
 *  @author <NAME>
 *  @version 1.2
 */

public class Person1 {
    /** Holds the persons real name */
    private String name;

    /**
     * The constructor, takes in the persons
     * name
     * @param pname the person's real name
     */
    public Person1(String pname) {
        name = pname;
    }

    /**
     * This method should take the string
     * input and return its characters rotated
     * 2 positions.
     * given "gtg123b" it should return
     * "g123bgt".
     *
     * @param input the string to be modified
     * @return the modified string
     */
    private String calc(String input) {
        if(input.length() > 2) {
            return input.substring(2,input.length()) 
                 + input.substring(0,2);
        } else {
            return input;
        }
    }
    
    /**
     * Return a string rep of this object
     * that varies with an input string
     *
     * @param input the varying string
     * @return the string representing the 
     *         object
     */
    public String toString(String input) {
      return name + " " + calc(input);
    }

    /**
     * Test the functionality of this class 
     * in a static method. Should print:
     * <NAME> a
     * <NAME> ab
     * <NAME> cab
     * <NAME> cdefg123ab
     */
    public static void main(String[] args) {
        Person1 evan = new Person1("<NAME>");
        System.out.println(evan.toString("a"));
        System.out.println(evan.toString("ab"));
        System.out.println(evan.toString("abc"));
        System.out.println(evan.toString("abcdefg123"));
    }

}

{'fraction_non_alphanumeric': 0.10379029401346086, 'fraction_numerical': 0.013460857244066596, 'mean_word_length': 2.1730337078651685, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '414258', 'n_tokens_mistral': 877, 'n_tokens_neox': 820, 'n_words': 281}