<commit_before># Cloud Spanner Emulator

Cloud Spanner Emulator provides application developers with a locally-running,
_emulated_ instance of Cloud Spanner to enable local development and testing.

The main focus of the emulator is correctness - an application that runs against
the emulator should be able to run against the Cloud Spanner service without any
changes. It is not a goal of the emulator to be a performant standalone
production database or to provide similar performance to Cloud Spanner. The
emulator is specifically intended for local unit testing of applications
targeting Cloud Spanner.

## Quickstart

There are multiple ways to invoke the emulator.

### Via gcloud

The emulator is included in the [Google Cloud SDK](https://cloud.google.com/sdk)
and can be invoked via the [gcloud emulators](
https://cloud.google.com/sdk/gcloud/reference/emulators) command group:

```shell
gcloud components update
gcloud emulators spanner start
```

### Via pre-built docker image

The emulator is also provided as a [pre-built docker image](
https://gcr.io/cloud-spanner-emulator/emulator). You can run the latest version
with:

```shell
docker pull gcr.io/cloud-spanner-emulator/emulator
docker run -p 9010:9010 -p 9020:9020 gcr.io/cloud-spanner-emulator/emulator
```

The first port is the gRPC port and the second port is the REST port. The docker<commit_msg>Project import generated by Copybara.<commit_after># Cloud Spanner Emulator

Cloud Spanner Emulator provides application developers with a locally-running,
_emulated_ instance of Cloud Spanner to enable local development and testing.

The main focus of the emulator is correctness - an application that runs against
the emulator should be able to run against the Cloud Spanner service without any
changes. It is not a goal of the emulator to be a performant standalone
production database or to provide similar performance to Cloud Spanner. The
emulator is specifically intended for local unit testing of applications
targeting Cloud Spanner.

## Quickstart

There are multiple ways to invoke the emulator.

### Via gcloud

The emulator is included in the [Google Cloud SDK](https://cloud.google.com/sdk)
and can be invoked via the [gcloud emulators](
https://cloud.google.com/sdk/gcloud/reference/emulators) command group:

```shell
gcloud components update
gcloud emulators spanner start
```

### Via pre-built docker image

The emulator is also provided as a [pre-built docker image](
https://gcr.io/cloud-spanner-emulator/emulator). You can run the latest version
with:

```shell
docker pull gcr.io/cloud-spanner-emulator/emulator
docker run -p 9010:9010 -p 9020:9020 gcr.io/cloud-spanner-emulator/emulator
```


The first port is the gRPC port and the second port is the REST port. The docker
{'fraction_non_alphanumeric': 0.06319971108703504, 'fraction_numerical': 0.01155651859877212, 'mean_word_length': 4.758835758835759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '549434', 'n_tokens_mistral': 791, 'n_tokens_neox': 733, 'n_words': 359}