<commit_before>// Copyright (C) 2016 Allegorithmic
//
// This software may be modified and distributed under the terms
// of the MIT license.  See the LICENSE file for details.

import QtQuick 2.3
import QtQuick.Window 2.2
import QtQuick.Layouts 1.2
import QtQuick.Dialogs 1.0
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

import "photoshop.js" as Photoshop

Button {
  id: rect
  antialiasing: true
  width: 24; height: 24
  property bool loading: false


  style: ButtonStyle {
       
      background: Image {
      source: control.loading ? "icons/PSiconLoading.png" : (control.hovered ? "icons/PSiconHover.png" : "icons/PSicon.png")
      fillMode: Image.PreserveAspectFit
      mipmap: true
      width: control.width; height: control.height
    }

  }

	FileDialog {
		id: fileDialog
		title: "Choose a Photoshop executable file..."
		nameFilters: [ "Photoshop files (*.exe *.app)", "All files (*)" ]
		selectedNameFilter: "Executable files (*)"
		onAccepted: {
			alg.settings.setValue("photoshopPath", alg.fileIO.urlToLocalFile(fileUrl.toString()));<commit_msg>Change the name of the dialog for the fist used<commit_after>// Copyright (C) 2016 Allegorithmic
//
// This software may be modified and distributed under the terms
// of the MIT license.  See the LICENSE file for details.

import QtQuick 2.3
import QtQuick.Window 2.2
import QtQuick.Layouts 1.2
import QtQuick.Dialogs 1.0
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

import "photoshop.js" as Photoshop

Button {
  id: rect
  antialiasing: true
  width: 24; height: 24
  property bool loading: false


  style: ButtonStyle {
       
      background: Image {
      source: control.loading ? "icons/PSiconLoading.png" : (control.hovered ? "icons/PSiconHover.png" : "icons/PSicon.png")
      fillMode: Image.PreserveAspectFit
      mipmap: true
      width: control.width; height: control.height
    }

  }

	FileDialog {
		id: fileDialog
		title: "Please locate Photoshop..."
		nameFilters: [ "Photoshop files (*.exe *.app)", "All files (*)" ]
		selectedNameFilter: "Executable files (*)"
		onAccepted: {
			alg.settings.setValue("photoshopPath", alg.fileIO.urlToLocalFile(fileUrl.toString()));
{'fraction_non_alphanumeric': 0.10904134484325306, 'fraction_numerical': 0.01817355747387551, 'mean_word_length': 3.5684647302904566, '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': '5746068', 'n_tokens_mistral': 756, 'n_tokens_neox': 679, 'n_words': 206}