<commit_before>package org.valuereporter.agent;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author <a href="<EMAIL>"><NAME></a>
 */
public class MonitorReporter {
    private final static Logger log = LoggerFactory.getLogger(MonitorReporter.class);

    // called by instrumented methods
    public static void reportTime(String name, long startTimeMillis, long endTimeMillis) {

       MonitorRepository.getInstance().observed(name, startTimeMillis, endTimeMillis);
    }

    public static void startHttpReporter(String reporterHost, int reporterPort, String reporterPrefix) {
        log.info("Init Http reporter to host {}, port {}, prefix {}", reporterHost, reporterPort, reporterPrefix);
        log.warn("Not Implemented http reporter");
        MonitorRepository.getInstance();

    }
}<commit_msg>#7 Adding support for observing activities.<commit_after>package org.valuereporter.agent;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.valuereporter.agent.activity.ActivityRepository;
import org.valuereporter.agent.activity.ObservedActivity;

/**
 * @author <a href="<EMAIL>"><NAME></a>
 */
public class MonitorReporter {
    private final static Logger log = LoggerFactory.getLogger(MonitorReporter.class);

    // called by instrumented methods
    public static void reportTime(String name, long startTimeMillis, long endTimeMillis) {

       MonitorRepository.getInstance().observed(name, startTimeMillis, endTimeMillis);
    }

    public static void reportActivity(ObservedActivity observedActivity) {
        ActivityRepository.getInstance().observed(observedActivity);
    }

    public static void startHttpReporter(String reporterHost, int reporterPort, String reporterPrefix) {
        log.info("Init Http reporter to host {}, port {}, prefix {}", reporterHost, reporterPort, reporterPrefix);
        log.warn("Not Implemented http reporter");
        MonitorRepository.getInstance();

    }
}
{'fraction_non_alphanumeric': 0.1027082268778743, 'fraction_numerical': 0.0025549310168625446, 'mean_word_length': 4.594285714285714, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3953501', 'n_tokens_mistral': 515, 'n_tokens_neox': 504, 'n_words': 131}