<commit_before><?php

use app\components\LineSplitter;
use app\models\db\ConsultationMotionType;
use app\models\db\Motion;

/**
 * @var \yii\web\View $this
 * @var Motion[] $motions
 * @var bool $textCombined
 * @var ConsultationMotionType $motionType
 */

/** @var \app\controllers\Base $controller */
$controller   = $this->context;
$consultation = $controller->consultation;

PHPExcel_Settings::setZipClass(PHPExcel_Settings::PCLZIP);


$hasTags = ($consultation->tags > 0);


$currCol   = ord('B');

$COL_PREFIX    = chr($currCol++);
$COL_INITIATOR = chr($currCol++);
$COL_TEXTS     = [];
if ($textCombined) {
    $COL_TEXTS[] = chr($currCol++);
} else {<commit_msg>Use standard zip library for excel export<commit_after><?php

use app\components\LineSplitter;
use app\models\db\ConsultationMotionType;
use app\models\db\Motion;

/**
 * @var \yii\web\View $this
 * @var Motion[] $motions
 * @var bool $textCombined
 * @var ConsultationMotionType $motionType
 */

/** @var \app\controllers\Base $controller */
$controller   = $this->context;
$consultation = $controller->consultation;

//PHPExcel_Settings::setZipClass(PHPExcel_Settings::PCLZIP);


$hasTags = ($consultation->tags > 0);


$currCol   = ord('B');

$COL_PREFIX    = chr($currCol++);
$COL_INITIATOR = chr($currCol++);
$COL_TEXTS     = [];
if ($textCombined) {
    $COL_TEXTS[] = chr($currCol++);
} else {
{'fraction_non_alphanumeric': 0.17664233576642335, 'fraction_numerical': 0.00145985401459854, 'mean_word_length': 4.884120171673819, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1765432', 'n_tokens_mistral': 511, 'n_tokens_neox': 493, 'n_words': 90}