<commit_before>// @flow

import type {VolunteerUserData} from "../../utils/ProjectAPIUtils.js";

export type BioPersonData = {|
  first_name: string,
  last_name: string,
  title: string,
  user_thumbnail: ?string,
  bio_text: ?string
|};

export function VolunteerUserDataToBioPersonData(v: VolunteerUserData, title: string): BioPersonData {
    return {
      first_name: v.first_name,
      last_name: v.last_name,
      title: title,
      user_thumbnail: v.user_thumbnail.publicUrl,
      bio_text: v.about_me
    };
}<commit_msg>Bug fix: Handle bio thumbnails for team members without pictures<commit_after>// @flow

import type {VolunteerUserData} from "../../utils/ProjectAPIUtils.js";

export type BioPersonData = {|
  first_name: string,
  last_name: string,
  title: string,
  user_thumbnail: ?string,
  bio_text: ?string
|};

export function VolunteerUserDataToBioPersonData(v: VolunteerUserData, title: string): BioPersonData {
    return {
      first_name: v.first_name,
      last_name: v.last_name,
      title: title,
      user_thumbnail: v.user_thumbnail && v.user_thumbnail.publicUrl,
      bio_text: v.about_me
    };
}
{'fraction_non_alphanumeric': 0.11042944785276074, 'fraction_numerical': 0.0, 'mean_word_length': 3.9012875536480687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5759685', 'n_tokens_mistral': 387, 'n_tokens_neox': 380, 'n_words': 86}