<commit_before>"use strict";

var Assert = require("assert");
var Client = require("./../lib/index");
var testAuth = require("./../testAuth.json");

var github = new Client({});

github.authenticate({
    type: "oauth",
    token: testAuth["token"]
});

github.getAllPages(github.activity.getStarredRepos, { per_page: 100 }, function(err, res) {
    console.log(res.map(function(repo) { return repo['full_name']; }));
    console.log(res.length);
});<commit_msg>github.getAllPages clarification<commit_after>"use strict";

var Assert = require("assert");
var Client = require("./../lib/index");
var testAuth = require("./../testAuth.json");

var github = new Client({});

github.authenticate({
    type: "oauth",
    token: testAuth["token"]
});

// NOTE: github.getAllPages is a util method to get all pages without having to worry about pagination
github.getAllPages(github.activity.getStarredRepos, { per_page: 100 }, function(err, res) {
    console.log(res.map(function(repo) { return repo['full_name']; }));
    console.log(res.length);
});
{'fraction_non_alphanumeric': 0.18451242829827916, 'fraction_numerical': 0.0057361376673040155, 'mean_word_length': 4.7845303867403315, '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': '5488729', 'n_tokens_mistral': 338, 'n_tokens_neox': 327, 'n_words': 75}