Files
zed/crates/edit_prediction_metrics/src/edit_prediction_metrics.rs
T
784b14e207 ep: Hashed region format (#59837)
# Objective

Closes EP-9

- Describe the objective or issue this PR addresses.
- If you're fixing a specific issue, use "Fixes #X" for each issue as
[described in the GitHub
docs](https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).

## Solution

- Describe the solution used to achieve the objective above.

## Testing

- Did you test these changes? If so, how?
- Are there any parts that need more testing?
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?

## Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

## Showcase

> This section is optional. If this PR does not include a visual change
or does not add a new user-facing feature, you can delete this section.

- Help others understand the result of this PR by showcasing your
awesome work!
- If this PR includes a visual change, consider adding a screenshot,
GIF, or video
- A before/after comparison is very useful for changes to existing
features!

While a showcase should aim to be brief and digestible, you can use a
toggleable section to save space on longer showcases:

<details>
  <summary>Click to view showcase</summary>

My super cool demos here

</details>

---

Release Notes:

- N/A or Added/Fixed/Improved ...

---------

Co-authored-by: Oleksiy Syvokon <oleksiy.syvokon@gmail.com>
Co-authored-by: Oleksiy Syvokon <oleksiy@zed.dev>
2026-06-24 23:28:47 +00:00

42 lines
1.5 KiB
Rust

mod jumps;
mod kept_rate;
mod patch;
mod patch_metrics;
mod prediction_score;
mod reversal;
mod summary;
mod tokenize;
#[cfg(feature = "tree-sitter")]
mod tree_sitter;
pub use jumps::{
EditableContextCoverage, Excerpt, LineFileClassification, PatchLocationMatch,
editable_context_coverage, patch_location_match,
};
pub use kept_rate::AnnotatedToken;
pub use kept_rate::KeptRateResult;
pub use kept_rate::TokenAnnotation;
pub use kept_rate::annotate_kept_rate_tokens;
pub use kept_rate::compute_kept_rate;
pub use patch_metrics::ClassificationMetrics;
pub use patch_metrics::Counts;
pub use patch_metrics::DeltaChrFMetrics;
pub use patch_metrics::TokenChangeCounts;
pub use patch_metrics::braces_disbalance;
pub use patch_metrics::count_patch_token_changes;
pub use patch_metrics::delta_chr_f;
pub use patch_metrics::delta_chr_f_beta;
pub use patch_metrics::exact_lines_match;
pub use patch_metrics::extract_changed_lines_from_diff;
pub use patch_metrics::has_isolated_whitespace_changes;
pub use patch_metrics::is_editable_region_correct;
pub use patch_metrics::reconstruct_texts_from_diff;
pub use prediction_score::{
ActualPredictionCursor, PredictionReversalContext, PredictionScore, PredictionScoringInput,
PrepareExpectedPatchError, PreparedExpectedPatch, prepare_expected_patches, score_prediction,
};
pub use reversal::compute_prediction_reversal_ratio_from_history;
pub use summary::{PredictionSummaryInput, QaSummaryData, SummaryJson, compute_summary};
#[cfg(feature = "tree-sitter")]
pub use tree_sitter::count_tree_sitter_errors;