<commit_before>﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TFG.Model {

    public enum HealthModuleType {
        ColorBlindnessTest, Module2, Module3
    }

    public static class HealthModulesInfo {

        public static List<HealthModuleType> GetHealthModules { get; private set; } = new List<HealthModuleType> {
            HealthModuleType.ColorBlindnessTest,
            HealthModuleType.Module2,
            HealthModuleType.Module3
        };

        public static string HealthModuleName(this HealthModuleType module) {
            switch (module) {
                case HealthModuleType.ColorBlindnessTest: return GetStringFromResourceName("color_blindness_test_name");
                case HealthModuleType.Module2: return "Module2";
                case HealthModuleType.Module3: return "Module3";
                default: return "Error";
            }
            
        }

        public static string HealthModuleDescription (this HealthModuleType module) {
            switch (module) {
                case HealthModuleType.ColorBlindnessTest: return "Module1 Description";
                case HealthModuleType.Module2: return "Module2 Description";
                case HealthModuleType.Module3: return "Module3 Description";
                default: return "Error";
            }
        }

        public static string GetStringFromResourceName(string resName){

#if __ANDROID__
            var context = Android.App.Application.Context;
            return context.GetString(context.Resources.GetIdentifier(resName, "string", context.PackageName));
#elif __IOS__

#endif

        }
    }
}<commit_msg>Solved "Not all parts returns a value"<commit_after>﻿using System;
using System.Collections.Generic;
using System.Text;

namespace TFG.Model {

    public enum HealthModuleType {
        ColorBlindnessTest, Module2, Module3
    }

    public static class HealthModulesInfo {

        public static List<HealthModuleType> GetHealthModules { get; private set; } = new List<HealthModuleType> {
            HealthModuleType.ColorBlindnessTest,
            HealthModuleType.Module2,
            HealthModuleType.Module3
        };

        public static string HealthModuleName(this HealthModuleType module) {
            switch (module) {
                case HealthModuleType.ColorBlindnessTest: return GetStringFromResourceName("color_blindness_test_name");
                case HealthModuleType.Module2: return "Module2";
                case HealthModuleType.Module3: return "Module3";
                default: return "Error";
            }
            
        }

        public static string HealthModuleDescription (this HealthModuleType module) {
            switch (module) {
                case HealthModuleType.ColorBlindnessTest: return "Module1 Description";
                case HealthModuleType.Module2: return "Module2 Description";
                case HealthModuleType.Module3: return "Module3 Description";
                default: return "Error";
            }
        }

        public static string GetStringFromResourceName(string resName){

#if __ANDROID__
            var context = Android.App.Application.Context;
            return context.GetString(context.Resources.GetIdentifier(resName, "string", context.PackageName));
#elif __IOS__

#endif
            return null;
        }
    }
}
{'fraction_non_alphanumeric': 0.07022222222222223, 'fraction_numerical': 0.007703703703703704, 'mean_word_length': 2.417004048582996, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4986181', 'n_tokens_mistral': 836, 'n_tokens_neox': 809, 'n_words': 202}