Home
last modified time | relevance | path

Searched refs:encoder (Results 1 – 25 of 52) sorted by relevance

123

/plugin/aichat/vendor/mehrab-wj/tiktoken-php/tests/
H A DEncoderTest.php11 $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 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
[all...]
/plugin/pureldap/vendor/freedsx/socket/src/FreeDSx/Socket/Queue/
H A DAsn1MessageQueue.php34 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/
H A DQuery.php80 $encoder = function ($str) {
84 $encoder = 'rawurlencode';
86 $encoder = 'urlencode';
93 $k = $encoder($k);
97 $qs .= '=' . $encoder($v);
104 $qs .= '=' . $encoder($vv);
/plugin/pureldap/vendor/freedsx/sasl/src/FreeDSx/Sasl/Challenge/
H A DAnonymousChallenge.php33 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 DCramMD5Challenge.php38 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 DPlainChallenge.php29 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 DDigestMD5Challenge.php51 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/jcapture/src/com/hammurapi/jcapture/
H A DCaptureConfig.java62 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/aichat/vendor/mehrab-wj/tiktoken-php/src/
H A DEncoder.php16 private array $encoder = []; variable in TikToken\\Encoder
32 $encoder = file_get_contents(__DIR__.'/../data/encoder.json');
33 if (false === $encoder) {
34 throw new \RuntimeException('Unable to load encoder.json');
36 $this->encoder = json_decode($encoder, true, 512, JSON_THROW_ON_ERROR);
95 $encoded = $this->encoder[$newBpeToken] ?? $newBpeToken;
/plugin/html2pdf/html2pdf/html2ps/
H A Doutput._generic.ps.class.php31 function set_image_encoder(&$encoder) { argument
32 $this->image_encoder = $encoder;
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Operation/Request/
H A DExtendedRequest.php125 $encoder = new LdapEncoder();
127 $value = $encoder->encode($value);
129 $value = $encoder->encode($value->toAsn1());
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Operation/Response/
H A DExtendedResponse.php115 $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 DPwdPolicyResponseControl.php147 $encoder = new LdapEncoder();
153 $warnings = $encoder->complete($child, AbstractType::TAG_TYPE_SEQUENCE, [
170 $error = $encoder->complete($child, AbstractType::TAG_TYPE_ENUMERATED)->getValue();
H A DControl.php164 $encoder = new LdapEncoder();
166 $value = $encoder->encode($this->controlValue);
168 $value = $encoder->encode($this->controlValue->toAsn1());
/plugin/aichat/vendor/mehrab-wj/tiktoken-php/
H A DREADME.md19 $encoder = new Encoder();
21 $tokens = $encoder->encode($prompt); // [32, 72, 318, 3608]
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Protocol/
H A DLdapQueue.php54 public function __construct(Socket $socket, EncoderInterface $encoder = null)
56 parent::__construct($socket, $encoder ?? new LdapEncoder());
146 $encoded = $this->encoder->encode($message->toAsn1());
50 __construct(Socket $socket, EncoderInterface $encoder = null) global() argument
/plugin/pureldap/vendor/freedsx/asn1/
H A DREADME.md16 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 DCHANGELOG.md39 * Removed the 'constructed_only' and 'primitive_only' options for the encoder.
47 * Improve general encoder performance with various optimizations.
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Protocol/Queue/
H A DClientQueue.php48 public function __construct(SocketPool $socketPool, EncoderInterface $encoder = null)
51 parent::__construct($socketPool->connect(), $encoder);
43 __construct(SocketPool $socketPool, EncoderInterface $encoder = null) global() argument
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Control/Sorting/
H A DSortingControl.php106 $encoder = new LdapEncoder();
118 $useReverseOrder = $encoder->complete($keyItem, AbstractType::TAG_TYPE_BOOLEAN)->getValue();
/plugin/pureldap/vendor/freedsx/ldap/src/FreeDSx/Ldap/Search/Filter/
H A DSubstringFilter.php203 $encoder = new LdapEncoder();
204 $type = $type instanceof IncompleteType ? $encoder->complete($type, AbstractType::TAG_TYPE_SEQUENCE) : $type;
/plugin/aichat/
H A DEmbeddings.php94 * Get the token encoder instance
380 $encoder = $this->getTokenEncoder();
381 while (count($encoder->encode(implode(' ', $this->sentenceQueue))) > self::MAX_OVERLAP_LEN) {
/plugin/pureldap/vendor/freedsx/socket/
H A DCHANGELOG.md32 * Update the ASN.1 Message Queue to use the last position of the encoder.
/plugin/openid/Auth/OpenID/
H A DServer.php1887 private $encoder; variable in Auth_OpenID_Server
1906 $this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
1977 return $this->encoder->encode($response);
/plugin/fedauth/Auth/OpenID/
H A DServer.php1686 $this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
1748 return $this->encoder->encode($response);

123