<commit_before><template>
<div>
  <!-- <input :value="collectedLicenses" @input="selectLicenseHints($event.target.value)" class="form-control input-sm col-sm-8" type="text" /> -->
  <div id="licenses">
    <!-- <label class="control-label col-sm-4" /> -->
    <select v-model="selectedLicenses" class="form-control input-sm col-sm-9" multiple>
        <option v-for="license in licenses" :value="license.title">{{license.title}}</option>
      </select>
  </div>
</div>
</template>
<script>
import {
  mapMutations,
  mapState,
  mapGetters
} from 'vuex'
import {
  HotRegister
} from '../hot.js'
export default {
  name: 'licenses',
  props: ['getPropertyGivenHotId', 'setProperty', 'waitForHotIdFromTabId'],
  data() {
    return {
      licenses: [{
        'id': 'CC-BY-4.0',
        'title': 'Creative Commons Attribution 4.0',
        'url': 'https://creativecommons.org/licenses/by/4.0/'
      },
      {
        'id': 'CC-BY-SA-4.0',
        'title': 'Creative Commons Attribution Share-Alike 4.0',
        'url': 'https://creativecommons.org/licenses/by-sa/4.0/'
      },
      {
        'id': 'CC0-1.0',
        'title': 'Creative Commons CCZero',
        'url': 'https://creativecommons.org/publicdomain/zero/1.0/'
      },
      {
        'id': 'ODC-BY-1.0',
        'title': 'Open Data Commons Attribution License 1.0',
        'url': 'http://www.opendefinition.org/licenses/odc-by'
      },
      {
        'id': 'ODbL-1.0',
        'title': 'Open Data Commons Open Database License 1.0',
        'url': 'http://www.opendefinition.org/licenses/odc-odbl'
      },
      {
        'id': 'ODC-PDDL-1.0',
        'title': 'Open Data Commons Public Domain Dedication and Licence 1.0',
        'url': 'http://www.opendefinition.org/licenses/odc-pddl'
      },
      {
        'id': 'OGL-Canada-2.0',
        'title': 'Open Government License 2.0 (Canada)',
        'url': 'http://data.gc.ca/eng/open-government-licence-canada'
      },
      {
        'id': 'OGL-UK-3.0',
        'title': 'Open Government Licence 3.0 (United Kingdom)',
        'url': 'https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/'
      },
      {
        'id': 'OGDL-TW-1.0',
        'title': 'Open Government Data License Taiwan 1.0',
        'url': 'https://data.gov.tw/license/'
      },
      {
        'id': 'pdm',
        'title': 'Public Domain Mark',
        'url': 'http://creativecommons.org/publicdomain/mark/1.0/'
      },
      {
        'id': 'other-pd',
        'title': 'Other (Public Domain)',
        'url': ''
      }],
      selectedLicenses: []
    }
  },
  watch: {
    getActiveTab: function() {
      // update licenses when adding tabs
      this.initLicenses()
    },
    selectedLicenses: function(selected) {
      this.setProperty('licenses', this.licensesObject(selected))
    }
  },
  computed: {
    ...mapGetters(['getActiveTab'])
  },
  methods: {
    initLicenses: async function() {
      let licenseIds = await this.getLicenseIdsFromTab()
      this.selectedLicenses = licenseIds<commit_msg>remove open content licence<commit_after><template>
<div>
  <!-- <input :value="collectedLicenses" @input="selectLicenseHints($event.target.value)" class="form-control input-sm col-sm-8" type="text" /> -->
  <div id="licenses">
    <!-- <label class="control-label col-sm-4" /> -->
    <select v-model="selectedLicenses" class="form-control input-sm col-sm-9" multiple>
        <option v-for="license in licenses" :value="license.title">{{license.title}}</option>
      </select>
  </div>
</div>
</template>
<script>
import {
  mapMutations,
  mapState,
  mapGetters
} from 'vuex'
import {
  HotRegister
} from '../hot.js'
export default {
  name: 'licenses',
  props: ['getPropertyGivenHotId', 'setProperty', 'waitForHotIdFromTabId'],
  data() {
    return {
      licenses: [{
        'id': 'CC-BY-4.0',
        'title': 'Creative Commons Attribution 4.0',
        'url': 'https://creativecommons.org/licenses/by/4.0/'
      },
      {
        'id': 'CC-BY-SA-4.0',
        'title': 'Creative Commons Attribution Share-Alike 4.0',
        'url': 'https://creativecommons.org/licenses/by-sa/4.0/'
      },
      {
        'id': 'CC0-1.0',
        'title': 'Creative Commons CCZero 1.0',
        'url': 'https://creativecommons.org/publicdomain/zero/1.0/'
      },
      {
        'id': 'ODC-BY-1.0',
        'title': 'Open Data Commons Attribution License 1.0',
        'url': 'http://www.opendefinition.org/licenses/odc-by'
      },
      {
        'id': 'ODbL-1.0',
        'title': 'Open Data Commons Open Database License 1.0',
        'url': 'http://www.opendefinition.org/licenses/odc-odbl'
      },
      {
        'id': 'ODC-PDDL-1.0',
        'title': 'Open Data Commons Public Domain Dedication and Licence 1.0',
        'url': 'http://www.opendefinition.org/licenses/odc-pddl'
      },
      {
        'id': 'OGL-Canada-2.0',
        'title': 'Open Government License 2.0 (Canada)',
        'url': 'http://data.gc.ca/eng/open-government-licence-canada'
      },
      {
        'id': 'OGL-UK-3.0',
        'title': 'Open Government Licence 3.0 (United Kingdom)',
        'url': 'https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/'
      },
      {
        'id': 'OGDL-TW-1.0',
        'title': 'Open Government Data License Taiwan 1.0',
        'url': 'https://data.gov.tw/license/'
      },
      {
        'id': 'pdm',
        'title': 'Public Domain Mark',
        'url': 'http://creativecommons.org/publicdomain/mark/1.0/'
      }],
      selectedLicenses: []
    }
  },
  watch: {
    getActiveTab: function() {
      // update licenses when adding tabs
      this.initLicenses()
    },
    selectedLicenses: function(selected) {
      this.setProperty('licenses', this.licensesObject(selected))
    }
  },
  computed: {
    ...mapGetters(['getActiveTab'])
  },
  methods: {
    initLicenses: async function() {
      let licenseIds = await this.getLicenseIdsFromTab()
      this.selectedLicenses = licenseIds
{'fraction_non_alphanumeric': 0.1827903091060986, 'fraction_numerical': 0.016040100250626566, 'mean_word_length': 2.3274041133963315, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 10, 'lorem ipsum': 0, 'www.': 8, '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': '1865088', 'n_tokens_mistral': 2077, 'n_tokens_neox': 2013, 'n_words': 372}