<commit_before>import { fastMap, fastObjects } from '../../../world';
import { clone, nextCoord } from '../../../utils';
import { collidableObjects } from '../../../collisions';
import config from '../../../config';

import workerPool from '../../../worker-pool';

export default function findWork() {
  if (this.working || this.waitingOnPath) return;

  const collidables = collidableObjects.concat(['chopper', 'collector', 'planter']);

  const workerArgs = [
    fastMap, fastObjects, collidables,
    config.mapWidth, config.mapHeight,
    this.tile, this.targetObjects, // use this.targetObjects
    false,
  ];

  this.waitingOnPath = true;
  workerPool.addTask(workerArgs, (pathToTree) => {
    if (pathToTree) {<commit_msg>Re-enable random pathfinding<commit_after>import { fastMap, fastObjects } from '../../../world';
import { clone, nextCoord } from '../../../utils';
import { collidableObjects } from '../../../collisions';
import config from '../../../config';

import workerPool from '../../../worker-pool';

export default function findWork() {
  if (this.working || this.waitingOnPath) return;

  const collidables = collidableObjects.concat(['chopper', 'collector', 'planter']);

  const workerArgs = [
    fastMap, fastObjects, collidables,
    config.mapWidth, config.mapHeight,
    this.tile, this.targetObjects, // use this.targetObjects
    true,
  ];

  this.waitingOnPath = true;
  workerPool.addTask(workerArgs, (pathToTree) => {
    if (pathToTree) {
{'fraction_non_alphanumeric': 0.17682926829268292, 'fraction_numerical': 0.0, 'mean_word_length': 3.4487951807228914, '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': '5775160', 'n_tokens_mistral': 439, 'n_tokens_neox': 435, 'n_words': 108}