<commit_before><?php

/**
 * Installable as an SVN "pre-commit" hook.
 */
final class ArcanistSvnHookPreCommitWorkflow extends ArcanistWorkflow {

  public function getWorkflowName() {
    return 'svn-hook-pre-commit';
  }

  public function getCommandSynopses() {
    return phutil_console_format(<<<EOTEXT
      **svn-hook-pre-commit** __repository__ __transaction__
EOTEXT
      );
  }

  public function getCommandHelp() {
    return phutil_console_format(<<<EOTEXT
          Supports: svn
          You can install this as an SVN pre-commit hook. For more information,
          see the article "Installing Arcanist SVN Hooks" in the Arcanist
          documentation.
EOTEXT
      );
  }

  public function getArguments() {
    return array(
      '*' => 'svnargs',
    );
  }

  protected function shouldShellComplete() {
    return false;
  }

  public function run() {
    $svnargs = $this->getArgument('svnargs');
    $repository = $svnargs[0];
    $transaction = $svnargs[1];<commit_msg>Mark `arc svn-hook-pre-commit` for subversion only<commit_after><?php

/**
 * Installable as an SVN "pre-commit" hook.
 */
final class ArcanistSvnHookPreCommitWorkflow extends ArcanistWorkflow {

  public function getWorkflowName() {
    return 'svn-hook-pre-commit';
  }

  public function getCommandSynopses() {
    return phutil_console_format(<<<EOTEXT
      **svn-hook-pre-commit** __repository__ __transaction__
EOTEXT
      );
  }

  public function getCommandHelp() {
    return phutil_console_format(<<<EOTEXT
          Supports: svn
          You can install this as an SVN pre-commit hook. For more information,
          see the article "Installing Arcanist SVN Hooks" in the Arcanist
          documentation.
EOTEXT
      );
  }

  public function getArguments() {
    return array(
      '*' => 'svnargs',
    );
  }

  protected function shouldShellComplete() {
    return false;
  }

  public function getSupportedRevisionControlSystems() {
    return array('svn');
  }

  public function run() {
    $svnargs = $this->getArgument('svnargs');
    $repository = $svnargs[0];
    $transaction = $svnargs[1];
{'fraction_non_alphanumeric': 0.10576015108593012, 'fraction_numerical': 0.0018885741265344666, 'mean_word_length': 3.1306042884990255, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 7, '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': '6713669', 'n_tokens_mistral': 673, 'n_tokens_neox': 660, 'n_words': 163}