Skip to content

Commit

Permalink
style: Add missing trailing newlines
Browse files Browse the repository at this point in the history
Branch: HFTokenizers

Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed Dec 18, 2024
1 parent 766c364 commit bcfd996
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/detail/bpe_tokenizer_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ class BPETokenizerBase : public Tokenizer {
};

} // namespace detail
} // namespace tokenizers
} // namespace tokenizers
2 changes: 1 addition & 1 deletion include/hf_tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ class HFTokenizer : public detail::BPETokenizerBase {
TokenDecoder::Ptr _decoder;
};

} // namespace tokenizers
} // namespace tokenizers
2 changes: 1 addition & 1 deletion include/token_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ class ByteLevelTokenDecoder : public TokenDecoder {

}; // end class ByteLevelTokenDecoder

} // namespace tokenizers
} // namespace tokenizers
2 changes: 1 addition & 1 deletion src/bpe_tokenizer_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,4 @@ Result<std::string> BPETokenizerBase::decode(uint64_t prev,
// ---- public end -------------------------------------------------------------

} // namespace detail
} // namespace tokenizers
} // namespace tokenizers
2 changes: 1 addition & 1 deletion src/hf_tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,4 +259,4 @@ void HFTokenizer::_decode(re2::StringPiece input, std::string &ret) const {
}
}

} // namespace tokenizers
} // namespace tokenizers
2 changes: 1 addition & 1 deletion src/pre_tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ SequencePreTokenizer::pre_tokenize(re2::StringPiece input) const {
return pieces;
}

} // namespace tokenizers
} // namespace tokenizers
2 changes: 1 addition & 1 deletion src/token_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ std::string ByteLevelTokenDecoder::decode(re2::StringPiece token) const {
return decoded_text;
}

} // end namespace tokenizers
} // end namespace tokenizers
2 changes: 1 addition & 1 deletion tools/tokenize_tool/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ int main(int argc, char *argv[]) {
std::cout << std::endl;

return 0;
}
}

0 comments on commit bcfd996

Please sign in to comment.