<commit_before>var _3vot = require("3vot")

function transformToLocalhost(indexFileContents, pck){
  var devDomain = "localhost:3000"
  indexFileContents = indexFileContents.replace("3vot.domain = 'demo.3vot.com';","3vot.domain = '" + devDomain  + "';")
  indexFileContents = _3vot.utils.replaceAll( indexFileContents,
    "assets/", 
    ["//" , devDomain , pck.profile, pck.name , "assets", ""].join("/") 
  );

  return indexFileContents;
}

function transformToDemo(indexFileContents, pck){
  indexFileContents = indexFileContents.replace(
    "_3vot.path = '//' + _3vot.domain + '/' + package.profile + '/' + package.name;",
    "_3vot.path = '//' + _3vot.domain + '/' + package.profile + '/' + package.name + '_' + package.version;"
  );
  
  indexFileContents = _3vot.utils.replaceAll( indexFileContents, 
    "assets/", 
    [ "//", "demo.3vot.com", pck.profile, pck.name + "_" + pck.version ]
  );


  indexFileContents = _3vot.utils.replaceAll(indexFileContents , 
    [ "localhost:3000", pck.profile, pck.name].join("/") ,
    [ "demo.3vot.com", pck.profile , pck.name + "_" + pck.version ]
  )
  
  return indexFileContents;
}

function transformToProduction(indexFileContents, pck){
  
  indexFileContents = indexFileContents.replace(<commit_msg>fix transform of demo, , instead of /<commit_after>var _3vot = require("3vot")

function transformToLocalhost(indexFileContents, pck){
  var devDomain = "localhost:3000"
  indexFileContents = indexFileContents.replace("3vot.domain = 'demo.3vot.com';","3vot.domain = '" + devDomain  + "';")
  indexFileContents = _3vot.utils.replaceAll( indexFileContents,
    "assets/", 
    ["//" , devDomain , pck.profile, pck.name , "assets", ""].join("/") 
  );

  return indexFileContents;
}

function transformToDemo(indexFileContents, pck){
  indexFileContents = indexFileContents.replace(
    "_3vot.path = '//' + _3vot.domain + '/' + package.profile + '/' + package.name;",
    "_3vot.path = '//' + _3vot.domain + '/' + package.profile + '/' + package.name + '_' + package.version;"
  );
  
  indexFileContents = _3vot.utils.replaceAll( indexFileContents, 
    "assets/", 
    [ "//", "demo.3vot.com", pck.profile, pck.name + "_" + pck.version ].join("/")
  );

  indexFileContents = _3vot.utils.replaceAll(indexFileContents , 
    [ "localhost:3000", pck.profile, pck.name].join("/") ,
    [ "demo.3vot.com", pck.profile , pck.name + "_" + pck.version ].join("/")
  )
  
  return indexFileContents;
}

function transformToProduction(indexFileContents, pck){
  
  indexFileContents = indexFileContents.replace(
{'fraction_non_alphanumeric': 0.17376024990238187, 'fraction_numerical': 0.017180788754392814, 'mean_word_length': 3.9269230769230767, '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': '2922554', 'n_tokens_mistral': 922, 'n_tokens_neox': 889, 'n_words': 131}