<commit_before>'use strict';

var React = require('react');
var ReactNative = require('react-native');
var window = React.Dimensions.get('window');
var { Animated, StyleSheet, View} = ReactNative;

var FadeInView = React.createClass({
  getInitialState: function() {
    return {
      fadeAnim: new Animated.Value(0)
    };
  },

  componentWillReceiveProps: function(newProps) {
    return Animated.timing(this.state.fadeAnim, {
      toValue: newProps.visible ? 0.7 : 0,
      duration: 300
    }).start();
  },

  render: function() {
    return (
      <Animated.View style={[styles.overlay,
          {opacity: this.state.fadeAnim},
          {backgroundColor: this.props.backgroundColor || 'black' }
        ]}>
        {this.props.children}
      </Animated.View>
    );
  }
});<commit_msg>One more change for Dimensions from react-native<commit_after>'use strict';

var React = require('react');
var ReactNative = require('react-native');
var { Animated, Dimensions, StyleSheet, View} = ReactNative;
var window = Dimensions.get('window');

var FadeInView = React.createClass({
  getInitialState: function() {
    return {
      fadeAnim: new Animated.Value(0)
    };
  },

  componentWillReceiveProps: function(newProps) {
    return Animated.timing(this.state.fadeAnim, {
      toValue: newProps.visible ? 0.7 : 0,
      duration: 300
    }).start();
  },

  render: function() {
    return (
      <Animated.View style={[styles.overlay,
          {opacity: this.state.fadeAnim},
          {backgroundColor: this.props.backgroundColor || 'black' }
        ]}>
        {this.props.children}
      </Animated.View>
    );
  }
});
{'fraction_non_alphanumeric': 0.14599877825290164, 'fraction_numerical': 0.00855222968845449, 'mean_word_length': 3.074626865671642, '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': '2589425', 'n_tokens_mistral': 523, 'n_tokens_neox': 502, 'n_words': 103}