<commit_before><?php namespace kiesel\xp;

use Composer\Installer\LibraryInstaller;
use Composer\Package\PackageInterface;
use Composer\Repository\InstalledRepositoryInterface;

class ComposerInstaller extends LibraryInstaller {

  public function supports($packageType) {
    return 'xp-library' === $packageType;
  }

  public function install(InstalledRepositoryInterface $repo, PackageInterface $package) {

    // Let parent do regular work
    parent::install($repo, $package);

    // Update project's .pth file
    $base= $this->getPackageBasePath($package);
    $this->io->write('    Updating .pth file w/ paths in '.$base);
  }

  public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {

    // Let parent do regular work
    parent::update($repo, $initial, $target);

  }

  public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {

    // Let parent do regular work
    parent::install($repo, $package);
  }
}<commit_msg>- add debug<commit_after><?php namespace kiesel\xp;

use Composer\Installer\LibraryInstaller;
use Composer\Package\PackageInterface;
use Composer\Repository\InstalledRepositoryInterface;

class ComposerInstaller extends LibraryInstaller {

  public function supports($packageType) {
    return 'xp-library' === $packageType;
  }

  public function install(InstalledRepositoryInterface $repo, PackageInterface $package) {

    // Let parent do regular work
    parent::install($repo, $package);

    // Update project's .pth file
    $base= $this->getPackageBasePath($package);
    $this->io->write('    Updating .pth file w/ paths in '.$base);

    // Detect root directory
    $this->io->write('    Root directory is '.$this->composer->getConfig()->get('home'));

  }

  public function update(InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) {

    // Let parent do regular work
    parent::update($repo, $initial, $target);

  }

  public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) {

    // Let parent do regular work
    parent::install($repo, $package);
  }
}
{'fraction_non_alphanumeric': 0.11664361456892577, 'fraction_numerical': 0.0, 'mean_word_length': 4.452261306532663, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '2119803', 'n_tokens_mistral': 602, 'n_tokens_neox': 579, 'n_words': 160}