<commit_before><?php

include "../lib/DLClient.php";

class UpdateExample
{
    public function __construct($secret, $key, $host, $port, $ssl)
    {
        $results = null;
        $client = new DLClient($secret, $key, $host, $port, $ssl);
        $expression = new DLExpression();
        $expression->column('col3')->equals('hello');

        $query = new DLQuery();
        $query->update('my_table');
        $query->set(array('col3' => 'hello world'));
        $query->where($expression);

        $results = $client->query($query);

        echo "\n----\n";
        var_dump($results);
        echo "\n----\n";
    }
}

$updateExample = new UpdateExample('VCBA1hLyS2mYdrL6kO/iKQ==','7zNN1Pl9SQ6lNZwYe9mtQw==', 'localhost', 4001, false);
?><commit_msg>removed internal execution, passes<commit_after><?php


class UpdateExample
{
    public function __construct($secret, $key, $host, $port, $ssl)
    {
        $results = null;
        $client = new DLClient($secret, $key, $host, $port, $ssl);
        $expression = new DLExpression();
        $expression->column('col3')->equals('hello');

        $query = new DLQuery();
        $query->update('my_table');
        $query->set(array('col3' => 'hello world'));
        $query->where($expression);

        $results = $client->query($query);

        echo "----\n";
        echo "update-table:\n";
            echo "code: ".$results['response']['headers']['http_code']."\n";
            if($results['response']['headers']['http_code'] === 200)
            {
                echo "!! PASS !!\n";
                echo "----\n";
                return true;
            } else {
                echo "!! FAIL !!\n";
                echo "----\n";
                return false;
            }
    }
}


?>
{'fraction_non_alphanumeric': 0.19635742743312465, 'fraction_numerical': 0.010813887307911212, 'mean_word_length': 2.117021276595745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '2053692', 'n_tokens_mistral': 555, 'n_tokens_neox': 533, 'n_words': 106}