<commit_before>module Dry
  module Transaction
    class StepAdapters
      # @api private
      class Check
        include Dry::Monads::Either::Mixin

        def call(operation, _options, args)
          input = args[0]
          res = operation.(*args)
          res == true || res.is_a?(Success) ? Success(input) : Failure(input)
        end<commit_msg>Change Either to Result in Check step adapter<commit_after>module Dry
  module Transaction
    class StepAdapters
      # @api private
      class Check
        include Dry::Monads::Result::Mixin

        def call(operation, _options, args)
          input = args[0]
          res = operation.(*args)
          res == true || res.is_a?(Success) ? Success(input) : Failure(input)
        end
{'fraction_non_alphanumeric': 0.09893048128342247, 'fraction_numerical': 0.00267379679144385, 'mean_word_length': 2.373873873873874, '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': '7237896', 'n_tokens_mistral': 211, 'n_tokens_neox': 205, 'n_words': 58}