<commit_before><?php

use yii\helpers\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\web\View;

/* @var $this yii\web\View */
/* @var $model app\models\AlquilerForm */
/* @var $form ActiveForm */
/* @var $alquileres Alquiler[] */

$this->title = 'Alquileres';
$this->params['breadcrumbs'][] = $this->title;
$url = Url::to(['alquileres/socios']);
$urlActual = Url::to('');
$js = <<<EOT
    $('#numero').keyup(function() {
        var q = $('#numero').val();
        if (q == '') {
            $('#socios').html('');
        }
        if (!isNaN(q)) {
            return;
        }
        $.ajax({
            method: 'GET',
            url: '$url',
            data: {
                q: q
            },
            success: function (data, status, event) {
                $('#socios').html(data);
                $('#socios tr').click(function (event) {
                    var target = event.currentTarget;
                    if ($(target).children().length > 1) {
                        var obj = $(target).children().first();
                        numero = $(obj[0]).text();
                        window.location.assign('$urlActual' + '?numero=' + numero);
                    }
                });
            }
        });<commit_msg>Corrige concatenación incorrecta en URL<commit_after><?php

use yii\helpers\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\AlquilerForm */
/* @var $form ActiveForm */
/* @var $alquileres Alquiler[] */

$this->title = 'Alquileres';
$this->params['breadcrumbs'][] = $this->title;
$url = Url::to(['alquileres/socios']);
$urlActual = Url::to(['alquileres/gestionar']);
$js = <<<EOT
    $('#numero').keyup(function() {
        var q = $('#numero').val();
        if (q == '') {
            $('#socios').html('');
        }
        if (!isNaN(q)) {
            return;
        }
        $.ajax({
            method: 'GET',
            url: '$url',
            data: {
                q: q
            },
            success: function (data, status, event) {
                $('#socios').html(data);
                $('#socios tr').click(function (event) {
                    var target = event.currentTarget;
                    if ($(target).children().length > 1) {
                        var obj = $(target).children().first();
                        numero = $(obj[0]).text();
                        window.location.assign('$urlActual' + '?numero=' + numero);
                    }
                });
            }
        });
{'fraction_non_alphanumeric': 0.1923377638780297, 'fraction_numerical': 0.001563721657544957, 'mean_word_length': 1.5538922155688624, 'pattern_counts': {'":': 0, '<': 11, '<?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': '643594', 'n_tokens_mistral': 793, 'n_tokens_neox': 785, 'n_words': 146}