<commit_before>package com.bluetag.api.game.logic;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.bind.DatatypeConverter;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import com.bluetag.api.game.database.DatabaseClass;
import com.bluetag.api.game.model.AllDocsModel;
import com.bluetag.api.game.model.CloudantRowModel;
import com.bluetag.api.game.model.LocationModel;
import com.google.gson.Gson;

public class GameLogicThread extends Thread {
	private String authHeaderKey = "Authorization";
	private String toConvert = "ce70b172-450a-4bb0-a7b0-1c57c500f8f7-bluemix:c2858c25dda5de8d0679be0fa50e7801046ac74de2fa80dda1cb5cb585150328";
	private String authHeaderValue = "Basic "
			+ DatatypeConverter.printBase64Binary(toConvert.getBytes());
	private String acceptHeaderKey = "Accept";
	private String acceptHeaderValue = "application/json";
	private String contentHeaderKey = "Content-Type";
	private String contentHeaderValue = "application/json";
	private String cloudantURI = "https://ce70b172-450a-4bb0-a7b0-1c57c500f8f7-bluemix:c2858c25dda5de8d0679be0fa50e7801046ac74de2fa80dda1cb5cb585150328@ce70b172-450a-4bb0-a7b0-1c57c500f8f7-bluemix.cloudant.com";

	HashMap<String, ArrayList<String>> taggableDB = new HashMap<String, ArrayList<String>>();
	private final int maxTaggableDistance = 5;

	public void run() {

		while (true) {
			CloseableHttpClient httpclient = HttpClients.createDefault();
			HashMap<String, ArrayList<String>> taggableDB = new HashMap<String, ArrayList<String>>();
			try {
				// get all location info from cloudantDB
				HttpGet locInfoGet = new HttpGet(cloudantURI
						+ "/location/_all_docs?include_docs=true");<commit_msg>Database Change<commit_after>package com.bluetag.api.game.logic;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.bind.DatatypeConverter;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import com.bluetag.api.game.database.DatabaseClass;
import com.bluetag.api.game.model.AllDocsModel;
import com.bluetag.api.game.model.CloudantRowModel;
import com.bluetag.api.game.model.LocationModel;
import com.google.gson.Gson;

public class GameLogicThread extends Thread {
	private String authHeaderKey = "Authorization";
	private String toConvert = "9885315c-7077-4788-bb1d-cecd6a3530ff-bluemix:3a27472537c70e3bd9dbf474a06bd0660b4bd08783176d168c2d1f51e1b24943";
	private String authHeaderValue = "Basic "
			+ DatatypeConverter.printBase64Binary(toConvert.getBytes());
	private String acceptHeaderKey = "Accept";
	private String acceptHeaderValue = "application/json";
	private String contentHeaderKey = "Content-Type";
	private String contentHeaderValue = "application/json";
	private String cloudantURI = "https://9885315c-7077-4788-bb1d-cecd6a3530ff-bluemix:3a27472537c70e3bd9dbf474a06bd0660b4bd08783176d168c2d1f51e1b24943@9885315c-7077-4788-bb1d-cecd6a3530ff-bluemix.cloudant.com";

	HashMap<String, ArrayList<String>> taggableDB = new HashMap<String, ArrayList<String>>();
	private final int maxTaggableDistance = 5;

	public void run() {

		while (true) {
			CloseableHttpClient httpclient = HttpClients.createDefault();
			HashMap<String, ArrayList<String>> taggableDB = new HashMap<String, ArrayList<String>>();
			try {
				// get all location info from cloudantDB
				HttpGet locInfoGet = new HttpGet(cloudantURI
						+ "/location/_all_docs?include_docs=true");
{'fraction_non_alphanumeric': 0.10384818133895625, 'fraction_numerical': 0.07722720084343701, 'mean_word_length': 6.298076923076923, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, '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': '4327345', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1305, 'n_words': 210}