<commit_before>/**
 settings.js
 Copyright (c) 2014 NTT DOCOMO,INC.
 Released under the MIT license
 http://opensource.org/licenses/mit-license.php
 */
var VOLUME_TYPE_ALERM = 1;
var VOLUME_TYPE_CALL = 2;
var VOLUME_TYPE_RINGTONE = 3;
var VOLUME_TYPE_MAIL = 4;
var VOLUME_TYPE_MEDIA_PLAYER = 5;
var VOLUME_TYPE_OTHER = 6;
var processCount = 0;
var finishCount = 3;

/**
 * Setting menu
 *
 * @param {String} serviceId サービスID
 */
function showSetting(serviceId) {

  initAll();

  setTitle('Settings Profile');

  var btnStr = '';
  btnStr += getBackButton('Device Top', 'doSettingBack', serviceId, '');
  reloadHeader(btnStr);
  reloadFooter(btnStr);

  var str = '';

  if (myDeviceName.indexOf('Pebble') != -1) {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<input name="newDate" id="newDate" type="text" ' +
          'data-role="datebox" data-options=\'{"mode":"datebox"}\' />'
    str += '<input name="newTime" id="newTime" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"timebox"}\' />';
    str += '<input type="button" onclick="doSetDate(\'' +
            serviceId + '\',1);" id="setDate" value="Set date"  />';
  } else if (myDeviceName.indexOf('Sony Camera') != -1) {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<input name="newDate" id="newDate" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"datebox"}\' />'
    str += '<input name="newTime" id="newTime" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"timebox"}\' />';
    str += '<input type="button" onclick="doSetDate(\'' +
          serviceId + '\',1);" id="setDate" value="Set date"  />';
  } else {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<label for="slider-0">Volume Alerm:</label>';
    str += '<input type="range" name="slider" id="volumeAlerm"' +
            ' value="25" min="0" max="100"  />';
    str += '<input type="button" onclick="doChangeSoundLevel(\'' +
            serviceId + '\',1);" id="volumeSetAlerm"' +
            ' value="Set volume of Alerm"  />';

    str += '<label for="slider-0">Volume Call:</label>';<commit_msg>Added UI pattern for F-PLUG<commit_after>/**
 settings.js
 Copyright (c) 2014 NTT DOCOMO,INC.
 Released under the MIT license
 http://opensource.org/licenses/mit-license.php
 */
var VOLUME_TYPE_ALERM = 1;
var VOLUME_TYPE_CALL = 2;
var VOLUME_TYPE_RINGTONE = 3;
var VOLUME_TYPE_MAIL = 4;
var VOLUME_TYPE_MEDIA_PLAYER = 5;
var VOLUME_TYPE_OTHER = 6;
var processCount = 0;
var finishCount = 3;

/**
 * Setting menu
 *
 * @param {String} serviceId サービスID
 */
function showSetting(serviceId) {

  initAll();

  setTitle('Settings Profile');

  var btnStr = '';
  btnStr += getBackButton('Device Top', 'doSettingBack', serviceId, '');
  reloadHeader(btnStr);
  reloadFooter(btnStr);

  var str = '';

  if (myDeviceName.indexOf('Pebble') != -1) {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<input name="newDate" id="newDate" type="text" ' +
          'data-role="datebox" data-options=\'{"mode":"datebox"}\' />'
    str += '<input name="newTime" id="newTime" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"timebox"}\' />';
    str += '<input type="button" onclick="doSetDate(\'' +
            serviceId + '\',1);" id="setDate" value="Set date"  />';
  } else if (myDeviceName.indexOf('Sony Camera') != -1) {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<input name="newDate" id="newDate" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"datebox"}\' />'
    str += '<input name="newTime" id="newTime" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"timebox"}\' />';
    str += '<input type="button" onclick="doSetDate(\'' +
          serviceId + '\',1);" id="setDate" value="Set date"  />';
  }  else if (myDeviceName.indexOf('F-PLUG') != -1) {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<input name="newDate" id="newDate" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"datebox"}\' />'
    str += '<input name="newTime" id="newTime" type="text"' +
          ' data-role="datebox" data-options=\'{"mode":"timebox"}\' />';
    str += '<input type="button" onclick="doSetDate(\'' +
          serviceId + '\',1);" id="setDate" value="Set date"  />';
  } else {
    str += '<center>Date</center><br>';
    str += makeInputText('DeviceTime', 'deviceDate', 'deviceDate');
    str += '<label for="slider-0">Volume Alerm:</label>';
    str += '<input type="range" name="slider" id="volumeAlerm"' +
            ' value="25" min="0" max="100"  />';
    str += '<input type="button" onclick="doChangeSoundLevel(\'' +
            serviceId + '\',1);" id="volumeSetAlerm"' +
            ' value="Set volume of Alerm"  />';

    str += '<label for="slider-0">Volume Call:</label>';
{'fraction_non_alphanumeric': 0.21687211093990755, 'fraction_numerical': 0.010015408320493066, 'mean_word_length': 3.7424657534246575, 'pattern_counts': {'":': 10, '<': 51, '<?xml version=': 0, '>': 51, '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': '923710', 'n_tokens_mistral': 1828, 'n_tokens_neox': 1767, 'n_words': 354}