<commit_before><?php
/**
 * Created by JetBrains PhpStorm.
 * User: rodger
 * Date: 01.04.13
 * Time: 21:46
 * To change this template use File | Settings | File Templates.
 */

namespace Site\BaseBundle\Helper;


use Site\BaseBundle\Helper\Exception\TranslationException;

class GoogleTransTranslation
{
  public $word;
  public $relevancy;
  public $reverse_values = array();

  public function __construct($data = array())
  {
    if (!count($data)) throw new TranslationException();
    $this->word           = $data[0];
    $this->relevancy      = $data[2];
    $this->reverse_values = $data[1];
  }
}<commit_msg>Google translator<commit_after><?php
/**
 * Created by JetBrains PhpStorm.
 * User: rodger
 * Date: 01.04.13
 * Time: 21:46
 * To change this template use File | Settings | File Templates.
 */

namespace Site\BaseBundle\Helper;


use Site\BaseBundle\Helper\Exception\TranslationException;

class GoogleTransTranslation
{
  public $word;
  public $relevancy;
  public $reverse_values = array();

  public function __construct($data = array())
  {
    if (!count($data)) throw new TranslationException();
    $this->word           = $data[0];
    $this->relevancy      = (int) @$data[2];
    $this->reverse_values = $data[1];
  }
}
{'fraction_non_alphanumeric': 0.13873295910184444, 'fraction_numerical': 0.020850040096230954, 'mean_word_length': 3.6051660516605164, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5708514', 'n_tokens_mistral': 413, 'n_tokens_neox': 392, 'n_words': 98}