<commit_before>module KeplerProcessor
  class LightCurvePlotter < Base

    def run
      super do
        plot
      end
    end

    private

      def plot
        ::Gnuplot.open do |gp|
          ::Gnuplot::Plot.new( gp ) do |plot|
            
            plot.terminal "png"
            plot.output "#{@options[:output_path]}/kic#{@attributes[:kic_number]}_WG4CorFlux_#{@attributes[:season]}_#{@input_filename.split("_")[3]}_plot.png"
            plot.title  "Sample Lightcurve"
            plot.ylabel "Amplitude"
            plot.xlabel "Time"

            
            x = @input_data.map { |point| point[0] }
            y = @input_data.map { |point| point[1] }

            plot.data << ::Gnuplot::DataSet.new( [x, y] ) do |ds|
              ds.with = "lines"
              ds.notitle
            end
          end
        end
      end

  end
end<commit_msg>change std output filename for light curve<commit_after>module KeplerProcessor
  class LightCurvePlotter < Base

    def run
      super do
        plot
      end
    end

    private

      def plot
        ::Gnuplot.open do |gp|
          ::Gnuplot::Plot.new( gp ) do |plot|
            
            plot.terminal "png"
            plot.output "#{@options[:output_path]}/#{@input_filename.split(".")[0]}_plot.png"
            plot.title  "Sample Lightcurve"
            plot.ylabel "Amplitude"
            plot.xlabel "Time"

            
            x = @input_data.map { |point| point[0] }
            y = @input_data.map { |point| point[1] }

            plot.data << ::Gnuplot::DataSet.new( [x, y] ) do |ds|
              ds.with = "lines"
              ds.notitle
            end
          end
        end
      end

  end
end
{'fraction_non_alphanumeric': 0.11567821491485614, 'fraction_numerical': 0.004110393423370522, 'mean_word_length': 1.5132743362831858, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3616243', 'n_tokens_mistral': 544, 'n_tokens_neox': 527, 'n_words': 117}