<commit_before>package main

import (
	"fmt"
	"io/ioutil"
	"path"
    "bufio"
    "os"
)

type Dotfiler struct {
	option     FlagResult
	exceptions []string
	files      []string
}

func (self *Dotfiler) execute() error {
    output := "/home/thens/.vim/bundle"
    var err error

	if self.option.verbose {
		self.logStart()
	}
	for _, file := range self.files {
		// these calls could be dispatched as goroutines later on
	    if err = self.processElement(file); err != nil {
            return err
        }
	}

    files, _ := ioutil.ReadDir(output)
    allFiles := make([]string, 0)
    for _, fileObj := range files {
        if fileObj.IsDir() {
            allFiles = append(allFiles, fileObj.Name())
        }
    }
    if err = self.savePluginNames(allFiles); err != nil {
        return err
    }
<commit_msg>only save plugin names if the specified option is "archive".<commit_after>package main

import (
	"fmt"
	"io/ioutil"
	"path"
    "bufio"
    "os"
)

type Dotfiler struct {
	option     FlagResult
	exceptions []string
	files      []string
}

func (self *Dotfiler) execute() error {
    output := "/home/thens/.vim/bundle"
    var err error

	if self.option.verbose {
		self.logStart()
	}
	for _, file := range self.files {
		// these calls could be dispatched as goroutines later on
	    if err = self.processElement(file); err != nil {
            return err
        }
	}

    if *self.option.name == "archive" {
        files, _ := ioutil.ReadDir(output)
        allFiles := make([]string, 0)
        for _, fileObj := range files {
            if fileObj.IsDir() {
                allFiles = append(allFiles, fileObj.Name())
            }
        }
        if err = self.savePluginNames(allFiles); err != nil {
            return err
        }
    }

{'fraction_non_alphanumeric': 0.11984171848501979, 'fraction_numerical': 0.0011305822498586771, 'mean_word_length': 2.1438721136767316, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3768594', 'n_tokens_mistral': 588, 'n_tokens_neox': 566, 'n_words': 154}