<commit_before>package objects;

import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
/**
 * Object representing an assignment for a course
 * 
 * @author <NAME>
 * @date 01 October, 2013
 */
public class Assignment {
    private String name;
    private int worth;
    private Map<String, Double> grades = new HashMap<String, Double>();
    
    /**
     * Creates an Assignment object
     * 
     * @param an	Name of the assignment
     * @param val	Maximum point value of the assignment
     */
    public Assignment(String an, int val) {
        name = an;
        worth = val;
    }
    
    /**
     * Sets a name to the name field
     * 
     * @param an	Sets the name of the assignment
     */
    public void setName(String an) {
    	name = an;    	
    }
    
    /**
     * Sets the maximum point value for the assignment
     * 
     * @param val	Maximum point value of the assignment
     */
    public void setWorth(int val) {
    	worth = val;
    }
    
    /**
     * Fetches the name field of the assignment
     * 
     * @return		The title of the assignment
     */
    public String getName() {
        return name;
    }
    
    /**
     * Fetches the maximum point value for the assignment
     * 
     * @return		Maximum point value of the assignment
     */
    public int getWorth() {
        return worth;
    }
    
    /**
     * Sets the grade for the student by the students pseudo name
     * 
     * @param pseudoName	The pseudo name of the student
     * @param grade			The score the student is being assigned for the assignment
     * @return				The previous value associated to the key.
     */
    public Double setGrade(String pseudoName, Double grade) {
    	return grades.put(pseudoName, grade);
    }
    
    /**
     * Gets the grade for the requested student
     * 
     * @param pseudoName	The pseudo name of the student
     * @return				Double value representing the students grade. Returns
     * 						null if the mapping is empty, or if the pseudo name 
     * 						does not exist as a key.
     */
    public Double getGrade(String pseudoName) {
    	return grades.get(pseudoName);
    }
    
    /**
     * Gets a collection of all the values in the grades HashMap
     * Useful for dealing with statistical analysis
     * 
     * @return		Collection of values in the grades HashMap
     */
    public Collection<Double> getAllGrades() {
    	return grades.values();
    }
    
    public Double getClassAssignmentAverage{
        assignmentGradeSum = 0;
        for(Double grade : grades.values()){
            assignmentGradeSum += grade;
        }
        
        return (assignmentGradeSum / assignment.getWorth()) /
    }
    
}<commit_msg>Removed unnecessary method I previously added in Assignment.java<commit_after>package objects;

import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
/**
 * Object representing an assignment for a course
 * 
 * @author <NAME>
 * @date 01 October, 2013
 */
public class Assignment {
    private String name;
    private int worth;
    private Map<String, Double> grades = new HashMap<String, Double>();
    
    /**
     * Creates an Assignment object
     * 
     * @param an	Name of the assignment
     * @param val	Maximum point value of the assignment
     */
    public Assignment(String an, int val) {
        name = an;
        worth = val;
    }
    
    /**
     * Sets a name to the name field
     * 
     * @param an	Sets the name of the assignment
     */
    public void setName(String an) {
    	name = an;    	
    }
    
    /**
     * Sets the maximum point value for the assignment
     * 
     * @param val	Maximum point value of the assignment
     */
    public void setWorth(int val) {
    	worth = val;
    }
    
    /**
     * Fetches the name field of the assignment
     * 
     * @return		The title of the assignment
     */
    public String getName() {
        return name;
    }
    
    /**
     * Fetches the maximum point value for the assignment
     * 
     * @return		Maximum point value of the assignment
     */
    public int getWorth() {
        return worth;
    }
    
    /**
     * Sets the grade for the student by the students pseudo name
     * 
     * @param pseudoName	The pseudo name of the student
     * @param grade			The score the student is being assigned for the assignment
     * @return				The previous value associated to the key.
     */
    public Double setGrade(String pseudoName, Double grade) {
    	return grades.put(pseudoName, grade);
    }
    
    /**
     * Gets the grade for the requested student
     * 
     * @param pseudoName	The pseudo name of the student
     * @return				Double value representing the students grade. Returns
     * 						null if the mapping is empty, or if the pseudo name 
     * 						does not exist as a key.
     */
    public Double getGrade(String pseudoName) {
    	return grades.get(pseudoName);
    }
    
    /**
     * Gets a collection of all the values in the grades HashMap
     * Useful for dealing with statistical analysis
     * 
     * @return		Collection of values in the grades HashMap
     */
    public Collection<Double> getAllGrades() {
    	return grades.values();
    }
}
{'fraction_non_alphanumeric': 0.07563345399123643, 'fraction_numerical': 0.0024766622213755, 'mean_word_length': 2.0172413793103448, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1976981', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1438, 'n_words': 558}