<commit_before>'use strict';

let fs = require('fs');
let path = require('path');

import Logger from '../../services/logger';

class LocationController {
  constructor($scope, $state, $timeout, installerDataSvc, electron) {
    this.router = $state;
    this.sc = $scope;
    this.timeout = $timeout;
    this.installerDataSvc = installerDataSvc;
    this.folderExists = false;
    this.installables = {};
    $scope.checkboxModel = {};
    this.electron = electron;
    this.folder = installerDataSvc.installDir();
  }

  confirm() {
    this.installerDataSvc.installRoot = this.folder;
    for (var [, value] of this.installerDataSvc.allInstallables().entries()) {
      value.setOptionLocation('install', path.join(this.folder, value.targetFolderName));
    }<commit_msg>Clean up code for location and confirmation page controllers<commit_after>'use strict';

let fs = require('fs');
let path = require('path');

import Logger from '../../services/logger';

class LocationController {
  constructor($scope, $state, $timeout, installerDataSvc, electron) {
    this.router = $state;
    this.sc = $scope;
    this.timeout = $timeout;
    this.installerDataSvc = installerDataSvc;
    this.folderExists = false;
    this.installables = {};
    $scope.checkboxModel = {};
    this.electron = electron;
    this.folder = installerDataSvc.installDir();
  }

  confirm() {
    this.installerDataSvc.installRoot = this.folder;
    for (let value of this.installerDataSvc.allInstallables().values()) {
      value.setOptionLocation('install', path.join(this.folder, value.targetFolderName));
    }
{'fraction_non_alphanumeric': 0.14007537688442212, 'fraction_numerical': 0.0, 'mean_word_length': 3.9472049689440993, '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': '5919590', 'n_tokens_mistral': 479, 'n_tokens_neox': 468, 'n_words': 100}