<commit_before>$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")
require "yaml"
require "minitest/autorun"

require "rubygems"
require "bundler/setup"
require "highline"

require "google_drive"


class TestGoogleDrive < MiniTest::Unit::TestCase

    # Random string is added to avoid conflict with existing file titles.
    PREFIX = "google-drive-ruby-test-4101301e303c-"

    @@session = nil

    def test_spreadsheet_online()

      session = get_session()

      ss_title = "#{PREFIX}spreadsheet"
      ss_copy_title = "#{PREFIX}spreadsheet-copy"

      # Removes test spreadsheets in the previous run in case the previous run failed.<commit_msg>Revert "Use a class name compatible with Ruby 1.9.3." It should work with Ruby 1.9.3 if the version of minitest is not old.<commit_after>$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")
require "yaml"
require "minitest/autorun"

require "rubygems"
require "bundler/setup"
require "highline"

require "google_drive"


class TestGoogleDrive < Minitest::Test

    # Random string is added to avoid conflict with existing file titles.
    PREFIX = "google-drive-ruby-test-4101301e303c-"

    @@session = nil

    def test_spreadsheet_online()

      session = get_session()

      ss_title = "#{PREFIX}spreadsheet"
      ss_copy_title = "#{PREFIX}spreadsheet-copy"

      # Removes test spreadsheets in the previous run in case the previous run failed.
{'fraction_non_alphanumeric': 0.10227272727272728, 'fraction_numerical': 0.018465909090909092, 'mean_word_length': 3.978798586572438, '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': '2235084', 'n_tokens_mistral': 469, 'n_tokens_neox': 422, 'n_words': 127}