<commit_before>module GraphQL::Batch
  class MutationExecutionStrategy < GraphQL::Batch::ExecutionStrategy
    class FieldResolution < GraphQL::Batch::ExecutionStrategy::FieldResolution
      def get_finished_value(raw_value)
        return super if execution_context.strategy.disable_batching

        raw_value = GraphQL::Batch::Promise.resolve(raw_value).sync

        execution_context.strategy.disable_batching = true
        begin
          result = super(raw_value)
          GraphQL::Batch::Executor.current.wait_all
          result
        ensure<commit_msg>Use Promise.sync in the mutation execution strategy as well<commit_after>module GraphQL::Batch
  class MutationExecutionStrategy < GraphQL::Batch::ExecutionStrategy
    class FieldResolution < GraphQL::Batch::ExecutionStrategy::FieldResolution
      def get_finished_value(raw_value)
        return super if execution_context.strategy.disable_batching

        raw_value = Promise.sync(raw_value)

        execution_context.strategy.disable_batching = true
        begin
          result = super(raw_value)
          GraphQL::Batch::Executor.current.wait_all
          result
        ensure
{'fraction_non_alphanumeric': 0.0690846286701209, 'fraction_numerical': 0.0, 'mean_word_length': 3.6546184738955825, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7242200', 'n_tokens_mistral': 296, 'n_tokens_neox': 290, 'n_words': 55}