<commit_before>'use strict';

module.exports =

  /*
   * This directive expects concept and processConceptForm
   * to be set in scope.
   */

/*@ngInject*/
function ConceptsFormCtrl (
  $scope, _, ConceptService
) {
  if (_.isUndefined($scope.concept) || !_.isObject($scope.concept)) {
    throw new Error('Please define concept object in controller scope');
  }

  if (_.isUndefined($scope.processConceptForm) || !_.isFunction($scope.processConceptForm)) {
    throw new Error('Please define processConceptForm function in controller scope');
  }

  $scope.conceptTemplate = require('../models/concept.js');

  ConceptService.get().then(function (concepts) {
    $scope.concepts = concepts;
  });
};<commit_msg>Add standards and standard levels to concepts create<commit_after>'use strict';

module.exports =

  /*
   * This directive expects concept and processConceptForm
   * to be set in scope.
   */

/*@ngInject*/
function ConceptsFormCtrl (
  $scope, _, ConceptService, StandardService,
  StandardLevelService
) {
  if (_.isUndefined($scope.concept) || !_.isObject($scope.concept)) {
    throw new Error('Please define concept object in controller scope');
  }

  if (_.isUndefined($scope.processConceptForm) || !_.isFunction($scope.processConceptForm)) {
    throw new Error('Please define processConceptForm function in controller scope');
  }

  $scope.conceptTemplate = require('../models/concept.js');

  ConceptService.get().then(function (concepts) {
    $scope.concepts = concepts;
  });

  StandardService.get().then(function (standards) {
    $scope.standards = standards;
  });

  StandardLevelService.get().then(function (standardLevels) {
    $scope.standard_levels = standardLevels;
  });
};
{'fraction_non_alphanumeric': 0.13527696793002916, 'fraction_numerical': 0.0, 'mean_word_length': 4.329192546583851, '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': '5107248', 'n_tokens_mistral': 525, 'n_tokens_neox': 495, 'n_words': 115}