Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 282) sorted by last modified time

12345678910>>...12

/plugin/siteexport/inc/
H A Dpdfgenerator.php162 $encode = '';
165 $encode .= chr((int)hexdec($email[$x+3] . $email[$x+4]));
167 return $encode;
/plugin/openlayersmap/ol7/
H A Dol.js.map
/plugin/spatialhelper/
H A Daction.php
/plugin/photogallery/phpThumb/docs/
H A Dphpthumb.faq.txt352 You will also need to properly encode the image source (using PHP
/plugin/dokuprism/prism/
H A Dprism.js3 var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof i?new i(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(n,t){var r,i;switch(t=t||{},a.util.type(n)){case"Object":if(i=a.util.objId(n),t[i])return t[i];for(var l in r={},t[i]=r,n)n.hasOwnProperty(l)&&(r[l]=e(n[l],t));return r;case"Array":return i=a.util.objId(n),t[i]?t[i]:(r=[],t[i]=r,n.forEach((function(n,a){r[a]=e(n,t)})),r);default:return n}},getLanguage:function(e){for(;e;){var t=n.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(n,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var n=document.getElementsByTagName("script");for(var t in n)if(n[t].src==e)return n[t]}return null}},isActive:function(e,n,t){for(var r="no-"+n;e;){var a=e.classList;if(a.contains(n))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!t}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,n){var t=a.util.clone(a.languages[e]);for(var r in n)t[r]=n[r];return t},insertBefore:function(e,n,t,r){var i=(r=r||a.languages)[e],l={};for(var o in i)if(i.hasOwnProperty(o)){if(o==n)for(var s in t)t.hasOwnProperty(s)&&(l[s]=t[s]);t.hasOwnProperty(o)||(l[o]=i[o])}var u=r[e];return r[e]=l,a.languages.DFS(a.languages,(function(n,t){t===u&&n!=e&&(this[n]=l)})),l},DFS:function e(n,t,r,i){i=i||{};var l=a.util.objId;for(var o in n)if(n.hasOwnProperty(o)){t.call(n,o,n[o],r||o);var s=n[o],u=a.util.type(s);"Object"!==u||i[l(s)]?"Array"!==u||i[l(s)]||(i[l(s)]=!0,e(s,t,o,i)):(i[l(s)]=!0,e(s,t,null,i))}}},plugins:{},highlightAll:function(e,n){a.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,t){var r={callback:t,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var i,l=0;i=r.elements[l++];)a.highlightElement(i,!0===n,r.callback)},highlightElement:function(n,t,r){var i=a.util.getLanguage(n),l=a.languages[i];a.util.setLanguage(n,i);var o=n.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&a.util.setLanguage(o,i);var s={element:n,language:i,grammar:l,code:n.textContent};function u(e){s.highlightedCode=e,a.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,a.hooks.run("after-highlight",s),a.hooks.run("complete",s),r&&r.call(s.element)}if(a.hooks.run("before-sanity-check",s),(o=s.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!s.code)return a.hooks.run("complete",s),void(r&&r.call(s.element));if(a.hooks.run("before-highlight",s),s.grammar)if(t&&e.Worker){var c=new Worker(a.filename);c.onmessage=function(e){u(e.data)},c.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else u(a.highlight(s.code,s.grammar,s.language));else u(a.util.encode(s.code))},highlight:function(e,n,t){var r={code:e,grammar:n,language:t};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),i.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,n){var t=n.rest;if(t){for(var r in t)n[r]=t[r];delete n.rest}var a=new s;return u(a,a.head,e),o(e,a,n,a.head,0),function(e){for(var n=[],t=e.head.next;t!==e.tail;)n.push(t.value),t=t.next;return n}(a)},hooks:{all:{},add:function(e,n){var t=a.hooks.all;t[e]=t[e]||[],t[e].push(n)},run:function(e,n){var t=a.hooks.all[e];if(t&&t.length)for(var r,i=0;r=t[i++];)r(n)}},Token:i};function i(e,n,t,r){this.type=e,this.content=n,this.alias=t,this.length=0|(r||"").length}function l(e,n,t,r){e.lastIndex=n;var a=e.exec(t);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function o(e,n,t,r,s,g){for(var f in t)if(t.hasOwnProperty(f)&&t[f]){var h=t[f];h=Array.isArray(h)?h:[h];for(var d=0;d<h.length;++d){if(g&&g.cause==f+","+d)return;var v=h[d],p=v.inside,m=!!v.lookbehind,y=!!v.greedy,k=v.alias;if(y&&!v.pattern.global){var x=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,x+"g")}for(var b=v.pattern||v,w=r.next,A=s;w!==n.tail&&!(g&&A>=g.reach);A+=w.value.length,w=w.next){var E=w.value;if(n.length>e.length)return;if(!(E instanceof i)){var P,L=1;if(y){if(!(P=l(b,A,e,m))||P.index>=e.length)break;var S=P.index,O=P.index+P[0].length,j=A;for(j+=w.value.length;S>=j;)j+=(w=w.next).value.length;if(A=j-=w.value.length,w.value instanceof i)continue;for(var C=w;C!==n.tail&&(j<O||"string"==typeof C.value);C=C.next)L++,j+=C.value.length;L--,E=e.slice(A,j),P.index-=A}else if(!(P=l(b,0,E,m)))continue;S=P.index;var N=P[0],_=E.slice(0,S),M=E.slice(S+N.length),W=A+E.length;g&&W>g.reach&&(g.reach=W);var z=w.prev;if(_&&(z=u(n,z,_),A+=_.length),c(n,z,L),w=u(n,z,new i(f,p?a.tokenize(N,p):N,k,N)),M&&u(n,w,M),L>1){var I={cause:f+","+d,reach:W};o(e,n,t,w.prev,A,I),g&&I.reach>g.reach&&(g.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function u(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function c(e,n,t){for(var r=n.next,a=0;a<t&&r!==e.tail;a++)r=r.next;n.next=r,r.prev=n,e.length-=a}if(e.Prism=a,i.stringify=function e(n,t){if("string"==typeof n)return n;if(Array.isArray(n)){var r="";return n.forEach((function(n){r+=e(n,t)})),r}var i={type:n.type,content:e(n.content,t),tag:"span",classes:["token",n.type],attributes:{},language:t},l=n.alias;l&&(Array.isArray(l)?Array.prototype.push.apply(i.classes,l):i.classes.push(l)),a.hooks.run("wrap",i);var o="";for(var s in i.attributes)o+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+o+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),r=t.language,i=t.code,l=t.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),l&&e.close()}),!1),a):a;var g=a.util.currentScript();function f(){a.manual||a.highlightAll()}if(g&&(a.filename=g.src,g.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&g&&g.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return a}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism);
/plugin/encryptedpasswords/script/
H A DSubtleAES.js25 const cipher = await crypto.subtle.encrypt(alg, key, new TextEncoder().encode(plaintext));
132 const password = new TextEncoder().encode(strPassword);
162 const password = new TextEncoder().encode(strPassword);
/plugin/aichat/vendor/mehrab-wj/tiktoken-php/
H A DREADME.md21 $tokens = $encoder->encode($prompt); // [32, 72, 318, 3608]
/plugin/aichat/vendor/mehrab-wj/tiktoken-php/src/
H A DEncoder.php66 public function encode(string $text): array function in TikToken\\Encoder
/plugin/aichat/vendor/mehrab-wj/tiktoken-php/tests/
H A DEncoderTest.php17 $this->assertEquals([1212, 318, 617, 2420], $encoder->encode('This is some text'));
18 $this->assertEquals([10134, 23858, 21746], $encoder->encode('hasOwnProperty'));
19 $this->assertEquals([10163, 2231, 30924, 3829], $encoder->encode('1234567890'));
20 $this->assertEquals([15496, 11854, 616, 1468, 1545], $encoder->encode('Hello darkness my old friend'));
21 $this->assertEquals([31373, 50169, 233, 995, 12520, 234, 235], $encoder->encode('hello ? world ?'));
22 $this->assertEquals([33, 11401, 19047, 326, 262, 749, 2219, 2456, 389, 7997, 287, 262, 25818, 355, 257, 2060, 11241, 981, 262, 4071, 2456, 389, 5445, 866, 656, 734, 393, 517, 850, 4775, 16326, 290, 428, 318, 287, 4381, 351, 644, 257, 850, 4775, 12, 3106, 11241, 1634, 11862, 857, 13], $encoder->encode($longText));
23 $this->assertEquals([33, 11401, 19047, 326, 262, 749, 2219, 2456, 389, 7997, 287, 262, 25818, 355, 257, 2060, 11241, 981, 262, 4071, 2456, 389, 5445, 866, 656, 734, 393, 517, 850, 4775, 16326, 290, 428, 318, 287, 4381, 351, 644, 257, 850, 4775, 12, 3106, 11241, 1634, 11862, 857, 13], $encoder->encode($longText));
24 $this->assertEquals([38374, 268, 292, 256, 446, 274, 31215, 285, 8836, 13], $encoder->encode('Buenas tardes para mí.'));
25 $this->assertEquals([65, 2634, 65, 2634], $encoder->encode('bébé'));
26 $this->assertEquals([344, 979, 1556, 555, 48659, 660, 18702, 84, 2634, 551, 1216, 272, 16175, 15152, 28141, 1490, 22161, 390, 256, 7834, 8591, 4938, 43816], $encoder->encode('cec
[all...]
/plugin/aichat/
H A DEmbeddings.php271 $chunkSize = count($this->getTokenEncoder()->encode($chunk->getText()));
298 $slen = count($tiktok->encode($sentence));
321 $chunklen = count($tiktok->encode($chunk));
342 while (count($encoder->encode(implode(' ', $this->sentenceQueue))) > self::MAX_OVERLAP_LEN) {
H A Dhelper.php325 return count($this->getEmbeddings()->getTokenEncoder()->encode($text));
/plugin/xlsx2dw/packages/exceljs/
H A Dexceljs.js5938 encode: function encode() {
27975 Entity.prototype.encode = function encode(data, enc,
29422 PEMEncoder.prototype.encode = function encode(data, options) {
45918 return this.encode(enc, true);
45928 BasePoint.prototype.encode = function encode(enc, compact) {
48058 return utils.encode(res, enc);
48367 utils.encode = minUtils.encode; // Represent num in a w-NAF form
50491 return utils.encode(res, enc);
50741 exports.encode = function (input) {
53407 return base64.encode(content);
[all …]
/plugin/xlsx2dw/packages/jszip/
H A Djszip.js22 exports.encode = function(input) { function
2538 return base64.encode(content);
/plugin/xlsx2dw/packages/xlsx/
H A Dcpexcel.full.mjs1270 var encode = function encode(cp/*:CPIndex*/, data/*:StrData*/, ofmt/*:?string*/)/*:OutType*/ { function
1365 var tt = encode(1201, c);
1501 const utils = { decode: decode, encode: encode, hascp: hascp, magic: magic, cache:cache }; property in utils
H A Dxlsx.mjs3250 case "utf8": payload = new TextEncoder(enc).encode(payload); break;
3579 //else if(typeof TextEncoder !== "undefined") res = new TextEncoder().encode(content);
4081 /* TODO: use tables directly, don't encode */
4084 var cpp = $cptable.utils.encode(current_ansi, val.charAt(i));
4089 cpp = $cptable.utils.encode(current_codepage, val);
8456 case 's': case 'str': oo.push(encode(cell.v)); break;
8459 else { oo[2]='vtf'; oo[3]='n'; oo[4]=cell.v; oo[5]=encode(cell.f); }
8463 oo[5] = encode(cell.f||(cell.v?'TRUE':'FALSE'));
10062 if(typeof $cptable !== 'undefined') return $cptable.utils.encode(current_ansi, str);
25859 else if(typeof TextEncoder !== "undefined") return new TextEncoder().encode(o);
[all …]
/plugin/todo/
H A Daction.php193 echo $json->encode($return);
/plugin/dw2pdf/vendor/mpdf/mpdf/src/Barcode/
H A DCode39.php149 $encode = [
193 $code_ext .= $encode[$code[$i]];
H A DCode93.php83 $encode = [
125 $code_ext .= $encode[$code[$i]];
/plugin/dw2pdf/vendor/mpdf/mpdf/src/
H A DFpdiTrait.php375 $value->value = $filter->encode($string, true);
/plugin/dw2pdf/vendor/setasign/fpdi/src/Tcpdf/
H A DFpdi.php248 $value->value = $filter->encode($string, true);
/plugin/dw2pdf/vendor/setasign/fpdi/src/PdfParser/Filter/
H A DAsciiHex.php42 public function encode($data, $leaveEOD = false) function in setasign\\Fpdi\\PdfParser\\Filter\\AsciiHex
/plugin/dw2pdf/vendor/mpdf/qrcode/src/
H A DQrCode.php220 $this->encode();
280 private function encode() function in Mpdf\\QrCode\\QrCode
/plugin/combo/syntax/
H A Dcodemarkdown.php195 $renderer->doc .= Html::encode($payload);
/plugin/combo/vendor/php-webdriver/webdriver/lib/Remote/
H A DRemoteKeyboard.php43 'value' => WebDriverKeys::encode($keys),
H A DRemoteWebElement.php390 $encodedValues = explode(WebDriverKeys::NULL, WebDriverKeys::encode($value, true));
399 'value' => WebDriverKeys::encode($value),
420 'value' => WebDriverKeys::encode($this->upload($local_file)),

12345678910>>...12