<commit_before>/// <reference path="./library.d.ts" />

import Arts = require("./components/arts/Arts");

interface IScope extends Arts.IScope<IController> {

}

interface IController extends Arts.IController<IScope> {
  selectedTabIndex: number;

  switchToTab(tab: number): void;
  toggleSideBar(id: string): void;

  refresh(): void;
}

class IndexController extends Arts.BaseController<IScope> implements IController {

  static $inject:string[] = ['$scope', '$mdSidenav', '$mdToast'];

  selectedTabIndex: number = 0;

  constructor(public $scope:IScope, private $mdSidenav:ng.material.MDSidenavService,
    private $mdToast: ng.material.MDToastService) {
    super($scope);
  }

  switchToTab(tab: number): void {
    this.selectedTabIndex = tab;<commit_msg>fixed issue with sidebar not closing when in mobile mode<commit_after>/// <reference path="./library.d.ts" />

import Arts = require("./components/arts/Arts");

interface IScope extends Arts.IScope<IController> {

}

interface IController extends Arts.IController<IScope> {
  selectedTabIndex: number;

  switchToTab(tab: number): void;
  toggleSideBar(id: string): void;

  refresh(): void;
}

class IndexController extends Arts.BaseController<IScope> implements IController {

  static $inject:string[] = ['$scope', '$mdSidenav', '$mdToast'];

  selectedTabIndex: number = 0;

  constructor(public $scope:IScope, private $mdSidenav:ng.material.MDSidenavService,
    private $mdToast: ng.material.MDToastService) {
    super($scope);
  }

  switchToTab(tab: number): void {
    this.selectedTabIndex = tab;
    this.$mdSidenav('left').close();
{'fraction_non_alphanumeric': 0.13805970149253732, 'fraction_numerical': 0.0012437810945273632, 'mean_word_length': 5.071698113207547, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4288363', 'n_tokens_mistral': 508, 'n_tokens_neox': 511, 'n_words': 111}