text icon indicating copy to clipboard operation
text copied to clipboard

find_match utility function to unify a few lines of code

Open cpuhrsch opened this issue 4 years ago • 1 comments

find_match searches a list of strings and returns first entry that partially or fully contains the given string match.

cpuhrsch avatar Feb 17 '21 04:02 cpuhrsch

Codecov Report

Merging #1165 (82ddc35) into master (97dddf0) will decrease coverage by 0.02%. The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1165      +/-   ##
==========================================
- Coverage   79.61%   79.59%   -0.03%     
==========================================
  Files          47       47              
  Lines        3204     3205       +1     
==========================================
  Hits         2551     2551              
- Misses        653      654       +1     
Impacted Files Coverage Δ
torchtext/experimental/datasets/raw/common.py 86.90% <80.00%> (-0.44%) :arrow_down:
...ext/experimental/datasets/raw/language_modeling.py 92.68% <100.00%> (-0.50%) :arrow_down:
...t/experimental/datasets/raw/text_classification.py 87.67% <100.00%> (-0.17%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 97dddf0...82ddc35. Read the comment docs.

codecov[bot] avatar Feb 17 '21 19:02 codecov[bot]