# ChangeDetector

UMLClass
Skill Seekers :: skill_seekers :: Sync :: ChangeDetector

### Description

Detects changes in documentation pages. Uses multiple strategies: content hashing (SHA-256), Last-Modified headers, ETag headers, and content diffing.

### Attributes

Visibility | Name | Type | Description
--- | --- | --- | ---
public | timeout | none |
private | test_attr | int |
public | timeout | int |

### Operations

Visibility | Name | Description
--- | --- | ---
public | compute_hash() |
public | fetch_page() |
public | check_pages() |
public | compute_hash(content: str): str() |
public | fetch_page(url: str): tuple[str, dict]() |
public | check_page(url: str, old_hash: str, generate_diff: bool, old_content: str): PageChange() |
public | check_pages(urls: list[str], previous_hashes: dict, generate_diffs: bool): ChangeReport() |
public | generate_diff(old_content: str, new_content: str): str() |
public | generate_summary_diff(old_content: str, new_content: str): str() |
public | check_header_changes(url: str, old_modified: str, old_etag: str): bool() |
public | batch_check_headers(urls: list[str], previous_metadata: dict): list[str]() |

### Properties

Name | Value
--- | ---
name | ChangeDetector
stereotype | null
visibility | public
isAbstract | false
isFinalSpecialization | false
isLeaf | false
isActive | false

### Dependencies

### Dependants

### Relationships

### Owned Elements

### Diagrams