<commit_before>package com.orientechnologies.orient.core.db.tool;

import com.orientechnologies.orient.core.command.OCommandOutputListener;
import com.orientechnologies.orient.core.db.*;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import com.orientechnologies.orient.core.record.OEdge;
import com.orientechnologies.orient.core.record.OVertex;
import org.junit.Assert;
import org.junit.Test;

public class ODatabaseSuperNodeTest {

  public static void main(String[] args) {
    final ODatabaseSuperNodeTest tester = new ODatabaseSuperNodeTest();

    final List<Integer> numberEdges =
        Arrays.asList(1); // 100000, 500000, 1000000, 5000000, 10000000
    final List<Long> results = new ArrayList<>(numberEdges.size());

    for (int numberEdge : numberEdges) {
      final String databaseName = "superNode_export";
      final String exportDbUrl =
          "memory:target/export_" + ODatabaseSuperNodeTest.class.getSimpleName();
      OrientDB orientDB = tester.createDatabase(databaseName, exportDbUrl);

      final ByteArrayOutputStream output = new ByteArrayOutputStream();
      try {
        testExportDatabase(numberEdge, results, databaseName, orientDB, output);
        for (int i = 0; i < results.size(); i++) {
          System.out.println("Export-" + numberEdge + "(ms)=" + results.get(i));
        }<commit_msg>formatting<commit_after>package com.orientechnologies.orient.core.db.tool;

import com.orientechnologies.orient.core.command.OCommandOutputListener;
import com.orientechnologies.orient.core.db.*;
import com.orientechnologies.orient.core.record.OEdge;
import com.orientechnologies.orient.core.record.OVertex;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Assert;

public class ODatabaseSuperNodeTest {

  public static void main(String[] args) {
    final ODatabaseSuperNodeTest tester = new ODatabaseSuperNodeTest();

    final List<Integer> numberEdges =
        Arrays.asList(1); // 100000, 500000, 1000000, 5000000, 10000000
    final List<Long> results = new ArrayList<>(numberEdges.size());

    for (int numberEdge : numberEdges) {
      final String databaseName = "superNode_export";
      final String exportDbUrl =
          "memory:target/export_" + ODatabaseSuperNodeTest.class.getSimpleName();
      OrientDB orientDB = tester.createDatabase(databaseName, exportDbUrl);

      final ByteArrayOutputStream output = new ByteArrayOutputStream();
      try {
        testExportDatabase(numberEdge, results, databaseName, orientDB, output);
        for (int i = 0; i < results.size(); i++) {
          System.out.println("Export-" + numberEdge + "(ms)=" + results.get(i));
        }
{'fraction_non_alphanumeric': 0.10961214165261383, 'fraction_numerical': 0.024283305227655986, 'mean_word_length': 4.392727272727273, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '5632806', 'n_tokens_mistral': 917, 'n_tokens_neox': 841, 'n_words': 186}