<commit_before>const YouTube = require('simple-youtube-api');
const Api = new YouTube('  Y  o  u  r     A  p  i     K  e  y  ');

Api.playlistById('PL2BN1Zd8U_MsyMeK8r9Vdv1lnQGtoJaSa')
    .then(results => {
        console.log(`The playlist's title is ${results[0].title}`);
    })
    .catch(console.log);


/*

    - - - - - - - - - - - - - - - - - - - -
        playlistById:

        Parameters:
        - Playlist ID

        Returns:
        - Promise <Array, Error>

        Properties:
        - title
        - id
        - description
        - url
        - publishedAt
        - channel
          > title
          > id

*/<commit_msg>Add getVideos to playlistById<commit_after>const YouTube = require('simple-youtube-api');
const Api = new YouTube('  Y  o  u  r     A  p  i     K  e  y  ');

Api.playlistById('PL2BN1Zd8U_MsyMeK8r9Vdv1lnQGtoJaSa')
    .then(results => {
        console.log(`The playlist's title is ${results[0].title}`);

        results[0].getVideos()
            .then(videos => {
                console.log(`This playlist has ${videos.length} videos.`);
            })
            .catch(console.log);
    })
    .catch(console.log);


/*

    - - - - - - - - - - - - - - - - - - - -
        playlistById:

        Parameters:
        - Playlist ID

        Returns:
        - Promise <Array, Error>

        Properties:
        - title
        - id
        - description
        - url
        - publishedAt
        - channel
          > title
          > id

        Functions:
        - getVideos
          >  Returns:
          >  - Promise <Array, Error>

*/
{'fraction_non_alphanumeric': 0.13337507827175954, 'fraction_numerical': 0.00939261114589856, 'mean_word_length': 1.2893982808022924, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2231824', 'n_tokens_mistral': 542, 'n_tokens_neox': 521, 'n_words': 101}