<commit_before>package com.datastax.driver.core.querybuilder;

import java.util.ArrayList;
import java.util.List;

import com.datastax.driver.core.TableMetadata;

/**
 * A built DELETE statement.
 */
public class Delete extends BuiltStatement {

    private final String keyspace;
    private final String table;
    private final List<String> columnNames;
    private final Where where;
    private final Options usings;

    Delete(String keyspace, String table, List<String> columnNames) {
        super();
        this.keyspace = keyspace;
        this.table = table;
        this.columnNames = columnNames;
        this.where = new Where(this);
        this.usings = new Options(this);
    }

    Delete(TableMetadata table, List<String> columnNames) {
        super(table);
        this.keyspace = table.getKeyspace().getName();
        this.table = table.getName();
        this.columnNames = columnNames;
        this.where = new Where(this);
        this.usings = new Options(this);
    }

    protected String buildQueryString() {
        StringBuilder builder = new StringBuilder();

        builder.append("DELETE ");
        Utils.joinAndAppendNames(builder, ",", columnNames);<commit_msg>issue on delete().from()<commit_after>package com.datastax.driver.core.querybuilder;

import java.util.ArrayList;
import java.util.List;

import com.datastax.driver.core.TableMetadata;

/**
 * A built DELETE statement.
 */
public class Delete extends BuiltStatement {

    private final String keyspace;
    private final String table;
    private final List<String> columnNames;
    private final Where where;
    private final Options usings;

    Delete(String keyspace, String table, List<String> columnNames) {
        super();
        this.keyspace = keyspace;
        this.table = table;
        this.columnNames = columnNames;
        this.where = new Where(this);
        this.usings = new Options(this);
    }

    Delete(TableMetadata table, List<String> columnNames) {
        super(table);
        this.keyspace = table.getKeyspace().getName();
        this.table = table.getName();
        this.columnNames = columnNames;
        this.where = new Where(this);
        this.usings = new Options(this);
    }

    protected String buildQueryString() {
        StringBuilder builder = new StringBuilder();

        builder.append("DELETE ");
		if (columnNames != null)
        	Utils.joinAndAppendNames(builder, ",", columnNames);
{'fraction_non_alphanumeric': 0.1051985264019648, 'fraction_numerical': 0.0, 'mean_word_length': 2.9483037156704364, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3112007', 'n_tokens_mistral': 664, 'n_tokens_neox': 653, 'n_words': 170}