<commit_before>package com.twitter.mesos.scheduler.storage;

import com.twitter.mesos.gen.TaskUpdateConfiguration;
import com.twitter.mesos.gen.TwitterTaskInfo;

import javax.annotation.Nullable;
import java.util.Map;
import java.util.Set;

/**
 * Stores all update configurations for on-going updates.
 * Includes the old configuration and the updated configuration for the tasks in a job.
 *
 * @author <NAME>, <NAME>.
 */
public interface UpdateStore {
  public static class ShardUpdateConfiguration {
    private final String updateToken;
    private final TaskUpdateConfiguration taskConfig;

    public ShardUpdateConfiguration(String updateToken, TaskUpdateConfiguration taskConfig) {
      this.updateToken = updateToken;
      this.taskConfig = taskConfig;
    }

    public String getUpdateToken() {
      return updateToken;
    }

    public TaskUpdateConfiguration getTaskConfig() {
      return taskConfig;
    }

    public TwitterTaskInfo getOldConfig() {
      return taskConfig.getOldConfig();
    }

    public TwitterTaskInfo getNewConfig() {<commit_msg>Squashed commit of the following:<commit_after>package com.twitter.mesos.scheduler.storage;

import com.twitter.mesos.gen.TaskUpdateConfiguration;
import com.twitter.mesos.gen.TwitterTaskInfo;

import javax.annotation.Nullable;
import java.util.Map;
import java.util.Set;

/**
 * Stores all update configurations for on-going updates.
 * Includes the old configuration and the updated configuration for the tasks in a job.
 *
 * @author <NAME>, <NAME>.
 */
public interface UpdateStore {
  public static class ShardUpdateConfiguration {
    private final String updateToken;
    private final TaskUpdateConfiguration taskConfig;

    public ShardUpdateConfiguration(String updateToken, TaskUpdateConfiguration taskConfig) {
      this.updateToken = updateToken;
      this.taskConfig = taskConfig;
    }

    public String getUpdateToken() {
      return updateToken;
    }

    public TwitterTaskInfo getOldConfig() {
      return taskConfig.getOldConfig();
    }

    public TwitterTaskInfo getNewConfig() {
{'fraction_non_alphanumeric': 0.07681228996639462, 'fraction_numerical': 0.0, 'mean_word_length': 4.12039312039312, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2402734', 'n_tokens_mistral': 547, 'n_tokens_neox': 532, 'n_words': 155}