<commit_before>'use strict';

module.exports =

/*@ngInject*/
function ConceptsCmsCtrl (
  $scope, ConceptsFBService, _
) {
  ConceptsFBService.get().then(function (c) {
    $scope.concepts = c;
    console.log(c);
  });

  $scope.getQuestionLength = function (questions) {
    return _.keys(questions).length;
  };

  $scope.getTotalConcepts = function (concepts) {
    return _.keys(concepts).length;
  };

  $scope.getTotalQuestions = function (concepts) {
    return _.reduce(concepts, function (sum, c) {
      if (_.isNaN(sum)) {
        sum = 0;
      }
      return Number(sum) + Number(_.keys(c.questions).length);
    });
  };
};
<commit_msg>Remove log concepts in concepts ctrl<commit_after>'use strict';

module.exports =

/*@ngInject*/
function ConceptsCmsCtrl (
  $scope, ConceptsFBService, _
) {
  ConceptsFBService.get().then(function (c) {
    $scope.concepts = c;
  });

  $scope.getQuestionLength = function (questions) {
    return _.keys(questions).length;
  };

  $scope.getTotalConcepts = function (concepts) {
    return _.keys(concepts).length;
  };

  $scope.getTotalQuestions = function (concepts) {
    return _.reduce(concepts, function (sum, c) {
      if (_.isNaN(sum)) {
        sum = 0;
      }
      return Number(sum) + Number(_.keys(c.questions).length);
    });
  };
};

{'fraction_non_alphanumeric': 0.15608263198163733, 'fraction_numerical': 0.001530221882172915, 'mean_word_length': 3.2467532467532467, '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': '3737183', 'n_tokens_mistral': 470, 'n_tokens_neox': 445, 'n_words': 80}