<commit_before>// TODO: https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ApiConfig

export default class ApiConfig {
  constructor(sessionRequest, sessionListener, receiverListener, opt_autoJoinPolicy, opt_defaultActionPolicy) {
    this.sessionRequest = sessionRequest;
    this.sessionListener = sessionListener;
    this.receiverListener = receiverListener;
    this.autoJoinPolicy = opt_autoJoinPolicy;
    this.defaultActionPolicy = opt_defaultActionPolicy;
  }
}
<commit_msg>Add defaults to ApiConfig<commit_after>// TODO: https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ApiConfig

export default class ApiConfig {
  constructor(sessionRequest, sessionListener, receiverListener, opt_autoJoinPolicy, opt_defaultActionPolicy) {
    this.sessionRequest = sessionRequest;
    this.sessionListener = sessionListener;
    this.receiverListener = receiverListener;
    this.autoJoinPolicy = opt_autoJoinPolicy || chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;
    this.defaultActionPolicy = opt_defaultActionPolicy || chrome.cast.DefaultActionPolicy.CREATE_SESSION;
  }
}

{'fraction_non_alphanumeric': 0.08602150537634409, 'fraction_numerical': 0.0, 'mean_word_length': 5.895061728395062, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7034296', 'n_tokens_mistral': 307, 'n_tokens_neox': 305, 'n_words': 49}