<commit_before>#!/usr/bin/env python
#
# null_background_ext.py
#
#  Copyright (C) 2013 Diamond Light Source
#
#  Author: <NAME>
#
#  This code is distributed under the BSD license, a copy of which is
#  included in the root directory of this package.
from __future__ import division

from dials.interfaces import BackgroundIface


class NullBackgroundExt(BackgroundIface):
  ''' An extension class implementing Null background subtraction. '''

  name = 'null'

  def compute_background(self, reflections):
    '''
    Compute the background.

    :param reflections: The list of reflections

    '''
    from dials.algorithms.background import set_shoebox_background_value
    set_shoebox_background_value(reflections['shoebox'], 0)<commit_msg>Fixed test<commit_after>#!/usr/bin/env python
#
# null_background_ext.py
#
#  Copyright (C) 2013 Diamond Light Source
#
#  Author: <NAME>
#
#  This code is distributed under the BSD license, a copy of which is
#  included in the root directory of this package.
from __future__ import division

from dials.interfaces import BackgroundIface


class NullBackgroundExt(BackgroundIface):
  ''' An extension class implementing Null background subtraction. '''

  name = 'null'

  def compute_background(self, reflections):
    '''
    Compute the background.

    :param reflections: The list of reflections

    '''
    from dials.algorithms.background import set_shoebox_background_value
    from dials.array_family import flex
    set_shoebox_background_value(reflections['shoebox'], 0)
    return flex.bool(len(reflections), True)
{'fraction_non_alphanumeric': 0.08195679796696315, 'fraction_numerical': 0.0063532401524777635, 'mean_word_length': 4.526315789473684, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5879392', 'n_tokens_mistral': 475, 'n_tokens_neox': 441, 'n_words': 145}