<commit_before>import Ember from "ember";

export default Ember.Controller.extend( {
    countries: ["Česká republika", "Slovensko"],
    tshirt_size: ["S", "M", "L", "XL"],
    maturita_year: ["2016", "2017", "2018", "2019"],
    registration_done: false,
    actions: {
    	register: function() {
            // ToDo: Send result
            this.set("registration_done", true);
        }
    }
});
<commit_msg>Send registration data to backend<commit_after>import Ember from "ember";

export default Ember.Controller.extend( {
    countries: ["Česká republika", "Slovensko"],
    tshirt_size: ["S", "M", "L", "XL"],
    maturita_year: ["2016", "2017", "2018", "2019"],
    registration_done: false,
    actions: {
    	register: function() {
            this.get("model").save().then(function() {
                this.set("registration_done", true);
                // ToDo
            },
            function() {
                alert("Saving failed!");
                // ToDo
            }
        }
    }
});

{'fraction_non_alphanumeric': 0.16175071360608945, 'fraction_numerical': 0.030447193149381543, 'mean_word_length': 2.005714285714286, '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': '1531957', 'n_tokens_mistral': 355, 'n_tokens_neox': 317, 'n_words': 69}