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

'use strict'

const path = require('path')
const spawn = require('child_process').spawn

const appDir = path.dirname(process.cwd())
const libDir = path.resolve(appDir, 'node_modules')
const reactNativeDir = path.resolve(libDir, 'react-native')
const packagerDir = path.resolve(reactNativeDir, 'packager')
const reactNativeChunkyDir = __dirname
const reactNativeChunkyAppDir = path.resolve(reactNativeChunkyDir, 'app')

const packagerExec = path.resolve(packagerDir, 'packager.sh')

const packager = spawn(packagerExec, ['--verbose', '--projectRoots', `${appDir},${reactNativeChunkyAppDir}`])

packager.stdout.on('data', (data) => {
  console.log(`${data}`);
})

packager.stderr.on('data', (data) => {
  console.log(`${data}`)
});

packager.on('close', (code) => {
  console.log(`exit ${code}`)
})<commit_msg>fixed start script<commit_after>#!/usr/bin/env node

'use strict'

const path = require('path')
const spawn = require('child_process').spawn

const appDir = process.cwd()
const libDir = path.resolve(appDir, 'node_modules')
const reactNativeDir = path.resolve(libDir, 'react-native')
const packagerDir = path.resolve(reactNativeDir, 'packager')
const reactNativeChunkyDir = path.dirname(__dirname)
const reactNativeChunkyAppDir = path.resolve(reactNativeChunkyDir, 'app')

const packagerExec = path.resolve(packagerDir, 'packager.sh')

const packager = spawn(packagerExec, ['--verbose', '--projectRoots', `${appDir},${reactNativeChunkyAppDir}`])

packager.stdout.on('data', (data) => {
  console.log(`${data}`);
})

packager.stderr.on('data', (data) => {
  console.log(`${data}`)
});

packager.on('close', (code) => {
  console.log(`exit ${code}`)
})
{'fraction_non_alphanumeric': 0.1831069108092144, 'fraction_numerical': 0.0, 'mean_word_length': 6.665158371040724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3248496', 'n_tokens_mistral': 569, 'n_tokens_neox': 572, 'n_words': 106}