text:
heroku-buildpack-sass
=====================

heroku-buildpack-sass is a [custom buildpack][1] for [Heroku][2] that compiles
[Sass][3]/SCSS files to CSS.

Unless you're deploying a static site, using no other languages, and serving
with magic(!), you'll probably want to combine this with other buildpacks using
[heroku-buildpack-compose][4] or [heroku-buildpack-multi][5].

This buildpack finds all .scss and .sass files, and compiles them to files
with the extension changed to .css and any parent directories named scss or
sass changed to css. So `./scss/style.scss` becomes `./css/style.css`.

If you think of a better way, [sethwklein][6] tries to keep up with pull
requests and issues!

[1]: https://devcenter.heroku.com/articles/buildpacks#using-a-custom-buildpack
[2]: https://www.heroku.com/
[3]: http://sass-lang.com/
[4]: https://github.com/bwhmather/heroku-buildpack-compose
[5]: https://github.com/ddollar/heroku-buildpack-multi
[6]: https://github.com/sethwklein

redpajama_set_name: RedPajamaGithub


text:
MatrixXcf A = MatrixXcf::Random(4,4);
cout << "Here is a random 4x4 matrix, A:" << endl << A << endl << endl;
ComplexSchur<MatrixXcf> schurOfA(A);
cout << "The unitary matrix U is:" << endl << schurOfA.matrixU() << endl;


text:
A PHP class which brings back @-prefix usage in CURL requests to live, even in PHP 7. <http://lazycurl.net/>

## About
The [PHP CURL library](http://php.net/manual/book.curl.php) is an extremely powerful tool supporting a wide range of protocols. Yet it may be too powerful that there are [over 140 customizable options](http://php.net/manual/function.curl-setopt.php) and some of them are affecting one another. LazyCurl is developed to provide an easy-to-use interface for most HTTP requests.

The @-prefix usage in PHP CURL was once a handy method for uploading file in HTTP POST requests. It was deprecated as of PHP 5.5 for various reasons. LazyCurl provides a secure approach in using @-prefix and extends its capability from local file to HTTP URL.

## Features
* Simplify HTTP CURL requests.
* Default using the best SSL CURL options with [updated CA certificates](https://curl.haxx.se/docs/caextract.html).
* Logs HTTP requests being sent and captures responses including redirections.
* Extracts all cookies from HTTP responses.
* Supports multi-dimensional array in HTTP POST requests.
* Provides @-prefix usage in PHP 5 and PHP 7 with @URL capability.
* Streaming transfers large file without memory concern.
* Supports FTP stream upload single file.
* Only 11 methods to achieve everything above.

## How To Use @-prefix With LazyCurl
For example, if you want to upload some files with form data:

```php
<?php
	$fields = array(
		'username' => 'John Smith',
		'email' => 'john.smith@example.com',
		'photo' => '@/local/path/photo.jpg',
		'application' => '@http://example.com/user/john.smith/signed.pdf',
		'twitter' => '@john.smith.does.not.exist'
	);
	$files = array(
		'@/local/path/photo.jpg',
		'@http://example.com/user/john.smith/signed.pdf'
	);
	$curl = new LazyCurl();
	$curl->exec('https://example.com/path/to/target.php', 'POST', $fields, $files);
	$curl->close();
?>
```

That's it. The target PHP will receive text fields 'username', 'email' and 'twitter', together with 2 uploaded files.

## System Requirement
* PHP 5.3+ *(recommended 5.5+ for better @-prefix handling)*
* CURL Library 7.19.4+ *(recommended 7.34+ for better security with TLS v1.1 / v1.2)*
* [PHP Fileinfo extension](http://php.net/manual/book.fileinfo.php) *(optional for mime type detection)*
* [PHP OpenSSL extension](http://php.net/manual/book.openssl.php) *(required for secure connections)*
* Read / Write permission is required for persistent cookies and temporary downloaded files

## Tested Environment
* PHP 5.3.0 with CURL Library 7.19.4 *(destination may reject SSL v2 / v3 connections due to [known vulnerability](https://drownattack.com/))*
* PHP 5.4.0 with CURL Library 7.24.0 *(destination may reject SSL v2 / v3 connections due to [known vulnerability](https://drownattack.com/))*
* PHP 5.5.0 with CURL Library 7.30.0 *(destination may reject SSL v2 / v3 connections due to [known vulnerability](https://drownattack.com/))*
* PHP 5.6.0 with CURL Library 7.36.0
* PHP 7.0.3 with CURL Library 7.46.0 *(fatal error due to a [PHP bug #71225](https://bugs.php.net/bug.php?id=71225) since 7.0.0, fixed in 7.0.3)*
* PHP 7.1.0 with CURL Library 7.51.0

## Examples
LazyCurl comes with 6 examples to show you how to use all 11 methods in different scenarios. Simply upload to web server and open in browser to see them in live.
* http_get_basic.php - *get response, log and cookie from a simple HTTP GET request*
* http_get_advanced.php - *enable cookie, setting CURL options and reset to default*
* http_post_basic.php - *send HTTP POST request with an associative multi-dimensional array*
* http_post_advanced.php - *uploading local and remote file using @-prefix*
* file_transfer.php - *stream download HTTP file and stream upload to FTP server*
* file_cookie.php - *save persistent cookie to local file*

## Notes
Additional notes are embedded in the PHP class. It is strongly recommended you read them carefully to fully understand its capabilities and limitations.

## License
The contents of this repository is released under the [MIT license](http://opensource.org/licenses/MIT).


text:
using System;
using System.Collections;

namespace Org.BouncyCastle.Crypto.Tls
{
	public abstract class PskTlsClient
		:TlsClient
	{
		protected TlsCipherFactory cipherFactory;
		protected TlsPskIdentity pskIdentity;

        protected TlsClientContext context;

        protected CompressionMethod selectedCompressionMethod;
		protected CipherSuite selectedCipherSuite;

        public PskTlsClient(TlsPskIdentity pskIdentity)
			: this(new DefaultTlsCipherFactory(), pskIdentity)
		{
		}

        public PskTlsClient(TlsCipherFactory cipherFactory, TlsPskIdentity pskIdentity)
		{
			this.cipherFactory = cipherFactory;
			this.pskIdentity = pskIdentity;
		}

        public virtual void Init(TlsClientContext context)
		{
			this.context = context;
		}

        public virtual CipherSuite[] GetCipherSuites()
		{
			return new CipherSuite[] {
				CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA,
				CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA,
				CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA,
				CipherSuite.TLS_DHE_PSK_WITH_RC4_128_SHA,
				CipherSuite.TLS_RSA_PSK_WITH_AES_256_CBC_SHA,
				CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA,
				CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA,
				CipherSuite.TLS_RSA_PSK_WITH_RC4_128_SHA,
				CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA,
				CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA,
				CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA,
				CipherSuite.TLS_PSK_WITH_RC4_128_SHA,
			};
		}

        public virtual IDictionary GetClientExtensions()
		{
			return null;
		}

        public virtual CompressionMethod[] GetCompressionMethods()
		{
			return new CompressionMethod[] { CompressionMethod.NULL };
		}

        public virtual void NotifySessionID(byte[] sessionID)
		{
			// Currently ignored
		}

        public virtual void NotifySelectedCipherSuite(CipherSuite selectedCipherSuite)
		{
			this.selectedCipherSuite = selectedCipherSuite;
		}

        public virtual void NotifySelectedCompressionMethod(CompressionMethod selectedCompressionMethod)
		{
			this.selectedCompressionMethod = selectedCompressionMethod;
		}

        public virtual void NotifySecureRenegotiation(bool secureRenegotiation)
		{
			if (!secureRenegotiation)
			{
				/*
				 * RFC 5746 3.4. If the extension is not present, the server does not support
				 * secure renegotiation; set secure_renegotiation flag to FALSE. In this case,
				 * some clients may want to terminate the handshake instead of continuing; see
				 * Section 4.1 for discussion.
				 */
//				throw new TlsFatalAlert(AlertDescription.handshake_failure);
			}
		}

        public virtual void ProcessServerExtensions(IDictionary serverExtensions)
		{
		}

        public virtual TlsKeyExchange GetKeyExchange()
		{
			switch (selectedCipherSuite)
			{
				case CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA:
				case CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA:
				case CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA:
                case CipherSuite.TLS_PSK_WITH_RC4_128_SHA:
					return CreatePskKeyExchange(KeyExchangeAlgorithm.PSK);

                case CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA:
				case CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA:
				case CipherSuite.TLS_RSA_PSK_WITH_AES_256_CBC_SHA:
                case CipherSuite.TLS_RSA_PSK_WITH_RC4_128_SHA:
                    return CreatePskKeyExchange(KeyExchangeAlgorithm.RSA_PSK);

                case CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA:
				case CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA:
				case CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA:
                case CipherSuite.TLS_DHE_PSK_WITH_RC4_128_SHA:
                    return CreatePskKeyExchange(KeyExchangeAlgorithm.DHE_PSK);

                default:
					/*
					 * Note: internal error here; the TlsProtocolHandler verifies that the
					 * server-selected cipher suite was in the list of client-offered cipher
					 * suites, so if we now can't produce an implementation, we shouldn't have
					 * offered it!
					 */
					throw new TlsFatalAlert(AlertDescription.internal_error);
			}
		}

        public abstract TlsAuthentication GetAuthentication();

        public virtual TlsCompression GetCompression()
		{
			switch (selectedCompressionMethod)
			{
				case CompressionMethod.NULL:
					return new TlsNullCompression();

                default:
					/*
					 * Note: internal error here; the TlsProtocolHandler verifies that the
					 * server-selected compression method was in the list of client-offered compression
					 * methods, so if we now can't produce an implementation, we shouldn't have
					 * offered it!
					 */
					throw new TlsFatalAlert(AlertDescription.internal_error);
			}
		}

        public virtual TlsCipher GetCipher()
		{
			switch (selectedCipherSuite)
			{
				case CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA:
				case CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA:
				case CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA:
					return cipherFactory.CreateCipher(context, EncryptionAlgorithm.cls_3DES_EDE_CBC,
						DigestAlgorithm.SHA);

                case CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA:
				case CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA:
				case CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA:
					return cipherFactory.CreateCipher(context, EncryptionAlgorithm.AES_128_CBC,
						DigestAlgorithm.SHA);

                case CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA:
				case CipherSuite.TLS_RSA_PSK_WITH_AES_256_CBC_SHA:
				case CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA:
					return cipherFactory.CreateCipher(context, EncryptionAlgorithm.AES_256_CBC,
						DigestAlgorithm.SHA);

                case CipherSuite.TLS_PSK_WITH_RC4_128_SHA:
                case CipherSuite.TLS_RSA_PSK_WITH_RC4_128_SHA:
                case CipherSuite.TLS_DHE_PSK_WITH_RC4_128_SHA:
                    return cipherFactory.CreateCipher(context, EncryptionAlgorithm.RC4_128,
                        DigestAlgorithm.SHA);

                default:
					/*
					 * Note: internal error here; the TlsProtocolHandler verifies that the
					 * server-selected cipher suite was in the list of client-offered cipher
					 * suites, so if we now can't produce an implementation, we shouldn't have
					 * offered it!
					 */
					throw new TlsFatalAlert(AlertDescription.internal_error);
			}
		}

        protected virtual TlsKeyExchange CreatePskKeyExchange(KeyExchangeAlgorithm keyExchange)
		{
			return new TlsPskKeyExchange(context, keyExchange, pskIdentity);
		}
	}
}


text:
[![Circle CI](https://circleci.com/gh/mikeastock/cbs_sports/tree/master.svg?style=svg)](https://circleci.com/gh/mikeastock/cbs_sports/tree/master)
[![Code Climate](https://codeclimate.com/github/mikeastock/cbs_sports/badges/gpa.svg)](https://codeclimate.com/github/mikeastock/cbs_sports)
[![Test Coverage](https://codeclimate.com/github/mikeastock/cbs_sports/badges/coverage.svg)](https://codeclimate.com/github/mikeastock/cbs_sports/coverage)

This gem is a Ruby wrapper around the CBSSports API

## Installation

Add this line to your application's Gemfile:

```ruby
gem "cbs_sports"
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install cbs_sports

## Usage

### Client

When you create a client you can specify the response format you want. It defaults to JSON. You must also specify a sport for which you want data.
```ruby
client = CBSSports.client(response_format: :json, sport: :baseball)
```

### Players
```ruby
client.players
=> [
  {
    "id"         => "2044515",
    "fullname"   => "Martin Agosta",
    "firstname"  => "Martin",
    "lastname"   => "Agosta",
    "position"   => "SP",
    "age"        => 24,
    "pro_team"   => "SF",
    "pro_status" => "M",
    "photo"      => "https://www.cbssports.com/images/players/unknown-hat-170x170.png"
  }
]
```

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

1. Fork it ( https://github.com/[my-github-username]/cbs_sports/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request


text:
double attackTime; // NO

void EStateAttack::enter(){
	this->enemy->getAnimation()->changeAnimation(2, 1, 6, false, 0.6);
	this->enemy->speed = 7.0;
	attackTime = 0;

	if(enemy->life <= 0){
		enemy->vy = 0;
		enemy->changeState(Enemy::EStates::DEAD);
	}
}

void EStateAttack::exit(){

}

void EStateAttack::update(const double dt_){

	attackTime += dt_;
	const double attackTotalTime = 0.6;

	/// @todo Refactor the way the enemy hurts the player.

	if(this->enemy->vx >= 0){
		this->enemy->vx = 0;
	}
	else{
		this->enemy->vx = -0.001; //Set this value so that the Enemy won't Flip when attacking
	}

	if(attackTime > attackTotalTime){
		if(Enemy::pVulnerable){
			Enemy::pLife--;
		}
		this->enemy->changeState(Enemy::EStates::ALERT);
	}
}

EStateAttack::EStateAttack(Enemy* const enemy_) :
	StateEnemy(enemy_)
{

}


text:
from argparse import ArgumentParser

parser = ArgumentParser()
parser.add_argument('--h5',type=str)
parser.add_argument('--name',type=str,default=None)
args = parser.parse_args()

import extra_vars
from subtlenet.models import particles as train
import imp

workdir = '/'.join(args.h5.split('/')[:-1])
if not args.name:
    args.name = args.h5.split('/')[-1].replace('.h5','')

imp.load_source('setup', workdir + '/setup.py')

train.infer(args.h5, args.name)


text:
package com.baidubce.services.bvw.model.workflow;

import com.baidubce.auth.BceCredentials;
import com.baidubce.model.AbstractBceRequest;

/**
 * List workflow request
 */
public class WorkflowListRequest extends AbstractBceRequest {

    /**
     * The page number of list by page request.
     */
    private int pageNo;
    /**
     * The number of element in each page.
     */
    private int pageSize;
    /**
     * The workflow status.
     */
    private WorkflowStatus status;
    /**
     * The workflow name, support fuzzy query.
     */
    private String name;
    /**
     * The begin time of creating workflow time, using UTC format.
     * eg. "2019-04-07T16:00:00Z"
     */
    private String beginTime;
    /**
     * The end time of creating workflow time, using UTC format.
     * eg. "2019-04-07T16:00:00Z"
     */
    private String endTime;

    /**
     * Construct a list workflow request with specified parameters..
     *
     * @param pageNo    The number of page
     * @param pageSize  The number of elements in each page
     * @param status    The workflow status
     * @param name      The workflow name
     * @param beginTime The begin time of creating workflow time
     * @param endTime   The end time of creating workflow time
     * @return A workflow list request
     */
    public static WorkflowListRequest of(int pageNo, int pageSize, WorkflowStatus status, String name, String beginTime,
                                         String endTime) {
        WorkflowListRequest listRequest = new WorkflowListRequest();
        listRequest.setPageNo(pageNo);
        listRequest.setPageSize(pageSize);
        listRequest.setStatus(status);
        listRequest.setBeginTime(beginTime);
        listRequest.setEndTime(endTime);
        listRequest.setName(name);
        return listRequest;
    }

    /**
     * Construct a list workflow request with specified parameters..
     *
     * @param pageNo   The number of page
     * @param pageSize The number of elements in each page
     * @return A workflow list request
     */
    public static WorkflowListRequest of(int pageNo, int pageSize) {
        return of(pageNo, pageSize, null, null, null, null);
    }

    /**
     * Construct a list workflow request with specified parameters..
     *
     * @param pageNo    The number of page
     * @param pageSize  The number of elements in each page
     * @param name      The workflow name
     * @return A workflow list request
     */
    public static WorkflowListRequest of(int pageNo, int pageSize, String name) {
        return of(pageNo, pageSize, null, name, null, null);
    }

    /**
     * Construct a list workflow request with specified parameters..
     *
     * @param pageNo    The number of page
     * @param pageSize  The number of elements in each page
     * @param status    The workflow status
     * @return A workflow list request
     */
    public static WorkflowListRequest of(int pageNo, int pageSize, WorkflowStatus status) {
        return of(pageNo, pageSize, status, null, null, null);
    }

    /**
     * Construct a list workflow request with specified parameters..
     *
     * @param pageNo    The number of page
     * @param pageSize  The number of elements in each page
     * @param beginTime The begin time of creating workflow time
     * @param endTime   The end time of creating workflow time
     * @return A workflow list request
     */
    public static WorkflowListRequest of(int pageNo, int pageSize, String beginTime, String endTime) {
        return of(pageNo, pageSize, null, null, beginTime, endTime);
    }

    @Override
    public WorkflowListRequest withRequestCredentials(BceCredentials credentials) {
        this.setRequestCredentials(credentials);
        return this;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public WorkflowStatus getStatus() {
        return status;
    }

    public void setStatus(WorkflowStatus status) {
        this.status = status;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}


text:
class DX12APIEntry : public APIEntry
{
public:
    //-----------------------------------------------------------------------------
    /// Constructor used to initialize members of new DX12APIEntry instances.
    /// \param inThreadId The thread Id that the call was invoked from.
    /// \param inInterfaceWrapper The wrapped instance used to invoke the API call.
    /// \param inFunctionId The FunctionId of the API call.
    /// \param inArguments The arguments used in the invocation of the API function.
    /// \param inReturnValue The return value of the API call.
    /// \param inReturnValueFlags The flags used in printing the return value.
    //-----------------------------------------------------------------------------
    DX12APIEntry(UINT inThreadId, IUnknown* inInterfaceWrapper, FuncId inFunctionId, const std::string& inArguments, INT64 inReturnValue, ReturnDisplayType inReturnValueFlags);

    //-----------------------------------------------------------------------------
    /// Constructor used to initialize members of new DX12APIEntry instances.
    /// \param inThreadId The thread Id that the call was invoked from.
    /// \param inInterfaceWrapper The wrapped instance used to invoke the API call.
    /// \param inFunctionId The FunctionId of the API call.
    /// \param inNumParameters The number of parameters used to invoke this API call.
    /// \param inParameters A ParameterEntry structure describing the parameter metadata for this API call.
    //-----------------------------------------------------------------------------
    DX12APIEntry(UINT inThreadId, IUnknown* inInterfaceWrapper, FuncId inFunctionId, UINT32 inNumParameters, ParameterEntry* inParameters);

    //-----------------------------------------------------------------------------
    /// Default destructor
    //-----------------------------------------------------------------------------
    virtual ~DX12APIEntry();

    //-----------------------------------------------------------------------------
    /// Use API-specific methods to determine the API name for this entry.
    /// \returns A null-terminated string containing the API name.
    //-----------------------------------------------------------------------------
    virtual const char* GetAPIName() const;

    //-----------------------------------------------------------------------------
    /// Append this APIEntry's information to the end of the API Trace response.
    /// \param out The API Trace response stream to append to.
    /// \param inStartTime The start time for the API call.
    /// \param inEndTime The end time for the API call.
    //-----------------------------------------------------------------------------
    virtual void AppendAPITraceLine(gtASCIIString& out, double inStartTime, double inEndTime) const;

    //-----------------------------------------------------------------------------
    /// Get the API parameters as a single string. Build the string from the
    /// individual parameters if necessary
    /// \return parameter string
    //-----------------------------------------------------------------------------
    const char* GetParameterString() const;

    //-----------------------------------------------------------------------------
    /// Check if this logged APIEntry is a Draw call.
    /// \returns True if the API is a draw call. False if it's not.
    //-----------------------------------------------------------------------------
    bool IsDrawCall() const;

    //-----------------------------------------------------------------------------
    /// Set the return value for this logged APIEntry
    /// \param inReturnValue The return value
    /// \param inReturnValueFlags A flag indicating how the return value should
    /// be displayed
    //-----------------------------------------------------------------------------
    void SetReturnValue(INT64 inReturnValue, ReturnDisplayType inReturnValueFlags);

    /// The return value for this API call.
    INT64 mReturnValue;

    /// The display flags for the return value for this API call. Used to indicate how to display the value (hex, decimal, bitfield etc)
    ReturnDisplayType mReturnValueFlags;

    /// The optional sample Id used to associate this API call with GPA profiling results.
    UINT64 mSampleId;

    /// This is an IUnknown* to the Wrapped_ID3D12 wrapper interface.
    IUnknown* mWrapperInterface;

private:
    //-----------------------------------------------------------------------------
    /// Add a single API trace parameter to the list
    /// \param index the parameter index (0-based)
    /// \param type the data type of the parameter
    /// \param pParameterValue pointer to the parameter value
    /// Each buffer parameter is BYTES_PER_PARAMETER bytes. The first 4 bytes
    /// are for the parameter data type. The next byte is the number of bytes
    /// used to store the parameter value. The remaining space is used for the
    /// parameter value.
    //-----------------------------------------------------------------------------
    void AddParameter(unsigned int index, int type, const void* pParameterValue);

    //-----------------------------------------------------------------------------
    /// Convert an API parameter from raw data to a string for display
    /// \param paramType the data type of the parameter
    /// \param dataLength the number of bytes used to contain the data
    /// \param pRawData a pointer to the raw data
    /// \param ioParameterString a buffer passed in where the string is to be stored
    //-----------------------------------------------------------------------------
    void GetParameterAsString(PARAMETER_TYPE paramType, const char dataLength, const char* pRawData, char* ioParameterString) const;

    /// The number of parameters this API call takes
    UINT32 mNumParameters;

    /// A flag set when results are retrieved from GPA.
    bool mbGotProfileResults;

    /// The pre-Bottom timestamp for this entry
    double mPreBottomTimestamp;

    /// The post-Bottom timestamp for this entry
    double mPostBottomTimestamp;

    /// buffer used to store raw parameter data for formatting later
    char* mParameterBuffer;
};

#endif // DX12APIENTRY_H


text:
<?php
namespace Kir\Logging\Essentials\Formatters;

class DefaultFormatter implements Formatter {
	/**
	 * @var string
	 */
	private $format = '';

	/**
	 * @param string $format
	 */
	public function __construct($format = '%-9s  %s') {
		$this->format = $format;
	}

	/**
	 * @param string $level
	 * @param string $message
	 * @param array $context
	 * @param array $parameters
	 * @return string
	 */
	public function format($level, $message, array $context, array $parameters) {
		$message = strtr($message, array("\t" => ' ', "\r" => '\\r', "\n" => '\\n'));
		$level = str_pad(strtoupper($level), 9, ' ', STR_PAD_RIGHT);
		return sprintf($this->format, $level, $message);
	}
}


text:
package org.apache.jena.sparql.modify;

import java.util.* ;
import java.util.function.Function;

import org.apache.jena.atlas.iterator.Iter ;
import org.apache.jena.ext.com.google.common.collect.Iterators;
import org.apache.jena.graph.Node ;
import org.apache.jena.graph.NodeFactory ;
import org.apache.jena.graph.Triple ;
import org.apache.jena.sparql.core.Quad ;
import org.apache.jena.sparql.core.Substitute ;
import org.apache.jena.sparql.core.Var ;
import org.apache.jena.sparql.engine.binding.Binding ;
import org.apache.jena.sparql.util.ModelUtils ;

public class TemplateLib
{
    // See also Substitute -- combine?
    // Or is this specifc enough to CONSTRUCT/Update template processing?

    // TODO We could eliminate some of the duplication in this class by writing generic methods and adding a shared super-interface to Triple and Quad

    /**
     * Take a template, as a list of quad patterns, a default graph, and an iterator of bindings,
     * and produce an iterator of quads that results from applying the template to the bindings.
     */
    public static Iterator<Quad> template(List<Quad> quads, final Node dftGraph, Iterator<Binding> bindings)
    {
        if ( quads == null || quads.isEmpty() ) return null ;

        quads = remapDefaultGraph(quads, dftGraph);
        return calcQuads(quads, bindings);
    }

    protected static List<Quad> remapDefaultGraph(List<Quad> quads, final Node dftGraph)
    {
        // The default graph has been set to something else.
        if ( dftGraph != null )
        {
			quads = Iter
					.map(quads,
							q -> (!q.isDefaultGraph()) ? q :
							new Quad(dftGraph, q.getSubject(), q.getPredicate(), q.getObject()));
		}
        return quads;
    }

    /** Substitute into triple patterns */
    public static Iterator<Triple> calcTriples(final List<Triple> triples, Iterator<Binding> bindings)
    {
        return Iterators.concat(Iter.map(bindings, new Function<Binding, Iterator<Triple>>()
        {
            Map<Node, Node> bNodeMap = new HashMap<>() ;
            @Override
            public Iterator<Triple> apply(final Binding b)
            {
                // Iteration is a new mapping of bnodes.
                bNodeMap.clear() ;

                List<Triple> tripleList = new ArrayList<>(triples.size());
                for (Triple triple : triples)
                {
                    Triple q = subst(triple, b, bNodeMap) ;
                    if ( ! q.isConcrete() || ! ModelUtils.isValidAsStatement(q.getSubject(), q.getPredicate(), q.getObject()) )
                    {
                        //Log.warn(TemplateLib.class, "Unbound quad: "+FmtUtils.stringForQuad(quad)) ;
                        continue ;
                    }
                    tripleList.add(q);
                }
                return tripleList.iterator();
            }
        }));
    }

    /** Substitute into quad patterns */
    public static Iterator<Quad> calcQuads(final List<Quad> quads, Iterator<Binding> bindings)
    {
        return Iterators.concat(Iter.map(bindings, new Function<Binding, Iterator<Quad>>()
        {
            Map<Node, Node> bNodeMap = new HashMap<>() ;
            @Override
            public Iterator<Quad> apply(final Binding b)
            {
                // Iteration is a new mapping of bnodes.
                bNodeMap.clear() ;

                List<Quad> quadList = new ArrayList<>(quads.size());
                for (Quad quad : quads)
                {
                    Quad q = subst(quad, b, bNodeMap) ;
                    if ( ! q.isConcrete() )
                    {
                        //Log.warn(TemplateLib.class, "Unbound quad: "+FmtUtils.stringForQuad(quad)) ;
                        continue ;
                    }
                    quadList.add(q);
                }
                return quadList.iterator();
            }
        }));
    }

    /** Substitute into a quad, with rewriting of bNodes */
    public static Quad subst(Quad quad, Binding b, Map<Node, Node> bNodeMap)
    {
        Node g = quad.getGraph() ;
        Node s = quad.getSubject() ;
        Node p = quad.getPredicate() ;
        Node o = quad.getObject() ;

        Node g1 = g ;
        Node s1 = s ;
        Node p1 = p ;
        Node o1 = o ;

        // replace blank nodes.
        if ( g1.isBlank() || Var.isBlankNodeVar(g1) )
            g1 = newBlank(g1, bNodeMap) ;

        if ( s1.isBlank() || Var.isBlankNodeVar(s1) )
            s1 = newBlank(s1, bNodeMap) ;

        if ( p1.isBlank() || Var.isBlankNodeVar(p1) )
            p1 = newBlank(p1, bNodeMap) ;

        if ( o1.isBlank() || Var.isBlankNodeVar(o1) )
            o1 = newBlank(o1, bNodeMap) ;

        Quad q = quad ;
        if ( s1 != s || p1 != p || o1 != o || g1 != g )
            q = new Quad(g1, s1, p1, o1) ;

        Quad q2 = Substitute.substitute(q, b) ;
        return q2 ;
    }

    /** Substitute into a triple, with rewriting of bNodes */
    public static Triple subst(Triple triple, Binding b, Map<Node, Node> bNodeMap)
    {
        Node s = triple.getSubject() ;
        Node p = triple.getPredicate() ;
        Node o = triple.getObject() ;

        Node s1 = s ;
        Node p1 = p ;
        Node o1 = o ;

        if ( s1.isBlank() || Var.isBlankNodeVar(s1) )
            s1 = newBlank(s1, bNodeMap) ;

        if ( p1.isBlank() || Var.isBlankNodeVar(p1) )
            p1 = newBlank(p1, bNodeMap) ;

        if ( o1.isBlank() || Var.isBlankNodeVar(o1) )
            o1 = newBlank(o1, bNodeMap) ;

        Triple t = triple ;
        if ( s1 != s || p1 != p || o1 != o )
            t = new Triple(s1, p1, o1) ;

        Triple t2 = Substitute.substitute(t, b) ;
        return t2 ;
    }

    /** generate a blank node consistently */
    private static Node newBlank(Node n, Map<Node, Node> bNodeMap)
    {
        if ( ! bNodeMap.containsKey(n) )
            bNodeMap.put(n, NodeFactory.createAnon() );
        return bNodeMap.get(n) ;
    }
}


text:
<?php
// Autoloader
require_once __DIR__ . '/../tests/bootstrap.php';

// Script
use imageColor\models\Image;

$elephpant = new Image();
$elephpant->load(__DIR__ . '/php.jpg');
$elephpantColors = $elephpant->primaryColors();

$rubyShirt = new Image();
$rubyShirt->load(__DIR__ . '/ruby.jpg');
$rubyShirtColors = $rubyShirt->primaryColors();

print_r(array(
    'ruby.jpg' => $rubyShirtColors,
    'php.jpg' => $elephpantColors,
));


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>org.apache.poi.hssf.record (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes

Package org.apache.poi.hssf.record

Record package contains class representations for XLS binary strutures.

See: Description

Interface Summary

Interface
Description

BiffHeaderInput

CellValueRecordInterface

The cell value record interface is implemented by all classes of type Record that
 contain cell values.

Margin

The margin interface is a parent used to define left, right, top and bottom margins.

Class Summary

Class
Description

AbstractEscherHolderRecord

The escher container record is used to hold escher records.

ArrayRecord

ARRAY (0x0221)

 Treated in a similar way to SharedFormulaRecord

AutoFilterInfoRecord

The AutoFilterInfo record specifies the number of columns that have AutoFilter enabled
 and indicates the beginning of the collection of AutoFilter records.

BackupRecord

Title:        Backup Record

BlankRecord

Title:        Blank cell record (0x0201)

BOFRecord

Title: Beginning Of File (0x0809)

BookBoolRecord

Title:        Save External Links record (BookBool)

BoolErrRecord

Creates new BoolErrRecord.

BottomMarginRecord

Record for the bottom margin.

BoundSheetRecord

Title:        Bound Sheet Record (aka BundleSheet) (0x0085)

CalcCountRecord

Title:        Calc Count Record
 Description:  Specifies the maximum times the gui should perform a formula
               recalculation.

CalcModeRecord

Title:        Calc Mode Record

CellRecord

Base class for all cell value records (implementors of CellValueRecordInterface).

CFHeaderRecord

Conditional Formatting Header record CFHEADER (0x01B0)

CFRuleRecord

Conditional Formatting Rule Record (0x01B1).

CFRuleRecord.ComparisonOperator

CodepageRecord

Title: Codepage Record

ColumnInfoRecord

Title: COLINFO Record (0x007D)

 Description:  Defines with width and formatting for a range of columns

 REFERENCE:  PG 293 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

CommonObjectDataSubRecord

The common object data record is used to store all common preferences for an excel object.

ContinueRecord

Title:        Continue Record(0x003C) - Helper class used primarily for SST Records

CountryRecord

Title:        Country Record (aka WIN.INI country)

CRNCountRecord

XCT - CRN Count

CRNRecord

Title:       CRN(0x005A)

 Description: This record stores the contents of an external cell or cell range

 REFERENCE:   OOO 5.23

DateWindow1904Record

Title:        Date Window 1904 Flag record

DBCellRecord

Title:        DBCell Record (0x00D7)

 Description:  Used by Excel and other MS apps to quickly find rows in the sheets.

DBCellRecord.Builder

DConRefRecord

DConRef records specify a range in a workbook (internal or external) that serves as a data source
 for pivot tables or data consolidation.

DefaultColWidthRecord

Title:        Default Column Width Record (0x0055)

DefaultRowHeightRecord

Title:        Default Row Height Record
 Description:  Row height for rows with undefined or not explicitly defined
               heights.

DeltaRecord

Title:        Delta Record (0x0010)

 Description:  controls the accuracy of the calculations

 REFERENCE:  PG 303 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

DimensionsRecord

Title:        Dimensions Record

DrawingGroupRecord

DrawingRecord

DrawingRecord (0x00EC)

DrawingRecordForBiffViewer

This is purely for the biff viewer.

DrawingSelectionRecord

MsoDrawingSelection (0x00ED)

 Reference:
 [MS-OGRAPH].pdf sec 2.4.69

DSFRecord

Title: Double Stream Flag Record (0x0161)

 Description:  tells if this is a double stream file.

DVALRecord

Title:        DATAVALIDATIONS Record (0x01B2)

 Description:  used in data validation ;
               This record is the list header of all data validation records (0x01BE) in the current sheet.

DVRecord

Title:        DATAVALIDATION Record (0x01BE)

 Description:  This record stores data validation settings and a list of cell ranges
               which contain these settings.

EmbeddedObjectRefSubRecord

ftPictFmla (0x0009)

 A sub-record within the OBJ record which stores a reference to an object
 stored in a separate entry within the OLE2 compound file.

EndSubRecord

ftEnd (0x0000)

 The end data record is used to denote the end of the subrecords.

EOFRecord

End Of File record.

EscherAggregate

This class is used to aggregate the MSODRAWING and OBJ record
 combinations.

ExtendedFormatRecord

Title:        Extended Format Record
 Description:  Probably one of the more complex records.

ExternalNameRecord

EXTERNALNAME (0x0023)

ExternSheetRecord

EXTERNSHEET (0x0017)

 A List of Indexes to  EXTERNALBOOK (supplemental book) Records

ExtSSTRecord

Title:        Extended Static String Table (0x00FF)

 Description: This record is used for a quick lookup into the SST record.

ExtSSTRecord.InfoSubRecord

FeatHdrRecord

Title: FeatHdr (Feature Header) Record

FeatRecord

Title: Feat (Feature) Record

FilePassRecord

Title: File Pass Record (0x002F)

 Description: Indicates that the record after this record are encrypted.

FilePassRecord.Rc4KeyData

FilePassRecord.XorKeyData

FileSharingRecord

Title:        FILESHARING (0x005B)

 Description:  stores the encrypted readonly for a workbook (write protect)
 This functionality is accessed from the options dialog box available when performing 'Save As'.

 REFERENCE:  PG 314 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

FnGroupCountRecord

Title: Function Group Count Record

FontRecord

Title:        Font Record (0x0031)

 - describes a font in the workbook (index = 0-3,5-infinity - skip 4)

FooterRecord

Title:        Footer Record (0x0015)

 Description:  Specifies the footer for a sheet

FormatRecord

Title:        Format Record (0x041E)

 Description:  describes a number format -- those goofy strings like $(#,###)

 REFERENCE:  PG 317 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

FormulaRecord

Formula Record (0x0006).

FtCblsSubRecord

This structure appears as part of an Obj record that represents a checkbox or radio button.

FtCfSubRecord

The FtCf structure specifies the clipboard format of the picture-type Obj record containing this FtCf.

FtPioGrbitSubRecord

This structure appears as part of an Obj record that represents image display properties.

GridsetRecord

Title:        Gridset Record.

GroupMarkerSubRecord

ftGmo (0x0006)

 The group marker record is used as a position holder for groups.

GutsRecord

Title:        Guts Record

HCenterRecord

Title:        HCenter record (0x0083)

HeaderFooterBase

Common header/footer base class

HeaderFooterRecord

The HEADERFOOTER record stores information added in Office Excel 2007 for headers/footers.

HeaderRecord

Title:        Header Record

HideObjRecord

Title:        Hide Object Record

HorizontalPageBreakRecord

HorizontalPageBreak (0x001B) record that stores page breaks at rows

HyperlinkRecord

The HyperlinkRecord (0x01B8) wraps an HLINK-record
  from the Excel-97 format.

IndexRecord

Title:        Index Record (0x020B)

 Description:  Occurs right after BOF, tells you where the DBCELL records are for a sheet
               Important for locating cells

 NOT USED IN THIS RELEASE
 REFERENCE:  PG 323 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

InterfaceEndRecord

Title: Interface End Record (0x00E2)

InterfaceHdrRecord

Title: Interface Header Record (0x00E1)

IterationRecord

Title:        Iteration Record (0x0011)

 Description:  Tells whether to iterate over forumla calculations or not
               (if a formula is dependant upon another formula's result)
               (odd feature for something that can only have 32 elements in
                a formula!)

LabelRecord

Label Record (0x0204) - read only support for strings stored directly in the cell..

LabelSSTRecord

Title:        Label SST Record

LbsDataSubRecord

This structure specifies the properties of a list or drop-down list embedded object in a sheet.

LbsDataSubRecord.LbsDropData

This structure specifies properties of the dropdown list control

LeftMarginRecord

Record for the left margin.

MergeCellsRecord

Title: Merged Cells Record (0x00E5)

 Description:  Optional record defining a square area of cells to "merged" into one cell.

MMSRecord

Title: MMS Record

MulBlankRecord

Title:        Multiple Blank cell record(0x00BE)

 Description:  Represents a  set of columns in a row with no value but with styling.

MulRKRecord

MULRK (0x00BD)

 Used to store multiple RK numbers on a row.

NameCommentRecord

Title: NAMECMT Record (0x0894)

 Description: Defines a comment associated with a specified name.

NameRecord

Title:        DEFINEDNAME Record (0x0018)

 Description:  Defines a named range within a workbook.

NoteRecord

NOTE: Comment Associated with a Cell (0x001C)

NoteStructureSubRecord

ftNts (0x000D)

 Represents a NoteStructure sub record.

NumberRecord

NUMBER (0x0203) Contains a numeric cell value.

ObjectProtectRecord

Title: Object Protect Record

ObjRecord

OBJRECORD (0x005D)

 The obj record is used to hold various graphic objects and controls.

OldCellRecord

Base class for all old (Biff 2 - Biff 4) cell value records
  (implementors of CellValueRecordInterface).

OldFormulaRecord

Formula Record (0x0006 / 0x0206 / 0x0406) - holds a formula in
  encoded form, along with the value if a number

OldLabelRecord

Biff2 - Biff 4 Label Record (0x0004 / 0x0204) - read only support for
  strings stored directly in the cell, from the older file formats that
  didn't use LabelSSTRecord

OldSheetRecord

Title:        Bound Sheet Record (aka BundleSheet) (0x0085) for BIFF 5

OldStringRecord

Biff2 - Biff 4 Label Record (0x0007 / 0x0207) - read only support for
  formula string results.

PageBreakRecord

Record that contains the functionality page breaks (horizontal and vertical)

PageBreakRecord.Break

Since both records store 2byte integers (short), no point in
 differentiating it in the records.

PaletteRecord

PaletteRecord (0x0092) - Supports custom palettes.

PaneRecord

Describes the frozen and unfozen panes.

PasswordRecord

Title:        Password Record (0x0013)

 Description:  stores the encrypted password for a sheet or workbook (HSSF doesn't support encryption)
 REFERENCE:  PG 371 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

PasswordRev4Record

Title:        Protection Revision 4 password Record (0x01BC)

 Description:  Stores the (2 byte??!!) encrypted password for a shared workbook

 REFERENCE:  PG 374 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

PrecisionRecord

Title:        Precision Record

PrintGridlinesRecord

Title:        Print Gridlines Record

PrintHeadersRecord

Title:        Print Headers Record

PrintSetupRecord

Title:        PAGESETUP (0x00A1)

 Description:  Stores print setup options -- bogus for HSSF (and marked as such)

 REFERENCE:  PG 385 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

 REFERENCE:  PG 412 Microsoft Excel Binary File Format Structure v20091214

ProtectionRev4Record

Title:        Protection Revision 4 Record (0x01AF)

 Description:  describes whether this is a protected shared/tracked workbook

 REFERENCE:  PG 373 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

ProtectRecord

Title: Protect Record (0x0012)

 Description:  defines whether a sheet or workbook is protected (HSSF DOES NOT SUPPORT ENCRYPTION)

 HSSF now supports the simple "protected" sheets (where they are not encrypted and open office et al
 ignore the password record entirely).

RecalcIdRecord

Title: Recalc Id Record (0x01C1)

 Description:  This record contains an ID that marks when a worksheet was last
               recalculated.

Record

Title: Record
 Description: All HSSF Records inherit from this class.

RecordBase

Common base class of Record and RecordAggregate

RecordFactory

Title:  Record Factory

RecordFactoryInputStream

A stream based way to get at complete records, with
 as low a memory footprint as possible.

RecordInputStream

Title:  Record Input Stream

RefModeRecord

Title:        RefMode Record

RefreshAllRecord

Title:        Refresh All Record (0x01B7)

 Description:  Flag whether to refresh all external data when loading a sheet.

RightMarginRecord

Record for the right margin.

RKRecord

Title:        RK Record (0x027E)

 Description:  An internal 32 bit number with the two most significant bits
               storing the type.

RowRecord

Title:        Row Record (0x0208)

 Description:  stores the row information for the sheet.

SaveRecalcRecord

Title:        Save Recalc Record

ScenarioProtectRecord

Title: Scenario Protect Record

SCLRecord

Specifies the window's zoom magnification.

SelectionRecord

Title:        Selection Record (0x001D)

SharedFormulaRecord

Title:        SHAREDFMLA (0x04BC) SharedFormulaRecord
 Description:  Primarily used as an excel optimization so that multiple similar formulas
               are not written out too many times.

SharedValueRecordBase

Common base class for SharedFormulaRecord, ArrayRecord and
 TableRecord which are have similarities.

SSTRecord

Title:        Static String Table Record (0x00FC)

 Description:  This holds all the strings for LabelSSTRecords.

StandardRecord

Subclasses of this class (the majority of BIFF records) are non-continuable.

StringRecord

STRING (0x0207)

 Stores the cached result of a text formula

StyleRecord

Title:        Style Record (0x0293)

 Description:  Describes a builtin to the gui or user defined style

SubRecord

Subrecords are part of the OBJ class.

SupBookRecord

Title:        Sup Book - EXTERNALBOOK (0x01AE)

 Description:  A External Workbook Description (Supplemental Book)
               Its only a dummy record for making new ExternSheet Record

TabIdRecord

Title: Sheet Tab Index Array Record (0x013D)

 Description:  Contains an array of sheet id's.

TableRecord

DATATABLE (0x0236)

 TableRecord - The record specifies a data table.

TableStylesRecord

TABLESTYLES (0x088E)

TextObjectRecord

The TXO record (0x01B6) is used to define the properties of a text box.

TopMarginRecord

Record for the top margin.

UncalcedRecord

Title: Uncalced Record

UnicodeString
Deprecated

Use UnicodeString instead

UnknownRecord

Title:        Unknown Record (for debugging)

 Description:  Unknown record just tells you the sid so you can figure out
               what records you are missing.

UserSViewBegin

The UserSViewBegin record specifies settings for a custom view associated with the sheet.

UserSViewEnd

The UserSViewEnd record marks the end of the settings for a custom view associated with the sheet

UseSelFSRecord

Title:        USESELFS (0x0160) - Use Natural Language Formulas Flag

 Description:  Tells the GUI if this was written by something that can use
               "natural language" formulas.

VCenterRecord

Title:        VCenter record

VerticalPageBreakRecord

VerticalPageBreak (0x001A) record that stores page breaks at columns

WindowOneRecord

Title:        Window1 Record

WindowProtectRecord

Title: Window Protect Record (0x0019)

 Description:  flags whether workbook windows are protected

 REFERENCE:  PG 424 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

WindowTwoRecord

Title:        Window Two Record

WriteAccessRecord

Title: Write Access Record (0x005C)

 Description: Stores the username of that who owns the spreadsheet generator (on unix the user's
 login, on Windoze its the name you typed when you installed the thing)

 REFERENCE: PG 424 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

WriteProtectRecord

Title:        Write Protect Record

WSBoolRecord

Title:        WSBOOL (0x0081) (called SHEETPR in OOO doc)

 Description:  stores workbook settings  (aka its a big "everything we didn't
               put somewhere else")

Exception Summary

Exception
Description

RecordFormatException

Title:     Record Format Exception
 Description: Used by records to indicate invalid format/data.

RecordInputStream.LeftoverDataException

For use in BiffViewer which may construct Records that don't completely
 read all available data.

Package org.apache.poi.hssf.record Description

Record package contains class representations for XLS binary strutures.  Its very
low level.

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:

Apache POI Project

See Also:

org.apache.poi.hssf.eventmodel,
RecordFactory

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev Package

Next Package

Frames

No Frames

All Classes

                Copyright 2015 The Apache Software Foundation or
        its licensors, as applicable.


text:
  @copyright (c) 2017 Upstart Illustration LLC. All rights reserved.
  ]]

local TextField = Class()

function TextField.new(self)
    function self.setTitle(title)
    end

    function self.setPassword(pass)
    end
end

return TextField


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>KlusterKite: KlusterKite.API.Endpoint.Installer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="navtree.css" rel="stylesheet" type="text/css"/>

<link href="search/search.css" rel="stylesheet" type="text/css"/>

<link href="doxygen.css" rel="stylesheet" type="text/css" />

KlusterKite
    0.0.0

A framework to create scalable and redundant services based on awesome Akka.Net project.

Protected Member Functions |
Protected Attributes |
List of all members

KlusterKite.API.Endpoint.Installer Class Reference

Installing components from current library
 More...

Inheritance diagram for KlusterKite.API.Endpoint.Installer:

  <map id="KlusterKite.API.Endpoint.Installer_map" name="KlusterKite.API.Endpoint.Installer_map">
<area href="class_kluster_kite_1_1_core_1_1_base_installer.html" title="Base class to install KlusterKite plugin components " alt="KlusterKite.Core.BaseInstaller" shape="rect" coords="0,0,197,24"/>
</map>

Protected Member Functions

override Config 	GetAkkaConfig ()

 	Gets default akka configuration for current module  More...

override IEnumerable< string > 	GetRoles ()

override void 	RegisterComponents (ContainerBuilder container, Config config)

Protected Attributes

override decimal 	AkkaConfigLoadPriority => PrioritySharedLib

 	Gets priority for ordering akka configurations. Highest priority will override lower priority.  More...

 Protected Attributes inherited from KlusterKite.Core.BaseInstaller

const decimal 	PriorityClusterRole = 100M

 	Predefined priority to load configuration for plugins, that handles node role functionality  More...

const decimal 	PrioritySharedLib = 10M

 	Predefined priority to load configuration for plugins, that handles other plugins functionality  More...

const decimal 	PriorityTest = 100M

 	Predefined priority to load configuration for plugins, that handles unit tests  More...

Additional Inherited Members

 Static Public Member Functions inherited from KlusterKite.Core.BaseInstaller

static IList< BaseInstaller > 	GetRegisteredBaseInstallers (ContainerBuilder container)

 	Gets the list of all registered installers  More...

static Config 	GetStackedConfig (ContainerBuilder container, Config config)

 	Generates overall akka config from all registered modules (with respect to external provided configuration file)  More...

 Properties inherited from KlusterKite.Core.BaseInstaller

abstract decimal 	AkkaConfigLoadPriority [get]

 	Gets priority for ordering akka configurations. Highest priority will override lower priority.  More...

Detailed Description

Installing components from current library

Definition at line 25 of file Installer.cs.

Member Function Documentation

◆ GetAkkaConfig()

          override Config KlusterKite.API.Endpoint.Installer.GetAkkaConfig
          (
          	)

protected

Gets default akka configuration for current module

Returns

Akka configuration

◆ GetRoles()

          override IEnumerable<string> KlusterKite.API.Endpoint.Installer.GetRoles
          (
          	)

protected

Definition at line 40 of file Installer.cs.

◆ RegisterComponents()

          override void KlusterKite.API.Endpoint.Installer.RegisterComponents
          (
          ContainerBuilder
          container,

          Config
          config

          )

protected

Definition at line 46 of file Installer.cs.

Member Data Documentation

◆ AkkaConfigLoadPriority

          override decimal KlusterKite.API.Endpoint.Installer.AkkaConfigLoadPriority => PrioritySharedLib

protected

Gets priority for ordering akka configurations. Highest priority will override lower priority.

Consider using

See also

BaseInstaller

integrated constants

Definition at line 31 of file Installer.cs.

The documentation for this class was generated from the following file:

KlusterKite.API/KlusterKite.API.Endpoint/Installer.cs

KlusterKite

API

Endpoint

Installer

Generated by

     1.8.13


text:
A command-line tool and module for printing colourful
[bole](http://github.com/rvagg/bole) logs.

## Usage

[![NPM](https://nodei.co/npm/bistre.png)](https://nodei.co/npm/bistre/)

Install globally to use as a command-line tool:

``` bash
npm install -g bistre
```

Simply pipe your bole output into the command-line tool, e.g.:

``` bash
node server.js | bistre
```

Install locally to use as a module:

### stream = bistre()

Creates a transform stream that takes line-delimted JSON logs as input and
outputs ANSI-highlighted logs for you.

``` javascript
var bole = require('bole')
var pretty = require('bistre')()

bole.output({
    level: 'info'
  , stream: pretty
})

pretty.pipe(process.stdout)
```

![bistre](http://imgur.com/SP38CCK.png)

## See Also
- [bole](https://github.com/rvagg/bole)
- [debug-to-json](https://github.com/yoshuawuyts/debug-to-json)

## License

MIT. See [LICENSE.md](http://github.com/hughsk/bistre/blob/master/LICENSE.md) for details.


text:
import React from 'react';

import { render } from '@testing-library/react';

import { pressArrowDown, pressTab } from 'react-day-picker/test/actions';
import { getDayButton } from 'react-day-picker/test/po';
import { freezeBeforeAll } from 'react-day-picker/test/utils';

import Example from '@examples/focus-recursive';

const today = new Date(2022, 5, 10);
freezeBeforeAll(today);

function setup() {
  render(<Example />);
}

beforeEach(() => {
  setup();
  pressTab();
  pressTab();
  pressTab();
  pressArrowDown();
  pressArrowDown();
  pressArrowDown();
  pressArrowDown();
});

test('the first selected day should have focus', () => {
  expect(getDayButton(new Date(2022, 5, 22))).toHaveFocus();
});


text:
// Type definitions for cypress 0.1
// Project: https://cypress.io
// Definitions by: Gert Hengeveld <https://github.com/ghengeveld>
//                 Mike Woudenberg <https://github.com/mikewoudenberg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

declare namespace Cypress {
  type FileContents = string | any[] | object;
  type HistoryDirection = "back" | "forward";
  type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "HEAD" | "TRACE" | "CONNECT";
  type RequestBody = string | object;
  type ViewportOrientation = "portrait" | "landscape";

  interface Core {
    /**
     * @see https://on.cypress.io/api/config
     */
    config(): object;
    config(key: string): any;
    config(key: string, value: any): void;
    config(Object: object): void;

    /**
     * @see https://on.cypress.io/api/env
     */
    env(): object;
    env(key: string): any;
    env(key: string, value: any): void;
    env(Object: object): void;

    /**
     * @see https://on.cypress.io/api/commands
     */
    addChildCommand(name: string, fn: (args: any[]) => void): void;
    addDualCommand(name: string, fn: (args: any[]) => void): void;
    addParentCommand(name: string, fn: (args: any[]) => void): void;

    _: any;
    $: any;
    minimatch: any;
    moment: any;
    Blob: any;
    Promise: any;

    /**
     * @see https://on.cypress.io/api/cookies
     */
    Cookies: {
      debug(enabled: boolean, options?: DebugOptions): void;
      preserveOnce(...names: string[]): void;
      defaults(options: CookieDefaults): void;
    };

    /**
     * @see https://on.cypress.io/api/dom
     */
    Dom: {
      isHidden(element: object): boolean;
    };

    /**
     * @see https://on.cypress.io/api/api-server
     */
    Server: {
      defaults(options: ServerOptions): void;
    };
  }

  interface Chainable {
    /**
     * @see https://on.cypress.io/api/and
     */
    and(chainers: string, value?: any): Chainable;
    and(chainers: string, method: string, value: any): Chainable;
    and(fn: (args: any[]) => void): Chainable;

    /**
     * @see https://on.cypress.io/api/as
     */
    as(alias: string): Chainable;

    /**
     * @see https://on.cypress.io/api/blur
     */
    blur(options?: BlurOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/check
     */
    check(options?: CheckOptions): Chainable;
    check(value: string|string[]): Chainable; // no options

    /**
     * @see https://on.cypress.io/api/children
     */
    children(options?: LoggableTimeoutable): Chainable;
    children(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/clear
     */
    clear(options?: ClearOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/clearcookie
     */
    clearCookie(name: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/clearcookies
     */
    clearCookies(options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/clearlocalstorage
     */
    clearLocalStorage(key?: string): Chainable;
    clearLocalStorage(re: RegExp): Chainable;

    /**
     * @see https://on.cypress.io/api/click
     */
    click(options?: ClickOptions): Chainable;
    click(position: string, options?: ClickOptions): Chainable;
    click(x: number, y: number, options?: ClickOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/closest
     */
    closest(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/contains
     */
    contains(text: string, options?: LoggableTimeoutable): Chainable;
    contains(num: number|RegExp): Chainable;
    contains(selector: string, text: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/dblclick
     */
    dblclick(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/debug
     */
    debug(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/document
     */
    document(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/each
     */
    each(fn: (args: any[]) => void): Chainable;

    /**
     * @see https://on.cypress.io/api/end
     */
    end(): Chainable;

    /**
     * @see https://on.cypress.io/api/eq
     */
    eq(index: number, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/exec
     */
    exec(command: string, options?: ExecOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/filter
     */
    filter(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/find
     */
    find(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/first
     */
    first(options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/fixture
     */
    fixture(path: string, options?: Timeoutable): Chainable; // no log?
    fixture(path: string, encoding: string, options?: Timeoutable): Chainable; // no log?

    /**
     * @see https://on.cypress.io/api/focus
     */
    focus(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/focused
     */
    focused(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/get
     */
    get(selector: string, options?: LoggableTimeoutable): Chainable;
    get(alias: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/getcookie
     */
    getCookie(name: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/getcookies
     */
    getCookies(options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/go
     */
    go(direction: HistoryDirection|number, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/hash
     */
    hash(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/invoke
     */
    invoke(functionName: string, args: any[]): Chainable;

    /**
     * @see https://on.cypress.io/api/its
     */
    its(propertyName: string): Chainable;

    /**
     * @see https://on.cypress.io/api/last
     */
    last(options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/location
     */
    location(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/log
     */
    log(message: string, args: any): Chainable;

    /**
     * @see https://on.cypress.io/api/next
     */
    next(options?: LoggableTimeoutable): Chainable;
    next(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/not
     */
    not(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/parent
     */
    parent(options?: LoggableTimeoutable): Chainable;
    parent(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/parents
     */
    parents(options?: LoggableTimeoutable): Chainable;
    parents(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/pause
     */
    pause(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/prev
     */
    prev(options?: LoggableTimeoutable): Chainable;
    prev(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/readfile
     */
    readFile(filePath: string, options?: Timeoutable): Chainable; // no log?
    readFile(filePath: string, encoding: string, options?: Timeoutable): Chainable; // no log?

    /**
     * @see https://on.cypress.io/api/reload
     */
    reload(options?: LoggableTimeoutable): Chainable;
    reload(forceReload: boolean): Chainable; // no options?

    /**
     * @see https://on.cypress.io/api/request
     */
    request(url: string, body?: RequestBody): Chainable;
    request(method: HttpMethod, url: string, body?: RequestBody): Chainable;
    request(options: RequestOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/root
     */
    root(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/route
     */
    route(url: string, response?: any): Chainable;
    route(method: string, url: string, response?: any): Chainable;
    route(fn: (args: any[]) => void | RouteOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/screenshot
     */
    screenshot(options?: LoggableTimeoutable): Chainable;
    screenshot(fileName: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/select
     */
    select(text: string|string[], options?: SelectOptions): Chainable;
    select(value: string|string[], options?: SelectOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/server
     */
    server(options?: ServerOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/setcookie
     */
    setCookie(name: string, value: string, options?: SetCookieOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/should
     */
    should(chainers: string, value?: any): Chainable;
    should(chainers: string, method: string, value: any): Chainable;
    should(fn: (args: any[]) => void): Chainable;

    /**
     * @see https://on.cypress.io/api/siblings
     */
    siblings(options?: LoggableTimeoutable): Chainable;
    siblings(selector: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/spread
     */
    spread(fn: (args: any[]) => void): Chainable;

    /**
     * @see https://on.cypress.io/api/submit
     */
    submit(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/then
     */
    then(fn: (args: any[]) => void): Chainable;

    /**
     * @see https://on.cypress.io/api/title
     */
    title(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/type
     */
    type(text: string, options?: TypeOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/uncheck
     */
    uncheck(options?: CheckOptions): Chainable;
    uncheck(values: string[]): Chainable; // no options? missing single value variant

    /**
     * @see https://on.cypress.io/api/url
     */
    url(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/viewport
     */
    viewport(width: number, height: number, options?: Loggable): Chainable;
    viewport(preset: string, orientation: ViewportOrientation, options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/visit
     */
    visit(url: string, options?: VisitOptions): Chainable;

    /**
     * @see https://on.cypress.io/api/wait
     */
    wait(ms: number|string[]): Chainable; // no options?
    wait(alias: string, options?: LoggableTimeoutable): Chainable;

    /**
     * @see https://on.cypress.io/api/window
     */
    window(options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/within
     */
    within(fn: (args: any[]) => void): Chainable;
    within(options: Loggable, fn: (args: any[]) => void): Chainable; // inconsistent argument order

    /**
     * @see https://on.cypress.io/api/wrap
     */
    wrap(Object: object, options?: Loggable): Chainable;

    /**
     * @see https://on.cypress.io/api/writefile
     */
    writeFile(filePath: string, contents: FileContents, options?: Timeoutable): Chainable;
    writeFile(filePath: string, contents: FileContents, encoding: string, options?: Timeoutable): Chainable;
  }

  interface DebugOptions {
    verbose?: boolean;
  }

  interface CookieDefaults {
    whitelist?: string | string[] | RegExp | ((args: any[]) => void);
  }

  interface Loggable {
    log?: boolean;
  }

  interface Timeoutable {
    timeout?: number;
  }

  interface LoggableTimeoutable extends Loggable, Timeoutable {}

  interface BlurOptions extends Loggable {
    force?: boolean;
  }

  interface CheckOptions extends Loggable, Timeoutable {
    interval?: number;
    force?: boolean;
  }

  interface ClearOptions extends Loggable, Timeoutable {
    force?: boolean;
    interval?: number;
  }

  interface ClickOptions extends Loggable, Timeoutable {
    force?: boolean;
    multiple?: boolean;
    interval?: number;
  }

  interface ExecOptions extends Loggable, Timeoutable {
    failOnNonZeroExit?: boolean;
    env?: object;
  }

  interface RequestOptions extends Loggable, Timeoutable {
    auth?: object;
    body?: RequestBody;
    failOnStatusCode?: boolean;
    followRedirect?: boolean;
    form?: boolean;
    gzip?: boolean;
    headers?: object;
    method?: HttpMethod;
    qs?: string;
    url: string;
  }

  interface RouteOptions {
    method?: HttpMethod;
    url?: string | RegExp;
    response?: any;
    status?: number;
    delay?: number;
    headers?: object;
    force404?: boolean;
    onRequest?(args: any[]): void;
    onResponse?(args: any[]): void;
    onAbort?(args: any[]): void;
  }

  interface SelectOptions extends Loggable, Timeoutable {
    force?: boolean;
    interval?: number;
  }

  interface ServerOptions {
    delay?: number;
    method?: HttpMethod;
    status?: number;
    headers?: object;
    response?: any;
    onRequest?(args: any[]): void;
    onResponse?(args: any[]): void;
    onAbort?(args: any[]): void;
    enable?: boolean;
    force404?: boolean;
    urlMatchingOptions?: object;
    whitelist?(args: any[]): void;
  }

  interface SetCookieOptions extends Loggable, Timeoutable {
    path?: string;
    domain?: string;
    secure?: boolean;
    httpOnly?: boolean;
    expiry?: number;
  }

  interface TypeOptions extends Loggable, Timeoutable {
    delay?: number;
    force?: boolean;
    release?: boolean;
    interval?: number;
  }

  interface VisitOptions extends Loggable, Timeoutable {
    onBeforeLoad?(args: any[]): void;
    onLoad?(args: any[]): void;
  }
}

declare const cy: Cypress.Chainable;


text:
module ApplicationHelper
  include PluploadHelper
end