<commit_before>package com.csci4448.MediaManagementSystem.model.media;

import java.util.ArrayList;
import java.util.HashMap;

public class SystemInventory {

    private static SystemInventory systemInventory = null;

    private ArrayList<Media> mediaList;

    private HashMap<String, ArrayList<String>> typeGenreMap;

    private SystemInventory() {}

    public static synchronized SystemInventory getSystemInventory() {
        if (systemInventory == null)
            systemInventory = new SystemInventory();
        return systemInventory;
    }

    public ArrayList<Media> searchInventory(String searchText){

    }

    public void addMedia(Media media){

    }

    public void deleteMedia(Media media){

    }

    public void addGenre(String genre){

    }

    public void addType(String type, String genre){

    }

}
<commit_msg>created addMedia, searchInventory, and deleteMedia functions<commit_after>package com.csci4448.MediaManagementSystem.model.media;

import java.util.ArrayList;
import java.util.HashMap;

public class SystemInventory {

    private static SystemInventory systemInventory = null;

    private ArrayList<Media> mediaList;

    private HashMap<String, ArrayList<String>> typeGenreMap;

    private SystemInventory() {}

    public static synchronized SystemInventory getSystemInventory() {
        if (systemInventory == null)
            systemInventory = new SystemInventory();
        return systemInventory;
    }

    public Media searchInventory(String searchText){
        for(Media media : mediaList){
            if (media.getTitle().equals(searchText)){
                return media;
            }
        }
        return null;
    }

    public void addMedia(Media media){
        mediaList.add(media);
    }

    public void deleteMedia(Media media){
        for(Media m: mediaList){
            if(m.getTitle().equals(media.getTitle())){
                mediaList.remove(media);
            }
        }
    }

    public void addGenre(String genre){

    }

    public void addType(String type, String genre){

    }

}

{'fraction_non_alphanumeric': 0.08530120481927711, 'fraction_numerical': 0.0038554216867469878, 'mean_word_length': 2.873134328358209, 'pattern_counts': {'":': 0, '<': 10, '<?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': '3146626', 'n_tokens_mistral': 573, 'n_tokens_neox': 539, 'n_words': 136}