<commit_before>angular.module('leukemiapp').controller('mucositisController', MucositisController);

function MucositisController($scope, $reactive) {
   $reactive(this).attach($scope);
   var vm = this;

   var module = Modules[3];

   //Init
   vm.registration = Session.get('registration');

   if (vm.registration.diagnosis === undefined) {
      vm.registration.diagnosis = [];
      vm.registration.nauseaScore = 5;
      Session.set('registration', vm.registration);
   }

   vm.setDiagnosis = function (number, value) {
      vm.registration.diagnosis[number] = value;
      switch (number) {
         case 0:
            vm.registration.pain = value;
            break;
         case 1:
            vm.registration.ulcers = value;
            break;
         case 2:
            vm.registration.food = value;
      }
      updateRegistration();
   };
<commit_msg>mucositis: nausea score starts at 0<commit_after>angular.module('leukemiapp').controller('mucositisController', MucositisController);

function MucositisController($scope, $reactive) {
   $reactive(this).attach($scope);
   var vm = this;

   var module = Modules[3];

   //Init
   vm.registration = Session.get('registration');

   if (vm.registration.diagnosis === undefined) {
      vm.registration.diagnosis = [];
      vm.registration.nauseaScore = 0;
      Session.set('registration', vm.registration);
   }

   vm.setDiagnosis = function (number, value) {
      vm.registration.diagnosis[number] = value;
      switch (number) {
         case 0:
            vm.registration.pain = value;
            break;
         case 1:
            vm.registration.ulcers = value;
            break;
         case 2:
            vm.registration.food = value;
      }
      updateRegistration();
   };

{'fraction_non_alphanumeric': 0.12514156285390712, 'fraction_numerical': 0.00622876557191393, 'mean_word_length': 2.492094861660079, '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': '4262709', 'n_tokens_mistral': 553, 'n_tokens_neox': 494, 'n_words': 97}