<commit_before>'use strict';

import React, {Component, PropTypes} from "react";
import {Animated, PanResponder, View} from "react-native";

const moveTolerance = 30; // Amount of movement before it is no longer a press

class Bounceable extends Component {
  static propTypes = {
    onPress: PropTypes.func, //Optional function to be excecuted after succesful press
    level: PropTypes.number // Maximum scale of animation
  };

  static defaultProps = {
      level: 1.1
  };

  constructor (props) {
    super( props);

    this.state = {
      scale: new Animated.Value(1)
    };
  }

  panResponder = {};

  componentWillMount() {
    this._panResponder = PanResponder.create({
      onStartShouldSetPanResponder: (evt, gestureState) => true,
      onStartShouldSetPanResponderCapture: (evt, gestureState) => true,
      onMoveShouldSetPanResponder: (evt, gestureState) => true,
      onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,<commit_msg>Fix for prop-types<commit_after>'use strict';

import React, {Component} from "react";
import {Animated, PanResponder, View} from "react-native";
import PropTypes from 'prop-types';

const moveTolerance = 30; // Amount of movement before it is no longer a press

class Bounceable extends Component {
  static propTypes = {
    onPress: PropTypes.func, //Optional function to be excecuted after succesful press
    level: PropTypes.number // Maximum scale of animation
  };

  static defaultProps = {
      level: 1.1
  };

  constructor (props) {
    super( props);

    this.state = {
      scale: new Animated.Value(1)
    };
  }

  panResponder = {};

  componentWillMount() {
    this._panResponder = PanResponder.create({
      onStartShouldSetPanResponder: (evt, gestureState) => true,
      onStartShouldSetPanResponderCapture: (evt, gestureState) => true,
      onMoveShouldSetPanResponder: (evt, gestureState) => true,
      onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,
{'fraction_non_alphanumeric': 0.10478128179043744, 'fraction_numerical': 0.00508646998982706, 'mean_word_length': 3.797560975609756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '708650', 'n_tokens_mistral': 606, 'n_tokens_neox': 583, 'n_words': 166}