<commit_before>var exec = require('child_process').exec;

//check if user has xplat-cli installed
var checkAzure = function(){
  exec('npm list -g --depth=0 | grep azure-cli', function(err, stdout, stderr){
    if(/azure-cli/.test(stdout)) {
      console.log("Azure-CLI found");
    } else {
      console.log("Exiting lifter...please install the azure command line tool: npm install -g azure-cli");
    }
  });
}

checkAzure();<commit_msg>prompt user to connect their azure subscription, closes #82<commit_after>var exec = require('child_process').exec;
var prompt = require('../node_modules/prompt');

//check if user has xplat-cli installed
var checkAzure = function(){
  exec('npm list -g --depth=0 | grep azure-cli', function(err, stdout, stderr){
    if(/azure-cli/.test(stdout)) {
      console.log("Azure-CLI found, opening Azure Management Portal in default browser...".green);
      loginAzure();
    } else {
      console.log("Exiting lifter...please install the azure command line tool: npm install -g azure-cli".white);
    }
  });
}

//ask the user to set up azure login
var loginAzure = function() {
  exec('azure account download', function(err, stdout, stderr){
    if(err){
      console.log("ERR: ", err);
    } else {
      console.log("Please complete the following before continuing\n\n1. Sign into the Azure Management Portal in the browser that was opened\n2. A .publishsettings file will be downloaded, remember its location\n3. Run the following command: azure account import .publishsettings <.publishsettings file location>".white);
      // getUbuntuImage();
    }
  });
}

checkAzure();
{'fraction_non_alphanumeric': 0.13597033374536466, 'fraction_numerical': 0.004326328800988875, 'mean_word_length': 3.638968481375358, 'pattern_counts': {'":': 0, '<': 4, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '874179', 'n_tokens_mistral': 485, 'n_tokens_neox': 469, 'n_words': 154}