<commit_before>/*! solo.andreasdzialocha.com (2015) */

(function(window, $, undefined) {

  'use strict';

  // namespace

  window.solo = window.solo || {};

  // constants

  var WAIT_UNTIL_BAR_DISAPPEARS = 2500; // ms

  var DEFAULT_TRACK_NUMBER = 0;

  var PLAYLIST = [
    { title: '1', data: './data/SOLO_1.json', scene: './visuals/cube_matrix.js' },
    { title: '2', data: './data/SOLO_2.json', scene: './visuals/cube_matrix.js' },
    { title: '3', data: './data/SOLO_3.json', scene: './visuals/grid.js' },
    { title: '4', data: './data/SOLO_4.json', scene: './visuals/full.js' },
    { title: '5', data: './data/SOLO_5.json', scene: './visuals/grayscale_cube.js' },
    { title: '6', data: './data/SOLO_6.json', scene: './visuals/lines.js' },
    { title: '7', data: './data/SOLO_7.json', scene: './visuals/cube_matrix.js' }
  ];

  // private

  function _requestFullscreen(sElement) {
    var requestMethod = sElement.requestFullScreen || sElement.webkitRequestFullScreen || sElement.mozRequestFullScreen || sElement.msRequestFullscreen;
    requestMethod.call(sElement);
  }

  function _load(sTrackNumber, sStartCallback) {

    // load scene

    $.cachedScript(PLAYLIST[sTrackNumber].scene, {
      success: function() {

        // load track data

        $.ajax({
          method: 'GET',
          url: PLAYLIST[sTrackNumber].data,
          dataType: 'json',
          cache: true,
          success: function(rData) {
            window.solo.player.start(rData, function() {
              window.solo.scene._onTrackInitalized();
              if (sStartCallback && typeof sStartCallback === 'function') {
                sStartCallback();
              }
            });<commit_msg>Request fullscreen fix for mobile devices<commit_after>/*! solo.andreasdzialocha.com (2015) */

(function(window, $, undefined) {

  'use strict';

  // namespace

  window.solo = window.solo || {};

  // constants

  var WAIT_UNTIL_BAR_DISAPPEARS = 2500; // ms

  var DEFAULT_TRACK_NUMBER = 0;

  var PLAYLIST = [
    { title: '1', data: './data/SOLO_1.json', scene: './visuals/cube_matrix.js' },
    { title: '2', data: './data/SOLO_2.json', scene: './visuals/cube_matrix.js' },
    { title: '3', data: './data/SOLO_3.json', scene: './visuals/grid.js' },
    { title: '4', data: './data/SOLO_4.json', scene: './visuals/full.js' },
    { title: '5', data: './data/SOLO_5.json', scene: './visuals/grayscale_cube.js' },
    { title: '6', data: './data/SOLO_6.json', scene: './visuals/lines.js' },
    { title: '7', data: './data/SOLO_7.json', scene: './visuals/cube_matrix.js' }
  ];

  // private

  function _requestFullscreen(sElement) {
    var requestMethod = sElement.requestFullScreen || sElement.webkitRequestFullScreen || sElement.mozRequestFullScreen || sElement.msRequestFullscreen;
    if (requestMethod) {
      requestMethod.call(sElement);
    }
  }

  function _load(sTrackNumber, sStartCallback) {

    // load scene

    $.cachedScript(PLAYLIST[sTrackNumber].scene, {
      success: function() {

        // load track data

        $.ajax({
          method: 'GET',
          url: PLAYLIST[sTrackNumber].data,
          dataType: 'json',
          cache: true,
          success: function(rData) {
            window.solo.player.start(rData, function() {
              window.solo.scene._onTrackInitalized();
              if (sStartCallback && typeof sStartCallback === 'function') {
                sStartCallback();
              }
            });
{'fraction_non_alphanumeric': 0.1697841726618705, 'fraction_numerical': 0.013237410071942447, 'mean_word_length': 2.5835051546391754, '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': '5061642', 'n_tokens_mistral': 1196, 'n_tokens_neox': 1137, 'n_words': 213}