<commit_before>const {app,BrowserWindow} = require('electron')
//const LocalShortcut = require('electron-localshortcut');
const path = require('path');
const url = require('url');
const $ = require('jquery')

const {globalShortcut} = require('electron')


let win

function newWindow() {
  win = new BrowserWindow({
    //width: 300,
    width: 700,
    height: 400,
    frame: false,
    titleBarStyle: 'hidden',
    resizable: false
  })

  win.loadURL(`file:///${__dirname}/index.html`)
  win.on("closed", () => {
    win = null
    app.quit()
  })
  win.webContents.openDevTools()

  globalShortcut.register('1', () => {
    win.webContents.send('scmex', '#n1');
    console.log("Main listen to key 1");
  });
  globalShortcut.register('2', () => {
    win.webContents.send('scmex','#n2')
    console.log("Main 2");
  })<commit_msg>Success Global to Local<commit_after>const {app,BrowserWindow} = require('electron')
const localShortcut = require('electron-localshortcut');
const path = require('path');
const url = require('url');
const $ = require('jquery')

//const {globalShortcut} = require('electron')


let win

function newWindow() {
  win = new BrowserWindow({
    //width: 300,
    width: 700,
    height: 400,
    frame: false,
    titleBarStyle: 'hidden',
    resizable: false
  })

  win.loadURL(`file:///${__dirname}/index.html`)
  win.on("closed", () => {
    win = null
    app.quit()
  })
  win.webContents.openDevTools()

  localShortcut.register(win,'1', () => {
    win.webContents.send('scmex', '#n1');
    console.log("Main listen to key 1");
  });
  localShortcut.register(win,'2', () => {
    win.webContents.send('scmex','#n2')
    console.log("Main 2");
  })
{'fraction_non_alphanumeric': 0.19075829383886256, 'fraction_numerical': 0.017772511848341232, 'mean_word_length': 3.8257142857142856, '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': '25670', 'n_tokens_mistral': 594, 'n_tokens_neox': 561, 'n_words': 111}