<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.
@file:JvmName("PyCustomPackageManagers")

package com.jetbrains.python.packaging

import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.project.Project
import com.intellij.openapi.projectRoots.Sdk
import com.jetbrains.python.packaging.ui.PyPackageManagementService
import org.jetbrains.annotations.ApiStatus

@ApiStatus.Experimental
interface PyPackageManagerProvider {
  /**
   * Returns [PyPackageManager] if specified [sdk] is known to this provider
   * and `null` otherwise.
   *
   * @see tryCreateCustomPackageManager
   */
  fun tryCreateForSdk(sdk: Sdk): PyPackageManager?

  companion object {
    @JvmField
    val EP_NAME: ExtensionPointName<PyPackageManagerProvider> = ExtensionPointName.create("Pythonid.packageManagerProvider")<commit_msg>IDEA-CR-66523: cleanup (PY-44304)<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.
@file:JvmName("PyCustomPackageManagers")

package com.jetbrains.python.packaging

import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.extensions.ExtensionPointName
import com.intellij.openapi.projectRoots.Sdk
import org.jetbrains.annotations.ApiStatus

@ApiStatus.Experimental
interface PyPackageManagerProvider {
  /**
   * Returns [PyPackageManager] if specified [sdk] is known to this provider
   * and `null` otherwise.
   *
   * @see tryCreateCustomPackageManager
   */
  fun tryCreateForSdk(sdk: Sdk): PyPackageManager?

  companion object {
    @JvmField
    val EP_NAME: ExtensionPointName<PyPackageManagerProvider> = ExtensionPointName.create("Pythonid.packageManagerProvider")
{'fraction_non_alphanumeric': 0.08439490445859872, 'fraction_numerical': 0.01592356687898089, 'mean_word_length': 5.389830508474576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6541824', 'n_tokens_mistral': 582, 'n_tokens_neox': 549, 'n_words': 135}