<commit_before><?php
namespace GoogleSheets;

use Illuminate\Support\Collection;

class SheetsLaravel extends Sheets
{
    /**
     * @return Collection
     */
    public function get()
    {
        $values = $this->all();

        return collect($values);
    }

    /**
     * @param array $header
     * @param array|Collection $rows
     *
     * @return Collection
     */
    public function collection($header, $rows)
    {
        $collection = [];

        if ($rows instanceof Collection) {
            $rows = $rows->toArray();
        }

        foreach ($rows as $row) {
            $col = [];

            foreach ($header as $index => $head) {<commit_msg>collection<commit_after><?php
namespace GoogleSheets;

use Illuminate\Support\Collection;

class SheetsLaravel extends Sheets
{
    /**
     * @return \Illuminate\Support\Collection
     */
    public function get()
    {
        $values = $this->all();

        return collect($values);
    }

    /**
     * @param array $header
     * @param array|\Illuminate\Support\Collection $rows
     *
     * @return \Illuminate\Support\Collection
     */
    public function collection($header, $rows)
    {
        $collection = [];

        if ($rows instanceof Collection) {
            $rows = $rows->toArray();
        }

        foreach ($rows as $row) {
            $col = [];

            foreach ($header as $index => $head) {
{'fraction_non_alphanumeric': 0.1349036402569593, 'fraction_numerical': 0.0, 'mean_word_length': 1.9578059071729959, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3204076', 'n_tokens_mistral': 391, 'n_tokens_neox': 386, 'n_words': 94}