<commit_before>/*jslint forin:true sub:true anon:true, sloppy:true, stupid:true nomen:true, node:true continue:true*/

/*
 * Copyright (c) 2012, Yahoo! Inc.  All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */

var log4js = require("log4js");
var Arrow = require("../interface/arrow");
var fs = require('fs');
var path = require('path');
var FileUtil = require("../util/fileutil");
var SessionUtil = require("./sessionUtil");
var SauceLabsUtil = require("../util/sauceLabsUtil");
var CapabilityManager = require("../util/capabilityManager");
var existsSync = fs.existsSync || path.existsSync;
var PhantomJsSetup = require("../util/phantomJsSetup.js");

function TestSession(config, args, sessionId) {
    this.logger = log4js.getLogger("TestSession");
    this.args = args;
    this.config = config;
    this.sessionId = sessionId;
    this.driverName = args.driver;
    this.controller = args.controller;
    this.testConfig = args.config || {};
    this.retryCount = 0;
    this.screenShotPaths = [];
    if (args.params) {
        this.testParams = args.params;
    } else {
        this.testParams = {};
    }

    if (args.relativePath) {
        this.testConfig.relativePath = args.relativePath;
    }

    if (args.descriptorPath) {
        this.descriptorPath = args.descriptorPath;
    }

    if (args.qualifiedDescriptorPath) {
        this.qualifiedDescriptorPath = args.qualifiedDescriptorPath;
    }
<commit_msg>Fixing require<commit_after>/*jslint forin:true sub:true anon:true, sloppy:true, stupid:true nomen:true, node:true continue:true*/

/*
 * Copyright (c) 2012, Yahoo! Inc.  All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */

var log4js = require("log4js");
var Arrow = require("../interface/arrow");
var fs = require('fs');
var path = require('path');
var FileUtil = require("../util/fileutil");
var SessionUtil = require("./sessionUtil");
var SauceLabsUtil = require("../util/sauceLabsUtil");
var CapabilityManager = require("../util/capabilitymanager");
var existsSync = fs.existsSync || path.existsSync;
var PhantomJsSetup = require("../util/phantomJsSetup.js");

function TestSession(config, args, sessionId) {
    this.logger = log4js.getLogger("TestSession");
    this.args = args;
    this.config = config;
    this.sessionId = sessionId;
    this.driverName = args.driver;
    this.controller = args.controller;
    this.testConfig = args.config || {};
    this.retryCount = 0;
    this.screenShotPaths = [];
    if (args.params) {
        this.testParams = args.params;
    } else {
        this.testParams = {};
    }

    if (args.relativePath) {
        this.testConfig.relativePath = args.relativePath;
    }

    if (args.descriptorPath) {
        this.descriptorPath = args.descriptorPath;
    }

    if (args.qualifiedDescriptorPath) {
        this.qualifiedDescriptorPath = args.qualifiedDescriptorPath;
    }

{'fraction_non_alphanumeric': 0.1376545272302038, 'fraction_numerical': 0.0053458068827263614, 'mean_word_length': 3.536363636363636, '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': '4708517', 'n_tokens_mistral': 925, 'n_tokens_neox': 892, 'n_words': 203}