<commit_before>import React 								from 'react'
import YeahNahBar 					from './yeah-nah-bar.jsx'
import Details 							from './restaurant-details.jsx'
import Swipeable 						from 'react-swipeable'
import updateServer 				from '../helpers/update-server.js'
import getUser 							from '../helpers/get-user.js'
import {connect} 						from 'react-redux'
import getMoreRestaurants 	from '../helpers/get-more-restaurants.js'
import * as actionCreators 	from '../action-creators';
import Splash								from './splash.jsx'

class Restaurant extends React.Component {

	constructor(props) {
		super(props)
		this.nextPage = false
	}

  swipeLeft (index) {
  	if(index === 19 ) {
  		this.nextPage = true
  	}
  	const {location, restaurant, updateRestaurants, changeRestaurant} = this.props
	  if(this.nextPage){
	  	getMoreRestaurants(location, restaurant['next_page'])
				.then(updateRestaurants)
					.then( () => {
						this.nextPage = false
						changeRestaurant(0)  // to trigger prop change fucking P.O.S.
						})
	  } else {
	  	changeRestaurant(index)
  	}
 	}

  swipeRight(index, restaurant) {
  	if(index === 7 && restaurant['next_page'] ) {
  		this.nextPage = true
  	}
<commit_msg>put index back up to 19<commit_after>import React 								from 'react'
import YeahNahBar 					from './yeah-nah-bar.jsx'
import Details 							from './restaurant-details.jsx'
import Swipeable 						from 'react-swipeable'
import updateServer 				from '../helpers/update-server.js'
import getUser 							from '../helpers/get-user.js'
import {connect} 						from 'react-redux'
import getMoreRestaurants 	from '../helpers/get-more-restaurants.js'
import * as actionCreators 	from '../action-creators';
import Splash								from './splash.jsx'

class Restaurant extends React.Component {

	constructor(props) {
		super(props)
		this.nextPage = false
	}

  swipeLeft (index) {
  	if(index === 19 ) {
  		this.nextPage = true
  	}
  	const {location, restaurant, updateRestaurants, changeRestaurant} = this.props
	  if(this.nextPage){
	  	getMoreRestaurants(location, restaurant['next_page'])
				.then(updateRestaurants)
					.then( () => {
						this.nextPage = false
						changeRestaurant(0)  // to trigger prop change fucking P.O.S.
						})
	  } else {
	  	changeRestaurant(index)
  	}
 	}

  swipeRight(index, restaurant) {
  	if(index === 19 && restaurant['next_page'] ) {
  		this.nextPage = true
  	}

{'fraction_non_alphanumeric': 0.12526096033402923, 'fraction_numerical': 0.004592901878914405, 'mean_word_length': 2.953795379537954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3200883', 'n_tokens_mistral': 961, 'n_tokens_neox': 815, 'n_words': 173}