<commit_before>{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "8207e923-2b0e-4c77-8af9-42e121e9aa17",
   "metadata": {},
   "source": [
    "# Chicago Crimes Analysis"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "70c89537-28a8-41b6-9941-41dc2a8122ea",
   "metadata": {},
   "source": [
    "### 1) Create a Spark sesssion"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "bc60ab9a-cd91-439c-ba6e-3223e2abc1b2",
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyspark.sql import SparkSession\n",
    "\n",
    "spark = SparkSession.builder \\\n",
    "  .appName(\"Chicago Crimes Analysis\")\\\n",
    "  .master(\"yarn\")\\\n",
    "  .enableHiveSupport()\\\n",
    "  .getOrCreate()"
   ]
  },
  {<commit_msg>Update chicago-crimes-analytics.ipynb<commit_after>{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "8207e923-2b0e-4c77-8af9-42e121e9aa17",
   "metadata": {},
   "source": [
    "# Chicago Crimes Analysis"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "70c89537-28a8-41b6-9941-41dc2a8122ea",
   "metadata": {},
   "source": [
    "### Copyright 2022 Google LLC."
    "### SPDX-License-Identifier: Apache-2.0"
    "### 1) Create a Spark sesssion"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "bc60ab9a-cd91-439c-ba6e-3223e2abc1b2",
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyspark.sql import SparkSession\n",
    "\n",
    "spark = SparkSession.builder \\\n",
    "  .appName(\"Chicago Crimes Analysis\")\\\n",
    "  .master(\"yarn\")\\\n",
    "  .enableHiveSupport()\\\n",
    "  .getOrCreate()"
   ]
  },
  {
{'fraction_non_alphanumeric': 0.225137278828554, 'fraction_numerical': 0.08053691275167785, 'mean_word_length': 2.6607142857142856, 'pattern_counts': {'":': 30, '<': 3, '<?xml version=': 0, '>': 3, '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': '805947', 'n_tokens_mistral': 777, 'n_tokens_neox': 697, 'n_words': 97}