| /plugin/aichat/vendor/mehrab-wj/tiktoken-php/tests/ |
| D | EncoderTest.php | 11 $encoder = new Encoder(); 17 $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 frien… 21 …$this->assertEquals([31373, 50169, 233, 995, 12520, 234, 235], $encoder->encode('hello world … 22 …4381, 351, 644, 257, 850, 4775, 12, 3106, 11241, 1634, 11862, 857, 13], $encoder->encode($longText… 23 …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('Buen… 25 $this->assertEquals([65, 2634, 65, 2634], $encoder->encode('bébé')); [all …]
|
| /plugin/pureldap/vendor/freedsx/socket/src/FreeDSx/Socket/Queue/ |
| H A D | Asn1MessageQueue.php | 34 protected $encoder; variable in FreeDSx\\Socket\\Queue\\Asn1MessageQueue 38 * @param EncoderInterface $encoder 41 public function __construct(Socket $socket, EncoderInterface $encoder, ?string $pduClass = null) argument 50 $this->encoder = $encoder; 61 $asn1 = $this->encoder->decode($bytes); 62 $message = new Message($asn1, $this->encoder->getLastPosition());
|
| /plugin/authgooglesheets/vendor/guzzlehttp/psr7/src/ |
| D | Query.php | 80 $encoder = function ($str) { 84 $encoder = 'rawurlencode'; 86 $encoder = 'urlencode'; 93 $k = $encoder($k); 97 $qs .= '=' . $encoder($v); 104 $qs .= '=' . $encoder($vv);
|
| /plugin/matrixnotifierwas/vendor/guzzlehttp/psr7/src/ |
| D | Query.php | 78 $encoder = function (string $str): string { 82 $encoder = 'rawurlencode'; 84 $encoder = 'urlencode'; 91 $k = $encoder((string) $k); 96 $qs .= '='.$encoder((string) $v); 104 $qs .= '='.$encoder((string) $vv);
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Server/Paging/ |
| H A D | PagingRequestComparator.php | 37 private $encoder; variable in FreeDSx\\Ldap\\Server\\Paging\\PagingRequestComparator 39 public function __construct(LdapEncoder $encoder = null) argument 41 $this->encoder = $encoder ?? new LdapEncoder(); 141 return $this->encoder->encode($control->toAsn1()); 144 return $this->encoder->encode($control->toAsn1());
|
| /plugin/jcapture/src/com/hammurapi/jcapture/ |
| D | CaptureConfig.java | 62 private VideoEncoder encoder; field in CaptureConfig 92 return encoder; in getEncoder() 95 public void setEncoder(VideoEncoder encoder) { in setEncoder() argument 96 this.encoder = encoder; in setEncoder() 159 if (encoder==null && !encoders.isEmpty()) { in CaptureConfig() 160 encoder = encoders.get(0); in CaptureConfig() 301 encoder = null; in load() 306 encoder = candidate; in load() 311 if (encoder==null && !getEncoders().isEmpty()) { in load() 312 encoder = getEncoders().get(0); in load() [all …]
|
| /plugin/pureldap/vendor/freedsx/sasl/src/FreeDSx/Sasl/Challenge/ |
| H A D | AnonymousChallenge.php | 33 protected $encoder; variable in FreeDSx\\Sasl\\Challenge\\AnonymousChallenge 37 $this->encoder = new AnonymousEncoder(); 61 $received = $this->encoder->decode($received, $this->context); 79 $this->context->setResponse($this->encoder->encode(new Message($data), $this->context));
|
| H A D | CramMD5Challenge.php | 38 protected $encoder; variable in FreeDSx\\Sasl\\Challenge\\CramMD5Challenge 42 $this->encoder = new CramMD5Encoder(); 52 $received = ($received === null) ? null : $this->encoder->decode($received, $this->context); 73 $this->context->setResponse($this->encoder->encode($challenge, $this->context)); 91 $this->context->setResponse($this->encoder->encode($response, $this->context));
|
| H A D | PlainChallenge.php | 29 protected $encoder; variable in FreeDSx\\Sasl\\Challenge\\PlainChallenge 38 $this->encoder = new PlainEncoder(); 48 $received = $received === null ? null : $this->encoder->decode($received, $this->context); 88 $this->context->setResponse($this->encoder->encode($message, $this->context));
|
| H A D | DigestMD5Challenge.php | 51 protected $encoder; variable in FreeDSx\\Sasl\\Challenge\\DigestMD5Challenge 61 $this->encoder = new DigestMD5Encoder(); 73 $received = $received === null ? null : $this->encoder->decode($received, $this->context); 120 return $response === null ? null : $this->encoder->encode($response, $this->context); 190 return $this->encoder->encode($response, $this->context);
|
| /plugin/aichat/_test/ |
| D | TextSplitterTest.php | 22 private Encoder $encoder; variable in dokuwiki\\plugin\\aichat\\test\\TextSplitterTest 27 $this->encoder = new Encoder(); 28 $this->splitter = new TextSplitter(self::CHUNKSIZE, $this->encoder, self::OVERLAP); 50 $tokenCount = count($this->encoder->encode($chunk)); 142 $tokenLength = count($this->encoder->encode($text));
|
| /plugin/aichat/vendor/mehrab-wj/tiktoken-php/src/ |
| D | Encoder.php | 16 private array $encoder = []; variable in TikToken\\Encoder 32 $encoder = file_get_contents(__DIR__.'/../data/encoder.json'); 33 if (false === $encoder) { 36 $this->encoder = json_decode($encoder, true, 512, JSON_THROW_ON_ERROR); 95 $encoded = $this->encoder[$newBpeToken] ?? $newBpeToken;
|
| /plugin/html2pdf/html2pdf/html2ps/ |
| D | output._generic.ps.class.php | 31 function set_image_encoder(&$encoder) { argument 32 $this->image_encoder = $encoder;
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Operation/Response/ |
| H A D | ExtendedResponse.php | 115 $encoder = new LdapEncoder(); 118 $value = $encoder->encode($value); 120 $value = $encoder->encode($value->toAsn1());
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Control/ |
| H A D | PwdPolicyResponseControl.php | 147 $encoder = new LdapEncoder(); 153 $warnings = $encoder->complete($child, AbstractType::TAG_TYPE_SEQUENCE, [ 170 $error = $encoder->complete($child, AbstractType::TAG_TYPE_ENUMERATED)->getValue();
|
| H A D | Control.php | 164 $encoder = new LdapEncoder(); 166 $value = $encoder->encode($this->controlValue); 168 $value = $encoder->encode($this->controlValue->toAsn1());
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Operation/Request/ |
| H A D | ExtendedRequest.php | 125 $encoder = new LdapEncoder(); 127 $value = $encoder->encode($value); 129 $value = $encoder->encode($value->toAsn1());
|
| /plugin/pureldap/vendor/freedsx/asn1/ |
| H A D | README.md | 16 To encode an ASN.1 structure you can use the helper methods of the Asn1 class and an encoder: 35 # Encode using the more strict DER encoder 41 To decode an ASN.1 structure you can get an encoder and call decode then parse it out: 52 # Get a BER encoder instance, call decode on it, and $pdu will now be a sequence object.
|
| H A D | CHANGELOG.md | 39 * Removed the 'constructed_only' and 'primitive_only' options for the encoder. 47 * Improve general encoder performance with various optimizations.
|
| /plugin/aichat/vendor/mehrab-wj/tiktoken-php/ |
| D | README.md | 19 $encoder = new Encoder(); 21 $tokens = $encoder->encode($prompt); // [32, 72, 318, 3608]
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Protocol/ |
| H A D | LdapQueue.php | 54 public function __construct(Socket $socket, EncoderInterface $encoder = null) argument 56 parent::__construct($socket, $encoder ?? new LdapEncoder()); 146 $encoded = $this->encoder->encode($message->toAsn1());
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Protocol/Queue/ |
| H A D | ClientQueue.php | 48 public function __construct(SocketPool $socketPool, EncoderInterface $encoder = null) argument 51 parent::__construct($socketPool->connect(), $encoder);
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Control/Sorting/ |
| H A D | SortingControl.php | 106 $encoder = new LdapEncoder(); 118 … $useReverseOrder = $encoder->complete($keyItem, AbstractType::TAG_TYPE_BOOLEAN)->getValue();
|
| /plugin/bpmnio/script/ |
| D | bpmnio_render.js | 87 const encoder = new TextEncoder(); 88 const data = encoder.encode(xml);
|
| /plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Search/Filter/ |
| H A D | SubstringFilter.php | 203 $encoder = new LdapEncoder(); 204 …$type = $type instanceof IncompleteType ? $encoder->complete($type, AbstractType::TAG_TYPE_SEQUENC…
|