<commit_before># @!group /containers/engines/
# @method build_engine
# @overload post '/v0/containers/engines/build'
# start app build process
#   :create_type in  :attached_services is active|orphan|new 
# @param :engine_name a-z,0-9
# @param :memory integer
# @param :repository_url 
# @param :variables Hash :name,value
# @param :reinstall true|false
# @param :web_port integer
# @param :host_name a-z,0-9
# @param :domain_name a-z,.,0-9
# @param :attached_services Array of Hash :publisher_namespace :type_path :create_type :parent_engine :service_handle
# @return [true] 
post '/v0/containers/engines/build', :provides => :json  do
  STDERR.puts('Build params at Server ROTUe ' + params.to_s)
  cparams =  Utils::Params.assemble_params(params, [], :all)
  r = engines_api.build_engine(cparams)
  
  return log_error(request, r, cparams) if r.is_a?(EnginesError)
  r.to_json
end

# @!endgroup<commit_msg>post json<commit_after># @!group /containers/engines/
# @method build_engine
# @overload post '/v0/containers/engines/build'
# start app build process
#   :create_type in  :attached_services is active|orphan|new 
# @param :engine_name a-z,0-9
# @param :memory integer
# @param :repository_url 
# @param :variables Hash :name,value
# @param :reinstall true|false
# @param :web_port integer
# @param :host_name a-z,0-9
# @param :domain_name a-z,.,0-9
# @param :attached_services Array of Hash :publisher_namespace :type_path :create_type :parent_engine :service_handle
# @return [true] 
post '/v0/containers/engines/build/:data', :provides => :json  do
  STDERR.puts('Build params at Server ROTUe ' + params.to_s)
  jdata = params[:data]
  cparams =  Utils::Params.assemble_params(JSON.parse(jdata), [], :all)
  r = engines_api.build_engine(cparams)
  
  return log_error(request, r, cparams) if r.is_a?(EnginesError)
  r.to_json
end

# @!endgroup
{'fraction_non_alphanumeric': 0.13437668645439826, 'fraction_numerical': 0.008634646519158122, 'mean_word_length': 5.242424242424242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4031235', 'n_tokens_mistral': 682, 'n_tokens_neox': 680, 'n_words': 158}