<commit_before>#include "libmockspotify.h"

// Playlist event
void
mocksp_event_playlist(event_type event, sp_playlist *p)
{
    if (!p->callbacks)
        return;

    sp_artist *artist = mocksp_artist_create("foo_", NULL, 1);
    sp_album *album = mocksp_album_create("bar_", artist, 2011, NULL, 0, 1, 1);
    sp_user *user = mocksp_user_create("foo", "", 0);
    sp_track *tracks[3] = {
        mocksp_track_create("foo", 1, &artist, album,
                            0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0),
        mocksp_track_create("bar", 1, &artist, album,
                            0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0),
        mocksp_track_create("baz", 1, &artist, album,
                            0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0),
    };
    int nums[3] = { 0, 1, 2 };

    switch (event) {
    case MOCK_PLAYLIST_TRACKS_ADDED:
        if (p->callbacks->tracks_added)
            p->callbacks->tracks_added(p, tracks, 3, 0, p->userdata);
        break;
    case MOCK_PLAYLIST_TRACKS_MOVED:
        if (p->callbacks->tracks_moved)<commit_msg>Update track mocking to pass the playable argument<commit_after>#include "libmockspotify.h"

// Playlist event
void
mocksp_event_playlist(event_type event, sp_playlist *p)
{
    if (!p->callbacks)
        return;

    sp_artist *artist = mocksp_artist_create("foo_", NULL, 1);
    sp_album *album = mocksp_album_create("bar_", artist, 2011, NULL, 0, 1, 1);
    sp_user *user = mocksp_user_create("foo", "", 0);
    sp_track *tracks[3] = {
        mocksp_track_create("foo", 1, &artist, album,
                            0, 0, 0, 0, 0, 1, 0, 0, 0, 0, NULL, 0, 0),
        mocksp_track_create("bar", 1, &artist, album,
                            0, 0, 0, 0, 0, 1, 0, 0, 0, 0, NULL, 0, 0),
        mocksp_track_create("baz", 1, &artist, album,
                            0, 0, 0, 0, 0, 1, 0, 0, 0, 0, NULL, 0, 0),
    };
    int nums[3] = { 0, 1, 2 };

    switch (event) {
    case MOCK_PLAYLIST_TRACKS_ADDED:
        if (p->callbacks->tracks_added)
            p->callbacks->tracks_added(p, tracks, 3, 0, p->userdata);
        break;
    case MOCK_PLAYLIST_TRACKS_MOVED:
        if (p->callbacks->tracks_moved)
{'fraction_non_alphanumeric': 0.1507607192254495, 'fraction_numerical': 0.05071461502996773, 'mean_word_length': 2.3436055469953776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '6556798', 'n_tokens_mistral': 930, 'n_tokens_neox': 829, 'n_words': 211}