<commit_before>/* $Id$ */

//import javax.swing.*;

import java.util.*;
import ibis.satin.*;

final class BarnesHut extends SatinObject implements BarnesHutInterface {

    static boolean debug = false; //use -(no)debug to modify

    static boolean verbose = false; //use -v to turn on

    static final boolean ASSERTS = false; //also used in other barnes classes

    //number of bodies at which we work sequentially
    private static int spawn_threshold_bodies = 500; //use -t <threshold> to modify

    //true: Collect statistics about the various phases in each iteration
    public static boolean phase_timing = true; //use -(no)timing to modify

    //use the necessary tree implementation instead of shared objects
    public static boolean ntc_impl = false;

    private static long totalTime = 0;

    private static long btcomTime = 0, updateTime = 0;

    private static long[] forceCalcTimes;

    //Parameters for the BarnesHut algorithm / simulation
    private static final double THETA = 2.0; //cell subdivision tolerance

    static final double DT = 0.025; //integration time-step, used in Bodies

    //we do 7 iterations
    static final double START_TIME = 0.0;

    static final double END_TIME = 0.175;

    static int ITERATIONS = 7;

    private static int numBodies;

    private static int maxLeafBodies;

    BarnesHut() {}

    private static void processLinkedListResult(LinkedList result, double[] all_x,
            double[] all_y, double[] all_z) {
        Iterator it = result.iterator();
        int[] bodyNumbers;
        double[] tmp_x, tmp_y, tmp_z;
        int i;
<commit_msg>Set THETA back to 5.0<commit_after>/* $Id$ */

//import javax.swing.*;

import java.util.*;
import ibis.satin.*;

final class BarnesHut extends SatinObject implements BarnesHutInterface {

    static boolean debug = false; //use -(no)debug to modify

    static boolean verbose = false; //use -v to turn on

    static final boolean ASSERTS = false; //also used in other barnes classes

    //number of bodies at which we work sequentially
    private static int spawn_threshold_bodies = 500; //use -t <threshold> to modify

    //true: Collect statistics about the various phases in each iteration
    public static boolean phase_timing = true; //use -(no)timing to modify

    //use the necessary tree implementation instead of shared objects
    public static boolean ntc_impl = false;

    private static long totalTime = 0;

    private static long btcomTime = 0, updateTime = 0;

    private static long[] forceCalcTimes;

    //Parameters for the BarnesHut algorithm / simulation
    private static final double THETA = 5.0; //cell subdivision tolerance

    static final double DT = 0.025; //integration time-step, used in Bodies

    //we do 7 iterations
    static final double START_TIME = 0.0;

    static final double END_TIME = 0.175;

    static int ITERATIONS = 7;

    private static int numBodies;

    private static int maxLeafBodies;

    BarnesHut() {}

    private static void processLinkedListResult(LinkedList result, double[] all_x,
            double[] all_y, double[] all_z) {
        Iterator it = result.iterator();
        int[] bodyNumbers;
        double[] tmp_x, tmp_y, tmp_z;
        int i;

{'fraction_non_alphanumeric': 0.07983970406905055, 'fraction_numerical': 0.012946979038224414, 'mean_word_length': 2.966992665036675, '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': '6066129', 'n_tokens_mistral': 965, 'n_tokens_neox': 859, 'n_words': 372}