<commit_before># Copyright (c) 2013-2014 Irrational Industries Inc. d.b.a. Nitrous.IO
# This software is licensed under the [BSD 2-Clause license](https://raw.github.com/nitrous-io/autoparts/master/LICENSE).

module Autoparts
  module Packages
    class MongoDB < Package
      name 'mongodb'
      version '2.4.9'
      description 'MongoDB: A cross-platform document-oriented NoSQL database system'
      category Category::DATA_STORES

      source_url 'http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.9.tgz'
      source_sha1 'ecb95cc0b791823d35166aab18ec4052ea781337'
      source_filetype 'tar.gz'

      def compile
        # mongodb is distributed precompiled
      end

      def install
        prefix_path.parent.mkpath
        FileUtils.rm_rf prefix_path
        execute 'mv', extracted_archive_path + "mongodb-linux-x86_64-#{version}", prefix_path
      end

      def post_install
        mongodb_var_path.mkpath
        mongodb_log_path.mkpath

        unless mongodb_conf_path.exist?
          File.open(mongodb_conf_path, 'w') do |f|
            f.write mongodb_conf_file
          end
        end
      end<commit_msg>Update MongoDB from 2.4.9 to 2.6.5<commit_after># Copyright (c) 2013-2014 Irrational Industries Inc. d.b.a. Nitrous.IO
# This software is licensed under the [BSD 2-Clause license](https://raw.github.com/nitrous-io/autoparts/master/LICENSE).

module Autoparts
  module Packages
    class MongoDB < Package
      name 'mongodb'
      version '2.6.5'
      description 'MongoDB: A cross-platform document-oriented NoSQL database system'
      category Category::DATA_STORES

      source_url 'http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.5.tgz'
      source_sha1 'd8d793fdd23b784e6d40c3e8e923926ac004a96d'
      source_filetype 'tar.gz'

      def compile
        # mongodb is distributed precompiled
      end

      def install
        prefix_path.parent.mkpath
        FileUtils.rm_rf prefix_path
        execute 'mv', extracted_archive_path + "mongodb-linux-x86_64-#{version}", prefix_path
      end

      def post_install
        mongodb_var_path.mkpath
        mongodb_log_path.mkpath

        unless mongodb_conf_path.exist?
          File.open(mongodb_conf_path, 'w') do |f|
            f.write mongodb_conf_file
          end
        end
      end
{'fraction_non_alphanumeric': 0.08221549112938122, 'fraction_numerical': 0.045434876676763304, 'mean_word_length': 2.6466876971608833, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2343043', 'n_tokens_mistral': 837, 'n_tokens_neox': 751, 'n_words': 160}