<commit_before>package com.facebook.presto.cli;

import com.facebook.presto.block.BlockIterable;
import com.facebook.presto.metadata.ColumnMetadata;
import com.facebook.presto.metadata.Metadata;
import com.facebook.presto.metadata.StorageManager;
import com.facebook.presto.metadata.TableMetadata;
import com.facebook.presto.operator.ConsolePrinter;
import com.facebook.presto.operator.Operator;
import io.airlift.units.Duration;

public class Utils
{
    public static BlockIterable getColumn(StorageManager storageManager, Metadata metadata, final String tableName, String columnName)
    {
        TableMetadata tableMetadata = metadata.getTable("default", "default", tableName);
        int index = 0;
        for (ColumnMetadata columnMetadata : tableMetadata.getColumns()) {
            if (columnName.equals(columnMetadata.getName())) {
                break;
            }
            ++index;
        }
        final int columnIndex = index;
        return storageManager.getBlocks("default", tableName, columnIndex);
    }

    public static void printResults(long start, Operator aggregation)
    {
        long rows = ConsolePrinter.print(aggregation);
        Duration duration = Duration.nanosSince(start);
        System.out.printf("%d rows in %4.2f ms\n", rows, duration.toMillis());
    }
}<commit_msg>Remove unused function<commit_after>package com.facebook.presto.cli;

import com.facebook.presto.operator.ConsolePrinter;
import com.facebook.presto.operator.Operator;
import io.airlift.units.Duration;

public class Utils
{
    public static void printResults(long start, Operator aggregation)
    {
        long rows = ConsolePrinter.print(aggregation);
        Duration duration = Duration.nanosSince(start);
        System.out.printf("%d rows in %4.2f ms\n", rows, duration.toMillis());
    }
}
{'fraction_non_alphanumeric': 0.10187224669603524, 'fraction_numerical': 0.0027533039647577094, 'mean_word_length': 3.695090439276486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2367788', 'n_tokens_mistral': 503, 'n_tokens_neox': 501, 'n_words': 110}