<commit_before>

import googlemaps
import json
import threading
import time
from pgoapi import PGoApi
from pgoapi.utilities import f2i, h2f
from math import radians, sqrt, sin, cos, atan2

GOOGLEMAPS_KEY = "<KEY>"

working_thread=None
gmaps = googlemaps.Client(key=GOOGLEMAPS_KEY)
rest_time=1

def work_on_cell(cell,api,position,config):
	print cell
	if 'catchable_pokemons' in cell:
		print 'has pokemon'
		for pokemon in cell['catchable_pokemons']:
			print('catchable_pokemon {}'.format(pokemon))
			encount_and_catch_pokemon(pokemon,api,position,config)
	if 'wild_pokemons' in cell:
		for pokemon in cell['wild_pokemons']:
			print('wild_pokemons {}'.format(pokemon))
			encount_and_catch_pokemon(pokemon,api,position,config)
			#encounter_id=pokemon['encounter_id']
			#api.encounter(encounter_id=encounter_id,player_latitude=position[0],player_longitude=position[1])
			#response_dict = api.call()
			#print('Response dictionary: \n\r{}'.format(json.dumps(response_dict, indent=2)))
			"""
	if 'spawn_points' in cell:
		for spawn_point in cell['spawn_points']:
			print spawn_point
			working.spawn_point_work(spawn_point,api,position)

			api.get_map_objects(latitude=f2i(position[0]), longitude=f2i(position[1]), since_timestamp_ms=timestamp, cell_id=cellid)

			response_dict = api.call()
			print('Response dictionary: \n\r{}'.format(json.dumps(response_dict, indent=2)))
			time.sleep(2)
			"""

	if config.spinstop:<commit_msg>don't need to see all that<commit_after>

import googlemaps
import json
import threading
import time
from pgoapi import PGoApi
from pgoapi.utilities import f2i, h2f
from math import radians, sqrt, sin, cos, atan2

GOOGLEMAPS_KEY = "<KEY>"

working_thread=None
gmaps = googlemaps.Client(key=GOOGLEMAPS_KEY)
rest_time=1

def work_on_cell(cell,api,position,config):
	#print cell
	if 'catchable_pokemons' in cell:
		print 'has pokemon'
		for pokemon in cell['catchable_pokemons']:
			print('catchable_pokemon {}'.format(pokemon))
			encount_and_catch_pokemon(pokemon,api,position,config)
	if 'wild_pokemons' in cell:
		for pokemon in cell['wild_pokemons']:
			print('wild_pokemons {}'.format(pokemon))
			encount_and_catch_pokemon(pokemon,api,position,config)
			#encounter_id=pokemon['encounter_id']
			#api.encounter(encounter_id=encounter_id,player_latitude=position[0],player_longitude=position[1])
			#response_dict = api.call()
			#print('Response dictionary: \n\r{}'.format(json.dumps(response_dict, indent=2)))
			"""
	if 'spawn_points' in cell:
		for spawn_point in cell['spawn_points']:
			print spawn_point
			working.spawn_point_work(spawn_point,api,position)

			api.get_map_objects(latitude=f2i(position[0]), longitude=f2i(position[1]), since_timestamp_ms=timestamp, cell_id=cellid)

			response_dict = api.call()
			print('Response dictionary: \n\r{}'.format(json.dumps(response_dict, indent=2)))
			time.sleep(2)
			"""

	if config.spinstop:
{'fraction_non_alphanumeric': 0.12378976486860305, 'fraction_numerical': 0.008990318118948824, 'mean_word_length': 6.694148936170213, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5026153', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1073, 'n_words': 190}