Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import baseToString from './_baseToString.js';2import castSlice from './_castSlice.js';3import charsEndIndex from './_charsEndIndex.js';4import stringToArray from './_stringToArray.js';5import toString from './toString.js';6import trimmedEndIndex from './_trimmedEndIndex.js';7 8/**9 * Removes trailing whitespace or specified characters from `string`.10 *11 * @static12 * @memberOf _13 * @since 4.0.014 * @category String15 * @param {string} [string=''] The string to trim.16 * @param {string} [chars=whitespace] The characters to trim.17 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.18 * @returns {string} Returns the trimmed string.19 * @example20 *21 * _.trimEnd(' abc ');22 * // => ' abc'23 *24 * _.trimEnd('-_-abc-_-', '_-');25 * // => '-_-abc'26 */27function trimEnd(string, chars, guard) {28 string = toString(string);29 if (string && (guard || chars === undefined)) {30 return string.slice(0, trimmedEndIndex(string) + 1);31 }32 if (!string || !(chars = baseToString(chars))) {33 return string;34 }35 var strSymbols = stringToArray(string),36 end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;37 38 return castSlice(strSymbols, 0, end).join('');39}40 41export default trimEnd;42 