<commit_before>package com.criteo.dev.cluster

import java.io.{File, PrintWriter}

import org.slf4j.LoggerFactory

import scala.collection.mutable.ListBuffer
import scala.sys.process._

/**
  * Special case of SSH Multi action that runs several hive commands.
  */
@Public
class SshHiveAction(node: Node, ignoreError: Boolean = false) {

  private final val localTmpQueryFile = s"${GeneralUtilities.getTempDir}/tmphivequery"
  private final val remoteTmpQueryFile = s"./tmphivequery"  //concurrent hive actions on same node not supported for now<commit_msg>Small fix to have query tmp file written to user's home.<commit_after>package com.criteo.dev.cluster

import java.io.{File, PrintWriter}

import org.slf4j.LoggerFactory

import scala.collection.mutable.ListBuffer
import scala.sys.process._

/**
  * Special case of SSH Multi action that runs several hive commands.
  */
@Public
class SshHiveAction(node: Node, ignoreError: Boolean = false) {

  private final val localTmpQueryFile = s"${GeneralUtilities.getTempDir}/tmphivequery"
  private final val remoteTmpQueryFile = s"~/tmphivequery"  //concurrent hive actions on same node not supported for now
{'fraction_non_alphanumeric': 0.08643042350907519, 'fraction_numerical': 0.001728608470181504, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4937144', 'n_tokens_mistral': 352, 'n_tokens_neox': 349, 'n_words': 107}