<commit_before>
----------------------------------------------------------------------------
--  roundtrip_server.lua - Lua roundtrip test action server
--
--  Created: Wed Aug 18 18:35:23 2010 (at Intel Research, Pittsburgh)
--  Copyright  2010  <NAME> [www.niemueller.de]
--
----------------------------------------------------------------------------

-- Licensed under BSD license

require("roslua")
require("actionlib")

roslua.init_node{master_uri=os.getenv("ROS_MASTER_URI"), node_name="/roundtrip_server"}

function goal_cb(goal_handle, as)
   local result = as.actspec.result_spec:instantiate()
   result.values.received = roslua.Time.now()
   as:publish_result(goal_handle, result)
end
<commit_msg>Lua roundtrip server: adapt to API change<commit_after>
----------------------------------------------------------------------------
--  roundtrip_server.lua - Lua roundtrip test action server
--
--  Created: Wed Aug 18 18:35:23 2010 (at Intel Research, Pittsburgh)
--  Copyright  2010  <NAME> [www.niemueller.de]
--
----------------------------------------------------------------------------

-- Licensed under BSD license

require("roslua")
require("actionlib")

roslua.init_node{master_uri=os.getenv("ROS_MASTER_URI"), node_name="/roundtrip_server"}

function goal_cb(goal_handle, as)
   local result = as.actspec.result_spec:instantiate()
   result.values.received = roslua.Time.now()
   goal_handle:finish(result)
end

{'fraction_non_alphanumeric': 0.31145251396648044, 'fraction_numerical': 0.0223463687150838, 'mean_word_length': 1.8775100401606426, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2202204', 'n_tokens_mistral': 432, 'n_tokens_neox': 385, 'n_words': 85}