<commit_before>(function() {
    'use strict';

    let _randomShot = () => {
            return Math.floor(Math.random() * (10 - 1) + 1);
        },
        _responseObj = {
            parent: null,
            box: null,
            tr: [],
            td: [],
            shooted: false
        },
        _prefixes = ['tr', 'td'],
        _setResponseObj = (obj) => {
            let trPrefix = _prefixes[0],
                tdPrefix = _prefixes[1];

            if (obj === 'response') {
                _responseObj.parent = trPrefix + _randomShot();
                _responseObj.box = tdPrefix + _randomShot();
                return _responseObj;
            } else {
                if (obj.shooted) {
                    let shootedProm = new Promise((resolve) => {
                        resolve(_setShootedBox(obj));
                    });
                    shootedProm.then((result) => {
                        obj = result;
                    });
                    return obj;
                } else {
                    if (_objShooted.hasOwnProperty('prev') && _objShooted.prev === 1) {
                        let shootedProm = new Promise((resolve) => {
                            resolve(_setShootedBox(obj));
                        });
                        shootedProm.then((result) => {
                            obj = result;
                        });
                        return obj;
                    } else {
                        let unShootedProm = new Promise((resolve) => {
                            resolve(_setUnShootedBox(obj));
                        });
                        unShootedProm.then((result) => {
                            obj = result;
                        });
                        return obj;
                    }
                }
            }
        },
        _objShooted = {
            parent: [],
            box: [],
            direction: null,
            prev: 0
        },
        _setShootedBox = (obj) => {
            let trNum = (obj) ? obj.parent.slice(2, 3) : null,
                tdNum = (obj) ? obj.box.slice(2, 3) : null,
                directions = ['top', 'bottom', 'left', 'right'],
                result = null,
                getTopBottomPosition = (pos) => {
                    if (trNum && (parseFloat(trNum) - 1) > 0) {
                        let newNum = (pos === 'top') ? parseFloat(trNum) - 1 : parseFloat(trNum) + 1,
                            newTr = (newNum) ? _prefixes[0] + newNum : null,
                            self = this;
                        if (newTr) {
                            let trKeys = Array.from(obj.tr, (x, i) => (x === newTr) ? i : -1),
                                resObj = Array.from(trKeys).forEach((x) => {
                                    if (x !== -1) {
                                        if (obj.td[x] !== obj.box) {
                                            return obj.box;
                                        } else {
                                            return obj.box = false;
                                        }
                                    }
                                });
                        } else {
                            obj.box = false;
                        }
                        return {
                            value: {
                                'tr': (newTr) ? newTr : obj.parent,
                                'td': obj.box,
                                'direction': pos
                            },
                            done: false
                        };
                    } else {
                        let _parent = () => {
                            return (pos === 'top' && (parseFloat(trNum) - 1) > 0) ?
                                _prefixes[0] + (parseFloat(trNum) - 1) :
                                _prefixes[0] + (parseFloat(trNum) + 1);
                        };
                        return {
                            value: {
                                'tr': _parent(),<commit_msg>Variable removed<commit_after>(function() {
    'use strict';

    let _randomShot = () => {
            return Math.floor(Math.random() * (10 - 1) + 1);
        },
        _responseObj = {
            parent: null,
            box: null,
            tr: [],
            td: [],
            shooted: false
        },
        _prefixes = ['tr', 'td'],
        _setResponseObj = (obj) => {
            let trPrefix = _prefixes[0],
                tdPrefix = _prefixes[1];

            if (obj === 'response') {
                _responseObj.parent = trPrefix + _randomShot();
                _responseObj.box = tdPrefix + _randomShot();
                return _responseObj;
            } else {
                if (obj.shooted) {
                    let shootedProm = new Promise((resolve) => {
                        resolve(_setShootedBox(obj));
                    });
                    shootedProm.then((result) => {
                        obj = result;
                    });
                    return obj;
                } else {
                    if (_objShooted.hasOwnProperty('prev') && _objShooted.prev === 1) {
                        let shootedProm = new Promise((resolve) => {
                            resolve(_setShootedBox(obj));
                        });
                        shootedProm.then((result) => {
                            obj = result;
                        });
                        return obj;
                    } else {
                        let unShootedProm = new Promise((resolve) => {
                            resolve(_setUnShootedBox(obj));
                        });
                        unShootedProm.then((result) => {
                            obj = result;
                        });
                        return obj;
                    }
                }
            }
        },
        _objShooted = {
            parent: [],
            box: [],
            direction: null,
            prev: 0
        },
        _setShootedBox = (obj) => {
            let trNum = (obj) ? obj.parent.slice(2, 3) : null,
                tdNum = (obj) ? obj.box.slice(2, 3) : null,
                directions = ['top', 'bottom', 'left', 'right'],
                result = null,
                getTopBottomPosition = (pos) => {
                    if (trNum && (parseFloat(trNum) - 1) > 0) {
                        let newNum = (pos === 'top') ? parseFloat(trNum) - 1 : parseFloat(trNum) + 1,
                            newTr = (newNum) ? _prefixes[0] + newNum : null;
                        if (newTr) {
                            let trKeys = Array.from(obj.tr, (x, i) => (x === newTr) ? i : -1),
                                resObj = Array.from(trKeys).forEach((x) => {
                                    if (x !== -1) {
                                        if (obj.td[x] !== obj.box) {
                                            return obj.box;
                                        } else {
                                            return obj.box = false;
                                        }
                                    }
                                });
                        } else {
                            obj.box = false;
                        }
                        return {
                            value: {
                                'tr': (newTr) ? newTr : obj.parent,
                                'td': obj.box,
                                'direction': pos
                            },
                            done: false
                        };
                    } else {
                        let _parent = () => {
                            return (pos === 'top' && (parseFloat(trNum) - 1) > 0) ?
                                _prefixes[0] + (parseFloat(trNum) - 1) :
                                _prefixes[0] + (parseFloat(trNum) + 1);
                        };
                        return {
                            value: {
                                'tr': _parent(),
{'fraction_non_alphanumeric': 0.11195866141732283, 'fraction_numerical': 0.006151574803149607, 'mean_word_length': 0.6995609450135898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '334735', 'n_tokens_mistral': 1977, 'n_tokens_neox': 1840, 'n_words': 372}