<commit_before>{
  "name" : "ChangeLabel",
  "template_code_filename" : "ImageFilter",
  "template_test_filename" : "ImageFilter",
  "number_of_inputs" : 1,
  "doc" : "Docs",
  "pixel_types" : "IntegerPixelIDTypeList",
  "members" : [
    {
      "name" : "ChangeMap",
      "type" : "std::map<double,double>",
      "default" : "std::map<double,double>()",
      "no_print" : 1,
      "custom_itk_cast" : "typename FilterType::ChangeMapType cmap; for( std::map<double,double>::const_iterator i = m_ChangeMap.begin(); i != m_ChangeMap.end(); ++i ) { cmap[i->first] = i->second; } filter->SetChangeMap( cmap );",
      "briefdescriptionSet" : "",
      "detaileddescriptionSet" : "Set the entire change map\n"
    }
  ],
  "tests" : [
    {
      "tag" : "defaults",
      "description" : "Just running the filter with no change map.",
      "settings" : [],
      "md5hash" : "ce4de7d926155a70b234bd05181a5c3e",
      "inputs" : [
        "Input/2th_cthead1.png"
      ]
    }
  ],
  "briefdescription" : "Change Sets of Labels.\n",
  "detaileddescription" : "This filter produces an output image whose pixels are either copied from the input if they are not being changed or are rewritten based on the change parameters\nThis filter is templated over the input image type and the output image type.\nThe filter expect both images to have the same number of dimensions.\n\\author <NAME>. GE Research, Niskayuna, NY.\n\\note This work was supported by a grant from DARPA, executed by the U.S. Army Medical Research and Materiel Command/TATRC Assistance Agreement, Contract::W81XWH-05-2-0059.\n\n"
}<commit_msg>Adding casting of for pixel types in map for ChangeLabel<commit_after>{
  "name" : "ChangeLabel",
  "template_code_filename" : "ImageFilter",
  "template_test_filename" : "ImageFilter",
  "number_of_inputs" : 1,
  "doc" : "Docs",
  "pixel_types" : "IntegerPixelIDTypeList",
  "members" : [
    {
      "name" : "ChangeMap",
      "type" : "std::map<double,double>",
      "default" : "std::map<double,double>()",
      "no_print" : 1,
      "custom_itk_cast" : "typename FilterType::ChangeMapType cmap; for( std::map<double,double>::const_iterator i = m_ChangeMap.begin(); i != m_ChangeMap.end(); ++i ) { cmap[static_cast<typename FilterType::InputPixelType>(i->first)] = static_cast<typename FilterType::OutputPixelType>(i->second); } filter->SetChangeMap( cmap );",
      "briefdescriptionSet" : "",
      "detaileddescriptionSet" : "Set the entire change map\n"
    }
  ],
  "tests" : [
    {
      "tag" : "defaults",
      "description" : "Just running the filter with no change map.",
      "settings" : [],
      "md5hash" : "ce4de7d926155a70b234bd05181a5c3e",
      "inputs" : [
        "Input/2th_cthead1.png"
      ]
    }
  ],
  "briefdescription" : "Change Sets of Labels.\n",
  "detaileddescription" : "This filter produces an output image whose pixels are either copied from the input if they are not being changed or are rewritten based on the change parameters\nThis filter is templated over the input image type and the output image type.\nThe filter expect both images to have the same number of dimensions.\n\\author <NAME>. GE Research, Niskayuna, NY.\n\\note This work was supported by a grant from DARPA, executed by the U.S. Army Medical Research and Materiel Command/TATRC Assistance Agreement, Contract::W81XWH-05-2-0059.\n\n"
}
{'fraction_non_alphanumeric': 0.13622843545508626, 'fraction_numerical': 0.020226055919095775, 'mean_word_length': 3.7905982905982905, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '7574691', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1067, 'n_words': 303}