<commit_before>require "fileutils"

module Bricky
  module Bricks
    class Bundle < Base
      def arguments
        scripts_path = "#{bricks_path}/bundle"
        results = ["-v #{scripts_path}:/bricks/bundle"]
        results.push(cached) if config["cache"]
        results
      end
  
      def entrypoint
        "/bricks/bundle/builder"
      end

      def environments
        ["-e BRICKS_BUNDLE_WITHOUT#{config.fetch('without', 'development:test')}"]
      end

      private
        def cached
          ["-v #{local_path}:/opt/workspace/source/vendor/bundle"]
        end

        def local_path
          path = "#{Bricky.config.tmp_path}/cache/#{digest}"
          FileUtils::mkdir_p(path)<commit_msg>bricks: bundle fixing env population<commit_after>require "fileutils"

module Bricky
  module Bricks
    class Bundle < Base
      def arguments
        scripts_path = "#{bricks_path}/bundle"
        results = ["-v #{scripts_path}:/bricks/bundle"]
        results.push(cached) if config["cache"]
        results
      end
  
      def entrypoint
        "/bricks/bundle/builder"
      end

      def environments
        ["-e BRICKS_BUNDLE_WITHOUT=#{config.fetch('without', 'development:test')}"]
      end

      private
        def cached
          ["-v #{local_path}:/opt/workspace/source/vendor/bundle"]
        end

        def local_path
          path = "#{Bricky.config.tmp_path}/cache/#{digest}"
          FileUtils::mkdir_p(path)
{'fraction_non_alphanumeric': 0.11829436038514443, 'fraction_numerical': 0.0, 'mean_word_length': 2.2405345211581293, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6510464', 'n_tokens_mistral': 444, 'n_tokens_neox': 433, 'n_words': 87}