<commit_before>// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.svn

import org.jetbrains.idea.svn.api.Url

import java.io.File

// TODO: is17Copy is currently true in all constructor usages - remove this field and revise is17Copy() usages
class WorkingCopy(val file: File, val url: Url, val is17Copy: Boolean) {
  override fun equals(other: Any?): Boolean {
    if (this === other) return true
    if (other !is WorkingCopy) return false

    return file == other.file
  }

  override fun hashCode() = file.hashCode()
}<commit_msg>svn: Compare "java.io.File" files with "FileUtil.filesEqual()"<commit_after>// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.svn

import com.intellij.openapi.util.io.FileUtil.fileHashCode
import com.intellij.openapi.util.io.FileUtil.filesEqual
import org.jetbrains.idea.svn.api.Url
import java.io.File

// TODO: is17Copy is currently true in all constructor usages - remove this field and revise is17Copy() usages
class WorkingCopy(val file: File, val url: Url, val is17Copy: Boolean) {
  override fun equals(other: Any?): Boolean {
    if (this === other) return true
    if (other !is WorkingCopy) return false

    return filesEqual(file, other.file)
  }

  override fun hashCode() = fileHashCode(file)
}
{'fraction_non_alphanumeric': 0.0961408259986459, 'fraction_numerical': 0.021665538253215978, 'mean_word_length': 4.096551724137931, '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': '4227604', 'n_tokens_mistral': 485, 'n_tokens_neox': 449, 'n_words': 169}