<commit_before>'use strict';

const fs = require('fs-extra');
const path = require('path');
const chalk = require('chalk');
const spawn = require('cross-spawn');

const basicDependencies = [
    '@cycle/dom@18.3.0',
    '@cycle/history@6.4.0',
    '@cycle/http@14.4.0',
    '@cycle/isolate@3.1.0',
    '@cycle/run@3.3.0',
    '@cycle/storage@4.1.1',
    '@cycle/time@0.10.1',
    'cycle-onionify@4.0.0',
    'cyclejs-utils@1.0.4',
    'cycle-storageify@3.2.0',
    'cyclic-router@5.1.3',
    'switch-path@1.2.0',
    'xstream@11.0.0'
];

const devDependencies = [
    '@types/history@4.6.0',
    'cycle-restart@0.2.2',
    'cyclejs-test-helpers@1.4.0',
    'html-looks-like@1.0.3',
    'jsverify@0.8.3',
    'prettier@1.7.4',
    'snabbdom-to-html@3.3.0',
    'husky@0.14.3',
    'lint-staged@4.2.3'
];

function patchGitignore(appPath) {
    // Rename gitignore after the fact to prevent npm from renaming it to .npmignore
    // See: https://github.com/npm/npm/issues/1862
    const gitignorePath = path.join(appPath, 'gitignore');
    const dotGitignorePath = path.join(appPath, '.gitignore');
    fs.move(gitignorePath, dotGitignorePath, [], err => {
        if (err) {
            // Append if there's already a `.gitignore` file there
            if (err.code === 'EEXIST') {
                const content = fs.readFileSync(gitignorePath);<commit_msg>Update dependencies<commit_after>'use strict';

const fs = require('fs-extra');
const path = require('path');
const chalk = require('chalk');
const spawn = require('cross-spawn');

const basicDependencies = [
    '@cycle/dom@19.0.0',
    '@cycle/history@6.4.0',
    '@cycle/http@14.4.0',
    '@cycle/isolate@3.1.0',
    '@cycle/run@3.3.0',
    '@cycle/storage@4.1.1',
    '@cycle/time@0.10.1',
    'cycle-onionify@4.0.0',
    'cyclejs-utils@2.0.0',
    'cycle-storageify@4.0.0',
    'cyclic-router@5.1.3',
    'switch-path@1.2.0',
    'xstream@11.0.0'
];

const devDependencies = [
    '@types/history@4.6.0',
    'cycle-restart@0.2.2',
    'cyclejs-test-helpers@1.4.0',
    'html-looks-like@1.0.3',
    'jsverify@0.8.3',
    'prettier@1.7.4',
    'snabbdom-to-html@3.3.0',
    'husky@0.14.3',
    'lint-staged@4.2.3'
];

function patchGitignore(appPath) {
    // Rename gitignore after the fact to prevent npm from renaming it to .npmignore
    // See: https://github.com/npm/npm/issues/1862
    const gitignorePath = path.join(appPath, 'gitignore');
    const dotGitignorePath = path.join(appPath, '.gitignore');
    fs.move(gitignorePath, dotGitignorePath, [], err => {
        if (err) {
            // Append if there's already a `.gitignore` file there
            if (err.code === 'EEXIST') {
                const content = fs.readFileSync(gitignorePath);
{'fraction_non_alphanumeric': 0.19558823529411765, 'fraction_numerical': 0.05514705882352941, 'mean_word_length': 2.832394366197183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4284674', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1075, 'n_words': 168}