<commit_before># Record Code 40
class PoaLineItem < ActiveRecord::Base
  include Updateable
  extend PoaRecord

  belongs_to :poa_order_header
  belongs_to :poa_status
  belongs_to :dc_code
  belongs_to :line_item
  delegate_belongs_to :poa_order_header, :order
  delegate_belongs_to :line_item, :variant

  def self.spec(d)
    d.poa_line_item(:singular => false) do |l|
      l.trap {|line| line[0,2] == '40'}
      l.template :poa_defaults_plus
      l.line_item_po_number 10
      l.spacer 12
      l.line_item_item_number 20
      l.spacer 3
      l.spacer 3
      l.poa_status 2
      l.dc_code 1
    end
  end

  def before_populate(data)<commit_msg>factory + spec for poa_line_item<commit_after># Record Code 40
class PoaLineItem < ActiveRecord::Base
  include Updateable
  extend PoaRecord

  belongs_to :poa_order_header
  belongs_to :poa_status
  belongs_to :dc_code
  belongs_to :line_item
  delegate_belongs_to :poa_order_header, :order
  delegate_belongs_to :poa_order_header, :poa_file
  delegate_belongs_to :line_item, :variant

  def self.spec(d)
    d.poa_line_item(:singular => false) do |l|
      l.trap {|line| line[0,2] == '40'}
      l.template :poa_defaults_plus
      l.line_item_po_number 10
      l.spacer 12
      l.line_item_item_number 20
      l.spacer 3
      l.spacer 3
      l.poa_status 2
      l.dc_code 1
    end
  end

  def before_populate(data)
{'fraction_non_alphanumeric': 0.07658959537572255, 'fraction_numerical': 0.023121387283236993, 'mean_word_length': 3.328125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2944549', 'n_tokens_mistral': 555, 'n_tokens_neox': 527, 'n_words': 115}