<commit_before>#/containers/engine/container_name/runtime_properties
#/containers/engine/container_name/network_properties

post '/v0/containers/service/:id/properties/network' do

  service = get_service(params[:id])
  p :LOADED
  return log_error('set network properties', params) if service.is_a?(FalseClass)
  r = @@core_api.set_container_network_properties(service, Utils.symbolize_keys(params))

  return log_error('set network properties', params) if r.is_a?(FalseClass)
  r.to_json
end

post '/v0/containers/service/:id/properties/runtime' do
  params[:engine_name] = params[:id]
  r =   @@core_api.set_container_runtime_properties(Utils.symbolize_keys(params))
  return log_error('set run time properties', params) if r.is_a?(FalseClass)
  r.to_json
end<commit_msg>service properties<commit_after>#/containers/engine/container_name/runtime_properties
#/containers/engine/container_name/network_properties

post '/v0/containers/service/:id/properties/network' do

  service = get_service(params[:id])
  p :LOADED
  return log_error('set network properties', params) if service.is_a?(FalseClass)
  r = @@core_api.set_container_network_properties(service, Utils.symbolize_keys(params))

  return log_error('set network properties', params) if r.is_a?(FalseClass)
  r.to_json
end

post '/v0/containers/service/:id/properties/runtime' do
  service = get_service(params[:id])
  params[:engine_name] = params[:id]
  r =   @@core_api.set_container_runtime_properties(service, Utils.symbolize_keys(params))
  return log_error('set run time properties', params) if r.is_a?(FalseClass)
  r.to_json
end
{'fraction_non_alphanumeric': 0.1207004377736085, 'fraction_numerical': 0.0025015634771732333, 'mean_word_length': 6.4766355140186915, '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': '5623553', 'n_tokens_mistral': 527, 'n_tokens_neox': 526, 'n_words': 93}