<commit_before>module Cassanity
  module ArgumentGenerators
    class UsingClause
      def call(args = {})
        using = args[:using]
        cql, variables, usings = '', [], []

        return [cql] if using.nil? || using.empty?

        using.each do |key, value|
          usings << "#{key.upcase} #{value}"
        end

        cql << " USING #{usings.join(' AND ')}"

        [cql, *variables]
      end<commit_msg>Early return before creating arrays for using clause<commit_after>module Cassanity
  module ArgumentGenerators
    class UsingClause
      def call(args = {})
        using = args[:using]
        cql = ''

        return [cql] if using.nil? || using.empty?

        variables, usings = [], []

        using.each do |key, value|
          usings << "#{key.upcase} #{value}"
        end

        cql << " USING #{usings.join(' AND ')}"

        [cql, *variables]
      end
{'fraction_non_alphanumeric': 0.13758389261744966, 'fraction_numerical': 0.0, 'mean_word_length': 2.065068493150685, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5005465', 'n_tokens_mistral': 276, 'n_tokens_neox': 267, 'n_words': 72}