<commit_before><?php


class DropTableExample
{
    public function __construct($secret, $key, $host, $port, $ssl, $tableName)
    {
        $results = null;
        $client = new DLClient($secret, $key, $host, $port, $ssl);
        $query = new DLQuery();
        $query->dropTable($tableName);

        $results = $client->query($query);
        echo "----\n";
        echo "drop-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;
            }
    }
}


?><commit_msg>fixes #39, fixes #38, fixes #37<commit_after><?php

require_once(dirname(__FILE__) . '/../Datalanche.php');

    function DLDropTable($secret, $key, $host, $port, $ssl, $tableName)
    {
        $results = null;
        $client = new DLClient($secret, $key, $host, $port, $ssl);
        $query = new DLQuery();
        $query->dropTable($tableName);

        try
        {
            $results = $client->query($query);
        } catch (Exception $e) {
            echo $e."\n";
        }
    }


?>
{'fraction_non_alphanumeric': 0.18759571209800918, 'fraction_numerical': 0.006891271056661562, 'mean_word_length': 1.7172557172557172, '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': '1037244', 'n_tokens_mistral': 416, 'n_tokens_neox': 396, 'n_words': 86}