<commit_before># This file was automatically generated by oml2-scaffold V2.10.0
# The syntax of this file is documented at [0].
#
# [0] http://doc.mytestbed.net/doc/omf/OmfEc/Backward/AppDefinition.html

defApplication('omehani:app:generator', 'generator') do |app|

  app.version(1, 0, 0)
  app.shortDescription = 'Example OML application'
  app.description = %{
This programs implements a simple sine wave generator with
the output measured by OML.

It is almost only generated by oml2-scaffold.
}
  app.path = "/usr/local/bin/generator"

  # Declare command-line arguments; generate Popt parser with
  #  oml2-scaffold --opts generator.rb
  app.defProperty('amplitude', 'Amplitude of produced signal', '-a',
	:type => :float, :mnemonic => 'a')
  app.defProperty('frequency', 'Frequency of wave generated', '-f',
	:type => :float, :unit => 'hertz')
  app.defProperty('samples', 'Number of samples to take. -1 = forever', '-n',
	:type => :int32)
  app.defProperty('sample-interval', 'Time between consecutive measurements', '-i',
	:type => :float, :unit => 'seconds',
	:var_name => "sample_interval") # This can be omitted, as scaffold will do the cleanup a needed.

  # Declare measurement points; generate OML injection helpers with
  #  oml2-scaffold --oml generator.rb
  # Declare measurement points; generate OML injection helpers with
  #  oml2-scaffold --oml generator.rb
  app.defMeasurement("d_lin") do |m|
    m.defMetric('label', :string)
    m.defMetric('seq_no', :uint32)
  end

  app.defMeasurement("d_sin") do |m|
    m.defMetric('label', :string)
    m.defMetric('phase', :double)
    m.defMetric('value', :double)
  end<commit_msg>[example] Make generator output 1 sample by default<commit_after># This file was automatically generated by oml2-scaffold V2.10.0
# The syntax of this file is documented at [0].
#
# [0] http://doc.mytestbed.net/doc/omf/OmfEc/Backward/AppDefinition.html

defApplication('omehani:app:generator', 'generator') do |app|

  app.version(1, 0, 0)
  app.shortDescription = 'Example OML application'
  app.description = %{
This programs implements a simple sine wave generator with
the output measured by OML.

It is almost only generated by oml2-scaffold.
}
  app.path = "/usr/local/bin/generator"

  # Declare command-line arguments; generate Popt parser with
  #  oml2-scaffold --opts generator.rb
  app.defProperty('amplitude', 'Amplitude of produced signal', '-a',
	:type => :double, :mnemonic => 'a')
  app.defProperty('frequency', 'Frequency of wave generated', '-f',
	:type => :double, :unit => 'hertz')
  app.defProperty('samples', 'Number of samples to take. -1 = forever', '-n',
	:type => :int32, :default => 1)
  app.defProperty('sample-interval', 'Time between consecutive measurements', '-i',
	:type => :double, :unit => 'seconds',
	:var_name => "sample_interval") # This can be omitted, as scaffold will do the cleanup a needed.

  # Declare measurement points; generate OML injection helpers with
  #  oml2-scaffold --oml generator.rb
  # Declare measurement points; generate OML injection helpers with
  #  oml2-scaffold --oml generator.rb
  app.defMeasurement("d_lin") do |m|
    m.defMetric('label', :string)
    m.defMetric('seq_no', :uint32)
  end

  app.defMeasurement("d_sin") do |m|
    m.defMetric('label', :string)
    m.defMetric('phase', :double)
    m.defMetric('value', :double)
  end
{'fraction_non_alphanumeric': 0.14013118664281454, 'fraction_numerical': 0.011926058437686345, 'mean_word_length': 4.316957210776545, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '1978025', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1087, 'n_words': 328}