<commit_before>exports.migrate = function(properties) {
  // To view JavaScript console logs in the Rails debug log, be sure to make them single value and to only pass them
  // strings.  JSON.stringify is an easy way to dump a structure.
  console.log('the properties passed to migrate are: ');
  console.log(JSON.stringify(properties));
  return properties;
};<commit_msg>Update example migration to affect a selector option value<commit_after>exports.migrate = function(properties) {
  // To view JavaScript console logs in the Rails debug log, be sure to make them single value and to only pass them
  // strings.  JSON.stringify is an easy way to dump a structure.
  console.log('the properties passed to migrate are: ');
  console.log(JSON.stringify(properties));

  // Changing a selector option
  var currentPepperoniValue = properties.product_properties.example_selector.options.pizza_option.pepperoni.value;
  properties.product_properties.example_selector.options.pizza_option.pepperoni.value = !currentPepperoniValue;

  return properties;
};
{'fraction_non_alphanumeric': 0.08064516129032258, 'fraction_numerical': 0.0, 'mean_word_length': 4.7650273224043715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '935303', 'n_tokens_mistral': 281, 'n_tokens_neox': 273, 'n_words': 103}