<commit_before>package tonality;

import org.junit.*;
import static jm.constants.Pitches.*;
import static tonality.Tonality.Mode.*;

public class TonalityTest {
    @Test
    public void CMajorProcessing() {
        Assert.assertEquals(new Tonality(C4, MAJOR, false), new Tonality(0, 0));
    }
    @Test
    public void AMinorProcessing() {
        Assert.assertEquals(new Tonality(A4, MINOR, false), new Tonality(0, 1));
    }
}<commit_msg>tests: add all tests concerning tonalities<commit_after>package tonality;

import org.junit.*;
import static jm.constants.Pitches.*;
import static tonality.Tonality.Mode.*;

public class TonalityTest {

    // C Major & A minor (no alteration).
    @Test
    public void CMajorProcessing() { Assert.assertEquals(new Tonality(C4, MAJOR, false), new Tonality(0, 0)); }
    @Test
    public void AMinorProcessing() { Assert.assertEquals(new Tonality(A4, MINOR, false), new Tonality(0, 1)); }

    // All Major Sharp Tonalities.
    @Test
    public void GMajorProcessing() { Assert.assertEquals(new Tonality(G4, MAJOR, false), new Tonality(1, 0)); }
    @Test
    public void DMajorProcessing() { Assert.assertEquals(new Tonality(D4, MAJOR, false), new Tonality(2, 0)); }
    @Test
    public void AMajorProcessing() { Assert.assertEquals(new Tonality(A4, MAJOR, false), new Tonality(3, 0)); }
    @Test
    public void EMajorProcessing() { Assert.assertEquals(new Tonality(E4, MAJOR, false), new Tonality(4, 0)); }
    @Test
    public void BMajorProcessing() { Assert.assertEquals(new Tonality(B4, MAJOR, false), new Tonality(5, 0)); }
    @Test
    public void FSharpMajorProcessing() { Assert.assertEquals(new Tonality(FS4, MAJOR, false), new Tonality(6, 0)); }
    @Test
    public void CSharpMajorProcessing() { Assert.assertEquals(new Tonality(CS4, MAJOR, false), new Tonality(7, 0)); }

    // All Minor Sharp Tonalities.
    @Test
    public void EMinorProcessing() { Assert.assertEquals(new Tonality(E4, MINOR, false), new Tonality(1, 1)); }
    @Test
    public void BMinorProcessing() { Assert.assertEquals(new Tonality(B4, MINOR, false), new Tonality(2, 1)); }
    @Test
    public void FSharpMinorProcessing() { Assert.assertEquals(new Tonality(FS4, MINOR, false), new Tonality(3, 1)); }
    @Test
    public void CSharpMinorProcessing() { Assert.assertEquals(new Tonality(CS4, MINOR, false), new Tonality(4, 1)); }
    @Test
    public void GSharpMinorProcessing() { Assert.assertEquals(new Tonality(G4, MINOR, false), new Tonality(5, 1)); }
    @Test
    public void DSharpMinorProcessing() { Assert.assertEquals(new Tonality(D4, MINOR, false), new Tonality(6, 1)); }
    @Test
    public void ASharpMinorProcessing() { Assert.assertEquals(new Tonality(A4, MINOR, false), new Tonality(7, 1)); }

    // All Major Flat Tonalities.
    @Test
    public void FMajorProcessing() { Assert.assertEquals(new Tonality(F4, MAJOR, false), new Tonality(-1, 0)); }
    @Test
    public void BFlatMajorProcessing() { Assert.assertEquals(new Tonality(BF4, MAJOR, false), new Tonality(-2, 0)); }
    @Test
    public void EFlatMajorProcessing() { Assert.assertEquals(new Tonality(EF4, MAJOR, false), new Tonality(-3, 0)); }
    @Test
    public void AFlatMajorProcessing() { Assert.assertEquals(new Tonality(AF4, MAJOR, false), new Tonality(-4, 0)); }
    @Test
    public void DFlatMajorProcessing() { Assert.assertEquals(new Tonality(DF4, MAJOR, false), new Tonality(-5, 0)); }
    @Test
    public void GFlatMajorProcessing() { Assert.assertEquals(new Tonality(GF4, MAJOR, false), new Tonality(-6, 0)); }
    @Test
    public void CFlatMajorProcessing() { Assert.assertEquals(new Tonality(CF4, MAJOR, false), new Tonality(-7, 0)); }

    // All Minor Flat Tonalities.
    @Test
    public void DMinorProcessing() { Assert.assertEquals(new Tonality(D4, MINOR, false), new Tonality(-1, 1)); }
    @Test
    public void GMinorProcessing() { Assert.assertEquals(new Tonality(G4, MAJOR, false), new Tonality(-2, 1)); }
    @Test
    public void CMinorProcessing() { Assert.assertEquals(new Tonality(C4, MAJOR, false), new Tonality(-3, 1)); }
    @Test
    public void FMinorProcessing() { Assert.assertEquals(new Tonality(F4, MAJOR, false), new Tonality(-4, 1)); }
    @Test
    public void BFlatMinorProcessing() { Assert.assertEquals(new Tonality(BF4, MINOR, false), new Tonality(-5, 1)); }
    @Test
    public void EFlatMinorProcessing() { Assert.assertEquals(new Tonality(EF4, MINOR, false), new Tonality(-6, 1)); }
    @Test
    public void AFlatMinorProcessing() { Assert.assertEquals(new Tonality(AF4, MINOR, false), new Tonality(-7, 1)); }

}
{'fraction_non_alphanumeric': 0.13445195031597298, 'fraction_numerical': 0.020919590324689475, 'mean_word_length': 4.30635838150289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3607328', 'n_tokens_mistral': 1507, 'n_tokens_neox': 1448, 'n_words': 405}