<commit_before>local C = require('consts')
local U = require('util')

-- args:
--    gaps: the amount of padding between windows, in pixels
return U.export(function(args)
  -- Defaults
  gaps = (args and args.gaps) or 0

  function hs.window:focusWindowIn(dir, ...)
    (util.switch(dir) {
      [C.NORTH]   = self.focusWindowNorth,
      [C.SOUTH]   = self.focusWindowSouth,
      [C.EAST]    = self.focusWindowEast,
      [C.WEST]    = self.focusWindowWest,
      [C.DEFAULT] = function() error('Invalid direction.') end,
    })(...)
  end<commit_msg>oops fix util -> U<commit_after>local C = require('consts')
local U = require('util')

-- args:
--    gaps: the amount of padding between windows, in pixels
return U.export(function(args)
  -- Defaults
  gaps = (args and args.gaps) or 0

  function hs.window:focusWindowIn(dir, ...)
    (U.switch(dir) {
      [C.NORTH]   = self.focusWindowNorth,
      [C.SOUTH]   = self.focusWindowSouth,
      [C.EAST]    = self.focusWindowEast,
      [C.WEST]    = self.focusWindowWest,
      [C.DEFAULT] = function() error('Invalid direction.') end,
    })(...)
  end
{'fraction_non_alphanumeric': 0.15703971119133575, 'fraction_numerical': 0.0018050541516245488, 'mean_word_length': 2.8241379310344827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3598105', 'n_tokens_mistral': 394, 'n_tokens_neox': 381, 'n_words': 86}