<commit_before>import React from 'react';
import classNames from 'classnames';
/**
* A Tooltip widget.
*
* == How to use a Tooltip in a component:
*
* In your file:
*
*   import Tooltip from 'carbon/lib/components/tooltip'
*
* To render the Tooltip:
*
*   <Tooltip>
*     My tooltip content
*   </Tooltip>
*
* You can pass a prop of 'align' to the component which shifts the alignment of the pointer.
* This defaults to 'center'.
* You can also pass a prop of 'position' to the component which shifts the position of the pointer.
* This defaults to 'bottom'.
*
* @class Tooltip
* @constructor
*/
class Tooltip extends React.Component {

  static propTypes = {
    /**
     * Sets alignment of pointer on tooltip
     *
     * @property align
     * @type {String}
     * @default 'center'
     */
    align: React.PropTypes.string,

    /**
     * Sets position of pointer on tooltip
     *
     * @property position
     * @type {String}
     * @default 'bottom'
     */
    position: React.PropTypes.string
  };

  static defaultProps = {
    align: 'center',
    postion: 'bottom'
  };

  /**
   * Pointer classes
   *
   * @method pointerClasses
   * @return {String} classNames for pointer
   */
  get pointerClasses() {
    return classNames(
      'ui-tooltip__pointer',
      'ui-tooltip__pointer--align-' + this.props.align,
      'ui-tooltip__pointer--position-' + this.props.position
    );
  }<commit_msg>Update tooltip.js<commit_after>import React from 'react';
import classNames from 'classnames';
/**
* A Tooltip widget.
*
* == How to use a Tooltip in a component:
*
* In your file:
*
*   import Tooltip from 'carbon/lib/components/tooltip'
*
* To render the Tooltip:
*
*   <Tooltip>
*     My tooltip content
*   </Tooltip>
*
* You can pass a prop of 'align' to the component which shifts the alignment of the pointer.
* This defaults to 'center'.
* You can also pass a prop of 'position' to the component which shifts the position of the pointer.
* This defaults to 'bottom'.
*
* @class Tooltip
* @constructor
*/
class Tooltip extends React.Component {

  static propTypes = {
    /**
     * Sets alignment of pointer on tooltip
     *
     * @property align
     * @type {String}
     * @default 'center'
     */
    align: React.PropTypes.string,

    /**
     * Sets position of pointer on tooltip
     *
     * @property position
     * @type {String}
     * @default 'bottom'
     */
    position: React.PropTypes.string
  };

  static defaultProps = {
    align: 'center',
    position: 'bottom'
  };

  /**
   * Pointer classes
   *
   * @method pointerClasses
   * @return {String} classNames for pointer
   */
  get pointerClasses() {
    return classNames(
      'ui-tooltip__pointer',
      'ui-tooltip__pointer--align-' + this.props.align,
      'ui-tooltip__pointer--position-' + this.props.position
    );
  }
{'fraction_non_alphanumeric': 0.11729482212046495, 'fraction_numerical': 0.0, 'mean_word_length': 2.7027379400260756, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5543767', 'n_tokens_mistral': 866, 'n_tokens_neox': 854, 'n_words': 279}