<commit_before><?php

/**
 * ArangoDB PHP client: connection options
 * 
 * @package ArangoDbPhpClient
 * @author <NAME>
 * @copyright Copyright 2012, triagens GmbH, Cologne, Germany
 */

namespace triagens\ArangoDb;

/**
 * Simple container class for connection options.
 * This class also provides the default values for the connection
 * options and will perform a simple validation of them.
 * It provides array access to its members.
 *
 * @package ArangoDbPhpClient
 */
class ConnectionOptions implements \ArrayAccess {
  /**
   * The current options
   * @var array 
   */
  private $_values           = array();
  
  /**
   * The connection endpoint object
   * @var Endpoint 
   */
  private $_endpoint         = NULL;
  
  /**
   * Endpoint string index constant
   */
  const OPTION_ENDPOINT      = 'endpoint';

  /**
   * Host name string index constant (deprecated, use endpoint instead)
   */
  const OPTION_HOST          = 'host';
  
  /**
   * Port number index constant (deprecated, use endpoint instead)
   */
  const OPTION_PORT          = 'port';
  
  /**
   * Timeout value index constant
   */
  const OPTION_TIMEOUT       = 'timeout';

  /**
   * Trace function index constant
   */
  const OPTION_TRACE         = 'trace';
  
  /**
   * "Create collections if they don't exist" index constant
   */
  const OPTION_CREATE        = 'createCollection';
  
  /**
   * Update revision constant
   */
  const OPTION_REVISION = 'rev';
  
  /**
   * Update policy index constant
   */
  const OPTION_UPDATE_POLICY = 'policy';

  /**
   * Replace policy index constant
   */
  const OPTION_REPLACE_POLICY = 'policy';
  
 /**
   * Delete policy index constant
   */
  const OPTION_DELETE_POLICY = 'policy';
  
  /**
   * Wait for sync index constant
   */
  const OPTION_WAIT_SYNC     = 'waitForSync';

  /**
   * Authentication user name
   */
  const OPTION_AUTH_USER     = 'AuthUser';
  
  /**
   * Authentication password
   */
  const OPTION_AUTH_PASSWD   = '<PASSWORD>';<commit_msg>Introduced OPTION_UPDATE_KEEPNULL<commit_after><?php

/**
 * ArangoDB PHP client: connection options
 * 
 * @package ArangoDbPhpClient
 * @author <NAME>
 * @copyright Copyright 2012, triagens GmbH, Cologne, Germany
 */

namespace triagens\ArangoDb;

/**
 * Simple container class for connection options.
 * This class also provides the default values for the connection
 * options and will perform a simple validation of them.
 * It provides array access to its members.
 *
 * @package ArangoDbPhpClient
 */
class ConnectionOptions implements \ArrayAccess {
  /**
   * The current options
   * @var array 
   */
  private $_values           = array();
  
  /**
   * The connection endpoint object
   * @var Endpoint 
   */
  private $_endpoint         = NULL;
  
  /**
   * Endpoint string index constant
   */
  const OPTION_ENDPOINT      = 'endpoint';

  /**
   * Host name string index constant (deprecated, use endpoint instead)
   */
  const OPTION_HOST          = 'host';
  
  /**
   * Port number index constant (deprecated, use endpoint instead)
   */
  const OPTION_PORT          = 'port';
  
  /**
   * Timeout value index constant
   */
  const OPTION_TIMEOUT       = 'timeout';

  /**
   * Trace function index constant
   */
  const OPTION_TRACE         = 'trace';
  
  /**
   * "Create collections if they don't exist" index constant
   */
  const OPTION_CREATE        = 'createCollection';
  
  /**
   * Update revision constant
   */
  const OPTION_REVISION = 'rev';
  
  /**
   * Update policy index constant
   */
  const OPTION_UPDATE_POLICY = 'policy';

  /**
   * Update keepnull constant
   */
  const OPTION_UPDATE_KEEPNULL = 'keepNull';

  /**
   * Replace policy index constant
   */
  const OPTION_REPLACE_POLICY = 'policy';
  
 /**
   * Delete policy index constant
   */
  const OPTION_DELETE_POLICY = 'policy';
  
  /**
   * Wait for sync index constant
   */
  const OPTION_WAIT_SYNC     = 'waitForSync';

  /**
   * Authentication user name
   */
  const OPTION_AUTH_USER     = 'AuthUser';
  
  /**
   * Authentication password
   */
  const OPTION_AUTH_PASSWD   = '<PASSWORD>';
{'fraction_non_alphanumeric': 0.10364963503649635, 'fraction_numerical': 0.0019464720194647203, 'mean_word_length': 2.5227077977720653, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3737759', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1227, 'n_words': 356}