<commit_before><template lang="pug">
  div
    v-toolbar
      v-toolbar-title HTTP Methods
    main
      v-container.app-table
        v-data-table(v-bind:headers="headers" :items="items" hide-actions class="elevation-1 app-table")
          template(slot="items" scope="props")
            td
              app-method(:m="props.item[6]")
            td.capitalize {{ props.item[0] }}
            td
              a(href="props.item[2]") {{ props.item[1] }}
            td
              v-icon {{props.item[3] ? 'check_box' : 'check_box_outline_blank'}}
            td
              v-icon {{props.item[4] ? 'check_box' : 'check_box_outline_blank'}}
            td
              v-icon {{props.item[5] ? 'check_box' : 'check_box_outline_blank'}}
</template>

<script>
  const items = () => import('../assets/http-method.json')

  export default {
    components: {
      appMethod: () => import('./Method')
    },
    data () {
      return {
        items: [],
        headers: [
          {text: 'Method', value: '6', align: 'left', sortable: false},
          {text: 'Description', value: '0', align: 'left', sortable: false},
          {text: 'Specification', value: '1', sortable: false},
          {text: 'Safe', value: '3', sortable: false},
          {text: 'Idempotent', value: '4', sortable: false},
          {text: 'Cacheable', value: '5', sortable: false}
        ]
      }
    },
    created () {
      items().then(res => {
        Object.keys(res).map(k => {
          const item = res[k].slice()
          item.push(k)
          this.items.push(item)
        })
      })
    }
  }
</script>

<style lang="stylus">
  .app-table
    max-width 80em

  .capitalize::first-letter
    text-transform uppercase
</style><commit_msg>HttpMethod page update<commit_after><template lang="pug">
  div
    v-toolbar
      v-toolbar-title HTTP Methods
    main
      v-container.app-table
        v-data-table(v-bind:headers="headers" :items="items" hide-actions class="elevation-1 app-table")
          template(slot="items" scope="props")
            td
              app-method(:m="props.item[6]")
            td.capitalize {{ props.item[0] }}
            td
              a(href="props.item[2]") {{ props.item[1] }}
            td
              v-icon {{props.item[3] ? 'check_box' : 'check_box_outline_blank'}}
            td
              v-icon {{props.item[4] ? 'check_box' : 'check_box_outline_blank'}}
            td
              v-icon {{props.item[5] ? 'check_box' : 'check_box_outline_blank'}}
</template>

<script>
  const items = () => import('../assets/http-method.json')

  export default {
    components: {
      appMethod: () => import('./Method')
    },
    data () {
      return {
        items: [],
        headers: [
          {text: 'Method', value: '6', align: 'left'},
          {text: 'Description', value: '0', align: 'left'},
          {text: 'Specification', value: '1'},
          {text: 'Safe', value: '3'},
          {text: 'Idempotent', value: '4'},
          {text: 'Cacheable', value: '5'}
        ]
      }
    },
    created () {
      items().then(res => {
        Object.keys(res).map(k => {
          const item = res[k].slice()
          item.push(k)
          const obj = {}

          for (const i in item) {
            obj[i] = item[i]
          }

          this.items.push(obj)
        })
      })
    }
  }
</script>

<style lang="stylus">
  .app-table
    max-width 80em

  .capitalize::first-letter
    text-transform uppercase
</style>
{'fraction_non_alphanumeric': 0.17229536348025187, 'fraction_numerical': 0.009158557527189467, 'mean_word_length': 1.8812860676009893, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, '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': '2116605', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1122, 'n_words': 218}