<commit_before>module.exports = function ($scope, $ionicLoading, verifyCode, popins, count, promoCode, PROMO_GOAL) {

  $scope.count = count.get();

  $scope.startScan = function () {
    $ionicLoading.show({
      template: 'Scan en cours...'
    });

    cordova.plugins.barcodeScanner.scan(function (result) {
      verifyCode(result.text).done(function (code) {
        var s = (code.number > 1) ? "s" : "",
            // increment the new count of pizzas
            newCount = count.increment(code.number),
            newPromoCount = Math.floor(newCount / PROMO_GOAL),
            prevPromoCount = Math.floor($scope.count / PROMO_GOAL),
            // compute the gain of promo (1 = 10 pizzas, 2 = 20 pizzas, etc...)
            gain = newPromoCount - prevPromoCount,
            title = "Scan réussi !",
            msg = "Vous venez d'ajouter " + code.number + " pizza" + s + ".",
            promoMsg = "Profitez d'une pizza offerte en communicant le code suivant lors de votre prochaine commande:<br/>";
        $scope.count = newCount;
        // retrieve the promo code if promo has been won
        if (gain) {
          $ionicLoading.show({<commit_msg>add new wording when verifying code<commit_after>module.exports = function ($scope, $ionicLoading, verifyCode, popins, count, promoCode, PROMO_GOAL) {

  $scope.count = count.get();

  $scope.startScan = function () {
    $ionicLoading.show({
      template: 'Scan en cours...'
    });

    cordova.plugins.barcodeScanner.scan(function (result) {
      $ionicLoading.show({
        template: 'Vérification en cours...'
      });
      verifyCode(result.text).done(function (code) {
        var s = (code.number > 1) ? "s" : "",
            // increment the new count of pizzas
            newCount = count.increment(code.number),
            newPromoCount = Math.floor(newCount / PROMO_GOAL),
            prevPromoCount = Math.floor($scope.count / PROMO_GOAL),
            // compute the gain of promo (1 = 10 pizzas, 2 = 20 pizzas, etc...)
            gain = newPromoCount - prevPromoCount,
            title = "Scan réussi !",
            msg = "Vous venez d'ajouter " + code.number + " pizza" + s + ".",
            promoMsg = "Profitez d'une pizza offerte en communicant le code suivant lors de votre prochaine commande:<br/>";
        $scope.count = newCount;
        // retrieve the promo code if promo has been won
        if (gain) {
          $ionicLoading.show({
{'fraction_non_alphanumeric': 0.12581967213114753, 'fraction_numerical': 0.005737704918032787, 'mean_word_length': 2.316576086956522, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4523715', 'n_tokens_mistral': 767, 'n_tokens_neox': 742, 'n_words': 199}