> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oxen.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text diff

<a id="oxen.diff/text_diff" />

# oxen.diff/text\_diff

<a id="oxen.diff/text_diff.TextDiff" />

## TextDiff Objects

```python theme={null}
class TextDiff()
```

A class representing a text diff.

<a id="oxen.diff/text_diff.TextDiff.num_added" />

## num\_added

```python theme={null}
@property
def num_added() -> int
```

Returns the number of added lines in the diff.

<a id="oxen.diff/text_diff.TextDiff.num_removed" />

## num\_removed

```python theme={null}
@property
def num_removed() -> int
```

Returns the number of removed lines in the diff.

<a id="oxen.diff/text_diff.TextDiff.lines" />

## lines

```python theme={null}
@property
def lines() -> list[LineDiff]
```

Returns the contents of the diff as a polars data frame.
