<commit_before>module StraightServer

  # This module contains common features of Gateway, later to be included
  # in one of the classes below.
  module GatewayModule

    @@redis = StraightServer::Config.redis[:connection]
    @@websockets = {}
    
    def fetch_transactions_for(address)
      try_adapters(@blockchain_adapters) { |b| b.fetch_transactions_for(address) }
    end

    class InvalidSignature           < Exception; end
    class InvalidOrderId             < Exception; end
    class CallbackUrlBadResponse     < Exception; end
    class WebsocketExists            < Exception; end<commit_msg>Temporarely commented out line which gives error in straight-server/gateway.rb<commit_after>module StraightServer

  # This module contains common features of Gateway, later to be included
  # in one of the classes below.
  module GatewayModule

    # Temporarely commenting out next line which gives error, to be fixed soon
    # @@redis = StraightServer::Config.redis[:connection]
    @@websockets = {}
    
    def fetch_transactions_for(address)
      try_adapters(@blockchain_adapters) { |b| b.fetch_transactions_for(address) }
    end

    class InvalidSignature           < Exception; end
    class InvalidOrderId             < Exception; end
    class CallbackUrlBadResponse     < Exception; end
    class WebsocketExists            < Exception; end
{'fraction_non_alphanumeric': 0.06432748538011696, 'fraction_numerical': 0.0, 'mean_word_length': 3.1993865030674846, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5604775', 'n_tokens_mistral': 374, 'n_tokens_neox': 354, 'n_words': 111}