<commit_before>var app = require('app')
var setting = require('./module/setting')
var BrowserWindow = require('browser-window')

var window = null

// Generate default settings
setting
.default('app.startup_check_updates', true)
.default('app.startup_check_updates_delay', 100)
.default('game.default_board_size', 19)
.default('game.default_komi', 6.5)
.default('game.show_ko_warning', true)
.default('game.show_suicide_warning', true)
.default('graph.collapse_min_depth', 1)
.default('graph.collapse_tokens_count', 100000)
.default('graph.delay', 300)
.default('graph.grid_size', 25)
.default('graph.node_active_color', '#f76047')
.default('graph.node_inactive_color', '#555')
.default('graph.node_color', '#eee')
.default('graph.node_comment_color', '#5bc1c4')
.default('graph.node_size', 4)
.default('scoring.method', 'territory')
.default('sound.enable', true)
.default('view.fuzzy_stone_placement', true)
.default('view.show_coordinates', false)
.default('view.show_variations', true)
.default('view.show_sidebar', false)
.default('view.sidebar_width', 200)
.default('view.sidebar_minwidth', 100)
.default('window.height', 648)
.default('window.minheight', 590)
.default('window.minwidth', 550)
.default('window.width', 608)

// Quit when all windows are closed.
app.on('window-all-closed', function() {
    if (process.platform != 'darwin')
        app.quit()
})

app.on('ready', function() {
    window = new BrowserWindow({
        'width': setting.get('window.width'),
        'height': setting.get('window.height'),
        'min-width': setting.get('window.minwidth'),
        'min-height': setting.get('window.minheight'),
        'use-content-size': true,
        'show': false,
        'web-preferences': {
            'text-areas-are-resizable': false
        }
    })

    // window.toggleDevTools()
    window.webContents.setAudioMuted(!setting.get('sound.enable'))

    window.on('closed', function() { window = null })
    window.webContents.on('dom-ready', function() { window.show() })

    window.loadUrl('file://' + __dirname + '/view/index.html')
})
<commit_msg>Change default comment node color<commit_after>var app = require('app')
var setting = require('./module/setting')
var BrowserWindow = require('browser-window')

var window = null

// Generate default settings
setting
.default('app.startup_check_updates', true)
.default('app.startup_check_updates_delay', 100)
.default('game.default_board_size', 19)
.default('game.default_komi', 6.5)
.default('game.show_ko_warning', true)
.default('game.show_suicide_warning', true)
.default('graph.collapse_min_depth', 1)
.default('graph.collapse_tokens_count', 100000)
.default('graph.delay', 300)
.default('graph.grid_size', 25)
.default('graph.node_active_color', '#f76047')
.default('graph.node_inactive_color', '#555')
.default('graph.node_color', '#eee')
.default('graph.node_comment_color', '#6bb1ff')
.default('graph.node_size', 4)
.default('scoring.method', 'territory')
.default('sound.enable', true)
.default('view.fuzzy_stone_placement', true)
.default('view.show_coordinates', false)
.default('view.show_variations', true)
.default('view.show_sidebar', false)
.default('view.sidebar_width', 200)
.default('view.sidebar_minwidth', 100)
.default('window.height', 648)
.default('window.minheight', 590)
.default('window.minwidth', 550)
.default('window.width', 608)

// Quit when all windows are closed.
app.on('window-all-closed', function() {
    if (process.platform != 'darwin')
        app.quit()
})

app.on('ready', function() {
    window = new BrowserWindow({
        'width': setting.get('window.width'),
        'height': setting.get('window.height'),
        'min-width': setting.get('window.minwidth'),
        'min-height': setting.get('window.minheight'),
        'use-content-size': true,
        'show': false,
        'web-preferences': {
            'text-areas-are-resizable': false
        }
    })

    // window.toggleDevTools()
    window.webContents.setAudioMuted(!setting.get('sound.enable'))

    window.on('closed', function() { window = null })
    window.webContents.on('dom-ready', function() { window.show() })

    window.loadUrl('file://' + __dirname + '/view/index.html')
})

{'fraction_non_alphanumeric': 0.18615751789976134, 'fraction_numerical': 0.02315035799522673, 'mean_word_length': 4.717598908594816, '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': '3028328', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1345, 'n_words': 232}