<commit_before>#include "dwi/gradient.h"

namespace MR
{
  namespace DWI
  {

    using namespace App;

    OptionGroup GradImportOptions (bool include_bvalue_scaling)
    {
      OptionGroup group ("DW gradient table import options");

      group 
        + Option ("grad",
            "specify the diffusion-weighted gradient scheme used in the acquisition. "
            "The program will normally attempt to use the encoding stored in the image "
            "header. This should be supplied as a 4xN text file with each line is in "
            "the format [ X Y Z b ], where [ X Y Z ] describe the direction of the "
            "applied gradient, and b gives the b-value in units of s/mm^2.")
        +   Argument ("encoding").type_file_in()

        + Option ("fslgrad",
            "specify the diffusion-weighted gradient scheme used in the acquisition in FSL bvecs/bvals format.")
        +   Argument ("bvecs").type_file_in()
        +   Argument ("bvals").type_file_in();

      if (include_bvalue_scaling) 
        group 
          + Option ("bvalue_scaling",
              "specifies whether the b-values should be scaled by the square of "
              "the corresponding DW gradient norm, as often required for "
              "multi-shell or DSI DW acquisition schemes. The default action can "
              "also be set in the MRtrix config file, under the BValueScaling entry. "
              "Valid choices are yes/no, true/false, 0/1.")
          +   Argument ("mode").type_bool (true);

      return group;
    }
<commit_msg>state default value of -bvalue_scaling option in doc string<commit_after>#include "dwi/gradient.h"

namespace MR
{
  namespace DWI
  {

    using namespace App;

    OptionGroup GradImportOptions (bool include_bvalue_scaling)
    {
      OptionGroup group ("DW gradient table import options");

      group 
        + Option ("grad",
            "specify the diffusion-weighted gradient scheme used in the acquisition. "
            "The program will normally attempt to use the encoding stored in the image "
            "header. This should be supplied as a 4xN text file with each line is in "
            "the format [ X Y Z b ], where [ X Y Z ] describe the direction of the "
            "applied gradient, and b gives the b-value in units of s/mm^2.")
        +   Argument ("encoding").type_file_in()

        + Option ("fslgrad",
            "specify the diffusion-weighted gradient scheme used in the acquisition in FSL bvecs/bvals format.")
        +   Argument ("bvecs").type_file_in()
        +   Argument ("bvals").type_file_in();

      if (include_bvalue_scaling) 
        group 
          + Option ("bvalue_scaling",
              "specifies whether the b-values should be scaled by the square of "
              "the corresponding DW gradient norm, as often required for "
              "multi-shell or DSI DW acquisition schemes. The default action can "
              "also be set in the MRtrix config file, under the BValueScaling entry. "
              "Valid choices are yes/no, true/false, 0/1 (default: true).")
          +   Argument ("mode").type_bool (true);

      return group;
    }

{'fraction_non_alphanumeric': 0.08027812895069532, 'fraction_numerical': 0.0025284450063211127, 'mean_word_length': 2.236196319018405, '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': '1417798', 'n_tokens_mistral': 859, 'n_tokens_neox': 813, 'n_words': 340}