<commit_before>/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 */
'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Navigator,
  ScrollView,
  Image,
  View,
  Text,
  Dimensions,
  TouchableOpacity,
} = React;

var Lightbox = require('react-native-lightbox');
var Carousel = require('react-native-looped-carousel');

var WINDOW_WIDTH = Dimensions.get('window').width;
var BASE_PADDING = 10;

var LightboxView = React.createClass({
  renderCarousel: function() {
    return (
      <Carousel style={{flex: 1}}>
        <Image
          style={{flex: 1}}
          resizeMode="contain"
          source={{ uri: 'http://cdn.lolwot.com/wp-content/uploads/2015/07/20-pictures-of-animals-in-hats-to-brighten-up-your-day-1.jpg' }}
        />
        <View style={{backgroundColor:'#6C7A89',flex: 1}}/>
        <View style={{backgroundColor:'#019875',flex: 1}}/>
        <View style={{backgroundColor:'#E67E22',flex: 1}}/>
      </Carousel>
    );
  },

  render: function() {
    return (
      <ScrollView style={styles.container}>
        <View style={styles.text}><Text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </Text></View>
        <Lightbox underlayColor="white" navigator={this.props.navigator}>
          <Image
            style={styles.contain}
            resizeMode="contain"
            source={{ uri: 'http://www.yayomg.com/wp-content/uploads/2014/04/yayomg-pig-wearing-party-hat.jpg' }}
          />
        </Lightbox>
        <View style={styles.text}><Text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </Text></View>
        <Lightbox navigator={this.props.navigator} swipeToDismiss={false} renderContent={this.renderCarousel}>
          <Image
            style={styles.carousel}
            resizeMode="contain"
            source={{ uri: 'http://cdn.lolwot.com/wp-content/uploads/2015/07/20-pictures-of-animals-in-hats-to-brighten-up-your-day-1.jpg' }}
          />
        </Lightbox><commit_msg>Adds springConfig demo to example project.<commit_after>/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 */
'use strict';

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Navigator,
  ScrollView,
  Image,
  View,
  Text,
  Dimensions,
  TouchableOpacity,
} = React;

var Lightbox = require('react-native-lightbox');
var Carousel = require('react-native-looped-carousel');

var WINDOW_WIDTH = Dimensions.get('window').width;
var BASE_PADDING = 10;

var LightboxView = React.createClass({
  renderCarousel: function() {
    return (
      <Carousel style={{flex: 1}}>
        <Image
          style={{flex: 1}}
          resizeMode="contain"
          source={{ uri: 'http://cdn.lolwot.com/wp-content/uploads/2015/07/20-pictures-of-animals-in-hats-to-brighten-up-your-day-1.jpg' }}
        />
        <View style={{backgroundColor:'#6C7A89',flex: 1}}/>
        <View style={{backgroundColor:'#019875',flex: 1}}/>
        <View style={{backgroundColor:'#E67E22',flex: 1}}/>
      </Carousel>
    );
  },

  render: function() {
    return (
      <ScrollView style={styles.container}>
        <View style={styles.text}><Text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </Text></View>
        <Lightbox underlayColor="white" navigator={this.props.navigator}>
          <Image
            style={styles.contain}
            resizeMode="contain"
            source={{ uri: 'http://www.yayomg.com/wp-content/uploads/2014/04/yayomg-pig-wearing-party-hat.jpg' }}
          />
        </Lightbox>
        <View style={styles.text}><Text>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </Text></View>
        <Lightbox navigator={this.props.navigator} springConfig={{tension: 15, friction: 7}} swipeToDismiss={false} renderContent={this.renderCarousel}>
          <Image
            style={styles.carousel}
            resizeMode="contain"
            source={{ uri: 'http://cdn.lolwot.com/wp-content/uploads/2015/07/20-pictures-of-animals-in-hats-to-brighten-up-your-day-1.jpg' }}
          />
        </Lightbox>
{'fraction_non_alphanumeric': 0.1518492993337928, 'fraction_numerical': 0.021364576154376293, 'mean_word_length': 2.961783439490446, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2682383', 'n_tokens_mistral': 1529, 'n_tokens_neox': 1447, 'n_words': 264}