<commit_before>/*
 * svn_test.h:  public interfaces for test programs
 *
 * ====================================================================
 * Copyright (c) 2000-2001 CollabNet.  All rights reserved.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at http://subversion.tigris.org/license-1.html.
 * If newer versions of this license are posted there, you may use a
 * newer version instead, at your option.
 * ====================================================================
 */

/* ==================================================================== */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#ifndef SVN_TEST_H
#define SVN_TEST_H

#include <apr_pools.h>
#include "svn_delta.h"
#include "svn_path.h"
#include "svn_types.h"
#include "svn_error.h"
#include "svn_string.h"




/* Set *EDITOR and *EDIT_BATON to an editor that prints its arguments
 * to OUT_STREAM.  The edit starts at PATH, that is, PATH will be
 * prepended to the appropriate paths in the output.  Allocate the
 * editor in POOL.  The STYLE parameter exists to make this editor
 * fully compatible with all supported Subversion path types, and
 * should of course represent the path style appropriate for the
 * supplied PATH.
 *
 * VERBOSE is a flag for specifying whether or not your want all the
 * nitty gritty details displayed.  When VERBOSE is FALSE, each editor
 * function will print only a one-line summary.
 *
 * INDENTATION is the number of spaces to indent by at each level; use
 * 0 for no indentation.  The indent level is always the same for a
 * given call (i.e, stack frame).
 *
 */

/* SOME EXAMPLES */

/*
 * With an indentation of 3, and with verbose = TRUE
 *

[EDITOR] set_target_revision (23)
[EDITOR] replace_root (wc)
   base_revision: 1
   [EDITOR] replace_directory (A)
      parent: wc
      base_revision: 1
      [EDITOR] replace_directory (B)
         parent: wc/A
         base_revision: 1
      [EDITOR] change_dir_prop (wc/A/B)
         name: foo
         value: bar
      [EDITOR] close_directory (wc/A/B)
   [EDITOR] delete_entry (mu)
   [EDITOR] close_directory (wc/A)
   [EDITOR] add_file (zeta)
      parent: wc
      copyfrom_path:
      copyfrom_revision: 0
   [EDITOR] replace_file (iota)
      parent: wc
      base_revision: 1
   [EDITOR] apply_textdelta (iota)
      [EDITOR] window_handler (3 ops)
         (1) new text: length 4
         (2) target text: offset 24, length 6
         (3) unknown window type
      [EDITOR] window_handler (EOT)
   [EDITOR] close_directory (iota)
   [EDITOR] apply_textdelta (zeta)
      [EDITOR] window_handler (1 ops)
         (1) new text: length 4
      [EDITOR] window_handler (EOT)
   [EDITOR] close_directory (zeta)
[EDITOR] close_edit
*/

/*
 * With an indentation of 3, and with verbose = FALSE
 *

[EDITOR] set_target_revision (23)
[EDITOR] replace_root (wc)
   [EDITOR] replace_directory (A)
      [EDITOR] replace_directory (B)
      [EDITOR] change_dir_prop (wc/A/B)
      [EDITOR] close_directory (wc/A/B)
   [EDITOR] delete_entry (mu)
   [EDITOR] close_directory (wc/A)
   [EDITOR] add_file (zeta)
   [EDITOR] replace_file (iota)
   [EDITOR] apply_textdelta (iota)
   [EDITOR] close_directory (iota)
   [EDITOR] apply_textdelta (zeta)
   [EDITOR] close_directory (zeta)
[EDITOR] close_edit
*/


/*
 * This is implemented in tests/libsvn_test_editor.la
 */
svn_error_t *svn_test_get_editor (const svn_delta_edit_fns_t **editor,
                                  void **edit_baton,
                                  svn_string_t *editor_name,
                                  svn_stream_t *out_stream,
                                  int indentation,
                                  svn_boolean_t verbose,
                                  svn_string_t *path,
                                  enum svn_path_style style,
                                  apr_pool_t *pool);

#endif /* SVN_TEST_H */

#ifdef __cplusplus
}
#endif /* __cplusplus */


/* ----------------------------------------------------------------
 * local variables:
 * eval: (load-file "../svn-dev.el")
 * end:
 */<commit_msg>(svn_test_get_editor): Document the new `editor_name' parameter.<commit_after>/*
 * svn_test.h:  public interfaces for test programs
 *
 * ====================================================================
 * Copyright (c) 2000-2001 CollabNet.  All rights reserved.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at http://subversion.tigris.org/license-1.html.
 * If newer versions of this license are posted there, you may use a
 * newer version instead, at your option.
 * ====================================================================
 */

/* ==================================================================== */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#ifndef SVN_TEST_H
#define SVN_TEST_H

#include <apr_pools.h>
#include "svn_delta.h"
#include "svn_path.h"
#include "svn_types.h"
#include "svn_error.h"
#include "svn_string.h"




/* Set *EDITOR and *EDIT_BATON to an editor that prints its arguments
 * to OUT_STREAM.  The edit starts at PATH, that is, PATH will be
 * prepended to the appropriate paths in the output.  Allocate the
 * editor in POOL.  The STYLE parameter exists to make this editor
 * fully compatible with all supported Subversion path types, and
 * should of course represent the path style appropriate for the
 * supplied PATH.
 *
 * EDITOR_NAME is a name for the editor, a string that will be
 * prepended to the editor output as shown below.  EDITOR_NAME may
 * be the empty string, but it may not be null.
 *
 * VERBOSE is a flag for specifying whether or not your want all the
 * nitty gritty details displayed.  When VERBOSE is FALSE, each editor
 * function will print only a one-line summary.
 *
 * INDENTATION is the number of spaces to indent by at each level; use
 * 0 for no indentation.  The indent level is always the same for a
 * given call (i.e, stack frame).
 *
 */

/* SOME EXAMPLES */

/*
 * With an indentation of 3, and with verbose = TRUE
 *

[EDITOR_NAME] set_target_revision (23)
[EDITOR_NAME] replace_root (wc)
   base_revision: 1
   [EDITOR_NAME] replace_directory (A)
      parent: wc
      base_revision: 1
      [EDITOR_NAME] replace_directory (B)
         parent: wc/A
         base_revision: 1
      [EDITOR_NAME] change_dir_prop (wc/A/B)
         name: foo
         value: bar
      [EDITOR_NAME] close_directory (wc/A/B)
   [EDITOR_NAME] delete_entry (mu)
   [EDITOR_NAME] close_directory (wc/A)
   [EDITOR_NAME] add_file (zeta)
      parent: wc
      copyfrom_path:
      copyfrom_revision: 0
   [EDITOR_NAME] replace_file (iota)
      parent: wc
      base_revision: 1
   [EDITOR_NAME] apply_textdelta (iota)
      [EDITOR_NAME] window_handler (3 ops)
         (1) new text: length 4
         (2) target text: offset 24, length 6
         (3) unknown window type
      [EDITOR_NAME] window_handler (EOT)
   [EDITOR_NAME] close_directory (iota)
   [EDITOR_NAME] apply_textdelta (zeta)
      [EDITOR_NAME] window_handler (1 ops)
         (1) new text: length 4
      [EDITOR_NAME] window_handler (EOT)
   [EDITOR_NAME] close_directory (zeta)
[EDITOR_NAME] close_edit
*/

/*
 * With an indentation of 3, and with verbose = FALSE
 *

[EDITOR_NAME] set_target_revision (23)
[EDITOR_NAME] replace_root (wc)
   [EDITOR_NAME] replace_directory (A)
      [EDITOR_NAME] replace_directory (B)
      [EDITOR_NAME] change_dir_prop (wc/A/B)
      [EDITOR_NAME] close_directory (wc/A/B)
   [EDITOR_NAME] delete_entry (mu)
   [EDITOR_NAME] close_directory (wc/A)
   [EDITOR_NAME] add_file (zeta)
   [EDITOR_NAME] replace_file (iota)
   [EDITOR_NAME] apply_textdelta (iota)
   [EDITOR_NAME] close_directory (iota)
   [EDITOR_NAME] apply_textdelta (zeta)
   [EDITOR_NAME] close_directory (zeta)
[EDITOR_NAME] close_edit
*/


/*
 * This is implemented in tests/libsvn_test_editor.la
 */
svn_error_t *svn_test_get_editor (const svn_delta_edit_fns_t **editor,
                                  void **edit_baton,
                                  svn_string_t *editor_name,
                                  svn_stream_t *out_stream,
                                  int indentation,
                                  svn_boolean_t verbose,
                                  svn_string_t *path,
                                  enum svn_path_style style,
                                  apr_pool_t *pool);

#endif /* SVN_TEST_H */

#ifdef __cplusplus
}
#endif /* __cplusplus */


/* ----------------------------------------------------------------
 * local variables:
 * eval: (load-file "../svn-dev.el")
 * end:
 */
{'fraction_non_alphanumeric': 0.14480254198819792, 'fraction_numerical': 0.007262823422605538, 'mean_word_length': 2.662926018287614, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '900859', 'n_tokens_mistral': 2825, 'n_tokens_neox': 2693, 'n_words': 863}