<commit_before>import ObjectActions from '../actions/object';

export default class {

  constructor(data){
    if(Object.keys(data).length === 0)
      return;

    this.name = data.name;
    this.allowedOperators = ['='];

    this.equals = (value) => {
      return value === this.value;
    };

    switch(data.type){
      case 'string':
        this.type = 'string';
        this.state = '';

        if(data.values && data.values.constructor === Array){<commit_msg>Fix for object equals func<commit_after>import ObjectActions from '../actions/object';

export default class {

  constructor(data){
    if(Object.keys(data).length === 0)
      return;

    this.name = data.name;
    this.allowedOperators = ['='];

    this.equals = (value) => {
      return value === this.state;
    };

    switch(data.type){
      case 'string':
        this.type = 'string';
        this.state = '';

        if(data.values && data.values.constructor === Array){
{'fraction_non_alphanumeric': 0.16300940438871472, 'fraction_numerical': 0.0020898641588296763, 'mean_word_length': 2.5350553505535056, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3268287', 'n_tokens_mistral': 291, 'n_tokens_neox': 278, 'n_words': 59}