<commit_before>package org.fusesource.fabric.monitor
package api

import plugins.jmx.JmxDataSourceRegistry
import javax.management.ObjectName
import org.fusesource.scalate.util.Measurements._
import internal.Numbers

object Value {
  val jmxFactory = new JmxDataSourceRegistry()
  val pollers = MonitorDeamon.poller_factories

  def apply(keys: String*): Value = {
    if (keys.size == 0) {
      NoValue
    } else {<commit_msg>added helper method for creating lists of defined values<commit_after>package org.fusesource.fabric.monitor
package api

import plugins.jmx.JmxDataSourceRegistry
import javax.management.ObjectName
import org.fusesource.scalate.util.Measurements._
import internal.Numbers

object Value {
  val jmxFactory = new JmxDataSourceRegistry()
  val pollers = MonitorDeamon.poller_factories

  def defined(values: Value*): List[Value] = {
    values.filter(_.isDefined).toList
  }

  def apply(keys: String*): Value = {
    if (keys.size == 0) {
      NoValue
    } else {
{'fraction_non_alphanumeric': 0.08980827447023208, 'fraction_numerical': 0.0020181634712411706, 'mean_word_length': 4.480662983425415, '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': '5938471', 'n_tokens_mistral': 306, 'n_tokens_neox': 296, 'n_words': 73}