<commit_before>import * as vscode from 'vscode';

import {AndroidBuild} from './AndroidBuild';
import {IOsBuild} from './IOsBuild';

var shell = require('shelljs');
var project_flag = ' --project-dir "' + vscode.workspace.rootPath +'"';
var config_file = vscode.workspace.rootPath+'/dist/vscode-appcelerator.config.json';
var lastCmd;

export abstract class AppceleratorBuild {

    static getConfigFile() {
        return config_file;
    }

    static executeAppcCommand(cmd) {
        lastCmd = cmd;
        let channel = vscode.window.createOutputChannel("appcelerator");
        let command = 'cd "' + vscode.workspace.rootPath + '" && appc ' + cmd + project_flag;
        console.log(command);
        var appc_command = shell.exec(command, {async: true});
        appc_command.stdout.on('data', function(data) {
            channel.append(data);
        });
        appc_command.stderr.on('data', function(data) {
            channel.append(data);
        });
        return new Promise((resolve, reject) => {
            channel.show()
            resolve();
        });
    }

    static executeAppcCommandSilent(cmd, callback) {
        let command = 'cd "' + vscode.workspace.rootPath + '" && appc ' + cmd;
        console.log(command);
        return shell.exec(command, callback);
    }

    static executeLastAppcCommand() {
        if(lastCmd) return AppceleratorBuild.executeAppcCommand(lastCmd);
        else return new Promise((resolve, reject) => {
            reject("No command to execute!");
        });
    }

    abstract run();
    abstract publish();
    abstract clean();
}<commit_msg>New location for settings<commit_after>import * as vscode from 'vscode';

import {AndroidBuild} from './AndroidBuild';
import {IOsBuild} from './IOsBuild';

var shell = require('shelljs');
var project_flag = ' --project-dir "' + vscode.workspace.rootPath +'"';
var config_file = vscode.workspace.rootPath+'/.vscode-appcelerator/settings.json';
var lastCmd;

export abstract class AppceleratorBuild {

    static getConfigFile() {
        return config_file;
    }

    static executeAppcCommand(cmd) {
        lastCmd = cmd;
        let channel = vscode.window.createOutputChannel("appcelerator");
        let command = 'cd "' + vscode.workspace.rootPath + '" && appc ' + cmd + project_flag;
        console.log(command);
        var appc_command = shell.exec(command, {async: true});
        appc_command.stdout.on('data', function(data) {
            channel.append(data);
        });
        appc_command.stderr.on('data', function(data) {
            channel.append(data);
        });
        return new Promise((resolve, reject) => {
            channel.show()
            resolve();
        });
    }

    static executeAppcCommandSilent(cmd, callback) {
        let command = 'cd "' + vscode.workspace.rootPath + '" && appc ' + cmd;
        console.log(command);
        return shell.exec(command, callback);
    }

    static executeLastAppcCommand() {
        if(lastCmd) return AppceleratorBuild.executeAppcCommand(lastCmd);
        else return new Promise((resolve, reject) => {
            reject("No command to execute!");
        });
    }

    abstract run();
    abstract publish();
    abstract clean();
}
{'fraction_non_alphanumeric': 0.1341991341991342, 'fraction_numerical': 0.0, 'mean_word_length': 2.7013729977116703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5280086', 'n_tokens_mistral': 950, 'n_tokens_neox': 939, 'n_words': 199}