<commit_before>#!/usr/bin/env ruby
# Sets Chrome preferences

require 'json'
require 'pp'

file = File.expand_path "~/Library/Application Support/Google/Chrome/Default/Preferences"
json = File.open(file).read
prefs = JSON.parse(json)

prefs["autofill"]["enabled"] = false
prefs["enable_do_not_track"] = true
prefs["profile"]["password_manager_enabled"] = false
prefs["plugins"]["plugins_list"].select { |p| p["name"] =~ /\bFlash\b/}.each do |p|
  p["enabled"] = false
end

File.write(file, prefs.to_json)<commit_msg>clean up dbug<commit_after>#!/usr/bin/env ruby
# Sets Chrome preferences

require 'json'

file = File.expand_path "~/Library/Application Support/Google/Chrome/Default/Preferences"
json = File.open(file).read
prefs = JSON.parse(json)

prefs["autofill"]["enabled"] = false
prefs["enable_do_not_track"] = true
prefs["profile"]["password_manager_enabled"] = false
prefs["plugins"]["plugins_list"].select { |p| p["name"] =~ /\bFlash\b/}.each do |p|
  p["enabled"] = false
end

File.write(file, prefs.to_json)
{'fraction_non_alphanumeric': 0.1786064769381747, 'fraction_numerical': 0.0, 'mean_word_length': 6.23404255319149, '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': '7005885', 'n_tokens_mistral': 361, 'n_tokens_neox': 361, 'n_words': 67}