<commit_before>### mqlight.createClient([`options`], [`callback`])

Creates an IBM MQ Light client instance in `starting` state.

* `options` - (Object) options for the client. Properties include:
  * **service**, (String | Array | Function) (required) a String containing
    the URL for the service to connect to, or alternatively an Array
    containing a list of URLs to attempt to connect to in turn, or
    alternatively an async function which will be expected to supply the
    service URL(s) to a callback function that will be passed to it whenever
    it is called (in the form `function(err, service)`). User names and
    passwords may be embedded into the URL (for example, `amqp://user:pass@host`).
  * **id**, (String, default: `AUTO_[0-9a-f]{7}`) (optional) a String, with a
    maximum length of 256 characters, to serve as a unique identifier for this
    client. A maximum of one instance of the client (as identified by the value
    of this property) can be connected to an MQ Light server at a given point
    in time. If another instance of the same client connects, then the
    previously connected instance will be disconnected.  This is reported, to
    the first client, as a `ReplacedError` being emitted as an error event and
    the client transitioning into `stopped` state. If the id property is not a
    valid client identifier (for example, it contains a colon, it is too long,
    or it contains some other forbidden character) then the function will throw
    an `InvalidArgumentError`
  * **user**, (String) (optional) user name for authentication.
    Alternatively, the user name may be embedded in the URL passed via the
    service property. If you choose to specify a user name via this property
    and also embed a user name in the URL passed via the surface argument then
    all the user names must match otherwise an `InvalidArgumentError` will be
    thrown.  User names and passwords must be specified together (or not at
    all). If you specify just the user property but no password property an
    `InvalidArgumentError` will be thrown.
  * **password**, (String) (optional) password for authentication.
    Alternatively, a password can be embedded in the URL passed via the service
    property.
  * **sslTrustCertificate**, (String) (optional) SSL trust certificate to use
    when authentication is required for the MQ Light server. Only used when
    service specifies the amqps scheme.
  * **sslVerifyName**, (Boolean, default: true) (optional) whether or not to
    additionally check the MQ Light server's common name in the certificate
    matches the actual server's DNS name.
* `callback` - (Function) (optional) callback that is invoked (indicating
  success) if the client attains `started` state, or invoked (indicating
  failure) if the client enters `stopped` state before attaining `started`
  state. The callback function is supplied two arguments, the first being an
  `Error` object that is set to `null` to indicate success.  The second
  is the instance of `client`, returned by `mqlight.createClient`, that the
  callback relates to.

Returns a `Client` object representing the client instance. The client is an
event emitter and listeners can be registered for the following events:
`started`, `stopped`, `restarted`, `error`, `drain`, `malformed` and `message`.

<commit_msg>add SSL options for client auth<commit_after>### mqlight.createClient([`options`], [`callback`])

Creates an IBM MQ Light client instance in `starting` state.

* `options` - (Object) options for the client. Properties include:
  * **service**, (String | Array | Function) (required) a String containing
    the URL for the service to connect to, or alternatively an Array
    containing a list of URLs to attempt to connect to in turn, or
    alternatively an async function which will be expected to supply the
    service URL(s) to a callback function that will be passed to it whenever
    it is called (in the form `function(err, service)`). User names and
    passwords may be embedded into the URL (for example, `amqp://user:pass@host`).
  * **id**, (String, default: `AUTO_[0-9a-f]{7}`) (optional) a String, with a
    maximum length of 256 characters, to serve as a unique identifier for this
    client. A maximum of one instance of the client (as identified by the value
    of this property) can be connected to an MQ Light server at a given point
    in time. If another instance of the same client connects, then the
    previously connected instance will be disconnected.  This is reported, to
    the first client, as a `ReplacedError` being emitted as an error event and
    the client transitioning into `stopped` state. If the id property is not a
    valid client identifier (for example, it contains a colon, it is too long,
    or it contains some other forbidden character) then the function will throw
    an `InvalidArgumentError`
  * **user**, (String) (optional) user name for authentication.
    Alternatively, the user name may be embedded in the URL passed via the
    service property. If you choose to specify a user name via this property
    and also embed a user name in the URL passed via the surface argument then
    all the user names must match otherwise an `InvalidArgumentError` will be
    thrown.  User names and passwords must be specified together (or not at
    all). If you specify just the user property but no password property an
    `InvalidArgumentError` will be thrown.
  * **password**, (String) (optional) password for authentication.
    Alternatively, a password can be embedded in the URL passed via the service
    property.
  * **sslKeystore**, (String) (optional) SSL key store to use when authentication is
    required for the MQ Light server and to authenticate the client with the
    MQ Light server. A PKCS#12 format key store file is supported. Only used when
    service specifies the amqps scheme. This option is mutually exclusive with the
    'sslTrustCertificate', 'sslClientCerfiicate' and 'sslClientKey' options.
  * **sslKeystorePassphrase**, (String) (optional) passphase used to access the
    SSL key store specified for the 'sslKeystore' option.
  * **sslTrustCertificate**, (String) (optional) SSL trust certificate to use
    when authentication is required for the MQ Light server. Only used when
    service specifies the amqps scheme.
  * **sslClientCertificate**, (String) (optional) SSL client certificate to use
    when client authentication is required with the MQ Light server. Only used
    when service specifies the amqps scheme.
  * **sslClientKey**, (String) (optional) SSL client private key to use
    when client authentication is required with the MQ Light server. Only used
    when service specifies the amqps scheme.
  * **sslClientKeyPassphrase**, (String) (optional) passphase used to decrypt
    the client private key specified for the 'sslClientKey' option.
  * **sslVerifyName**, (Boolean, default: true) (optional) whether or not to
    additionally check the MQ Light server's common name in the certificate
    matches the actual server's DNS name.
* `callback` - (Function) (optional) callback that is invoked (indicating
  success) if the client attains `started` state, or invoked (indicating
  failure) if the client enters `stopped` state before attaining `started`
  state. The callback function is supplied two arguments, the first being an
  `Error` object that is set to `null` to indicate success.  The second
  is the instance of `client`, returned by `mqlight.createClient`, that the
  callback relates to.

Returns a `Client` object representing the client instance. The client is an
event emitter and listeners can be registered for the following events:
`started`, `stopped`, `restarted`, `error`, `drain`, `malformed` and `message`.


{'fraction_non_alphanumeric': 0.06645529486366519, 'fraction_numerical': 0.0017755231452124287, 'mean_word_length': 3.8739184177997528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3422929', 'n_tokens_mistral': 2024, 'n_tokens_neox': 1923, 'n_words': 1105}