<commit_before>"use strict";

(function() {
  var TypeSpec = require('./TypeSpec');
  
  /**
   * Field class
   */
  var Field = function(name, type, value, operator) {
    this.name = name;
    this._type = type;
    this.value = value;
    this._operator = operator;
  };
  
  Field.prototype.toString = function() {
    return this.name.toString() + ' ' + this._operator + ' ' + this.getValueString();
  };
  
  Field.prototype.getValueString = function() {
    switch (this._type.type) {
      case TypeSpec.CUSTOM:
        throw Error('Custom column type not supported');
      case TypeSpec.ASCII:
      case TypeSpec.TEXT:
      case TypeSpec.VARCHAR:
        return this.getString();
      case TypeSpec.BIGINT:
      case TypeSpec.INT:
      case TypeSpec.VARINT:<commit_msg>Allow values to be explicitly set to NULL<commit_after>"use strict";

(function() {
  var TypeSpec = require('./TypeSpec');
  
  /**
   * Field class
   */
  var Field = function(name, type, value, operator) {
    this.name = name;
    this._type = type;
    this.value = value;
    this._operator = operator;
  };
  
  Field.prototype.toString = function() {
    return this.name.toString() + ' ' + this._operator + ' ' + this.getValueString();
  };
  
  Field.prototype.getValueString = function() {
    if (this.value === null) {
      // All field types can be null.
      return 'NULL';
    }
    switch (this._type.type) {
      case TypeSpec.CUSTOM:
        throw Error('Custom column type not supported');
      case TypeSpec.ASCII:
      case TypeSpec.TEXT:
      case TypeSpec.VARCHAR:
        return this.getString();
      case TypeSpec.BIGINT:
      case TypeSpec.INT:
      case TypeSpec.VARINT:
{'fraction_non_alphanumeric': 0.13105076741440377, 'fraction_numerical': 0.0, 'mean_word_length': 2.5239085239085237, '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': '6911572', 'n_tokens_mistral': 516, 'n_tokens_neox': 515, 'n_words': 125}