<commit_before>const debug = require('debug')('solve')
const _ = require('lodash')
const transpose = require('./transpose')

module.exports = function solve (problem) {
  debug('start')
  return findSlicesByCol(problem)
}

function findSlicesByCol (problem) {
  problem.pizza = transpose(problem.pizza)
  let solve = findSlicesLineByLine(problem)
  return _.map(solve, ({r1, r2, c1, c2}) => { return {'r1': c1, 'r2': c2, 'c1': r1, 'c2': r2} })
}
<commit_msg>'tayo!'<commit_after>const debug = require('debug')('solve')
const _ = require('lodash')
const {transpose} = require('./grid-utils')

module.exports = function solve (problem) {
  debug('start')
  return findSlicesByCol(problem)
}

function findSlicesByCol (problem) {
  problem.pizza = transpose(problem.pizza)
  let solve = findSlicesLineByLine(problem)
  return _.map(solve, ({r1, r2, c1, c2}) => { return {'r1': c1, 'r2': c2, 'c1': r1, 'c2': r2} })
}

{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.02628696604600219, 'mean_word_length': 5.436619718309859, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '151771', 'n_tokens_mistral': 359, 'n_tokens_neox': 346, 'n_words': 76}