<commit_before>module Texas
  module Build
    module Task
      class OpenPDF < Base
        DEFAULT_OPEN_CMD = "evince"

        def cmd
          @cmd ||= scripts && scripts['open']
        end

        def scripts
          build.config['script']
        end

        def run
          return unless build.options.open_pdf
          if open_pdf_cmd
            system "#{open_pdf_cmd} #{build.dest_file}"
          else
            puts "Can't open PDF: no default command recognized. Specify in #{CONFIG_FILE}"
          end
        end

        def open_pdf_cmd
          if cmd
            cmd
          else
            default = `which #{DEFAULT_OPEN_CMD}`.strip
            default.empty? ? nil : default
          end
        end

      end
    end
  end
end
<commit_msg>Use Build::Base::CONFIG_FILE instead of wrong CONFIG_FILE constant in Task::OpenPDF<commit_after>module Texas
  module Build
    module Task
      class OpenPDF < Base
        DEFAULT_OPEN_CMD = "evince"

        def cmd
          @cmd ||= scripts && scripts['open']
        end

        def scripts
          build.config['script']
        end

        def run
          return unless build.options.open_pdf
          if open_pdf_cmd
            system "#{open_pdf_cmd} #{build.dest_file}"
          else
            puts "Can't open PDF: no default command recognized. Specify in #{Build::Base::CONFIG_FILE}"
          end
        end

        def open_pdf_cmd
          if cmd
            cmd
          else
            default = `which #{DEFAULT_OPEN_CMD}`.strip
            default.empty? ? nil : default
          end
        end

      end
    end
  end
end

{'fraction_non_alphanumeric': 0.0692167577413479, 'fraction_numerical': 0.0, 'mean_word_length': 1.4781954887218045, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7127869', 'n_tokens_mistral': 444, 'n_tokens_neox': 433, 'n_words': 134}