<commit_before># -*- coding: utf-8 -*-
module Specinfra::Backend
  class Dockerfile < Specinfra::Backend::Base
    def initialize
      @lines = []
      ObjectSpace.define_finalizer(self) {
        puts @lines
      }
    end

    def run_command(cmd, opts={})
      @lines << "RUN #{cmd}"
      CommandResult.new
    end

    def from(base)
      @lines << "FROM #{base}"<commit_msg>Add send_file to Dockerfile backend<commit_after># -*- coding: utf-8 -*-
module Specinfra::Backend
  class Dockerfile < Specinfra::Backend::Base
    def initialize
      @lines = []
      ObjectSpace.define_finalizer(self) {
        puts @lines
      }
    end

    def run_command(cmd, opts={})
      @lines << "RUN #{cmd}"
      CommandResult.new
    end

    def send_file(from, to)
      @lines << "ADD #{from} #{to}"
      CommandResult.new
    end

    def from(base)
      @lines << "FROM #{base}"
{'fraction_non_alphanumeric': 0.13835770528683913, 'fraction_numerical': 0.0022497187851518562, 'mean_word_length': 2.436293436293436, 'pattern_counts': {'":': 0, '<': 15, '<?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': '4900504', 'n_tokens_mistral': 285, 'n_tokens_neox': 278, 'n_words': 68}