<commit_before># Easyzpl
[![Build Status](https://travis-ci.org/mgrigajtis/easyzpl.svg?branch=master)](https://travis-ci.org/mgrigajtis/easyzpl)

Makes it easy to write ZPL & ZPL2.

## Installation

Add this line to your application's Gemfile:

    gem 'easyzpl'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install easyzpl

## Usage

    require 'rubygems'
    require 'easyzpl'

    label = Easyzpl::Label.new
    label.home_position(30, 30)
    label.draw_border(0, 0, 400, 300)
    label.text_field('ZEBRA', 10, 10)
    label.bar_code_39('ZEBRA', 10, 30)
    puts label.to_s

## Contributing

1. Fork it ( https://github.com/[my-github-username]/easyzpl/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>Adds examples for storing and accessing saved label templates.<commit_after># Easyzpl
[![Build Status](https://travis-ci.org/mgrigajtis/easyzpl.svg?branch=master)](https://travis-ci.org/mgrigajtis/easyzpl)

Makes it easy to write ZPL & ZPL2.

## Installation

Add this line to your application's Gemfile:

    gem 'easyzpl'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install easyzpl

## Usage

    require 'rubygems'
    require 'easyzpl'

    # Create a simple label
    label = Easyzpl::Label.new
    label.home_position(30, 30)
    label.draw_border(0, 0, 400, 300)
    label.text_field('ZEBRA', 10, 10)
    label.bar_code_39('ZEBRA', 10, 30)
    puts label.to_s

    # Create a stored template
    label = Easyzpl::LabelTemplate.new('Template1')
    label.home_position(30, 30)
    label.draw_border(0, 0, 400, 300)
    label.variable_text_field(10, 10)
    label.variable_bar_code_39(10, 30)
    puts label.to_s

    # Created ZPL code to access the stored template created above
    label = Easyzpl::StoredLabel.new('Template1')
    label.add_field('ZEBRA')
    label.add_field('ZEBRA')
    puts label.to_s

## Contributing

1. Fork it ( https://github.com/[my-github-username]/easyzpl/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.12064570943075616, 'fraction_numerical': 0.033984706881903144, 'mean_word_length': 3.608610567514677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '692133', 'n_tokens_mistral': 908, 'n_tokens_neox': 816, 'n_words': 231}