* MyMemory disabled and MT Disabled Too
      * So don't perform TMS Analysis
      */
     $perform_Tms_Analysis = false;
     $status = Constants_ProjectStatus::STATUS_DONE;
     _TimeStampMsg('Perform Analysis ' . var_export($perform_Tms_Analysis, true));
 } elseif ($num_segments == 0) {
     //there is no analysis on that file, it is ALL Pre-Translated
     _TimeStampMsg('There is no analysis on that file, it is ALL Pre-Translated');
     $status = Constants_ProjectStatus::STATUS_DONE;
 }
 //compose a lookup array
 $segment_hashes = array();
 foreach ($segments as $pos => $segment) {
     $segment_hashes[$segment['id']] = array($segment['segment_hash'], $segment['segment'], $segment['raw_word_count'], $segment['source'], $segment['target'], $segment['payable_rates']);
     $segments[$pos]['segment'] = CatUtils::clean_raw_string4fast_word_count($segment['segment'], $segments[0]['source']);
     //unset because we don't want to pass these keys to Fast Analysis
     unset($segments[$pos]['id']);
     unset($segments[$pos]['segment_hash']);
     unset($segment['segment']);
     unset($segment['raw_word_count']);
     unset($segment['target']);
     unset($segment['payable_rates']);
 }
 _TimeStampMsg("done");
 _TimeStampMsg("pid {$pid}: {$num_segments} segments");
 _TimeStampMsg("sending query to MyMemory analysis...");
 $ws->doLog = false;
 //tell to the engine to not log the output
 $fastReport = $ws->fastAnalysis($segments);
 _TimeStampMsg("Memory: " . memory_get_usage(true) / (1024 * 1024) . "MB");