<commit_before>module Merrol
  class FileController < Controller
    def initialize commands, views
      super commands, views
      @source_models = {}
    end

    def switch
      file_list_view.show
      file_list_view.next
      edit_view.buffer = @source_models[file_list_view.selected]
      self.handler_id = main_view.signal_connect('key_release_event') do |widget, event|
        if event.keyval == Gdk::Keyval::GDK_Control_L
          file_list_view.hide
          #main_view.signal_handler_disconnect(handler_id)
          edit_view.scroll_to_cursor
          file_list_view.selected_to_top
          true
        else
          false
        end
      end<commit_msg>Revert "moved selected file to the top of the open file list"<commit_after>module Merrol
  class FileController < Controller
    def initialize commands, views
      super commands, views
      @source_models = {}
    end

    def switch
      file_list_view.show
      file_list_view.next
      edit_view.buffer = @source_models[file_list_view.selected]
      self.handler_id = main_view.signal_connect('key_release_event') do |widget, event|
        if event.keyval == Gdk::Keyval::GDK_Control_L
          file_list_view.hide
          main_view.signal_handler_disconnect(handler_id)
          edit_view.scroll_to_cursor
          file_list_view.selected_to_top
          true
        else
          false
        end
      end
{'fraction_non_alphanumeric': 0.060240963855421686, 'fraction_numerical': 0.0, 'mean_word_length': 2.53, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4497687', 'n_tokens_mistral': 416, 'n_tokens_neox': 413, 'n_words': 84}