<commit_before><?php namespace Weaves81\AutoAppendToGitIgnore;

class EditGitIgnoreFile
{
    /**
     * Git comment marking the start of auto generated lines
     * @var string
     */
    private $startMarker = "# START Do not modify the lines between here and #END, they will be regenerated by AutoAppendToGitIgnore";

    /**
     * Git comment marking the end of auto generated lines
     * @var string
     */
    private $endMarker = "# END of AutoAppendToGitIgnore";

    /**
     * Full path to the target .gitignore path
     * @var string
     */
    private $filePath = ".gitignore";

    /**
     * Array containing all lines in the current .gitignore file
     * @var array
     */
    private $readLines = array();

    /**
     * Total number of lines in the current .gitignore file
     * @var int
     */
    private $numLines = 0;

    /**
     * Index of $readLines where $starMarker was found
     * @var int
     */
    private $startIndex = 0;

    /**
     * Index of $readLines where $endMarker was found
     * @var int
     */
    private $endIndex = 0;

    /**
     * All lines found in $readLines before $startMarker
     * @var array
     */
    private $beforeLines = array();

    /**
     * All lines found in $readLines before between $startMarker and $endMarker
     * @var array
     */
    private $autoLines = array();

    /**
     * All lines found in $readLines after $endMaker
     * @var array
     */
    private $afterLines = array();

    public function __construct($ignoreFilePath = ".gitignore")
    {
        $this->filePath = $ignoreFilePath."/.gitignore";
        $this->checkGitIgnorePermissions();
        $this->parse();
    }

    /**
     * Set the lines to appear between the makers
     *
     * @param array $lines
     *
     * @return $this
     * @throws AutoGitIgnoreInvalidParameterException
     */<commit_msg>Updated path in generated composer file<commit_after><?php namespace Weaves81\AutoAppendToGitIgnore;

class EditGitIgnoreFile
{
    /**
     * Git comment marking the start of auto generated lines
     * @var string
     */
    private $startMarker = "# START Do not modify the lines between here and #END, they will be regenerated by AutoAppendToGitIgnore";

    /**
     * Git comment marking the end of auto generated lines
     * @var string
     */
    private $endMarker = "# END of AutoAppendToGitIgnore";

    /**
     * Full path to the target .gitignore path
     * @var string
     */
    private $filePath = ".gitignore";

    /**
     * Array containing all lines in the current .gitignore file
     * @var array
     */
    private $readLines = array();

    /**
     * Total number of lines in the current .gitignore file
     * @var int
     */
    private $numLines = 0;

    /**
     * Index of $readLines where $starMarker was found
     * @var int
     */
    private $startIndex = 0;

    /**
     * Index of $readLines where $endMarker was found
     * @var int
     */
    private $endIndex = 0;

    /**
     * All lines found in $readLines before $startMarker
     * @var array
     */
    private $beforeLines = array();

    /**
     * All lines found in $readLines before between $startMarker and $endMarker
     * @var array
     */
    private $autoLines = array();

    /**
     * All lines found in $readLines after $endMaker
     * @var array
     */
    private $afterLines = array();

    public function __construct($ignoreFilePath = ".gitignore")
    {
        $this->filePath = $ignoreFilePath."/.gitignore";
        var_dump($this->filepath);exit;
        $this->checkGitIgnorePermissions();
        $this->parse();
    }

    /**
     * Set the lines to appear between the makers
     *
     * @param array $lines
     *
     * @return $this
     * @throws AutoGitIgnoreInvalidParameterException
     */
{'fraction_non_alphanumeric': 0.10602094240837696, 'fraction_numerical': 0.002617801047120419, 'mean_word_length': 2.189482470784641, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '407040', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1048, 'n_words': 358}