<commit_before>'use strict'

const downloadGithubRawFile = require('./download-github-raw-file')
const electronInstaller = require('electron-winstaller')
const fs = require('fs-extra')
const os = require('os')
const path = require('path')

const CONFIG = require('../config')

module.exports = function (packagedAppPath, codeSign) {
  console.log(`Creating Windows Installer for ${packagedAppPath}`)
  const options = {
    appDirectory: packagedAppPath,
    authors: 'GitHub Inc.',
    iconUrl: `https://raw.githubusercontent.com/atom/atom/master/resources/app-icons/${CONFIG.channel}/atom.ico`,
    loadingGif: path.join(CONFIG.repositoryRootPath, 'resources', 'win', 'loading.gif'),
    outputDirectory: CONFIG.buildOutputPath,
    remoteReleases: `https://atom.io/api/updates?version=${CONFIG.appMetadata.version}`,
    setupIcon: path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom.ico')
  }

  if (codeSign && process.env.WIN_P12KEY_URL) {
    const certPath = path.join(os.tmpdir(), 'win.p12')
    downloadGithubRawFile(process.env.WIN_P12KEY_URL, certPath)
    const deleteCertificate = function () {
      console.log(`Deleting certificate at ${certPath}`)<commit_msg>Manually set title when running electron-winstaller<commit_after>'use strict'

const downloadGithubRawFile = require('./download-github-raw-file')
const electronInstaller = require('electron-winstaller')
const fs = require('fs-extra')
const os = require('os')
const path = require('path')

const CONFIG = require('../config')

module.exports = function (packagedAppPath, codeSign) {
  console.log(`Creating Windows Installer for ${packagedAppPath}`)
  const options = {
    appDirectory: packagedAppPath,
    authors: 'GitHub Inc.',
    iconUrl: `https://raw.githubusercontent.com/atom/atom/master/resources/app-icons/${CONFIG.channel}/atom.ico`,
    loadingGif: path.join(CONFIG.repositoryRootPath, 'resources', 'win', 'loading.gif'),
    outputDirectory: CONFIG.buildOutputPath,
    remoteReleases: `https://atom.io/api/updates?version=${CONFIG.appMetadata.version}`,
    setupIcon: path.join(CONFIG.repositoryRootPath, 'resources', 'app-icons', CONFIG.channel, 'atom.ico'),
    title: CONFIG.channel === 'beta' ? 'Atom Beta' : 'Atom'
  }

  if (codeSign && process.env.WIN_P12KEY_URL) {
    const certPath = path.join(os.tmpdir(), 'win.p12')
    downloadGithubRawFile(process.env.WIN_P12KEY_URL, certPath)
    const deleteCertificate = function () {
      console.log(`Deleting certificate at ${certPath}`)
{'fraction_non_alphanumeric': 0.14886859865025803, 'fraction_numerical': 0.004763795156808257, 'mean_word_length': 5.161369193154035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3817153', 'n_tokens_mistral': 780, 'n_tokens_neox': 767, 'n_words': 148}