<commit_before><?php

/**
 * common actions.
 *
 * @package    siwapp
 * @subpackage common
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class commonActions extends sfActions
{
  /**
   * Receives the Invoice form data and calculates each row total amount and
   * full invoice totals. Returns a json
   *
   * @param 'invoice' from Request<commit_msg>Bug fix: use correct i18n culture for currency on new invoice lines<commit_after><?php

/**
 * common actions.
 *
 * @package    siwapp
 * @subpackage common
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class commonActions extends sfActions
{
  public function preExecute()
  {
    $this->culture  = $this->getUser()->getCulture();
  }

  /**
   * Receives the Invoice form data and calculates each row total amount and
   * full invoice totals. Returns a json
   *
   * @param 'invoice' from Request
{'fraction_non_alphanumeric': 0.10657370517928287, 'fraction_numerical': 0.0398406374501992, 'mean_word_length': 3.240506329113924, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '6955369', 'n_tokens_mistral': 348, 'n_tokens_neox': 308, 'n_words': 105}