<commit_before>app.directive('navMap', ['languageService', function(language) {
  var link = function (scope, element, attrs) {
    // create a list of buttons for ngRepeat
    var Btn = function (btnClass, position, name, page) {
      this.btnClass = btnClass;
      this.position = position;
      this.name = name;
      this.page = page;
      this.labelClass = 'label label-warning label-position';
    };
    var buttons = [
      new Btn('btn-blue', 'b1', 'Team', '/team'),
      new Btn('btn-blue', 'b2', 'Journal', '/journal'),
      new Btn('btn-blue', 'b3', 'Gallery', '/gallery'),
      new Btn('btn-blue', 'b4', 'Tutorials', '/tutorials'),
      new Btn('btn-blue', 'b5', 'School', '/school'),
      new Btn('btn-blue', 'b6', 'Game', '/game'),
      new Btn('btn-blue', 'b7', 'Help', '/info')
    ];
    var isInfo = true;
    buttons.forEach(function (file) {
      if (file.page === scope.page) {
        isInfo = false;
        file.btnClass = 'btn-red';
      }
    });
    if (isInfo)
      buttons[buttons.length-1].btnClass = 'btn-red';
    scope.buttons = buttons;
  };

  return {
    restrict: 'E',
    link: link,
    templateUrl: 'app/shared/navigation/nav-map/nav-map.html'
  };
}]);
<commit_msg>fixed nav-map buttons not translated issue<commit_after>app.directive('navMap', ['languageService', function(language) {
  var link = function (scope, element, attrs) {
    // create a list of buttons for ngRepeat
    var Btn = function (btnClass, position, name, page) {
      this.btnClass = btnClass;
      this.position = position;
      this.name = name;
      this.page = page;
      this.labelClass = 'label label-warning label-position';
    };
    var navs = language.trans.nav[language.lang.toString()];
    var buttons = [
      new Btn('btn-blue', 'b1', navs.TEAM, '/team'),
      new Btn('btn-blue', 'b2', navs.JOURNAL, '/journal'),
      new Btn('btn-blue', 'b3', navs.GALLERY, '/gallery'),
      new Btn('btn-blue', 'b4', navs.TUTORIALS, '/tutorials'),
      new Btn('btn-blue', 'b5', navs.SCHOOL, '/school'),
      new Btn('btn-blue', 'b6', navs.GAME, '/game'),
      new Btn('btn-blue', 'b7', navs.INFO, '/info')
    ];
    var isInfo = true;
    buttons.forEach(function (file) {
      if (file.page === scope.page) {
        isInfo = false;
        file.btnClass = 'btn-red';
      }
    });
    if (isInfo)
      buttons[buttons.length-1].btnClass = 'btn-red';
    scope.buttons = buttons;
  };

  return {
    restrict: 'E',
    link: link,
    templateUrl: 'app/shared/navigation/nav-map/nav-map.html'
  };
}]);

{'fraction_non_alphanumeric': 0.1838091513492374, 'fraction_numerical': 0.006257332811888932, 'mean_word_length': 2.685878962536023, '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': '5541165', 'n_tokens_mistral': 889, 'n_tokens_neox': 884, 'n_words': 202}