Expose infrastructure exact-class prelude patterns
This commit is contained in:
parent
8db0a0fe59
commit
3ce8029056
1 changed files with 72 additions and 3 deletions
|
|
@ -5030,12 +5030,27 @@ fn build_infrastructure_asset_trace_report(
|
||||||
})
|
})
|
||||||
.map(|correlation| {
|
.map(|correlation| {
|
||||||
format!(
|
format!(
|
||||||
"the exact 0xff0000ff/0x0001/0xff compact-prefix class is now explicit: dominant name={:?}/{:?} x{}, dominant span={:?} x{}, mode counts={:?}, name-pair counts={:?}, span counts={:?}, previous short-flag pairs={:?} across {} rows, and sample rows={:?}",
|
"the exact 0xff0000ff/0x0001/0xff compact-prefix class is now explicit: dominant name={:?}/{:?} x{}, dominant span={:?} x{}, dominant prelude={}/{} x{}, mode counts={:?}, name-pair counts={:?}, span counts={:?}, previous short-flag pairs={:?} across {} rows, and sample rows={:?}",
|
||||||
correlation.dominant_primary_name,
|
correlation.dominant_primary_name,
|
||||||
correlation.dominant_secondary_name,
|
correlation.dominant_secondary_name,
|
||||||
correlation.dominant_name_pair_count,
|
correlation.dominant_name_pair_count,
|
||||||
correlation.dominant_profile_span,
|
correlation.dominant_profile_span,
|
||||||
correlation.dominant_profile_span_count,
|
correlation.dominant_profile_span_count,
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.child_count_candidate_hex.as_str())
|
||||||
|
.unwrap_or("0x0000"),
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.saved_primary_child_byte_candidate_hex.as_str())
|
||||||
|
.unwrap_or("0x00"),
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.count)
|
||||||
|
.unwrap_or_default(),
|
||||||
correlation
|
correlation
|
||||||
.mode_family_counts
|
.mode_family_counts
|
||||||
.iter()
|
.iter()
|
||||||
|
|
@ -5096,12 +5111,27 @@ fn build_infrastructure_asset_trace_report(
|
||||||
})
|
})
|
||||||
.map(|correlation| {
|
.map(|correlation| {
|
||||||
format!(
|
format!(
|
||||||
"the exact 0x000055f3/0x0001/0xff compact-prefix class is now explicit too: dominant name={:?}/{:?} x{}, dominant span={:?} x{}, mode counts={:?}, name-pair counts={:?}, previous short-flag pairs={:?} across {} rows, and sample rows={:?}",
|
"the exact 0x000055f3/0x0001/0xff compact-prefix class is now explicit too: dominant name={:?}/{:?} x{}, dominant span={:?} x{}, dominant prelude={}/{} x{}, mode counts={:?}, name-pair counts={:?}, previous short-flag pairs={:?} across {} rows, and sample rows={:?}",
|
||||||
correlation.dominant_primary_name,
|
correlation.dominant_primary_name,
|
||||||
correlation.dominant_secondary_name,
|
correlation.dominant_secondary_name,
|
||||||
correlation.dominant_name_pair_count,
|
correlation.dominant_name_pair_count,
|
||||||
correlation.dominant_profile_span,
|
correlation.dominant_profile_span,
|
||||||
correlation.dominant_profile_span_count,
|
correlation.dominant_profile_span_count,
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.child_count_candidate_hex.as_str())
|
||||||
|
.unwrap_or("0x0000"),
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.saved_primary_child_byte_candidate_hex.as_str())
|
||||||
|
.unwrap_or("0x00"),
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.count)
|
||||||
|
.unwrap_or_default(),
|
||||||
correlation
|
correlation
|
||||||
.mode_family_counts
|
.mode_family_counts
|
||||||
.iter()
|
.iter()
|
||||||
|
|
@ -5153,12 +5183,27 @@ fn build_infrastructure_asset_trace_report(
|
||||||
})
|
})
|
||||||
.map(|correlation| {
|
.map(|correlation| {
|
||||||
format!(
|
format!(
|
||||||
"the exact 0xff0000ff/0x0002/0xff compact-prefix class is now explicit too: dominant name={:?}/{:?} x{}, dominant span={:?} x{}, mode counts={:?}, span counts={:?}, and sample rows={:?}",
|
"the exact 0xff0000ff/0x0002/0xff compact-prefix class is now explicit too: dominant name={:?}/{:?} x{}, dominant span={:?} x{}, dominant prelude={}/{} x{}, mode counts={:?}, span counts={:?}, and sample rows={:?}",
|
||||||
correlation.dominant_primary_name,
|
correlation.dominant_primary_name,
|
||||||
correlation.dominant_secondary_name,
|
correlation.dominant_secondary_name,
|
||||||
correlation.dominant_name_pair_count,
|
correlation.dominant_name_pair_count,
|
||||||
correlation.dominant_profile_span,
|
correlation.dominant_profile_span,
|
||||||
correlation.dominant_profile_span_count,
|
correlation.dominant_profile_span_count,
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.child_count_candidate_hex.as_str())
|
||||||
|
.unwrap_or("0x0000"),
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.saved_primary_child_byte_candidate_hex.as_str())
|
||||||
|
.unwrap_or("0x00"),
|
||||||
|
correlation
|
||||||
|
.dominant_candidate_pattern
|
||||||
|
.as_ref()
|
||||||
|
.map(|pattern| pattern.count)
|
||||||
|
.unwrap_or_default(),
|
||||||
correlation
|
correlation
|
||||||
.mode_family_counts
|
.mode_family_counts
|
||||||
.iter()
|
.iter()
|
||||||
|
|
@ -26422,6 +26467,30 @@ mod tests {
|
||||||
&& line.contains("BridgeSTWood_Section.3dp")
|
&& line.contains("BridgeSTWood_Section.3dp")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
assert!(
|
||||||
|
trace.candidate_consumer_hypotheses[0]
|
||||||
|
.evidence
|
||||||
|
.iter()
|
||||||
|
.any(|line| line
|
||||||
|
.contains("0xff0000ff/0x0001/0xff compact-prefix class is now explicit")
|
||||||
|
&& line.contains("dominant prelude=0x0001/0xff"))
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
trace.candidate_consumer_hypotheses[0]
|
||||||
|
.evidence
|
||||||
|
.iter()
|
||||||
|
.any(|line| line
|
||||||
|
.contains("0x000055f3/0x0001/0xff compact-prefix class is now explicit")
|
||||||
|
&& line.contains("dominant prelude=0x0001/0xff"))
|
||||||
|
);
|
||||||
|
assert!(
|
||||||
|
trace.candidate_consumer_hypotheses[0]
|
||||||
|
.evidence
|
||||||
|
.iter()
|
||||||
|
.any(|line| line
|
||||||
|
.contains("0xff0000ff/0x0002/0xff compact-prefix class is now explicit")
|
||||||
|
&& line.contains("dominant prelude="))
|
||||||
|
);
|
||||||
assert!(
|
assert!(
|
||||||
trace.candidate_consumer_hypotheses[0]
|
trace.candidate_consumer_hypotheses[0]
|
||||||
.evidence
|
.evidence
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue