<commit_before><commit_msg>rp-fix-permissions<commit_after>#!/usr/bin/env coffee

child_process = require 'child_process'
async = require 'async'
fs = require 'fs'

fs.readdir '/home', (err, files) ->
  throw err if err

  async.mapSeries files, (file, callback) ->
    async.parallel [
      (callback) ->
        child_process.exec "sudo chown -R #{file}:#{file} /home/#{file}", (err) ->
          callback err

      (callback) ->
        child_process.exec "sudo chmod -R o-rwx /home/#{file}", (err) ->
          callback err
    ], (err) ->
      throw err if err
      console.log "finish chown/chmod for #{file}"
      callback()
  , ->
    process.exit()
{'fraction_non_alphanumeric': 0.16012084592145015, 'fraction_numerical': 0.0, 'mean_word_length': 2.5454545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6174623', 'n_tokens_mistral': 220, 'n_tokens_neox': 215, 'n_words': 56}