<commit_before>/**
 * @license
 * Copyright 2019 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.detail',
  name: 'SectionView',
  extends: 'foam.u2.Element',
  requires: [
    'foam.u2.detail.SectionedDetailPropertyView',
    'foam.u2.layout.Cols',
    'foam.u2.layout.Rows'
  ],
  imports: [
    'data as fobj'
  ],
  properties: [
    {
      class: 'FObjectProperty',
      of: 'foam.layout.Section',
      name: 'data'
    }
  ],
  methods: [
    function initE() {
      var self = this;
      self.SUPER();
      self
        .add(self.slot(function(data) {
          return self.Rows.create()
            .show(data.createIsAvailableFor(self.fobj$))
            .start('h2').add(data.title$).end()
            .forEach(data.properties, function (p) {
              this.tag(self.SectionedDetailPropertyView, { prop: p, data$: self.fobj$ });
            })
            .start(self.Cols)
              .forEach(data.actions, function (a) {
                this.add(a);
              })
            .end();
        }));
    }
  ]
}); <commit_msg>Remove title from SectionView<commit_after>/**
 * @license
 * Copyright 2019 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.detail',
  name: 'SectionView',
  extends: 'foam.u2.Element',
  requires: [
    'foam.u2.detail.SectionedDetailPropertyView',
    'foam.u2.layout.Cols',
    'foam.u2.layout.Rows'
  ],
  imports: [
    'data as fobj'
  ],
  properties: [
    {
      class: 'FObjectProperty',
      of: 'foam.layout.Section',
      name: 'data'
    }
  ],
  methods: [
    function initE() {
      var self = this;
      self.SUPER();
      self
        .add(self.slot(function(data) {
          return self.Rows.create()
            .show(data.createIsAvailableFor(self.fobj$))
            .forEach(data.properties, function (p) {
              this.tag(self.SectionedDetailPropertyView, { prop: p, data$: self.fobj$ });
            })
            .start(self.Cols)
              .forEach(data.actions, function (a) {
                this.add(a);
              })
            .end();
        }));
    }
  ]
}); 
{'fraction_non_alphanumeric': 0.15990990990990991, 'fraction_numerical': 0.01036036036036036, 'mean_word_length': 1.910878112712975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7200653', 'n_tokens_mistral': 754, 'n_tokens_neox': 749, 'n_words': 122}