<commit_before>import {contentView, device, TextView} from 'tabris';

contentView.append(<TextView padding={16} markupEnabled font={'16px'} lineSpacing={1.4}/>);

device.onOrientationChanged(renderDeviceProperties);
renderDeviceProperties();

function renderDeviceProperties() {
  $(TextView).only().text =
    <$>
      <b>Platform:</b> {device.platform}<br/>
      <b>Version:</b> {device.version}<br/>
      <b>Model:</b> {device.model}<br/>
      <b>Vendor:</b> {device.vendor}<br/>
      <b>Name:</b> {device.name}<br/>
      <b>Language:</b> {device.language}<br/>
      <b>Orientation:</b> {device.orientation}<br/>
      <b>Screen:</b> {device.screenWidth} x {device.screenHeight}<br/>
      <b>Scale:</b> {device.scaleFactor}<br/>
      <b>Cameras:</b> {device.cameras ? device.cameras.map(camera => camera.position) : 'none'}<br/>
    </$>
  ;
}<commit_msg>Fix formatting of cameras in device.jsx snippet<commit_after>import {contentView, device, TextView} from 'tabris';

contentView.append(<TextView padding={16} markupEnabled font={'16px'} lineSpacing={1.4}/>);

device.onOrientationChanged(renderDeviceProperties);
renderDeviceProperties();

function renderDeviceProperties() {
  $(TextView).only().text =
    <$>
      <b>Platform:</b> {device.platform}<br/>
      <b>Version:</b> {device.version}<br/>
      <b>Model:</b> {device.model}<br/>
      <b>Vendor:</b> {device.vendor}<br/>
      <b>Name:</b> {device.name}<br/>
      <b>Language:</b> {device.language}<br/>
      <b>Orientation:</b> {device.orientation}<br/>
      <b>Screen:</b> {device.screenWidth} x {device.screenHeight}<br/>
      <b>Scale:</b> {device.scaleFactor}<br/>
      <b>Cameras:</b> {device.cameras ? device.cameras.map(camera => camera.position).join(', ') : 'none'}<br/>
    </$>
  ;
}
{'fraction_non_alphanumeric': 0.2175379426644182, 'fraction_numerical': 0.006745362563237774, 'mean_word_length': 4.235294117647059, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 71, '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': '3175691', 'n_tokens_mistral': 636, 'n_tokens_neox': 596, 'n_words': 88}