Compare commits
1
Commits
No files matched your search
@@ -92,7 +92,7 @@ impl DB {
|
|||||||
Some(return_value)
|
Some(return_value)
|
||||||
}
|
}
|
||||||
/// Retrieves the value at a given index.
|
/// Retrieves the value at a given index.
|
||||||
///
|
///
|
||||||
/**
|
/**
|
||||||
get you know get it like its a traditional long ass vec
|
get you know get it like its a traditional long ass vec
|
||||||
|
|
||||||
@@ -255,4 +255,4 @@ impl DB {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mod test;
|
mod test;
|
||||||
@@ -460,6 +460,7 @@ impl MonotonicSequence {
|
|||||||
self.jumps.to_vec()
|
self.jumps.to_vec()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// into_inner
|
||||||
pub fn destroy(self) -> (Vec<(usize, u32)>, usize) {
|
pub fn destroy(self) -> (Vec<(usize, u32)>, usize) {
|
||||||
(self.jumps, self.length)
|
(self.jumps, self.length)
|
||||||
}
|
}
|
||||||
@@ -649,7 +650,7 @@ impl Iterator for MonotonicIter {
|
|||||||
type Item = u32;
|
type Item = u32;
|
||||||
// hit it from the front
|
// hit it from the front
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
let (f_, v)= self.dis.front_mut()?;
|
let (f_, v) = self.dis.front_mut()?;
|
||||||
let v = *v;
|
let v = *v;
|
||||||
*f_ -= 1;
|
*f_ -= 1;
|
||||||
if *f_ == 0 {
|
if *f_ == 0 {
|
||||||
@@ -664,7 +665,7 @@ impl IntoIterator for &MonotonicSequence {
|
|||||||
type IntoIter = MonotonicIter;
|
type IntoIter = MonotonicIter;
|
||||||
type Item = u32;
|
type Item = u32;
|
||||||
|
|
||||||
// hehe
|
// hehe
|
||||||
fn into_iter(self) -> Self::IntoIter {
|
fn into_iter(self) -> Self::IntoIter {
|
||||||
let dis: Vec<(usize, u32)> = self
|
let dis: Vec<(usize, u32)> = self
|
||||||
.jumps()
|
.jumps()
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
pub mod levenshtein;
|
|
||||||
pub mod common_subsequence;
|
pub mod common_subsequence;
|
||||||
|
pub mod levenshtein;
|
||||||
pub mod wrapper_;
|
pub mod wrapper_;
|
||||||
+2
-2
@@ -3,7 +3,7 @@ use lda_strdist::{
|
|||||||
generate_alignment, levenshtein_with_operations, levenstein_distance, reconstruct_from,
|
generate_alignment, levenshtein_with_operations, levenstein_distance, reconstruct_from,
|
||||||
reconstruct_to, EditCost,
|
reconstruct_to, EditCost,
|
||||||
},
|
},
|
||||||
wrapper_::{EditOperationVec, CostOperationVec},
|
wrapper_::{CostOperationVec, EditOperationVec},
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
@@ -27,7 +27,7 @@ fn main() {
|
|||||||
println!("this is the d");
|
println!("this is the d");
|
||||||
for i in &dp {
|
for i in &dp {
|
||||||
println!("{}", CostOperationVec(i))
|
println!("{}", CostOperationVec(i))
|
||||||
}
|
}
|
||||||
let (al1, al2) = generate_alignment(&dp);
|
let (al1, al2) = generate_alignment(&dp);
|
||||||
println!("Alignment:\n{:#?}\n{:#?}", al1, al2);
|
println!("Alignment:\n{:#?}\n{:#?}", al1, al2);
|
||||||
}
|
}
|
||||||
+1
-5
@@ -90,11 +90,7 @@ impl Display for InsanelySpecific<'_> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
use lda_ansi::ansi_backbone::Style as StyleConstruct;
|
use lda_ansi::import::*;
|
||||||
use lda_ansi::ansi_colors_2::ansi_color_interface::ColorContext;
|
|
||||||
use lda_ansi::ansi_colors_2::Color;
|
|
||||||
use lda_ansi::ansi_colors_2::CustomColor;
|
|
||||||
use lda_ansi::ansi_styles::Style;
|
|
||||||
|
|
||||||
impl Display for ColoredInsanelySpecific<'_> {
|
impl Display for ColoredInsanelySpecific<'_> {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
|||||||
Reference in new issue
Block a user