<commit_before>#! /usr/bin/env python

import nibabel as nib
import numpy as np
import argparse

from dipy.core.ndindex import ndindex
from dipy.reconst.odf import peak_directions
from dipy.core.sphere import Sphere


def peak_extraction(odfs_file, sphere_vertices_file, out_file, relative_peak_threshold=.5,
                    peak_normalize=1, min_separation_angle=45, max_peak_number=3):

    in_nifti = nib.load(odfs_file)
    refaff = in_nifti.get_affine()
    odfs = in_nifti.get_data()

    vertices = np.loadtxt(sphere_vertices_file)<commit_msg>corrected default value for peak_number<commit_after>#! /usr/bin/env python

import nibabel as nib
import numpy as np
import argparse

from dipy.core.ndindex import ndindex
from dipy.reconst.odf import peak_directions
from dipy.core.sphere import Sphere


def peak_extraction(odfs_file, sphere_vertices_file, out_file, relative_peak_threshold=.5,
                    peak_normalize=1, min_separation_angle=45, max_peak_number=5):

    in_nifti = nib.load(odfs_file)
    refaff = in_nifti.get_affine()
    odfs = in_nifti.get_data()

    vertices = np.loadtxt(sphere_vertices_file)
{'fraction_non_alphanumeric': 0.07760141093474426, 'fraction_numerical': 0.008818342151675485, 'mean_word_length': 4.536585365853658, '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': '1653751', 'n_tokens_mistral': 423, 'n_tokens_neox': 395, 'n_words': 85}