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
1<h1 align="center">dedent</h1>2 3<p align="center">A string tag that strips indentation from multi-line strings. ⬅️</p>4 5<p align="center">6 <!-- prettier-ignore-start -->7 <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->8 <a href="#contributors" target="_blank"><img alt="All Contributors: 18 👪" src="https://img.shields.io/badge/all_contributors-18_👪-21bb42.svg" /></a>9<!-- ALL-CONTRIBUTORS-BADGE:END -->10 <!-- prettier-ignore-end -->11 <a href="https://github.com/dmnd/dedent/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/code_of_conduct-enforced-21bb42" /></a>12 <a href="https://codecov.io/gh/dmnd/dedent" target="_blank"><img alt="🧪 Coverage" src="https://codecov.io/gh/dmnd/dedent/branch/main/graph/badge.svg"/></a>13 <a href="https://github.com/dmnd/dedent/blob/main/LICENSE.md" target="_blank"><img alt="📝 License: MIT" src="https://img.shields.io/github/license/dmnd/dedent?color=21bb42"></a>14 <a href="http://npmjs.com/package/dedent" target="_blank"><img alt="📦 npm version" src="https://img.shields.io/npm/v/dedent?color=21bb42" /></a>15 <img alt="💪 TypeScript: Strict" src="https://img.shields.io/badge/typescript-strict-21bb42.svg" />16</p>17 18## Usage19 20```shell21npm i dedent22```23 24```js25import dedent from "dedent";26 27function usageExample() {28 const first = dedent`A string that gets so long you need to break it over29 multiple lines. Luckily dedent is here to keep it30 readable without lots of spaces ending up in the string31 itself.`;32 33 const second = dedent`34 Leading and trailing lines will be trimmed, so you can write something like35 this and have it work as you expect:36 37 * how convenient it is38 * that I can use an indented list39 - and still have it do the right thing40 41 That's all.42 `;43 44 const third = dedent(`45 Wait! I lied. Dedent can also be used as a function.46 `);47 48 return first + "\n\n" + second + "\n\n" + third;49}50 51console.log(usageExample());52```53 54```plaintext55A string that gets so long you need to break it over56multiple lines. Luckily dedent is here to keep it57readable without lots of spaces ending up in the string58itself.59 60Leading and trailing lines will be trimmed, so you can write something like61this and have it work as you expect:62 63 * how convenient it is64 * that I can use an indented list65 - and still have it do the right thing66 67That's all.68 69Wait! I lied. Dedent can also be used as a function.70```71 72## Options73 74You can customize the options `dedent` runs with by calling its `withOptions` method with an object:75 76<!-- prettier-ignore -->77```js78import dedent from 'dedent';79 80dedent.withOptions({ /* ... */ })`input`;81dedent.withOptions({ /* ... */ })(`input`);82```83 84`options` returns a new `dedent` function, so if you'd like to reuse the same options, you can create a dedicated `dedent` function:85 86<!-- prettier-ignore -->87```js88import dedent from 'dedent';89 90const dedenter = dedent.withOptions({ /* ... */ });91 92dedenter`input`;93dedenter(`input`);94```95 96### `alignValues`97 98When an interpolation evaluates to a multi-line string, only its first line is placed where the `${...}` appears. Subsequent lines keep whatever indentation they already had inside that value (often none), so they can appear “shifted left”.99 100Enable `alignValues` to fix that visual jump. When `true`, for every multi-line interpolated value, each line after the first gets extra indentation appended so it starts in the same column as the first line.101 102```js103import dedent from "dedent";104 105const list = dedent`106 - apples107 - bananas108 - cherries109`;110 111const withoutAlign = dedent`112 List without alignValues (default):113 ${list}114 Done.115`;116 117const withAlign = dedent.withOptions({ alignValues: true })`118 List with alignValues: true119 ${list}120 Done.121`;122 123console.log(withoutAlign);124console.log("---");125console.log(withAlign);126```127 128```plaintext129List without alignValues (default):130 - apples131- bananas132- cherries133Done.134---135List with alignValues: true136 - apples137 - bananas138 - cherries139Done.140```141 142### `escapeSpecialCharacters`143 144JavaScript string tags by default add an extra `\` escape in front of some special characters such as `$` dollar signs.145`dedent` will escape those special characters when called as a string tag.146 147If you'd like to change the behavior, an `escapeSpecialCharacters` option is available.148It defaults to:149 150- `false`: when `dedent` is called as a function151- `true`: when `dedent` is called as a string tag152 153```js154import dedent from "dedent";155 156// "$hello!"157dedent`158 $hello!159`;160 161// "\$hello!"162dedent.withOptions({ escapeSpecialCharacters: false })`163 $hello!164`;165 166// "$hello!"167dedent.withOptions({ escapeSpecialCharacters: true })`168 $hello!169`;170```171 172For more context, see [🚀 Feature: Add an option to disable special character escaping](https://github.com/dmnd/dedent/issues/63).173 174### `trimWhitespace`175 176By default, dedent will trim leading and trailing whitespace from the overall string.177 178This can be disabled by setting `trimWhitespace: false`.179 180```js181import dedent from "dedent";182 183// "hello!"184dedent`185 hello! 186`;187 188// "\nhello! \n"189dedent.withOptions({ trimWhitespace: false })`190 hello! 191`;192 193// "hello!"194dedent.withOptions({ trimWhitespace: true })`195 hello! 196`;197```198 199## License200 201MIT202 203## Contributors204 205<!-- spellchecker: disable -->206<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->207<!-- prettier-ignore-start -->208<!-- markdownlint-disable -->209<table>210 <tbody>211 <tr>212 <td align="center" valign="top" width="14.28%"><a href="https://adrianjost.dev/"><img src="https://avatars.githubusercontent.com/u/22987140?v=4?s=100" width="100px;" alt="Adrian Jost"/><br /><sub><b>Adrian Jost</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=adrianjost" title="Code">💻</a></td>213 <td align="center" valign="top" width="14.28%"><a href="https://m811.com/"><img src="https://avatars.githubusercontent.com/u/156837?v=4?s=100" width="100px;" alt="Andri Möll"/><br /><sub><b>Andri Möll</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Amoll" title="Bug reports">🐛</a></td>214 <td align="center" valign="top" width="14.28%"><a href="https://bennypowers.dev/"><img src="https://avatars.githubusercontent.com/u/1466420?v=4?s=100" width="100px;" alt="Benny Powers - עם ישראל חי!"/><br /><sub><b>Benny Powers - עם ישראל חי!</b></sub></a><br /><a href="#tool-bennypowers" title="Tools">🔧</a></td>215 <td align="center" valign="top" width="14.28%"><a href="https://github.com/phenomnomnominal"><img src="https://avatars.githubusercontent.com/u/1086286?v=4?s=100" width="100px;" alt="Craig Spence"/><br /><sub><b>Craig Spence</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=phenomnomnominal" title="Code">💻</a></td>216 <td align="center" valign="top" width="14.28%"><a href="https://synthesis.com/"><img src="https://avatars.githubusercontent.com/u/4427?v=4?s=100" width="100px;" alt="Desmond Brand"/><br /><sub><b>Desmond Brand</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Admnd" title="Bug reports">🐛</a> <a href="https://github.com/dmnd/dedent/commits?author=dmnd" title="Code">💻</a> <a href="https://github.com/dmnd/dedent/commits?author=dmnd" title="Documentation">📖</a> <a href="#ideas-dmnd" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-dmnd" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-dmnd" title="Maintenance">🚧</a> <a href="#projectManagement-dmnd" title="Project Management">📆</a> <a href="#tool-dmnd" title="Tools">🔧</a></td>217 <td align="center" valign="top" width="14.28%"><a href="https://github.com/G-Rath"><img src="https://avatars.githubusercontent.com/u/3151613?v=4?s=100" width="100px;" alt="Gareth Jones"/><br /><sub><b>Gareth Jones</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=G-Rath" title="Code">💻</a> <a href="https://github.com/dmnd/dedent/issues?q=author%3AG-Rath" title="Bug reports">🐛</a></td>218 <td align="center" valign="top" width="14.28%"><a href="https://github.com/otakustay"><img src="https://avatars.githubusercontent.com/u/639549?v=4?s=100" width="100px;" alt="Gray Zhang"/><br /><sub><b>Gray Zhang</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Aotakustay" title="Bug reports">🐛</a></td>219 </tr>220 <tr>221 <td align="center" valign="top" width="14.28%"><a href="https://haroen.me/"><img src="https://avatars.githubusercontent.com/u/6270048?v=4?s=100" width="100px;" alt="Haroen Viaene"/><br /><sub><b>Haroen Viaene</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=Haroenv" title="Code">💻</a> <a href="#maintenance-Haroenv" title="Maintenance">🚧</a></td>222 <td align="center" valign="top" width="14.28%"><a href="https://blog.cometkim.kr/"><img src="https://avatars.githubusercontent.com/u/9696352?v=4?s=100" width="100px;" alt="Hyeseong Kim"/><br /><sub><b>Hyeseong Kim</b></sub></a><br /><a href="#tool-cometkim" title="Tools">🔧</a> <a href="#infra-cometkim" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>223 <td align="center" valign="top" width="14.28%"><a href="https://github.com/jlarmstrongiv"><img src="https://avatars.githubusercontent.com/u/20903247?v=4?s=100" width="100px;" alt="John L. Armstrong IV"/><br /><sub><b>John L. Armstrong IV</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Ajlarmstrongiv" title="Bug reports">🐛</a></td>224 <td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com/"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg ✨"/><br /><sub><b>Josh Goldberg ✨</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/dmnd/dedent/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="https://github.com/dmnd/dedent/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#ideas-JoshuaKGoldberg" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="#projectManagement-JoshuaKGoldberg" title="Project Management">📆</a> <a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a></td>225 <td align="center" valign="top" width="14.28%"><a href="https://pratapvardhan.com/"><img src="https://avatars.githubusercontent.com/u/3757165?v=4?s=100" width="100px;" alt="Pratap Vardhan"/><br /><sub><b>Pratap Vardhan</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=pratapvardhan" title="Code">💻</a></td>226 <td align="center" valign="top" width="14.28%"><a href="https://github.com/lydell"><img src="https://avatars.githubusercontent.com/u/2142817?v=4?s=100" width="100px;" alt="Simon Lydell"/><br /><sub><b>Simon Lydell</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Alydell" title="Bug reports">🐛</a></td>227 <td align="center" valign="top" width="14.28%"><a href="https://github.com/yinm"><img src="https://avatars.githubusercontent.com/u/13295106?v=4?s=100" width="100px;" alt="Yusuke Iinuma"/><br /><sub><b>Yusuke Iinuma</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=yinm" title="Code">💻</a></td>228 </tr>229 <tr>230 <td align="center" valign="top" width="14.28%"><a href="https://github.com/yvele"><img src="https://avatars.githubusercontent.com/u/4225430?v=4?s=100" width="100px;" alt="Yves M."/><br /><sub><b>Yves M.</b></sub></a><br /><a href="#tool-yvele" title="Tools">🔧</a></td>231 <td align="center" valign="top" width="14.28%"><a href="https://github.com/d07RiV"><img src="https://avatars.githubusercontent.com/u/3448203?v=4?s=100" width="100px;" alt="d07riv"/><br /><sub><b>d07riv</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Ad07RiV" title="Bug reports">🐛</a></td>232 <td align="center" valign="top" width="14.28%"><a href="https://mizdra.net/"><img src="https://avatars.githubusercontent.com/u/9639995?v=4?s=100" width="100px;" alt="mizdra"/><br /><sub><b>mizdra</b></sub></a><br /><a href="https://github.com/dmnd/dedent/commits?author=mizdra" title="Code">💻</a></td>233 <td align="center" valign="top" width="14.28%"><a href="https://github.com/sirian"><img src="https://avatars.githubusercontent.com/u/897643?v=4?s=100" width="100px;" alt="sirian"/><br /><sub><b>sirian</b></sub></a><br /><a href="https://github.com/dmnd/dedent/issues?q=author%3Asirian" title="Bug reports">🐛</a></td>234 </tr>235 </tbody>236</table>237 238<!-- markdownlint-restore -->239<!-- prettier-ignore-end -->240 241<!-- ALL-CONTRIBUTORS-LIST:END -->242<!-- spellchecker: enable -->243 244> 💙 This package was templated with [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).245 