<commit_before>module NetSuite
  module Records
    class CurrencyRate
      include Support::Records
      include Support::Fields

      include Support::Actions
      include Support::RecordRefs
      include Namespaces::ListAcct

      # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/currencyrate.html

      actions :get, :get_list, :search

      fields :base_currency, :effective_date, :exchange_rate, :transaction_currency
      
      record_refs :base_currency, :transaction_currency
      
      #field :base_currency, Currency
      #field :transaction_currency, Currency

      attr_reader :internal_id
      attr_accessor :external_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)

        initialize_from_attributes_hash(attributes)
      end
<commit_msg>Adding search_joins to currency_rate<commit_after>module NetSuite
  module Records
    class CurrencyRate
      include Support::Records
      include Support::Fields

      include Support::Actions
      include Support::RecordRefs
      include Namespaces::ListAcct

      # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/currencyrate.html

      actions :get, :get_list, :search

      fields :base_currency, :effective_date, :exchange_rate, :transaction_currency

      record_refs :base_currency, :transaction_currency

      #field :base_currency, Currency
      #field :transaction_currency, Currency

      attr_reader :internal_id
      attr_accessor :external_id
      attr_accessor :search_joins

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)

        initialize_from_attributes_hash(attributes)
      end

{'fraction_non_alphanumeric': 0.08370480435859336, 'fraction_numerical': 0.004952947003467063, 'mean_word_length': 3.7196261682242993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5756524', 'n_tokens_mistral': 571, 'n_tokens_neox': 543, 'n_words': 103}