<commit_before>/* Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.
 * Use of this source code is governed by a AGPL3 license that
 * can be found in the LICENSE file. */
/* global define */

define(function(require, exports, module) {
  "use strict";

  console.log("Loading ioapi.cordova.js..");

  var TSCORE = require("tscore");
  var TSPOSTIO = require("tspostioapi");
  var attachFastClick = require('cordova/fastclick/fastclick.min');
  var fsRoot;
  var urlFromIntent;
  var widgetAction;
  var loadedSettings, loadedSettingsTags;
  var appSettingFile = "settings.json";
  var appSettingTagsFile = "settingsTags.json";

  document.addEventListener("deviceready", onDeviceReady, false);
  document.addEventListener("resume", onDeviceResume, false);
  document.addEventListener("initApp", onApplicationLoad, false);
  // Register ios file open handler
  handleOpenURL = function(url) {
    var fileName = url.substring(url.lastIndexOf('/') + 1, url.length);
    TSCORE.showConfirmDialog("File copied", "File " + fileName + " is copied in inbox folder. Would you like to open it ?", function() {<commit_msg>moving a specific ios global variable to the cordova api<commit_after>/* Copyright (c) 2012-2015 The TagSpaces Authors. All rights reserved.
 * Use of this source code is governed by a AGPL3 license that
 * can be found in the LICENSE file. */
/* global define */
//cordova ios handleOpenURL is global
var handleOpenURL; // jshint ignore:line

define(function(require, exports, module) {
  "use strict";

  console.log("Loading ioapi.cordova.js..");

  var TSCORE = require("tscore");
  var TSPOSTIO = require("tspostioapi");
  var attachFastClick = require('cordova/fastclick/fastclick.min');
  var fsRoot;
  var urlFromIntent;
  var widgetAction;
  var loadedSettings, loadedSettingsTags;
  var appSettingFile = "settings.json";
  var appSettingTagsFile = "settingsTags.json";

  document.addEventListener("deviceready", onDeviceReady, false);
  document.addEventListener("resume", onDeviceResume, false);
  document.addEventListener("initApp", onApplicationLoad, false);
  // Register ios file open handler
  handleOpenURL = function(url) {
    var fileName = url.substring(url.lastIndexOf('/') + 1, url.length);
    TSCORE.showConfirmDialog("File copied", "File " + fileName + " is copied in inbox folder. Would you like to open it ?", function() {
{'fraction_non_alphanumeric': 0.11586901763224182, 'fraction_numerical': 0.008396305625524769, 'mean_word_length': 4.756038647342995, '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': '4009859', 'n_tokens_mistral': 707, 'n_tokens_neox': 683, 'n_words': 216}