<commit_before>'use strict';

/**
 * RepoOptions are the Github repository options.
 * @typedef {Object} RepoOptions
 * @property {Boolean} private
 * @property {Boolean} has_issues
 * @property {Boolean} has_wiki
 */

/**
 * @param {Object} Github - a logged in Octokat instance
 * @param {Array} names - an {Array} of {String} with repo names
 * @param {RepoOptions} options - options to be used with repo
 * @returns {Promise} promise will resolve when all repos have been created
 */
module.exports = function (Github, names, options) {
    const promises = [];

    // for each student
    for (let index = 0; index < names.length; index++) {
        // gather the promises
        promises.push(
            // create a repository
            Github.me.repos.create({
                name: names[index],<commit_msg>fix JSDoc for task<commit_after>/**
 * @module CreateGithubRepositories
 */
'use strict';

/**
 * RepoOptions are the Github repository options.
 * @typedef {Object} RepoOptions
 * @property {Boolean} private
 * @property {Boolean} has_issues
 * @property {Boolean} has_wiki
 */

/**
 * Takes in a list of names, and creates an empty repo for each name
 * @function createRepositories
 * @param {Object} Github - a logged in Octokat instance
 * @param {Array} names - an {Array} of {String} with repo names
 * @param {RepoOptions} options - options to be used with repo
 * @returns {Promise} promise will resolve when all repos have been created
 */
module.exports = function (Github, names, options) {
    const promises = [];

    // for each student
    for (let index = 0; index < names.length; index++) {
        // gather the promises
        promises.push(
            // create a repository
            Github.me.repos.create({
                name: names[index],
{'fraction_non_alphanumeric': 0.11216517857142858, 'fraction_numerical': 0.0011160714285714285, 'mean_word_length': 2.923413566739606, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4039964', 'n_tokens_mistral': 503, 'n_tokens_neox': 494, 'n_words': 191}