<commit_before>package edu.fuberlin.hotspots

import com.esri.core.geometry.Point
import org.joda.time.DateTime
import org.scalatest.{BeforeAndAfter, FlatSpec, Matchers}

/**
  * Created by <NAME> on 29.06.16.
  */
class CellDeterminationSpec extends FlatSpec with Matchers with BeforeAndAfter {
  val location:STPoint = new STPoint(new Point(-73.956960, 40.794516), new DateTime(2015, 1, 30, 18, 59))
  val cellOf = cellsFor(0.001, 1)

  it should "have the correct long cell id" in {
    cellOf(location)._1 shouldBe -73956
  }

  it should "have the correct lat cell id" in {
    cellOf(location)._2 shouldBe 40794
  }

  it should "have the correct time cell" in {
    cellOf(location)._3 shouldBe 30
  }
}<commit_msg>adjust cell determination spec to missing ESRI lib<commit_after>package edu.fuberlin.hotspots

import org.joda.time.DateTime
import org.scalatest.{BeforeAndAfter, FlatSpec, Matchers}

/**
  * Created by <NAME> on 29.06.16.
  */
class CellDeterminationSpec extends FlatSpec with Matchers with BeforeAndAfter {
  val location = new Point(-73.956960, 40.794516, new DateTime(2015, 1, 30, 18, 59))
  val cellOf = cellsFor(0.001, 1)

  it should "have the correct long cell id" in {
    cellOf(location)._1 shouldBe -73956
  }

  it should "have the correct lat cell id" in {
    cellOf(location)._2 shouldBe 40794
  }

  it should "have the correct time cell" in {
    cellOf(location)._3 shouldBe 30
  }
}
{'fraction_non_alphanumeric': 0.10042134831460674, 'fraction_numerical': 0.07443820224719101, 'mean_word_length': 3.830508474576271, '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': '5011851', 'n_tokens_mistral': 562, 'n_tokens_neox': 478, 'n_words': 152}