<commit_before>package hex;

import hex.KMeans.ClusterDist;
import jsr166y.CountedCompleter;
import water.*;
import water.H2O.H2OCountedCompleter;
import water.Job.ChunkProgressJob;
import water.ValueArray.Column;
import water.api.Constants;
import water.util.Log;
import water.util.Log.Tag.Sys;

import com.google.gson.*;

public class KMeansModel2 extends Model {
  public double[][] _clusters; // The cluster centers, normalized according to _va
  public double _error; // Sum of min square distances
  public KMeans2 _job;

  public KMeansModel2(Key selfKey, int cols[], Key dataKey) {
    super(selfKey, cols, dataKey);
  }

  // Accept only columns with a defined mean. Used during the Model.<init> call.
  @Override public boolean columnFilter(ValueArray.Column C) {
    return !Double.isNaN(C._mean);
  }

  @Override
  public JsonObject toJson() {
    JsonObject res = new JsonObject();
    res.addProperty(Constants.VERSION, H2O.VERSION);<commit_msg>Need to import an additional water.util library<commit_after>package hex;

import hex.KMeans.ClusterDist;
import jsr166y.CountedCompleter;
import water.*;
import water.H2O.H2OCountedCompleter;
import water.Job.ChunkProgressJob;
import water.ValueArray.Column;
import water.api.Constants;
import water.util.*;
import water.util.Log;
import water.util.Log.Tag.Sys;

import com.google.gson.*;

public class KMeansModel2 extends Model {
  public double[][] _clusters; // The cluster centers, normalized according to _va
  public double _error; // Sum of min square distances
  public KMeans2 _job;

  public KMeansModel2(Key selfKey, int cols[], Key dataKey) {
    super(selfKey, cols, dataKey);
  }

  // Accept only columns with a defined mean. Used during the Model.<init> call.
  @Override public boolean columnFilter(ValueArray.Column C) {
    return !Double.isNaN(C._mean);
  }

  @Override
  public JsonObject toJson() {
    JsonObject res = new JsonObject();
    res.addProperty(Constants.VERSION, H2O.VERSION);
{'fraction_non_alphanumeric': 0.10075949367088607, 'fraction_numerical': 0.009113924050632912, 'mean_word_length': 4.488888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1348286', 'n_tokens_mistral': 623, 'n_tokens_neox': 614, 'n_words': 181}