<commit_before>Application.Controllers.controller("PeriodicTableController",
    ["$scope", "watcher", function ($scope) {

        $scope.addElement = function (ele) {
            $scope.doc.value.push({'element': ele, 'value': ''});
        };
        $scope.removeElement = function (i) {
            $scope.doc.value.splice(i, 1);
        };
        function init() {
            $scope.panel_one_elements = ["H", "Li", "Na", "K", "Rb", "Cs", "Fr"];
            $scope.panel_two_elements = ["Be", "Mg", "Ca", "Sr", "Ba", "Ra"];
            $scope.panel_three_elements = ["Sc", "Y", "La-Lu", "Ac-Lr"];
            $scope.panel_three_1_elements = ["Ti", "Zr", "Hf", "Rf"];
            $scope.panel_three_2_elements = ["V", "Nb", "Ta", "Db"];
            $scope.panel_three_3_elements = ["Cr", "Mb", "W", "Sg"];
            $scope.panel_three_4_elements = ["Mn", "Tc", "Re", "Bh"];
            $scope.panel_three_5_elements = ["Fe", "Ru", "Os", "Hs"];
            $scope.panel_three_6_elements = ["Co", "Rh", "Ir", "Mt"];
            $scope.panel_three_7_elements = ["Ni", "Pd", "Pt", "Ds"];
            $scope.panel_three_8_elements = ["Cu", "Ag", "Au", "Rg"];
            $scope.panel_three_9_elements = ["Zn", "Cd", "Hg", "Cn"];
            $scope.panel_two_1_elements = ["B", "Al", "Ga", "In", "Ti", "Uut"];
            $scope.panel_two_2_elements = ["C", "Si", "Ge", "Sn", "Rb", "Fl"];
            $scope.panel_two_3_elements = ["N", "P", "As", "Sb", "Bi", "Uup"];
            $scope.panel_two_4_elements = ["O", "S", "Se", "Te", "Po", "Lv"];
            $scope.panel_two_5_elements = ["F", "Cl", "Br", "I", "At", "Uus"];
            $scope.panel_one_1_elements = ["He", "Ne", "Ar", "Kr", "Xe", "Rn", "Uuo"];
        }

        init();
    }]);
Application.Directives.directive('periodicTable',
    function () {
        return {
            restrict: "A",
            controller: 'PeriodicTableController',
            scope: {
                doc: '='
            },
            templateUrl: 'application/directives/periodic-table.html'
        };
    });<commit_msg>Issue0451-default unit for composition<commit_after>Application.Controllers.controller("PeriodicTableController",
    ["$scope", "watcher", function ($scope) {

        $scope.addElement = function (ele) {
            $scope.doc.value.push({'element': ele, 'value': ''});
        };
        $scope.removeElement = function (i) {
            $scope.doc.value.splice(i, 1);
        };
        function init() {
            $scope.doc.unit = "at%"; //setting default unit for composition
            $scope.panel_one_elements = ["H", "Li", "Na", "K", "Rb", "Cs", "Fr"];
            $scope.panel_two_elements = ["Be", "Mg", "Ca", "Sr", "Ba", "Ra"];
            $scope.panel_three_elements = ["Sc", "Y", "La-Lu", "Ac-Lr"];
            $scope.panel_three_1_elements = ["Ti", "Zr", "Hf", "Rf"];
            $scope.panel_three_2_elements = ["V", "Nb", "Ta", "Db"];
            $scope.panel_three_3_elements = ["Cr", "Mb", "W", "Sg"];
            $scope.panel_three_4_elements = ["Mn", "Tc", "Re", "Bh"];
            $scope.panel_three_5_elements = ["Fe", "Ru", "Os", "Hs"];
            $scope.panel_three_6_elements = ["Co", "Rh", "Ir", "Mt"];
            $scope.panel_three_7_elements = ["Ni", "Pd", "Pt", "Ds"];
            $scope.panel_three_8_elements = ["Cu", "Ag", "Au", "Rg"];
            $scope.panel_three_9_elements = ["Zn", "Cd", "Hg", "Cn"];
            $scope.panel_two_1_elements = ["B", "Al", "Ga", "In", "Ti", "Uut"];
            $scope.panel_two_2_elements = ["C", "Si", "Ge", "Sn", "Rb", "Fl"];
            $scope.panel_two_3_elements = ["N", "P", "As", "Sb", "Bi", "Uup"];
            $scope.panel_two_4_elements = ["O", "S", "Se", "Te", "Po", "Lv"];
            $scope.panel_two_5_elements = ["F", "Cl", "Br", "I", "At", "Uus"];
            $scope.panel_one_1_elements = ["He", "Ne", "Ar", "Kr", "Xe", "Rn", "Uuo"];
        }

        init();
    }]);
Application.Directives.directive('periodicTable',
    function () {
        return {
            restrict: "A",
            controller: 'PeriodicTableController',
            scope: {
                doc: '='
            },
            templateUrl: 'application/directives/periodic-table.html'
        };
    });
{'fraction_non_alphanumeric': 0.22559397788755586, 'fraction_numerical': 0.008468595624558928, 'mean_word_length': 2.371927042030135, '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': '677331', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1464, 'n_words': 286}