<commit_before>function BoardController(BoardService) {
  var ctrl = this;
  ctrl.data = [];
  ctrl.boards = {};
  // boardname => [resources]
}

angular
  .module('app')
  .controller('BoardController', BoardController);<commit_msg>build out basic functions of BoardController<commit_after>function BoardController(BoardService) {
  var ctrl = this;
  ctrl.data = [];
  ctrl.boards = {};
  // boardname => [resources]

  ctrl.load = function () {
    ctrl.boards = BoardService.getBoards();
    return ctrl.boards;
  }

  ctrl.create = function (resource) {
    var res = ResourceService.addResource(resource);
    ctrl.resources.push(res);
    return ctrl.resources;
  }

  ctrl.get = function (id) {
    return ResourceService.getOneResource(id);
  }

  ctrl.load();
}

angular
  .module('app')
  .controller('BoardController', BoardController);
{'fraction_non_alphanumeric': 0.14150943396226415, 'fraction_numerical': 0.0, 'mean_word_length': 3.907514450867052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7386851', 'n_tokens_mistral': 257, 'n_tokens_neox': 252, 'n_words': 51}