<commit_before>// private property keys
const FRAGMENTS = Symbol('fragments');
const STEPS = Symbol('fragments');


export default class Sequence {

    constructor() {
        this[FRAGMENTS] = new Map();
        this[STEPS] = new Set();
    }

    /*
     * getter(s)/setter(s)
     */
    getFragment(key) {
        return this[FRAGMENTS].get(key);
    }

    setFragment(key, object) {
        this[FRAGMENTS].set(key, object);
    }

    setStep(callback) {
        this[STEPS].set(callback);
    }

    getUrl(url) {
        return browser.get(url);
    }

    /*
     * run method(s)
     */
    async runSequence() {
        for (let step of this[STEPS]) {
            await step();
        }

        return await Promise.resolve();
    }

}<commit_msg>changed some variable names and implementation details for runSequence<commit_after>// private property keys
const FRAGMENTS = Symbol('Fragments to reference for testing');
const STEPS = Symbol('steps to perform in the order they are defined');


export default class Sequence {

    constructor() {
        this[FRAGMENTS] = new Map();
        this[STEPS] = [];
    }

    /*
     * getter(s)/setter(s)
     */
    getFragment(key) {
        return this[FRAGMENTS].get(key);
    }

    setFragment(key, fragment) {
        this[FRAGMENTS].set(key, fragment);
    }

    setStep(step) {
        this[STEPS].push(step);
    }

    async getUrl(url) {
        await browser.get(url);
    }

    /*
     * run method(s)
     */
    async runSequence() {
        await this[STEPS].reduce((promise, step) => promise.then(step()), Promise.resolve());
    }

}
{'fraction_non_alphanumeric': 0.1393188854489164, 'fraction_numerical': 0.0, 'mean_word_length': 2.244979919678715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4289360', 'n_tokens_mistral': 527, 'n_tokens_neox': 497, 'n_words': 110}