<commit_before><?php
/**
 * Created by PhpStorm.
 * User: antoine
 * Date: 01/07/2014
 * Time: 17:22
 */

namespace Aws\Task\CloudFormation;

class StackParam
{

    /**
     * @var string
     */
    protected $name;

    /**
     * @var string
     */
    protected $value;

    /**
     * @var bool
     */
    protected $usePreviousValue = false;

    /**
     * Return the array representation of the param
     * @return array
     */
    public function toArray() {
        return
        [
            'ParameterKey'      => $this->getName(),
            'ParameterValue'    => $this->getValue(),
            'UsePreviousValue'  => $this->getUsePreviousValue()
        ];
    }

    /**
     * @param mixed $usePreviousValue
     *
     * @return $this
     */
    public function setUsePreviousValue($usePreviousValue) {
        $this->usePreviousValue = $usePreviousValue;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getUsePreviousValue() {
        return $this->usePreviousValue;
    }


    /**
     * @param mixed $name
     *
     * @return $this
     */
    public function setName($name) {
        $this->name = $name;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getName() {
        return $this->name;
    }

    /**
     * @param mixed $value
     *
     * @return $this
     */
    public function setValue($value) {
        $this->value = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getValue() {
        return $this->value;
    }




}<commit_msg>prevent boolean stack param issue<commit_after><?php
/**
 * Created by PhpStorm.
 * User: antoine
 * Date: 01/07/2014
 * Time: 17:22
 */

namespace Aws\Task\CloudFormation;

class StackParam
{

    /**
     * @var string
     */
    protected $name;

    /**
     * @var string
     */
    protected $value;

    /**
     * @var bool
     */
    protected $usePreviousValue = false;

    /**
     * Return the array representation of the param
     * @return array
     */
    public function toArray() {
        return
        [
            'ParameterKey'      => $this->getName(),
            'ParameterValue'    => $this->getValue(),
            'UsePreviousValue'  => $this->getUsePreviousValue()
        ];
    }

    /**
     * @param mixed $usePreviousValue
     *
     * @return $this
     */
    public function setUsePreviousValue($usePreviousValue) {
        $this->usePreviousValue = $usePreviousValue;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getUsePreviousValue() {
        return $this->usePreviousValue;
    }


    /**
     * @param mixed $name
     *
     * @return $this
     */
    public function setName($name) {
        $this->name = $name;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getName() {
        return $this->name;
    }

    /**
     * @param mixed $value
     *
     * @return $this
     */
    public function setValue($value) {
        if (is_bool($value)) {
            $value = $value ? 'true' : 'false';
        }
        $this->value = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getValue() {
        return $this->value;
    }




}
{'fraction_non_alphanumeric': 0.13648689364266345, 'fraction_numerical': 0.0072310937029225674, 'mean_word_length': 1.6059654631083202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '662716', 'n_tokens_mistral': 1038, 'n_tokens_neox': 986, 'n_words': 216}