<commit_before>package com.github.brandtg;

import java.io.File;

import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

public class PlotTest {

  @BeforeClass
  public void setUp() {

  }

  @Test
  public void testPlot() throws Exception {
    final ObjectMapper objectMapper = new ObjectMapper();
    final JsonNode tree = objectMapper.readTree(new File(this.getClass().getResource("/sample-timeseries.json").getFile()));
    final int n = tree.get("times").size();
    final double[] ts = new double[n];
    final double[] ys = new double[n];

    for (int i = 0; i < n; i++) {
      ts[i] = tree.get("times").get(i).asDouble();
      ys[i] = tree.get("series").get(i).asDouble();
    }

    final StlConfig config = new StlConfig();

    config.setNumberOfObservations(12);
    config.setNumberOfDataPoints(ts.length);

    final StlDecomposition stl = new StlDecomposition(config);
    final StlResult res = stl.decompose(ts, ys);
    StlPlotter.plot(res);
  }
}<commit_msg>Disabled PlotTest for CI<commit_after>package com.github.brandtg;

import java.io.File;

import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

public class PlotTest {

  @BeforeClass
  public void setUp() {

  }

  @Test(enabled = false)
  public void testPlot() throws Exception {
    final ObjectMapper objectMapper = new ObjectMapper();
    final JsonNode tree = objectMapper.readTree(new File(this.getClass().getResource("/sample-timeseries.json").getFile()));
    final int n = tree.get("times").size();
    final double[] ts = new double[n];
    final double[] ys = new double[n];

    for (int i = 0; i < n; i++) {
      ts[i] = tree.get("times").get(i).asDouble();
      ys[i] = tree.get("series").get(i).asDouble();
    }

    final StlConfig config = new StlConfig();

    config.setNumberOfObservations(12);
    config.setNumberOfDataPoints(ts.length);

    final StlDecomposition stl = new StlDecomposition(config);
    final StlResult res = stl.decompose(ts, ys);
    StlPlotter.plot(res);
  }
}
{'fraction_non_alphanumeric': 0.13782337198929528, 'fraction_numerical': 0.0026761819803746653, 'mean_word_length': 3.9844444444444442, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1879683', 'n_tokens_mistral': 757, 'n_tokens_neox': 708, 'n_words': 160}