<commit_before>---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local actions = require("user_modules/sequences/actions")
local runner = require('user_modules/script_runner')

-- [[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false

--[[ Module ]]
local m = {}

--[[ Proxy Functions ]]
m.Title = runner.Title
m.Step = runner.Step
m.start = actions.start
m.preconditions = actions.preconditions
m.postconditions = actions.postconditions
m.registerApp = actions.registerApp
m.activateApp = actions.activateApp
m.getHMIConnection = actions.getHMIConnection

--[[ Common Functions ]]
function m.getVehicleData(pParams)
  local cid = actions.getMobileSession():SendRPC("GetVehicleData", pParams.request)
  actions.getHMIConnection():ExpectRequest("VehicleInfo.GetVehicleData", pParams.request)
  :Do(function(_, data)
      pParams.respFunc(data)
    end)
  actions.getMobileSession():ExpectResponse(cid, pParams.respExp)
end

function m.policyTableUpdate()
  local function updFunc(tbl)
      tbl.policy_table.app_policies[actions.app.getParams().fullAppID].groups = {"Base-4", "Location-1"}
  end
  actions.policyTableUpdate(updFunc)
end<commit_msg>Remove user consent prompt for 2439, 3014 (#2686)<commit_after>---------------------------------------------------------------------------------------------------
-- Common module
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local actions = require("user_modules/sequences/actions")
local runner = require('user_modules/script_runner')

-- [[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false

--[[ Module ]]
local m = {}

--[[ Proxy Functions ]]
m.Title = runner.Title
m.Step = runner.Step
m.start = actions.start
m.preconditions = actions.preconditions
m.postconditions = actions.postconditions
m.registerApp = actions.registerApp
m.activateApp = actions.activateApp
m.getHMIConnection = actions.getHMIConnection

--[[ Common Functions ]]
function m.getVehicleData(pParams)
  local cid = actions.getMobileSession():SendRPC("GetVehicleData", pParams.request)
  actions.getHMIConnection():ExpectRequest("VehicleInfo.GetVehicleData", pParams.request)
  :Do(function(_, data)
      pParams.respFunc(data)
    end)
  actions.getMobileSession():ExpectResponse(cid, pParams.respExp)
end

function m.policyTableUpdate()
  local function updFunc(tbl)
      tbl.policy_table.functional_groupings["Location-1"].user_consent_prompt = nil
      tbl.policy_table.app_policies[actions.app.getParams().fullAppID].groups = {"Base-4", "Location-1"}
  end
  actions.policyTableUpdate(updFunc)
end
{'fraction_non_alphanumeric': 0.2477160927617709, 'fraction_numerical': 0.0059732958538299364, 'mean_word_length': 2.673548387096774, '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': '3945672', 'n_tokens_mistral': 777, 'n_tokens_neox': 761, 'n_words': 138}