<commit_before>using UnityEngine;
using System.Collections;


public class LevelGrading : MonoBehaviour {
        
        public GameManager manager;
        
        public float[] finalGrading = new float[4]; // This is the final score you recieve
        public char finalScoreLetter; // 
        public float finalGradeScore;
        
        public float[] timeGrading = new float[4]; // 4 for the 4 grades (A, B, C, D)
        float timeGradingScore;
        
        
        public int[] deathGrading = new int[4]; // 4 for the 4 grades (A, B, C, D)
        int deathGradingScore;
        
        char timeGradingLetter;
        char deathGradingLetter;
        
        
        void Start() {
                
        }
        
        void Update() {
                //Probably would be empty     
        }
        
        void OnGUI() {
                // I might want to do the GUI
        }
        
        void StartGrading () {
                
        }
        
        void GradeTime(float givinTime) {
                // For A
                if() {
                        
                }
                // For B
                else if() {
                        
                }
                // For C
                else if() {
                        
                }
                // For D
                else if () {
                        
                }
                else {
                        
                }
                
        }
        
        void GradeDeaths(int givenDeaths) {
                // For A
                if() {
                        
                }
                // For B
                else if() {
                        
                }
                // For C
                else if() {
                        
                }
                // For D
                else if () {
                        
                }
                else {
                        
                }
        }
        
        void GradeFinal() {
                
        }
        
}
<commit_msg>Finish LevelGrading Script<commit_after>using UnityEngine;
using System.Collections;


public class LevelGrading : MonoBehaviour {
        
        public GameManager manager;
        int currentLevel = manager.GetCurrentLevel();
        
        public float[] finalGrading = new float[4]; // This is the final score you recieve
        public char finalScoreLetter; // 
        public float fgs; // for final grading score
        
        public float[] timeGrading = new float[4]; // 4 for the 4 grades (A, B, C, D)
        int tgs; // For time grading score
        float timeGiven = PlayerPrefs.GetFloat("TempExactScore");
        
        public int[] deathGrading = new int[4]; // 4 for the 4 grades (A, B, C, D)
        int dgs; /// for death grading score
        int deathsGiven = PlayerPrefs.GetInt("TempDeaths");
        
        char timeGradingLetter;
        char deathGradingLetter;
        
        
        void Start() {
                GradeTime();
                GradeDeaths();
                GradeFinal();
        }
        
        void Update() {
                //Probably would be empty     
        }
        
        void OnGUI() {
                // I might want to do the GUI
        }
        
        
        
        void GradeTime() {
                // For A
                if(timeGiven < timeGrading[1]) {
                        tgs = 5
                }
                // For B
                else if(timeGiven < timeGrading[2]) {
                        tgs = 4
                }
                // For C
                else if(timeGiven < timeGrading[3]) {
                        tgs = 3
                }
                // For D
                else if (timeGiven < timeGrading[4]) {
                        tgs = 2
                }
                else {
                        tgs = 1
                }
                
        }
        
        void GradeDeaths() {
                // For A
                if(deathsGiven < deathGrading[1]) {
                        dgs = 5
                }
                // For B
                else if(eathsGiven < deathGrading[2]) {
                        dgs = 4
                }
                // For C
                else if(eathsGiven < deathGrading[3]) {
                        dgs = 3
                }
                // For D
                else if (eathsGiven < deathGrading[4]) {
                        dgs = 2
                }
                else {
                        dgs = 1
                }
        }
        
        void GradeFinal() {
                fgs = (tgs + dgs) / 2;
                // For A
                if(fgs > 4) {
                        finalScoreLetter = 'A';
                }
                // For B
                else if(fgs > 3) {
                        finalScoreLetter = 'B';
                }
                // For C
                else if(fgs > 2) {
                        finalScoreLetter = 'C';
                }
                // For D
                else if (fgs > 1) {
                        finalScoreLetter = 'D';
                }
                else {
                        finalScoreLetter = 'F';
                }
        }
        
}

{'fraction_non_alphanumeric': 0.07401129943502825, 'fraction_numerical': 0.006967984934086629, 'mean_word_length': 0.6643685365089314, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1200471', 'n_tokens_mistral': 1378, 'n_tokens_neox': 1208, 'n_words': 335}