<commit_before>require_relative 'base'

module Qtc
  module Cli
    class Mar::Env < Mar::Base

      def set(vars, options)
        instance_id = resolve_instance_id(options)
        env_vars = {}
        vars.each do |type|
          arr = type.strip.split("=")
          if arr[0]
            if arr[1].nil? || arr[1] == ""
              env_vars[arr[0]] = nil
            else
              env_vars[arr[0]] = arr[1..-1].join("=")<commit_msg>fix mar cli env var splitting<commit_after>require_relative 'base'

module Qtc
  module Cli
    class Mar::Env < Mar::Base

      def set(vars, options)
        instance_id = resolve_instance_id(options)
        env_vars = {}
        vars.each do |type|
          arr = type.strip.split('=', 2)
          if arr[0]
            if arr[1].nil? || arr[1] == ''
              env_vars[arr[0]] = nil
            else
              env_vars[arr[0]] = arr[1]
{'fraction_non_alphanumeric': 0.13600891861761427, 'fraction_numerical': 0.01560758082497213, 'mean_word_length': 1.832807570977918, 'pattern_counts': {'":': 0, '<': 5, '<?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': '476414', 'n_tokens_mistral': 295, 'n_tokens_neox': 288, 'n_words': 65}