<commit_before><template>
  <v-list-tile avatar>
    <v-list-tile-avatar>
      <v-icon grey class="grey grey lighten-1 white--text" v-if="!post.photos">folder</v-icon>
      <img v-bind:src="getPhoto(post.photos)" v-bind:alt="post.title" v-if="post.photos" />
    </v-list-tile-avatar>
    <v-list-tile-content>
      <v-list-tile-title>
        {{ post.title }}
      </v-list-tile-title>
      <v-list-tile-sub-title>{{ post.place }}</v-list-tile-sub-title>
    </v-list-tile-content>
    <v-list-tile-action>
        <post-actions
         @deletePost="deletePost($event)"
         @openDialog="openDialog($event)"
        :postID="post.id"
        ></post-actions>
    </v-list-tile-action>
  </v-list-tile>
</template>
<script>
  import Actions from './Actions'
  export default {
    props: ['post'],
    components: {
      'post-actions': Actions
    },
    data () {
      return {
        posts: [],
        photo: ''
      }
    },
    methods: {
      openDialog () {
        this.$emit('openDialog')
      },
      openEditDialog () {
        this.$emit('openEditDialog', this.post)
      },
      deletePost () {
        this.$emit('deletePost', this.post.id)
      },
      getPhoto (photo) {
        if (photo) {
          return 'http://127.0.0.1:8000/gallery/posts/thumbs/' + photo[0].photo
        }
      }
    }
  }
</script><commit_msg>Update Post.vue<commit_after><template>
  <v-list-tile avatar>
    <v-list-tile-avatar>
      <v-icon grey class="grey grey lighten-1 white--text" v-if="!post.photos">folder</v-icon>
      <img v-bind:src="getPhoto(post.photos)" v-bind:alt="post.title" v-if="post.photos" />
    </v-list-tile-avatar>
    <v-list-tile-content>
      <v-list-tile-title>
        {{ post.title }}
      </v-list-tile-title>
      <v-list-tile-sub-title>{{ post.place }}</v-list-tile-sub-title>
    </v-list-tile-content>
    <v-list-tile-action>
        <post-actions
         @deletePost="deletePost($event)"
         @openDialog="openDialog($event)"
        :postID="post.id"
        ></post-actions>
    </v-list-tile-action>
  </v-list-tile>
</template>
<script>
  import Actions from './Actions'
  export default {
    props: ['post'],
    components: {
      'post-actions': Actions
    },
    data () {
      return {
        posts: [],
        photo: ''
      }
    },
    methods: {
      openDialog () {
        this.$emit('openDialog')
      },
      openEditDialog () {
        this.$emit('openEditDialog', this.post)
      },
      deletePost () {
        this.$emit('deletePost', this.post.id)
      },
      getPhoto (photo) {
        if (photo) {
          return 'http://codedegg.com/gallery/posts/thumbs/' + photo[0].photo
        }
      }
    }
  }
</script>
{'fraction_non_alphanumeric': 0.18763796909492272, 'fraction_numerical': 0.0051508462104488595, 'mean_word_length': 1.9977949283351708, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7364003', 'n_tokens_mistral': 963, 'n_tokens_neox': 935, 'n_words': 132}