<commit_before># -*- coding: UTF-8 -*-
module Ledger
  class Transaction
    require 'date'

    INDENTATION   = "  "
    COMMENT_CHARS = ["#", ";", "%", "|", "*"]

    attr_reader :source
    def initialize(source)
      @source = source
    end

    def date
      @date ||= begin
        s = source.split( ).first
        DateTime.parse(source.split( ).first)
      end
    end

    def indented_source(distance=40)
      single_transactions = splitted_source
      header_array        = single_transactions[0..0]
<commit_msg>lines not needed<commit_after># -*- coding: UTF-8 -*-
module Ledger
  class Transaction
    require 'date'

    INDENTATION   = "  "
    COMMENT_CHARS = ["#", ";", "%", "|", "*"]

    attr_reader :source
    def initialize(source)
      @source = source
    end

    def date
      @date ||= begin
        DateTime.parse(source.split( ).first)
      end
    end

    def indented_source(distance=40)
      single_transactions = splitted_source
      header_array        = single_transactions[0..0]

{'fraction_non_alphanumeric': 0.12950340798442064, 'fraction_numerical': 0.009737098344693282, 'mean_word_length': 2.305466237942122, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2623387', 'n_tokens_mistral': 333, 'n_tokens_neox': 318, 'n_words': 69}