<commit_before><md-card layout="row">
    <md-subheader>{{'commons.translation' | i18next}}<span ng-if="listTranslations.length > 1">s</span></md-subheader>
    <span flex></span>
    <md-button ng-click="addTranslation()" class="md-primary md-raised">
        <md-icon>add</md-icon>
    </md-button>
</md-card>

<md-card ng-repeat="translation in listTranslations | orderBy: 'key'">
    <md-card-content layout="column">
        <div layout layout-align="end start">
            <span flex></span>
            <md-button ng-show="!secondLanguageIsValid" class="md-icon-button" ng-click="sendTranslation($event, translation)" ng-if="!translation.save || translation.modified" ng-disabled="!translation.key || !translation.value">
                <md-icon>save</md-icon>
            </md-button>

            <md-button ng-show="secondLanguageIsValid" class="md-icon-button" ng-click="sendTranslation($event, translation)" ng-if="!translation.save || translation.modified" ng-disabled="!translation.key || !translation.value[0] || !translation.value[1]">
                <md-icon>save</md-icon>
            </md-button>

            <md-button class="md-icon-button md-hue-3 md-warn" ng-click="deleteTranslation($event, translation)">
                <md-icon>delete</md-icon>
            </md-button>
        </div>

        <md-input-container>
            <label>{{'commons.key' | i18next}}</label>
            <md-icon>bookmark</md-icon>
            <input type="text" ng-model="translation.key" class="key">
        </md-input-container>

        <md-input-container>
            <label>{{'commons.value' | i18next}} <span ng-if="secondLanguageIsValid">{{languages[0] | uppercase}}</span></label>
            <md-icon>label</md-icon><commit_msg>Fix : lost focus on update translation<commit_after><md-card layout="row">
    <md-subheader>{{'commons.translation' | i18next}}<span ng-if="listTranslations.length > 1">s</span></md-subheader>
    <span flex></span>
    <md-button ng-click="addTranslation()" class="md-primary md-raised">
        <md-icon>add</md-icon>
    </md-button>
</md-card>

<md-card ng-repeat="translation in listTranslations track by $index">
    <md-card-content layout="column">
        <div layout layout-align="end start">
            <span flex></span>
            <md-button ng-show="!secondLanguageIsValid" class="md-icon-button" ng-click="sendTranslation($event, translation)" ng-if="!translation.save || translation.modified" ng-disabled="!translation.key || !translation.value">
                <md-icon>save</md-icon>
            </md-button>

            <md-button ng-show="secondLanguageIsValid" class="md-icon-button" ng-click="sendTranslation($event, translation)" ng-if="!translation.save || translation.modified" ng-disabled="!translation.key || !translation.value[0] || !translation.value[1]">
                <md-icon>save</md-icon>
            </md-button>

            <md-button class="md-icon-button md-hue-3 md-warn" ng-click="deleteTranslation($event, translation)">
                <md-icon>delete</md-icon>
            </md-button>
        </div>

        <md-input-container>
            <label>{{'commons.key' | i18next}}</label>
            <md-icon>bookmark</md-icon>
            <input type="text" ng-model="translation.key" class="key">
        </md-input-container>

        <md-input-container>
            <label>{{'commons.value' | i18next}} <span ng-if="secondLanguageIsValid">{{languages[0] | uppercase}}</span></label>
            <md-icon>label</md-icon>
{'fraction_non_alphanumeric': 0.18228279386712096, 'fraction_numerical': 0.006246450880181715, 'mean_word_length': 2.927536231884058, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 93, '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': '2208475', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1067, 'n_words': 159}