<commit_before><?php

Form::macro('boxOpen', function(array $formOptions = [], $title = "", $color="info")
{
	if (!isset($formOptions['class'])) {
		$formOptions['class'] = "form-horizontal";
    }

    return "<div class='box box-$color'>
               <div class='box-header with-border'>
                 <h3 class='box-title'>$title</h3>
               </div><!-- /.box-header -->
               <!-- form start -->".
               Form::open($formOptions).
                 "<div class='box-body'>";

});

Form::macro('boxOpenModel', function($model, array $formOptions = [], $title = "", $color="info")
{
	if (!isset($formOptions['class'])) {
		$formOptions['class'] = "form-horizontal";
    }

    return "<div class='box box-$color'>
               <div class='box-header with-border'>
                 <h3 class='box-title'>$title</h3>
               </div><!-- /.box-header -->
               <!-- form start -->".
               Form::model($model, $formOptions).
                 "<div class='box-body'>";

});

Form::macro('boxClose', function($buttonText, $color="info")
{
    return "	</div><!-- /.box-body -->
                 <div class='box-footer'>
                   <button type='submit' class='btn btn-$color pull-right'>$buttonText</button>
                 </div><!-- /.box-footer -->
               </form>
             </div><!-- /.box -->";

});

Form::macro('boxRow', function($label, $type = "text", $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>
                  <input type='$type' class='form-control' name='$inputId' id='$inputId' placeholder='$placeholder'>
                </div>
            </div>";
});

Form::macro('boxText', function($label, $name, $value = null, $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>
                  <input type='text' class='form-control' name='$name' id='$inputId' placeholder='$placeholder' value='$value'>
                </div>
            </div>";
});

Form::macro('boxTextarea', function($label, $name, $value = null, $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>
                	<textarea class='form-control' name='$name' placeholder='$placeholder' rows='3' id='inputId'>$value</textarea>
                </div>
            </div>";
});

Form::macro('boxDate', function($label, $name, $value = null, $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>
                  <input type='text' class='form-control date-picker' name='$name' id='$inputId' value='$value' placeholder='$placeholder'>
                </div>
            </div>";

});
                 <commit_msg>fix form macro<commit_after><?php

Form::macro('boxOpen', function(array $formOptions = [], $title = "", $color="info")
{
	if (!isset($formOptions['class'])) {
		$formOptions['class'] = "form-horizontal";
    }

    return "<div class='box box-$color'>
               <div class='box-header with-border'>
                 <h3 class='box-title'>$title</h3>
               </div><!-- /.box-header -->
               <!-- form start -->".
               Form::open($formOptions).
                 "<div class='box-body'>";

});

Form::macro('boxOpenModel', function($model, array $formOptions = [], $title = "", $color="info")
{
	if (!isset($formOptions['class'])) {
		$formOptions['class'] = "form-horizontal";
    }

    return "<div class='box box-$color'>
               <div class='box-header with-border'>
                 <h3 class='box-title'>$title</h3>
               </div><!-- /.box-header -->
               <!-- form start -->".
               Form::model($model, $formOptions).
                 "<div class='box-body'>";

});

Form::macro('boxClose', function($buttonText, $color="info")
{
    return "	</div><!-- /.box-body -->
                 <div class='box-footer'>
                   <button type='submit' class='btn btn-$color pull-right'>$buttonText</button>
                 </div><!-- /.box-footer -->
               </form>
             </div><!-- /.box -->";

});

Form::macro('boxRow', function($label, $type = "text", $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>
                  <input type='$type' class='form-control' name='$inputId' id='$inputId' placeholder='$placeholder'>
                </div>
            </div>";
});

Form::macro('boxText', function($label, $name, $value = null, $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>".
                	Form::text($name, $value, array('class'=>'form-control', 'placeholder'=>$placeholder, 'id' => $inputId)).
                "</div>
            </div>";
});

Form::macro('boxTextarea', function($label, $name, $value = null, $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>".
                	Form::textarea($name, $value, array('class'=>'form-control', 'size' => '30x3', 'placeholder'=>'Duruşma Açıklama', 'id' => $inputId)).
                "</div>
            </div>";
});

Form::macro('boxDate', function($label, $name, $value = null, $inputId = null, $placeholder = null)
{
    return "<div class='form-group'>
                <label for='$inputId' class='col-sm-2 control-label'>$label</label>
                <div class='col-sm-10'>".
                	Form::text($name, $value, array('class'=>'form-control date-picker', 'placeholder'=>$placeholder, 'id' => $inputId)).
                "</div>
            </div>";

});
                 
{'fraction_non_alphanumeric': 0.21215939518034335, 'fraction_numerical': 0.005670184280989132, 'mean_word_length': 2.1861515303562467, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 119, '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': '4358053', 'n_tokens_mistral': 1924, 'n_tokens_neox': 1868, 'n_words': 357}