<commit_before>package codeOrchestra.colt.core.tracker;

import codeOrchestra.util.FingerprintUtil;
import codeOrchestra.util.StringUtils;
import com.dmurph.tracking.AnalyticsConfigData;
import com.dmurph.tracking.AnalyticsRequestData;
import com.dmurph.tracking.JGoogleAnalyticsTracker;
import com.dmurph.tracking.VisitorData;
import com.dmurph.tracking.system.AWTSystemPopulator;

/**
 * @author <NAME>
 */
public class GATracker {
    private static GATracker ourInstance = new GATracker();

    private JGoogleAnalyticsTracker tracker;

    private final String hostName = "codeorchestra.com";
    private String prevPage = "/";
    private String prevPageTitle = "";


    public static GATracker getInstance() {
        return ourInstance;
    }

    private GATracker() {
        JGoogleAnalyticsTracker.setProxy(System.getenv("http_proxy"));
        int UUID = FingerprintUtil.getNumericFingerPrint();
        VisitorData visitorData = VisitorData.newVisitor(UUID);
        String gaCode = System.getProperty("ga.code");
        if (StringUtils.isEmpty(gaCode)) {
            gaCode = "UA-40699654-3";
        }
//        System.out.println("gaCode = " + gaCode);
        AnalyticsConfigData config = new AnalyticsConfigData(gaCode, visitorData);
        AWTSystemPopulator.populateConfigData(config);

        tracker = new JGoogleAnalyticsTracker(config, JGoogleAnalyticsTracker.GoogleAnalyticsVersion.V_4_7_2);
    }

    public void trackEvent(String argCategory, String argAction) {
        tracker.trackEvent(argCategory, argAction);
    }<commit_msg>make abs for UUID<commit_after>package codeOrchestra.colt.core.tracker;

import codeOrchestra.util.FingerprintUtil;
import codeOrchestra.util.StringUtils;
import com.dmurph.tracking.AnalyticsConfigData;
import com.dmurph.tracking.AnalyticsRequestData;
import com.dmurph.tracking.JGoogleAnalyticsTracker;
import com.dmurph.tracking.VisitorData;
import com.dmurph.tracking.system.AWTSystemPopulator;

/**
 * @author <NAME>
 */
public class GATracker {
    private static GATracker ourInstance = new GATracker();

    private JGoogleAnalyticsTracker tracker;

    private final String hostName = "codeorchestra.com";
    private String prevPage = "/";
    private String prevPageTitle = "";


    public static GATracker getInstance() {
        return ourInstance;
    }

    private GATracker() {
        JGoogleAnalyticsTracker.setProxy(System.getenv("http_proxy"));
        int UUID = Math.abs(FingerprintUtil.getNumericFingerPrint());
        VisitorData visitorData = VisitorData.newVisitor(UUID);
        String gaCode = System.getProperty("ga.code");
        if (StringUtils.isEmpty(gaCode)) {
            gaCode = "UA-40699654-3";
        }
//        System.out.println("gaCode = " + gaCode);
        AnalyticsConfigData config = new AnalyticsConfigData(gaCode, visitorData);
        AWTSystemPopulator.populateConfigData(config);

        tracker = new JGoogleAnalyticsTracker(config, JGoogleAnalyticsTracker.GoogleAnalyticsVersion.V_4_7_2);
    }

    public void trackEvent(String argCategory, String argAction) {
        tracker.trackEvent(argCategory, argAction);
    }
{'fraction_non_alphanumeric': 0.09573791348600509, 'fraction_numerical': 0.007633587786259542, 'mean_word_length': 3.937205651491366, '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': '5211131', 'n_tokens_mistral': 951, 'n_tokens_neox': 921, 'n_words': 169}