<commit_before><template>
  <div class="speaker-widget">
    <div class="speaker-content">
      <div class="speaker-overview">
        <div class="flexbox">
          <div class="speaker-portrait"><img alt="" :src='speakerImageUrl'></div>
          <div class="speaker-contact">
            <h2 class="darkLink">
              <router-link :to="{ name: 'speakerPage', params: { speakerId: speaker.id }}" class="speaker-link">{{ speaker.name }}</router-link>
            </h2>
            <div class="speaker-function">
              {{ speaker.function }} {{ speaker.company }}
            </div>
            <table>
              <tbody>
              <tr v-if="speaker.email">
                <th>E-Mail:</th>
                <td><a :href='"mailto:" + speaker.email'>{{ speaker.email }}</a></td>
              </tr>
              <tr v-if="speaker.website">
                <th>Web:</th>
                <td><a target="_blank" :href="speaker.website">{{speaker.website}}</a></td>
              </tr>
              <tr v-if="speaker.blog">
                <th>Blog:</th>
                <td><a target="_blank" :href="speaker.blog">{{speaker.blog}}</a></td>
              </tr>
              </tbody>
            </table>
            <div class="speaker-socialmedia">
              <a v-for="m in socialMedias" :key="m.media" target="_blank" :href="m.url">
                <img :src="m.src" :alt="m.media"/>
              </a>
            </div>
          </div>
        </div>
        <div id="speaker-bio">{{ speaker.bio }}</div>
      </div>
      <div class="speaker-talks">
        <h2>{{ $t(parentEventId ? 'other_speakertalks' : 'speakertalks') }}</h2>
        <div v-if="speakerEvents.length == 0">{{ $t('noOtherTalks') }}</div>
        <event v-for="e in speakerEvents" :event="e" :key="e.id"/>
      </div>
    </div>
  </div>
</template>

<script>
import Conference from '../../Conference'
import Event from './Event.vue'

var base = ''

// test if we are running in local served mode to test offline mode
if (window.location.href.indexOf('http://localhost:5000') !== -1) {
  base = 'https://latest.dukecon.org/javaland/2018/'
}

var toUrl = function (media, url) {
  if (media === 'twitter') {
    if (!url.indexOf('http') === 0) {<commit_msg>#74 fis twitter link in speaker details<commit_after><template>
  <div class="speaker-widget">
    <div class="speaker-content">
      <div class="speaker-overview">
        <div class="flexbox">
          <div class="speaker-portrait"><img alt="" :src='speakerImageUrl'></div>
          <div class="speaker-contact">
            <h2 class="darkLink">
              <router-link :to="{ name: 'speakerPage', params: { speakerId: speaker.id }}" class="speaker-link">{{ speaker.name }}</router-link>
            </h2>
            <div class="speaker-function">
              {{ speaker.function }} {{ speaker.company }}
            </div>
            <table>
              <tbody>
              <tr v-if="speaker.email">
                <th>E-Mail:</th>
                <td><a :href='"mailto:" + speaker.email'>{{ speaker.email }}</a></td>
              </tr>
              <tr v-if="speaker.website">
                <th>Web:</th>
                <td><a target="_blank" :href="speaker.website">{{speaker.website}}</a></td>
              </tr>
              <tr v-if="speaker.blog">
                <th>Blog:</th>
                <td><a target="_blank" :href="speaker.blog">{{speaker.blog}}</a></td>
              </tr>
              </tbody>
            </table>
            <div class="speaker-socialmedia">
              <a v-for="m in socialMedias" :key="m.media" target="_blank" :href="m.url">
                <img :src="m.src" :alt="m.media"/>
              </a>
            </div>
          </div>
        </div>
        <div id="speaker-bio">{{ speaker.bio }}</div>
      </div>
      <div class="speaker-talks">
        <h2>{{ $t(parentEventId ? 'other_speakertalks' : 'speakertalks') }}</h2>
        <div v-if="speakerEvents.length == 0">{{ $t('noOtherTalks') }}</div>
        <event v-for="e in speakerEvents" :event="e" :key="e.id"/>
      </div>
    </div>
  </div>
</template>

<script>
import Conference from '../../Conference'
import Event from './Event.vue'

var base = ''

// test if we are running in local served mode to test offline mode
if (window.location.href.indexOf('http://localhost:5000') !== -1) {
  base = 'https://latest.dukecon.org/javaland/2018/'
}

var toUrl = function (media, url) {
  if (media === 'twitter') {
    if (url.indexOf('http') !== 0) {
{'fraction_non_alphanumeric': 0.2001322459775182, 'fraction_numerical': 0.007053118800969804, 'mean_word_length': 1.9602087410306588, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, 'https://': 2, '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': '7128208', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1439, 'n_words': 292}