<commit_before># -*- coding: utf-8 -*-
"""Definitions of functions and classes for scaling and filtering algorithm."""
from __future__ import absolute_import, division, print_function

import math
from collections import OrderedDict

from dials.report.plots import ResolutionPlotterMixin
from libtbx import phil
from scitbx.array_family import flex

phil_scope = phil.parse(
    """
filtering {
    method = deltacchalf
        .type = choice
        .help = "Choice of whether to do any filtering cycles, default None."
    deltacchalf {
        max_cycles = 6
            .type = int(value_min=1)
        max_percent_removed = 10
            .type = float
        min_completeness = None
            .type = float(value_min=0, value_max=100)
            .help = "Desired minimum completeness, as a percentage (0 - 100)."
        mode = *dataset image_group<commit_msg>Add None option in scaling and filtering method choice.<commit_after># -*- coding: utf-8 -*-
"""Definitions of functions and classes for scaling and filtering algorithm."""
from __future__ import absolute_import, division, print_function

import math
from collections import OrderedDict

from dials.report.plots import ResolutionPlotterMixin
from libtbx import phil
from scitbx.array_family import flex

phil_scope = phil.parse(
    """
filtering {
    method = None deltacchalf
        .type = choice
        .help = "Choice of whether to do any filtering cycles, default None."
    deltacchalf {
        max_cycles = 6
            .type = int(value_min=1)
        max_percent_removed = 10
            .type = float
        min_completeness = None
            .type = float(value_min=0, value_max=100)
            .help = "Desired minimum completeness, as a percentage (0 - 100)."
        mode = *dataset image_group
{'fraction_non_alphanumeric': 0.07778399552322328, 'fraction_numerical': 0.014549524342473419, 'mean_word_length': 2.828693790149893, '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': '4808205', 'n_tokens_mistral': 525, 'n_tokens_neox': 487, 'n_words': 170}