<commit_before>package com.orientechnologies.orient.core.sql;

import com.orientechnologies.orient.core.command.OCommandResultListener;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.sql.query.OSQLNonBlockingQuery;
import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * Created by luigidellaquila on 13/04/15.
 */
@Test
public class ONonBlockingQueryTest {

  static class MyResultListener implements OCommandResultListener{

    public int numResults = 0;
    public boolean finished = false;

    @Override public boolean result(Object iRecord) {
      numResults++;
      return true;
    }

    @Override public void end() {
      finished = true;
    }
  }

  @Test
  public void testExceptionManagement() {<commit_msg>Fix compilation error due to previous wrong commit<commit_after>package com.orientechnologies.orient.core.sql;

import com.orientechnologies.orient.core.command.OCommandResultListener;
import com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx;
import com.orientechnologies.orient.core.sql.query.OSQLNonBlockingQuery;
import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * Created by luigidellaquila on 13/04/15.
 */
@Test
public class ONonBlockingQueryTest {

  static class MyResultListener implements OCommandResultListener{

    public int numResults = 0;
    public boolean finished = false;

    @Override public boolean result(Object iRecord) {
      numResults++;
      return true;
    }

    @Override public void end() {
      finished = true;
    }

    @Override public Object getResult() {
      return null;
    }
  }

  @Test
  public void testExceptionManagement() {
{'fraction_non_alphanumeric': 0.08726003490401396, 'fraction_numerical': 0.008144269924374637, 'mean_word_length': 4.073746312684365, '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': '4630980', 'n_tokens_mistral': 517, 'n_tokens_neox': 495, 'n_words': 117}