<commit_before>#!/usr/bin/env node

var path = require('path');
var fs = require('fs');
var exec = require('child_process').exec;

module.exports = function (context) {
    var Q = context.requireCordovaModule('q');
    var deferral = new Q.defer();

    var libraryRepository = 'https://github.com/MSOpenTech/winstore-jscompat.git';
    var libraryTargetDirectory = path.join('plugins', 'cordova-plugin-winstore-jscompat', 'src');

    if (fs.existsSync(libraryTargetDirectory)) {
        deferral.resolve();
    } else {
        exec('git clone  ' + libraryRepository + ' ' + libraryTargetDirectory,
            function (error, stdout, stderr) {
                if (error !== null) {
                    console.log('Error ' + error + ' when cloning the winstore-jscompat library from ' + libraryRepository + ' to ' + libraryTargetDirectory);
                    deferral.reject();
                } else {
                    deferral.resolve();
                }
            }
        );
    }<commit_msg>winstore-compat repository uri change<commit_after>#!/usr/bin/env node

var path = require('path');
var fs = require('fs');
var exec = require('child_process').exec;

module.exports = function (context) {
    var Q = context.requireCordovaModule('q');
    var deferral = new Q.defer();

    var libraryRepository = 'https://github.com/Microsoft/winstore-jscompat.git';
    var libraryTargetDirectory = path.join('plugins', 'cordova-plugin-winstore-jscompat', 'src');

    if (fs.existsSync(libraryTargetDirectory)) {
        deferral.resolve();
    } else {
        exec('git clone  ' + libraryRepository + ' ' + libraryTargetDirectory,
            function (error, stdout, stderr) {
                if (error !== null) {
                    console.log('Error ' + error + ' when cloning the winstore-jscompat library from ' + libraryRepository + ' to ' + libraryTargetDirectory);
                    deferral.reject();
                } else {
                    deferral.resolve();
                }
            }
        );
    }
{'fraction_non_alphanumeric': 0.13264806656877143, 'fraction_numerical': 0.0, 'mean_word_length': 2.3021001615508885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4795587', 'n_tokens_mistral': 575, 'n_tokens_neox': 539, 'n_words': 119}