<commit_before>require "zebra/zpl/printable"

module Zebra
  module Zpl
    class Box
      include Printable

      class InvalidLineThickness < StandardError; end

      attr_reader :line_thickness, :box_width, :box_height

      def line_thickness=(thickness)
        raise InvalidLineThickness unless thickness.nil? || thickness.to_i.to_s == thickness.to_s
        @line_thickness = thickness
      end

      def box_width=(width)
        @box_width = width
      end

      def box_height=(height)
        @box_height = height
      end

      def to_zpl
        check_attributes
        # "^FO#{x},#{y}^GB#{box_width},#{box_height},#{line_thickness}^FS"
        "^FO#{x},#{y}^GB#{box_width},#{box-height},#{line_thickness}^FS"
      end

      private

      def has_data?
        false
      end<commit_msg>Fix typo in box module zpl builder<commit_after>require "zebra/zpl/printable"

module Zebra
  module Zpl
    class Box
      include Printable

      class InvalidLineThickness < StandardError; end

      attr_reader :line_thickness, :box_width, :box_height

      def line_thickness=(thickness)
        raise InvalidLineThickness unless thickness.nil? || thickness.to_i.to_s == thickness.to_s
        @line_thickness = thickness
      end

      def box_width=(width)
        @box_width = width
      end

      def box_height=(height)
        @box_height = height
      end

      def to_zpl
        check_attributes
        # "^FO#{x},#{y}^GB#{box_width},#{box_height},#{line_thickness}^FS"
        "^FO#{x},#{y}^GB#{box_width},#{box_height},#{line_thickness}^FS"
      end

      private

      def has_data?
        false
      end
{'fraction_non_alphanumeric': 0.10478497880072683, 'fraction_numerical': 0.0, 'mean_word_length': 2.606986899563319, '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': '1162004', 'n_tokens_mistral': 551, 'n_tokens_neox': 532, 'n_words': 105}