<commit_before><template>
  <li>
    <span class="sf-tree-arrow" @click="handleExpand" v-if="isFolder">
      <i class="glyphicon" :class="allowClasses"></i>
    </span>
    <span class="sf-tree-title" v-html="data.title" @click="handleSelect"></span>
    <ul v-show="open" v-if="isFolder">
      <tree-node 
        v-for="item in data.children" 
        :key="item" 
        :data="item">
      </tree-node>
    </ul>
  </li>
</template>
<script>
  import Assist from '../../utils/assist.js';
  export default {
    name: 'treeNode',
    props: {
      data: {
        type: Object,
        default () {
          return {};
        }
      }
    },
    data () {
      return {
        open: false,
      }
    },
    computed: {
      isFolder () {
        return this.data.children && this.data.children.length
      },
      allowClasses () {
        return 'glyphicon-chevron-' + (this.open ? 'down' : 'right');
      }
    },
    methods: {
      handleSelect (e) {<commit_msg>new feature expand node<commit_after><template>
  <li>
    <span class="sf-tree-arrow" @click="handleExpand" v-if="isFolder">
      <i class="glyphicon" :class="allowClasses"></i>
    </span>
    <span class="sf-tree-title" v-html="data.title" @click="handleSelect"></span>
    <ul v-show="open" v-if="isFolder">
      <tree-node 
        v-for="item in data.children" 
        :key="item" 
        :data="item">
      </tree-node>
    </ul>
  </li>
</template>
<script>
  import Assist from '../../utils/assist.js';
  export default {
    name: 'treeNode',
    props: {
      data: {
        type: Object,
        default () {
          return {};
        }
      }
    },
    data () {
      return {
        open: !!this.data.expand,
      }
    },
    computed: {
      isFolder () {
        return this.data.children && this.data.children.length
      },
      allowClasses () {
        return 'glyphicon-chevron-' + (this.open ? 'down' : 'right');
      }
    },
    methods: {
      handleSelect (e) {
{'fraction_non_alphanumeric': 0.1806322127446061, 'fraction_numerical': 0.0, 'mean_word_length': 1.9067055393586005, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '2461965', 'n_tokens_mistral': 673, 'n_tokens_neox': 660, 'n_words': 123}