text:
package persistence.populator;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import persistence.models.Country;
import persistence.repositories.CountryRepository;

/**
 * @author sergio
 */
@Component
@Profile("development")
public class CountryPopulator implements Serializable {

    private static Logger logger = LoggerFactory.getLogger(CountryPopulator.class);

    @Autowired
    private CountryRepository countryRepository;

    @Order(1)
    @EventListener(ContextRefreshedEvent.class)
    @Transactional
    public void contextRefreshedEvent() {
        logger.info("SETUP COUNTRY INIT DATA");
        List<Country> countries = new ArrayList();
        countries.add(new Country("AF", "Afghanistan"));
        countries.add(new Country("AL", "Albania"));
        countries.add(new Country("DZ", "Algeria"));
        countries.add(new Country("DS", "American Samoa"));
        countries.add(new Country("AD", "Andorra"));
        countries.add(new Country("AO", "Angola"));
        countries.add(new Country("AI", "Anguilla"));
        countries.add(new Country("AQ", "Antarctica"));
        countries.add(new Country("AG", "Antigua and Barbuda"));
        countries.add(new Country("AR", "Argentina"));
        countries.add(new Country("AM", "Armenia"));
        countries.add(new Country("AW", "Aruba"));
        countries.add(new Country("AU", "Australia"));
        countries.add(new Country("AT", "Austria"));
        countries.add(new Country("AZ", "Azerbaijan"));
        countries.add(new Country("BS", "Bahamas"));
        countries.add(new Country("BH", "Bahrain"));
        countries.add(new Country("BD", "Bangladesh"));
        countries.add(new Country("BB", "Barbados"));
        countries.add(new Country("BY", "Belarus"));
        countries.add(new Country("BE", "Belgium"));
        countries.add(new Country("BZ", "Belize"));
        countries.add(new Country("BJ", "Benin"));
        countries.add(new Country("BM", "Bermuda"));
        countries.add(new Country("BT", "Bhutan"));
        countries.add(new Country("BO", "Bolivia"));
        countries.add(new Country("BA", "Bosnia and Herzegovina"));
        countries.add(new Country("BW", "Botswana"));
        countries.add(new Country("BV", "Bouvet Island"));
        countries.add(new Country("BR", "Brazil"));
        countries.add(new Country("IO", "British Indian Ocean Territory"));
        countries.add(new Country("BN", "Brunei Darussalam"));
        countries.add(new Country("BG", "Bulgaria"));
        countries.add(new Country("BF", "Burkina Faso"));
        countries.add(new Country("BI", "Burundi"));
        countries.add(new Country("KH", "Cambodia"));
        countries.add(new Country("CM", "Cameroon"));
        countries.add(new Country("CA", "Canada"));
        countries.add(new Country("CV", "Cape Verde"));
        countries.add(new Country("KY", "Cayman Islands"));
        countries.add(new Country("CF", "Central African Republic"));
        countries.add(new Country("TD", "Chad"));
        countries.add(new Country("CL", "Chile"));
        countries.add(new Country("CN", "China"));
        countries.add(new Country("CX", "Christmas Island"));
        countries.add(new Country("CC", "Cocos (Keeling) Islands"));
        countries.add(new Country("CO", "Colombia"));
        countries.add(new Country("KM", "Comoros"));
        countries.add(new Country("CG", "Congo"));
        countries.add(new Country("CK", "Cook Islands"));
        countries.add(new Country("CR", "Costa Rica"));
        countries.add(new Country("HR", "Croatia (Hrvatska)"));
        countries.add(new Country("CU", "Cuba"));
        countries.add(new Country("CY", "Cyprus"));
        countries.add(new Country("CZ", "Czech Republic"));
        countries.add(new Country("DK", "Denmark"));
        countries.add(new Country("DJ", "Djibouti"));
        countries.add(new Country("DM", "Dominica"));
        countries.add(new Country("DO", "Dominican Republic"));
        countries.add(new Country("TP", "East Timor"));
        countries.add(new Country("EC", "Ecuador"));
        countries.add(new Country("EG", "Egypt"));
        countries.add(new Country("SV", "El Salvador"));
        countries.add(new Country("GQ", "Equatorial Guinea"));
        countries.add(new Country("ER", "Eritrea"));
        countries.add(new Country("EE", "Estonia"));
        countries.add(new Country("ET", "Ethiopia"));
        countries.add(new Country("FK", "Falkland Islands (Malvinas)"));
        countries.add(new Country("FO", "Faroe Islands"));
        countries.add(new Country("FJ", "Fiji"));
        countries.add(new Country("FI", "Finland"));
        countries.add(new Country("FR", "France"));
        countries.add(new Country("FX", "France, Metropolitan"));
        countries.add(new Country("GF", "French Guiana"));
        countries.add(new Country("PF", "French Polynesia"));
        countries.add(new Country("TF", "French Southern Territories"));
        countries.add(new Country("GA", "Gabon"));
        countries.add(new Country("GM", "Gambia"));
        countries.add(new Country("GE", "Georgia"));
        countries.add(new Country("DE", "Germany"));
        countries.add(new Country("GH", "Ghana"));
        countries.add(new Country("GI", "Gibraltar"));
        countries.add(new Country("GK", "Guernsey"));
        countries.add(new Country("GR", "Greece"));
        countries.add(new Country("GL", "Greenland"));
        countries.add(new Country("GD", "Grenada"));
        countries.add(new Country("GP", "Guadeloupe"));
        countries.add(new Country("GU", "Guam"));
        countries.add(new Country("GT", "Guatemala"));
        countries.add(new Country("GN", "Guinea"));
        countries.add(new Country("GW", "Guinea-Bissau"));
        countries.add(new Country("GY", "Guyana"));
        countries.add(new Country("HT", "Haiti"));
        countries.add(new Country("HM", "Heard and Mc Donald Islands"));
        countries.add(new Country("HN", "Honduras"));
        countries.add(new Country("HK", "Hong Kong"));
        countries.add(new Country("HU", "Hungary"));
        countries.add(new Country("IS", "Iceland"));
        countries.add(new Country("IN", "India"));
        countries.add(new Country("IM", "Isle of Man"));
        countries.add(new Country("ID", "Indonesia"));
        countries.add(new Country("IR", "Iran (Islamic Republic of)"));
        countries.add(new Country("IQ", "Iraq"));
        countries.add(new Country("IE", "Ireland"));
        countries.add(new Country("IL", "Israel"));
        countries.add(new Country("IT", "Italy"));
        countries.add(new Country("CI", "Ivory Coast"));
        countries.add(new Country("JE", "Jersey"));
        countries.add(new Country("JM", "Jamaica"));
        countries.add(new Country("JP", "Japan"));
        countries.add(new Country("JO", "Jordan"));
        countries.add(new Country("KZ", "Kazakhstan"));
        countries.add(new Country("KE", "Kenya"));
        countries.add(new Country("KI", "Kiribati"));
        countries.add(new Country("KP", "Korea, Democratic People''s Republic of'"));
        countries.add(new Country("KR", "Korea, Republic of"));
        countries.add(new Country("XK", "Kosovo"));
        countries.add(new Country("KW", "Kuwait"));

        try{
            countryRepository.deleteAll();
            countryRepository.save(countries);
        } catch(Exception e){
            logger.info(e.getMessage());
        }

    }
}


text:
package android.text.method;

@com.francetelecom.rd.stubs.annotation.ClassDone(0)
public class ScrollingMovementMethod
  extends BaseMovementMethod  implements MovementMethod
{
  // Constructors

  public ScrollingMovementMethod(){
    super();
  }
  // Methods

  public static MovementMethod getInstance(){
    return (MovementMethod) null;
  }
  protected boolean end(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("MovementMethod")
  public boolean onTouchEvent(android.widget.TextView arg1, android.text.Spannable arg2, android.view.MotionEvent arg3){
    return false;
  }
  protected boolean pageUp(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean pageDown(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean left(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean top(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean right(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean bottom(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean down(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean lineStart(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean lineEnd(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  protected boolean up(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("MovementMethod")
  public void onTakeFocus(android.widget.TextView arg1, android.text.Spannable arg2, int arg3){
  }
  protected boolean home(android.widget.TextView arg1, android.text.Spannable arg2){
    return false;
  }
}

redpajama_set_name: RedPajamaGithub


text:
require 'spec_helper'

RSpec.describe UrlParser::OptionSetter do

  context "to_hash" do

    it "returns an empty hash if there were no options or block" do
      instance = described_class.new
      expect(instance.to_hash).to eq({})
    end

    it "bases the hash results on the original options" do
      instance = described_class.new(unescape: false)
      settings = instance.to_hash
      expect(settings).to eq unescape: false
    end

    it "overwrites option settings if a method was called" do
      blk = ->(uri) { uri.unescape! }
      instance = described_class.new(unescape: false, &blk)
      settings = instance.to_hash
      expect(settings).to eq unescape: true
    end

    it "converts an #unescape! call to an unescape: true setting" do
      blk = ->(uri) { uri.unescape! }
      instance = described_class.new(&blk)
      settings = instance.to_hash
      expect(settings).to eq unescape: true
    end

    it "converts an #unembed! call to an unembed: true setting" do
      blk = ->(uri) { uri.unembed! }
      instance = described_class.new(&blk)
      settings = instance.to_hash
      expect(settings).to eq unembed: true
    end

    it "converts a #canonicalize! call to a canonicalize: true setting" do
      blk = ->(uri) { uri.canonicalize! }
      instance = described_class.new(&blk)
      settings = instance.to_hash
      expect(settings).to eq canonicalize: true
    end

    it "converts a #normalize! call to a normalize: true setting" do
      blk = ->(uri) { uri.normalize! }
      instance = described_class.new(&blk)
      settings = instance.to_hash
      expect(settings).to eq normalize: true
    end

    it "converts a #clean! call to all true settings" do
      blk = ->(uri) { uri.clean! }
      instance = described_class.new(&blk)
      expect(instance).to receive :unescape!
      expect(instance).to receive :unembed!
      expect(instance).to receive :canonicalize!
      expect(instance).to receive :normalize!
      instance.to_hash
    end

    it "ignores undefined method calls" do
      blk = ->(uri) { uri.parse! }
      instance = described_class.new(&blk)
      expect{ instance.to_hash }.not_to raise_error
    end

  end

end


text:
class pingoptions {
  count: Number;
  payload: String;
  timeout: Number;
  constructor(opts) {
    this.count = opts.count || 1;
    this.payload = opts.payload || 'pinger';
    this.timeout = opts.timeout || 1000;
  }
}

export = pingoptions;


text:
(function (module) {
    module.WorksheetsSelectorView = Backbone.View.extend({

        // TODO merge DataSources and worksheets dialog box classes
        className: "scrollableSources",

        initialize: function () {
            var self = this;

            self.collection = self.options.models;

            if (!self.collection) {
                self.collection = module.worksheets;
            }

            self.filter = self.options.filter;

            _.bindAll(self, 'render');
            self.highlight = 'highlight';
            self.render();
        },

        render: function () {
            var self = this;

            if (self.filter) {
                self.collection.each(function (worksheet) {
                    if (worksheet.get('Title').toLowerCase().indexOf(self.filter) != -1) {
                        self.renderWorksheet(worksheet);
                    }
                }, self);
            } else {
                self.collection.each(function (worksheet) {
                    self.renderWorksheet(worksheet);
                }, self);
            }

            return self;
        },

        renderWorksheet: function (dataSource) {
            var self = this;
            // Create a new view for each data source
            var worksheetSelectorView = new module.WorksheetSelectorView({
                model: dataSource,
                className: 'worksheetRadio' + ' ' + self.highlight
            });

            // render this view, grab its contents and append it to el
            this.$el.append(worksheetSelectorView.el);
            if (self.highlight == 'highlight') {
                self.highlight = '';
            }
            else {
                self.highlight = 'highlight';
            }
            return self;

        }

    });
})(ZM.module('worksheets'))


text:
package com.sequenceiq.freeipa.service.binduser;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

class LdapBindUserNameProviderTest {

    private LdapBindUserNameProvider underTest = new LdapBindUserNameProvider();

    @Test
    public void testCreateBindUserName() {
        String result = underTest.createBindUserName("asdf");

        assertEquals("ldapbind-asdf", result);
    }
}


text:
package com.amazonaws.services.elasticbeanstalk.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 *
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateTagsForResourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     *

     * The Amazon Resource Name (ARN) of the resouce to be updated.
     *

     *

     * Must be the ARN of an Elastic Beanstalk resource.
     *

     */
    private String resourceArn;
    /**
     *

     * A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     */
    private com.amazonaws.internal.SdkInternalList<Tag> tagsToAdd;
    /**
     *

     * A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     */
    private com.amazonaws.internal.SdkInternalList<String> tagsToRemove;

    /**
     *

     * The Amazon Resource Name (ARN) of the resouce to be updated.
     *

     *

     * Must be the ARN of an Elastic Beanstalk resource.
     *

     *
     * @param resourceArn
     *        The Amazon Resource Name (ARN) of the resouce to be updated.

     *

     *        Must be the ARN of an Elastic Beanstalk resource.
     */

    public void setResourceArn(String resourceArn) {
        this.resourceArn = resourceArn;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the resouce to be updated.
     *

     *

     * Must be the ARN of an Elastic Beanstalk resource.
     *

     *
     * @return The Amazon Resource Name (ARN) of the resouce to be updated.

     *

     *         Must be the ARN of an Elastic Beanstalk resource.
     */

    public String getResourceArn() {
        return this.resourceArn;
    }

    /**
     *

     * The Amazon Resource Name (ARN) of the resouce to be updated.
     *

     *

     * Must be the ARN of an Elastic Beanstalk resource.
     *

     *
     * @param resourceArn
     *        The Amazon Resource Name (ARN) of the resouce to be updated.

     *

     *        Must be the ARN of an Elastic Beanstalk resource.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateTagsForResourceRequest withResourceArn(String resourceArn) {
        setResourceArn(resourceArn);
        return this;
    }

    /**
     *

     * A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *
     * @return A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.

     *

     *         Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     */

    public java.util.List<Tag> getTagsToAdd() {
        if (tagsToAdd == null) {
            tagsToAdd = new com.amazonaws.internal.SdkInternalList<Tag>();
        }
        return tagsToAdd;
    }

    /**
     *

     * A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *
     * @param tagsToAdd
     *        A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.

     *

     *        Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     */

    public void setTagsToAdd(java.util.Collection<Tag> tagsToAdd) {
        if (tagsToAdd == null) {
            this.tagsToAdd = null;
            return;
        }

        this.tagsToAdd = new com.amazonaws.internal.SdkInternalList<Tag>(tagsToAdd);
    }

    /**
     *

     * A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *

     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setTagsToAdd(java.util.Collection)} or {@link #withTagsToAdd(java.util.Collection)} if you want to
     * override the existing values.
     *

     *
     * @param tagsToAdd
     *        A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.

     *

     *        Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateTagsForResourceRequest withTagsToAdd(Tag... tagsToAdd) {
        if (this.tagsToAdd == null) {
            setTagsToAdd(new com.amazonaws.internal.SdkInternalList<Tag>(tagsToAdd.length));
        }
        for (Tag ele : tagsToAdd) {
            this.tagsToAdd.add(ele);
        }
        return this;
    }

    /**
     *

     * A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *
     * @param tagsToAdd
     *        A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.

     *

     *        Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateTagsForResourceRequest withTagsToAdd(java.util.Collection<Tag> tagsToAdd) {
        setTagsToAdd(tagsToAdd);
        return this;
    }

    /**
     *

     * A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *
     * @return A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.

     *

     *         Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     */

    public java.util.List<String> getTagsToRemove() {
        if (tagsToRemove == null) {
            tagsToRemove = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return tagsToRemove;
    }

    /**
     *

     * A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *
     * @param tagsToRemove
     *        A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.

     *

     *        Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     */

    public void setTagsToRemove(java.util.Collection<String> tagsToRemove) {
        if (tagsToRemove == null) {
            this.tagsToRemove = null;
            return;
        }

        this.tagsToRemove = new com.amazonaws.internal.SdkInternalList<String>(tagsToRemove);
    }

    /**
     *

     * A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *

     * NOTE: This method appends the values to the existing list (if any). Use
     * {@link #setTagsToRemove(java.util.Collection)} or {@link #withTagsToRemove(java.util.Collection)} if you want to
     * override the existing values.
     *

     *
     * @param tagsToRemove
     *        A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.

     *

     *        Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateTagsForResourceRequest withTagsToRemove(String... tagsToRemove) {
        if (this.tagsToRemove == null) {
            setTagsToRemove(new com.amazonaws.internal.SdkInternalList<String>(tagsToRemove.length));
        }
        for (String ele : tagsToRemove) {
            this.tagsToRemove.add(ele);
        }
        return this;
    }

    /**
     *

     * A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
     *

     *

     * Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     *

     *
     * @param tagsToRemove
     *        A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.

     *

     *        Specify at least one of these parameters: TagsToAdd, TagsToRemove.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public UpdateTagsForResourceRequest withTagsToRemove(java.util.Collection<String> tagsToRemove) {
        setTagsToRemove(tagsToRemove);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getResourceArn() != null)
            sb.append("ResourceArn: ").append(getResourceArn()).append(",");
        if (getTagsToAdd() != null)
            sb.append("TagsToAdd: ").append(getTagsToAdd()).append(",");
        if (getTagsToRemove() != null)
            sb.append("TagsToRemove: ").append(getTagsToRemove());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof UpdateTagsForResourceRequest == false)
            return false;
        UpdateTagsForResourceRequest other = (UpdateTagsForResourceRequest) obj;
        if (other.getResourceArn() == null ^ this.getResourceArn() == null)
            return false;
        if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
            return false;
        if (other.getTagsToAdd() == null ^ this.getTagsToAdd() == null)
            return false;
        if (other.getTagsToAdd() != null && other.getTagsToAdd().equals(this.getTagsToAdd()) == false)
            return false;
        if (other.getTagsToRemove() == null ^ this.getTagsToRemove() == null)
            return false;
        if (other.getTagsToRemove() != null && other.getTagsToRemove().equals(this.getTagsToRemove()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
        hashCode = prime * hashCode + ((getTagsToAdd() == null) ? 0 : getTagsToAdd().hashCode());
        hashCode = prime * hashCode + ((getTagsToRemove() == null) ? 0 : getTagsToRemove().hashCode());
        return hashCode;
    }

    @Override
    public UpdateTagsForResourceRequest clone() {
        return (UpdateTagsForResourceRequest) super.clone();
    }

}


text:
ROOT_DIR       := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
VARIABLES_FILE  = $(ROOT_DIR)/variables.env
PHALCON_VERSION = $(shell docker run -it --rm phalconphp/php-apache:ubuntu-16.04 sh -c "/usr/bin/php -r 'echo Phalcon\Version::get();'")
SHELL          := $(shell which bash)
VERSION         = 2.1.1
ARGS            = $(filter-out $@,$(MAKECMDGOALS))

.SILENT: ;               # no need for @
.ONESHELL: ;             # recipes execute in same shell
.NOTPARALLEL: ;          # wait for this target to finish
.EXPORT_ALL_VARIABLES: ; # send all vars to shell
default: help-default;   # default target
Makefile: ;              # skip prerequisite discovery

.title:
	$(info Phalcon Compose: $(VERSION))
	$(info )

help-default help: .title
	@echo "                          ====================================================================="
	@echo "                          Help & Check Menu"
	@echo "                          ====================================================================="
	@echo "                    help: Show Phalcon Compose Help Menu: type: make help"
	@echo "                   check: Check required files"
	@echo "                  status: List containers status"
	@echo "                 version: Show versions"
	@echo "                          ====================================================================="
	@echo "                          Main Menu"
	@echo "                          ====================================================================="
	@echo "                      up: Create and start application in detached mode (in the background)"
	@echo "                    pull: Pull latest dependencies"
	@echo "                    stop: Stop application"
	@echo "                   root:  Login to the 'app' container as 'root' user"
	@echo "                   shell: Login to the 'app' container as 'application' user"
	@echo "                   start: Start application"
	@echo "                   build: Build or rebuild services"
	@echo "                   reset: Reset all containers, delete all data, rebuild services and restart"
	@echo "                 php-cli: Run PHP interactively (CLI)"
	@echo ""

build: check
	docker-compose build --no-cache

pull:
	docker pull mongo:3.2
	docker pull postgres:9.5
	docker pull mysql:5.7
	docker pull memcached:1.4
	docker pull aerospike:latest
	docker pull redis:latest
	docker pull elasticsearch:2.3
	docker pull jeroenpeeters/docker-ssh:latest
	docker pull phalconphp/beanstalkd:1.10
	docker pull phalconphp/php-apache:ubuntu-16.04

up: check
	docker-compose up -d

start: check
	docker-compose start

stop:
	docker-compose stop

status:
	docker-compose ps

reset: check stop clean build up

check:
ifeq ($(wildcard $(VARIABLES_FILE)),)
	$(error Failed to locate the $(VARIABLES_FILE) file.)
endif
	docker-compose config -q

version: .title
	$(info Phalcon $(PHALCON_VERSION))
	docker-compose version

php-cli:
	docker run -it --rm phalconphp/php-apache:ubuntu-16.04 sh -c "/usr/bin/php -a"

bash: shell

shell:
	docker exec -it -u application $$(docker-compose ps -q app) /bin/bash

root:
	docker exec -it -u root $$(docker-compose ps -q app) /bin/bash

clean: stop
	docker-compose down

%:
	@:


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Revue mycol. , Toulouse 13: 9 (1891)

#### Original name
Phyllosticta japonica Thüm., 1880

### Remarks
null


text:
using RethinkDb.Spec;

namespace RethinkDb.QueryTerm
{
    public class DbListQuery : ISingleObjectQuery<string[]>
    {
        public Term GenerateTerm(IQueryConverter queryConverter)
        {
            var dbTerm = new Term()
            {
                type = Term.TermType.DB_LIST,
            };
            return dbTerm;
        }
    }
}


text:
tienda_versiones
================


text:
<?php
/**
 * Access Policy English lexicon topic
 *
 * @language en
 * @package modx
 * @subpackage lexicon
 */
$_lang['active_of'] = '[[+active]] von [[+total]]';
$_lang['active_permissions'] = 'Aktivierte Berechtigungen';
$_lang['no_policy_option'] = ' (keine Richtlinie) ';
$_lang['permission'] = 'Berechtigung';
$_lang['permission_add'] = 'Berechtigung hinzufügen';
$_lang['permission_add_template'] = 'Berechtigung zum Template hinzufügen';
$_lang['permission_err_ae'] = 'Die Berechtigung existiert bereits für diese Richtlinie.';
$_lang['permission_err_nf'] = 'Berechtigung nicht gefunden.';
$_lang['permission_err_ns'] = 'Berechtigung nicht angegeben.';
$_lang['permission_err_remove'] = 'Beim Versuch, diese Berechtigung zu löschen, ist ein Fehler aufgetreten.';
$_lang['permission_err_save'] = 'Beim Versuch, diese Berechtigung zu speichern, ist ein Fehler aufgetreten.';
$_lang['permission_new'] = 'Neue Berechtigung';
$_lang['permission_remove'] = 'Berechtigung löschen';
$_lang['permission_remove_confirm'] = 'Sind Sie sicher, dass Sie diese Berechtigung löschen möchten?';
$_lang['permission_update'] = 'Berechtigung bearbeiten';
$_lang['permissions'] = 'Berechtigungen';
$_lang['permissions_desc'] = 'Hier können Sie spezielle Berechtigungen definieren, die diese Richtlinie enthalten soll. Alle Benutzergruppen mit dieser Richtlinie erben diese Berechtigungen.';
$_lang['policies'] = 'Zugriffs-Richtlinien';
$_lang['policy'] = 'Zugriffs-Richtlinie';
$_lang['policy_create'] = 'Zugriffs-Richtlinie erstellen';
$_lang['policy_data'] = 'Richtlinien-Daten';
$_lang['policy_desc'] = 'Zugriffs-Richtlinien sind allgemeine Richtlinien, die bestimmte Aktionen von MODX einschränken oder ermöglichen.';
$_lang['policy_desc_name'] = 'Der Name der Zugriffs-Richtlinie';
$_lang['policy_desc_description'] = 'Optional. Eine kurze Beschreibung der Zugriffs-Richtlinie.';
$_lang['policy_desc_template'] = 'Das Richtlinien-Template, das für diese Richtlinie verwendet wurde. Richtlinien erhalten ihre Berechtigungs-Listen von ihren Templates.';
$_lang['policy_desc_lexicon'] = 'Optional. Das Lexikon-Thema, das diese Richtlinie verwendet, um die Berechtigungen, die sie besitzt, zu übersetzen.';
$_lang['policy_duplicate'] = 'Richtlinie duplizieren';
$_lang['policy_duplicate_confirm'] = 'Sind Sie sicher, dass Sie diese Richtlinie und alle Ihre Daten duplizieren möchten?';
$_lang['policy_err_ae'] = 'Eine Richtlinie mit dem Namen `[[+name]]` existiert bereits. Bitte wählen Sie einen anderen Namen.';
$_lang['policy_err_nf'] = 'Richtlinie nicht gefunden.';
$_lang['policy_err_ns'] = 'Richtlinie nicht angegeben.';
$_lang['policy_err_remove'] = 'Beim Versuch, die Richtlinie zu löschen, ist ein Fehler aufgetreten.';
$_lang['policy_err_save'] = 'Beim Versuch, die Richtlinie zu speichern, ist ein Fehler aufgetreten.';
$_lang['policy_export'] = 'Richtlinie exportieren';
$_lang['policy_import'] = 'Richtlinie importieren';
$_lang['policy_import_msg'] = 'Wählen Sie eine XML-Datei, aus der eine Richtlinie importiert werden soll. Sie muss das korrekte XML-Richtlinien-Format besitzen.';
$_lang['policy_management'] = 'Zugriffs-Richtlinien';
$_lang['policy_management_msg'] = 'Zugriffs-Richtlinien legen fest, wie MODX Berechtigungen für bestimmte Aktionen handhabt.';
$_lang['policy_name'] = 'Richtlinien-Name';
$_lang['policy_property_create'] = 'Zugriffs-Richtlinien-Eigenschaft erstellen';
$_lang['policy_property_new'] = 'Neue Richtlinien-Eigenschaft';
$_lang['policy_property_remove'] = 'Zugriffs-Richtlinien-Eigenschaft löschen';
$_lang['policy_property_specify_name'] = 'Bitte geben Sie einen Namen für die Richtlinien-Eigenschaft an:';
$_lang['policy_remove'] = 'Richtlinie löschen';
$_lang['policy_remove_confirm'] = 'Sind Sie sicher, dass Sie diese Zugriffs-Richtlinie löschen möchten?';
$_lang['policy_remove_multiple'] = 'Richtlinien löschen';
$_lang['policy_remove_multiple_confirm'] = 'Sind Sie sicher, dass Sie diese Zugriffs-Richtlinien löschen möchten? Dies lässt sich nicht rückgängig machen.';
$_lang['policy_update'] = 'Richtlinie bearbeiten';
$_lang['policy_template'] = 'Richtlinien-Template';
$_lang['policy_template.desc'] = 'Ein Richtlinien-Template legt fest, welche Berechtigungen in der Berechtigungen-Tabelle angezeigt werden, wenn eine bestimmte Richtlinie bearbeitet wird. Sie können diesem Template bestimmte Berechtigungen hinzufügen oder welche entfernen. Bitte beachten Sie, dass das Entfernen einer Berechtigung aus einem Template diese auch aus jeder Richtlinie entfernt, die dieses Template verwendet.';
$_lang['policy_template_create'] = 'Richtlinien-Template erstellen';
$_lang['policy_template_desc_name'] = 'Der Name des Zugriffs-Richtlinien-Templates';
$_lang['policy_template_desc_description'] = 'Optional. Eine kurze Beschreibung des Zugriffs-Richtlinien-Templates';
$_lang['policy_template_desc_lexicon'] = 'Optional. Das Lexikon-Thema, das dieses Richtlinien-Template verwendet, um die Berechtigungen, die es besitzt, zu übersetzen.';
$_lang['policy_template_desc_template_group'] = 'Die zu verwendende Richtlinien-Template-Gruppe. Dies wird verwendet beim Auswählen von Richtlinien aus einem Dropdown-Menü; normalerweise werden sie nach Template-Gruppen gefiltert. Wählen Sie eine passende Gruppe für Ihr Richtlinien-Template.';
$_lang['policy_template_duplicate'] = 'Richtlinien-Template duplizieren';
$_lang['policy_template_duplicate_confirm'] = 'Sind Sie sicher, dass Sie dieses Richtlinien-Template duplizieren möchten?';
$_lang['policy_template_err_ae'] = 'Ein Richtlinien-Template mit dem Namen "[[+name]]" existiert bereits. Bitte wählen Sie einen anderen Namen.';
$_lang['policy_template_err_nf'] = 'Richtlinien-Template nicht gefunden.';
$_lang['policy_template_err_ns'] = 'Richtlinien-Template nicht angegeben.';
$_lang['policy_template_err_remove'] = 'Beim Versuch, das Richtlinien-Template zu löschen, ist ein Fehler aufgetreten.';
$_lang['policy_template_err_save'] = 'Beim Versuch, das Richtlinien-Template zu speichern, ist ein Fehler aufgetreten.';
$_lang['policy_template_export'] = 'Richtlinien-Template exportieren';
$_lang['policy_template_import'] = 'Richtlinien-Template importieren';
$_lang['policy_template_import_msg'] = 'Wählen Sie eine XML-Datei, aus der ein Richtlinien-Template importiert werden soll. Sie muss das korrekte XML-Richtlinien-Format besitzen.';
$_lang['policy_template_remove'] = 'Richtlinien-Template löschen';
$_lang['policy_template_remove_confirm'] = 'Sind Sie sicher, dass Sie dieses Richtlinien-Template löschen möchten? Dabei werden auch alle Richtlinien gelöscht, die diesem Template zugeordnet sind - das könnte Ihre MODX-Installation unbrauchbar machen, falls aktive Richtlinien diesem Template zugeordnet sind.';
$_lang['policy_template_remove_multiple'] = 'Ausgewählte Richtlinien-Templates löschen';
$_lang['policy_template_remove_multiple_confirm'] = 'Sind Sie sicher, dass Sie diese Richtlinien-Templates löschen möchten? Dabei werden auch alle Richtlinien gelöscht, die diesen Templates zugeordnet sind - das könnte Ihre MODX-Installation unbrauchbar machen, falls aktive Richtlinien diesen Templates zugeordnet sind.';
$_lang['policy_template_update'] = 'Richtlinien-Template bearbeiten';
$_lang['policy_templates'] = 'Richtlinien-Templates';
$_lang['policy_templates.intro_msg'] = 'Dies ist eine Liste von Richtlinien-Templates, die Listen von Berechtigungen definieren, die in bestimmten Richtlinien aktiviert oder deaktiviert sind.';
$_lang['template_group'] = 'Template-Gruppe';


text:
#import "CPGraph.h"
#import "CPExceptions.h"
#import "CPPlot.h"
#import "CPPlotArea.h"
#import "CPPlotAreaFrame.h"
#import "CPTextStyle.h"
#import "CPPlotSpace.h"
#import "CPFill.h"
#import "CPAxisSet.h"
#import "CPAxis.h"
#import "CPTheme.h"
#import "CPLayerAnnotation.h"
#import "CPTextLayer.h"

NSString * const CPGraphNeedsRedrawNotification = @"CPGraphNeedsRedrawNotification";

///	@cond
@interface CPGraph()

@property (nonatomic, readwrite, retain) NSMutableArray *plots;
@property (nonatomic, readwrite, retain) NSMutableArray *plotSpaces;
@property (nonatomic, readwrite, retain) CPLayerAnnotation *titleAnnotation;

-(void)plotSpaceMappingDidChange:(NSNotification *)notif;

@end
///	@endcond

#pragma mark -

/**	@brief An abstract graph class.
 *	@todo More documentation needed
 **/
@implementation CPGraph

/**	@property axisSet
 *	@brief The axis set.
 **/
@dynamic axisSet;

/**	@property plotAreaFrame
 *	@brief The plot area frame.
 **/
@synthesize plotAreaFrame;

/**	@property plots
 *	@brief An array of all plots associated with the graph.
 **/
@synthesize plots;

/**	@property plotSpaces
 *	@brief An array of all plot spaces associated with the graph.
 **/
@synthesize plotSpaces;

/**	@property defaultPlotSpace
 *	@brief The default plot space.
 **/
@dynamic defaultPlotSpace;

/** @property topDownLayerOrder
 *	@brief An array of graph layers to be drawn in an order other than the default.
 *	@see CPPlotArea#topDownLayerOrder
 **/
@dynamic topDownLayerOrder;

/**	@property title
 *	@brief The title string.
 *  Default is nil.
 **/
@synthesize title;

/**	@property titleTextStyle
 *	@brief The text style of the title.
 **/
@synthesize titleTextStyle;

/**	@property titlePlotAreaFrameAnchor
 *	@brief The location of the title with respect to the plot area frame.
 *  Default is top center.
 **/
@synthesize titlePlotAreaFrameAnchor;

/**	@property titleDisplacement
 *	@brief A vector giving the displacement of the title from the edge location.
 **/
@synthesize titleDisplacement;

@synthesize titleAnnotation;

#pragma mark -
#pragma mark Init/Dealloc

-(id)initWithFrame:(CGRect)newFrame
{
	if ( self = [super initWithFrame:newFrame] ) {
		plots = [[NSMutableArray alloc] init];

        // Margins
        self.paddingLeft = 20.0;
        self.paddingTop = 20.0;
        self.paddingRight = 20.0;
        self.paddingBottom = 20.0;

        // Plot area
        CPPlotAreaFrame *newArea = [(CPPlotAreaFrame *)[CPPlotAreaFrame alloc] initWithFrame:self.bounds];
        self.plotAreaFrame = newArea;
        [newArea release];

        // Plot spaces
		plotSpaces = [[NSMutableArray alloc] init];
        CPPlotSpace *newPlotSpace = [self newPlotSpace];
        [self addPlotSpace:newPlotSpace];
        [newPlotSpace release];

        // Axis set
		CPAxisSet *newAxisSet = [self newAxisSet];
		self.axisSet = newAxisSet;
		[newAxisSet release];

        // Title
        title = nil;
        titlePlotAreaFrameAnchor = CPRectAnchorTop;
        titleTextStyle = [[CPTextStyle textStyle] retain];
        titleDisplacement = CGPointZero;
		titleAnnotation = nil;

		self.needsDisplayOnBoundsChange = YES;
	}
	return self;
}

-(id)initWithLayer:(id)layer
{
	if ( self = [super initWithLayer:layer] ) {
		CPGraph *theLayer = (CPGraph *)layer;

		plotAreaFrame = [theLayer->plotAreaFrame retain];
		plots = [theLayer->plots retain];
		plotSpaces = [theLayer->plotSpaces retain];
		title = [theLayer->title retain];
		titlePlotAreaFrameAnchor = theLayer->titlePlotAreaFrameAnchor;
		titleTextStyle = [theLayer->titleTextStyle retain];
		titleDisplacement = theLayer->titleDisplacement;
		titleAnnotation = [theLayer->titleAnnotation retain];
	}
	return self;
}

-(void)dealloc
{
	[[NSNotificationCenter defaultCenter] removeObserver:self];

	[plotAreaFrame release];
	[plots release];
	[plotSpaces release];
    [title release];
    [titleTextStyle release];
    [titleAnnotation release];

	[super dealloc];
}

#pragma mark -
#pragma mark Retrieving Plots

/**	@brief Makes all plots reload their data.
 **/
-(void)reloadData
{
    [self.plots makeObjectsPerformSelector:@selector(reloadData)];
}

/**	@brief Makes all plots reload their data if their data cache is out of date.
 **/
-(void)reloadDataIfNeeded
{
    [self.plots makeObjectsPerformSelector:@selector(reloadDataIfNeeded)];
}

/**	@brief All plots associated with the graph.
 *	@return An array of all plots associated with the graph.
 **/
-(NSArray *)allPlots
{
	return [NSArray arrayWithArray:self.plots];
}

/**	@brief Gets the plot at the given index in the plot array.
 *	@param index An index within the bounds of the plot array.
 *	@return The plot at the given index.
 **/
-(CPPlot *)plotAtIndex:(NSUInteger)index
{
    return [self.plots objectAtIndex:index];
}

/**	@brief Gets the plot with the given identifier.
 *	@param identifier A plot identifier.
 *	@return The plot with the given identifier.
 **/
-(CPPlot *)plotWithIdentifier:(id <NSCopying>)identifier
{
	for (CPPlot *plot in self.plots) {
        if ( [[plot identifier] isEqual:identifier] ) return plot;
	}
    return nil;
}

#pragma mark -
#pragma mark Organizing Plots

/**	@brief Add a plot to the default plot space.
 *	@param plot The plot.
 **/
-(void)addPlot:(CPPlot *)plot
{
	[self addPlot:plot toPlotSpace:self.defaultPlotSpace];
}

/**	@brief Add a plot to the given plot space.
 *	@param plot The plot.
 *	@param space The plot space.
 **/
-(void)addPlot:(CPPlot *)plot toPlotSpace:(CPPlotSpace *)space
{
	if ( plot ) {
		[self.plots addObject:plot];
		plot.plotSpace = space;
        plot.graph = self;
		[self.plotAreaFrame.plotGroup addPlot:plot];
	}
}

/**	@brief Remove a plot from the graph.
 *	@param plot The plot to remove.
 **/
-(void)removePlot:(CPPlot *)plot
{
    if ( [self.plots containsObject:plot] ) {
		[self.plots removeObject:plot];
        plot.plotSpace = nil;
        plot.graph = nil;
		[self.plotAreaFrame.plotGroup removePlot:plot];
    }
    else {
        [NSException raise:CPException format:@"Tried to remove CPPlot which did not exist."];
    }
}

/**	@brief Add a plot to the default plot space at the given index in the plot array.
 *	@param plot The plot.
 *	@param index An index within the bounds of the plot array.
 **/
-(void)insertPlot:(CPPlot* )plot atIndex:(NSUInteger)index
{
	[self insertPlot:plot atIndex:index intoPlotSpace:self.defaultPlotSpace];
}

/**	@brief Add a plot to the given plot space at the given index in the plot array.
 *	@param plot The plot.
 *	@param index An index within the bounds of the plot array.
 *	@param space The plot space.
 **/
-(void)insertPlot:(CPPlot* )plot atIndex:(NSUInteger)index intoPlotSpace:(CPPlotSpace *)space
{
	if (plot) {
		[self.plots insertObject:plot atIndex:index];
		plot.plotSpace = space;
        plot.graph = self;
		[self.plotAreaFrame.plotGroup addPlot:plot];
	}
}

/**	@brief Remove a plot from the graph.
 *	@param identifier The identifier of the plot to remove.
 **/
-(void)removePlotWithIdentifier:(id <NSCopying>)identifier
{
	CPPlot* plotToRemove = [self plotWithIdentifier:identifier];
	if (plotToRemove) {
		plotToRemove.plotSpace = nil;
        plotToRemove.graph = nil;
		[self.plotAreaFrame.plotGroup removePlot:plotToRemove];
		[self.plots removeObjectIdenticalTo:plotToRemove];
	}
}

#pragma mark -
#pragma mark Retrieving Plot Spaces

-(CPPlotSpace *)defaultPlotSpace {
    return ( self.plotSpaces.count > 0 ? [self.plotSpaces objectAtIndex:0] : nil );
}

/**	@brief All plot spaces associated with the graph.
 *	@return An array of all plot spaces associated with the graph.
 **/
-(NSArray *)allPlotSpaces
{
	return [NSArray arrayWithArray:self.plotSpaces];
}

/**	@brief Gets the plot space at the given index in the plot space array.
 *	@param index An index within the bounds of the plot space array.
 *	@return The plot space at the given index.
 **/
-(CPPlotSpace *)plotSpaceAtIndex:(NSUInteger)index
{
	return ( self.plotSpaces.count > index ? [self.plotSpaces objectAtIndex:index] : nil );
}

/**	@brief Gets the plot space with the given identifier.
 *	@param identifier A plot space identifier.
 *	@return The plot space with the given identifier.
 **/
-(CPPlotSpace *)plotSpaceWithIdentifier:(id <NSCopying>)identifier
{
	for (CPPlotSpace *plotSpace in self.plotSpaces) {
        if ( [[plotSpace identifier] isEqual:identifier] ) return plotSpace;
	}
    return nil;
}

#pragma mark -
#pragma mark Set Plot Area

-(void)setPlotAreaFrame:(CPPlotAreaFrame *)newArea
{
    if ( plotAreaFrame != newArea ) {
    	plotAreaFrame.graph = nil;
    	[plotAreaFrame removeFromSuperlayer];
        [plotAreaFrame release];
        plotAreaFrame = [newArea retain];
        [self addSublayer:newArea];
        plotAreaFrame.graph = self;
		for ( CPPlotSpace *space in self.plotSpaces ) {
            space.graph = self;
        }
    }
}

#pragma mark -
#pragma mark Organizing Plot Spaces

/**	@brief Add a plot space to the graph.
 *	@param space The plot space.
 **/
-(void)addPlotSpace:(CPPlotSpace *)space
{
	[self.plotSpaces addObject:space];
    space.graph = self;
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(plotSpaceMappingDidChange:) name:CPPlotSpaceCoordinateMappingDidChangeNotification object:space];
}

/**	@brief Remove a plot space from the graph.
 *	@param plotSpace The plot space.
 **/
-(void)removePlotSpace:(CPPlotSpace *)plotSpace
{
	if ( [self.plotSpaces containsObject:plotSpace] ) {
        [[NSNotificationCenter defaultCenter] removeObserver:self name:CPPlotSpaceCoordinateMappingDidChangeNotification object:plotSpace];

        // Remove space
		plotSpace.graph = nil;
		[self.plotSpaces removeObject:plotSpace];

        // Update axes that referenced space
        for ( CPAxis *axis in self.axisSet.axes ) {
            if ( axis.plotSpace == plotSpace ) axis.plotSpace = nil;
        }
    }
    else {
        [NSException raise:CPException format:@"Tried to remove CPPlotSpace which did not exist."];
    }
}

#pragma mark -
#pragma mark Coordinate Changes in Plot Spaces

-(void)plotSpaceMappingDidChange:(NSNotification *)notif
{
	CPPlotSpace *plotSpace = notif.object;

	for ( CPAxis *axis in self.axisSet.axes ) {
		if ( axis.plotSpace == plotSpace ) {
			[axis setNeedsRelabel];
		}
	}
	for ( CPPlot *plot in self.plots ) {
		if ( plot.plotSpace == plotSpace ) {
			[plot setNeedsDisplay];
		}
	}
}

#pragma mark -
#pragma mark Axis Set

-(CPAxisSet *)axisSet
{
	return self.plotAreaFrame.axisSet;
}

-(void)setAxisSet:(CPAxisSet *)newSet
{
	self.plotAreaFrame.axisSet = newSet;
}

#pragma mark -
#pragma mark Themes

/**	@brief Apply a theme to style the graph.
 *	@param theme The theme object used to style the graph.
 **/
-(void)applyTheme:(CPTheme *)theme
{
    [theme applyThemeToGraph:self];
}

#pragma mark -
#pragma mark Layout

+(CGFloat)defaultZPosition
{
	return CPDefaultZPositionGraph;
}

#pragma mark -
#pragma mark Accessors

-(void)setPaddingLeft:(CGFloat)newPadding
{
    if ( newPadding != self.paddingLeft ) {
        [super setPaddingLeft:newPadding];
		[self.axisSet.axes makeObjectsPerformSelector:@selector(setNeedsDisplay)];
    }
}

-(void)setPaddingRight:(CGFloat)newPadding
{
    if ( newPadding != self.paddingRight ) {
        [super setPaddingRight:newPadding];
		[self.axisSet.axes makeObjectsPerformSelector:@selector(setNeedsDisplay)];
    }
}

-(void)setPaddingTop:(CGFloat)newPadding
{
    if ( newPadding != self.paddingTop ) {
        [super setPaddingTop:newPadding];
		[self.axisSet.axes makeObjectsPerformSelector:@selector(setNeedsDisplay)];
    }
}

-(void)setPaddingBottom:(CGFloat)newPadding
{
    if ( newPadding != self.paddingBottom ) {
        [super setPaddingBottom:newPadding];
		[self.axisSet.axes makeObjectsPerformSelector:@selector(setNeedsDisplay)];
    }
}

-(NSArray *)topDownLayerOrder
{
	return self.plotAreaFrame.plotArea.topDownLayerOrder;
}

-(void)setTopDownLayerOrder:(NSArray *)newArray
{
	self.plotAreaFrame.plotArea.topDownLayerOrder = newArray;
}

-(void)setTitle:(NSString *)newTitle
{
	if ( newTitle != title ) {
        [title release];
        title = [newTitle copy];
		CPLayerAnnotation *theTitleAnnotation = self.titleAnnotation;
		if ( title ) {
			if ( theTitleAnnotation ) {
				((CPTextLayer *)theTitleAnnotation.contentLayer).text = title;
			}
			else {
				CPLayerAnnotation *newTitleAnnotation = [[CPLayerAnnotation alloc] initWithAnchorLayer:plotAreaFrame];
				CPTextLayer *newTextLayer = [[CPTextLayer alloc] initWithText:title style:self.titleTextStyle];
				newTitleAnnotation.contentLayer = newTextLayer;
				newTitleAnnotation.displacement = self.titleDisplacement;
				newTitleAnnotation.rectAnchor = self.titlePlotAreaFrameAnchor;
				[self addAnnotation:newTitleAnnotation];
				self.titleAnnotation = newTitleAnnotation;
				[newTextLayer release];
				[newTitleAnnotation release];
			}
		}
		else {
			if ( theTitleAnnotation ) {
				[self removeAnnotation:theTitleAnnotation];
				self.titleAnnotation = nil;
			}
		}
    }
}

-(void)setTitleTextStyle:(CPTextStyle *)newStyle
{
    if ( newStyle != titleTextStyle ) {
        [titleTextStyle release];
        titleTextStyle = [newStyle copy];
		((CPTextLayer *)self.titleAnnotation.contentLayer).textStyle = titleTextStyle;
    }
}

-(void)setTitleDisplacement:(CGPoint)newDisplace
{
    if ( !CGPointEqualToPoint(newDisplace, titleDisplacement) ) {
        titleDisplacement = newDisplace;
        titleAnnotation.displacement = newDisplace;
    }
}

-(void)setTitlePlotAreaFrameAnchor:(CPRectAnchor)newAnchor
{
    if ( newAnchor != titlePlotAreaFrameAnchor ) {
        titlePlotAreaFrameAnchor = newAnchor;
        titleAnnotation.rectAnchor = titlePlotAreaFrameAnchor;
    }
}

#pragma mark -
#pragma mark Event Handling

-(BOOL)pointingDeviceDownEvent:(id)event atPoint:(CGPoint)interactionPoint
{
    // Plots
    for ( CPPlot *plot in self.plots ) {
        if ( [plot pointingDeviceDownEvent:event atPoint:interactionPoint] ) return YES;
    }

    // Axes Set
    if ( [self.axisSet pointingDeviceDownEvent:event atPoint:interactionPoint] ) return YES;

    // Plot area
    if ( [self.plotAreaFrame pointingDeviceDownEvent:event atPoint:interactionPoint] ) return YES;

    // Plot spaces
    // Plot spaces do not block events, because several spaces may need to receive
    // the same event sequence (eg dragging coordinate translation)
    BOOL handledEvent = NO;
    for ( CPPlotSpace *space in self.plotSpaces ) {
        BOOL handled = [space pointingDeviceDownEvent:event atPoint:interactionPoint];
        handledEvent |= handled;
    }

    return handledEvent;
}

-(BOOL)pointingDeviceUpEvent:(id)event atPoint:(CGPoint)interactionPoint
{
    // Plots
    for ( CPPlot *plot in self.plots ) {
        if ( [plot pointingDeviceUpEvent:event atPoint:interactionPoint] ) return YES;
    }

    // Axes Set
    if ( [self.axisSet pointingDeviceUpEvent:event atPoint:interactionPoint] ) return YES;

    // Plot area
    if ( [self.plotAreaFrame pointingDeviceUpEvent:event atPoint:interactionPoint] ) return YES;

    // Plot spaces
    // Plot spaces do not block events, because several spaces may need to receive
    // the same event sequence (eg dragging coordinate translation)
    BOOL handledEvent = NO;
    for ( CPPlotSpace *space in self.plotSpaces ) {
        BOOL handled = [space pointingDeviceUpEvent:event atPoint:interactionPoint];
        handledEvent |= handled;
    }

    return handledEvent;
}

-(BOOL)pointingDeviceDraggedEvent:(id)event atPoint:(CGPoint)interactionPoint
{
    // Plots
    for ( CPPlot *plot in self.plots ) {
        if ( [plot pointingDeviceDraggedEvent:event atPoint:interactionPoint] ) return YES;
    }

    // Axes Set
    if ( [self.axisSet pointingDeviceDraggedEvent:event atPoint:interactionPoint] ) return YES;

    // Plot area
    if ( [self.plotAreaFrame pointingDeviceDraggedEvent:event atPoint:interactionPoint] ) return YES;

    // Plot spaces
    // Plot spaces do not block events, because several spaces may need to receive
    // the same event sequence (eg dragging coordinate translation)
    BOOL handledEvent = NO;
    for ( CPPlotSpace *space in self.plotSpaces ) {
        BOOL handled = [space pointingDeviceDraggedEvent:event atPoint:interactionPoint];
        handledEvent |= handled;
    }

    return handledEvent;
}

-(BOOL)pointingDeviceCancelledEvent:(id)event
{
    // Plots
    for ( CPPlot *plot in self.plots ) {
        if ( [plot pointingDeviceCancelledEvent:event] ) return YES;
    }

    // Axes Set
    if ( [self.axisSet pointingDeviceCancelledEvent:event] ) return YES;

    // Plot area
    if ( [self.plotAreaFrame pointingDeviceCancelledEvent:event] ) return YES;

    // Plot spaces
    BOOL handledEvent = NO;
    for ( CPPlotSpace *space in self.plotSpaces ) {
        BOOL handled = [space pointingDeviceCancelledEvent:event];
        handledEvent |= handled;
    }

    return handledEvent;
}

@end

#pragma mark -

@implementation CPGraph(AbstractFactoryMethods)

/**	@brief Creates a new plot space for the graph.
 *	@return A new plot space.
 **/
-(CPPlotSpace *)newPlotSpace
{
	return nil;
}

/**	@brief Creates a new axis set for the graph.
 *	@return A new axis set.
 **/
-(CPAxisSet *)newAxisSet
{
	return nil;
}

@end


text:
'use strict';

/**
 * Cron config that gives you an opportunity
 * to run scheduled jobs.
 *
 * The cron format consists of:
 * [SECOND (optional)] [MINUTE] [HOUR] [DAY OF MONTH] [MONTH OF YEAR] [DAY OF WEEK]
 *
 * See more details here: https://strapi.io/documentation/v3.x/concepts/configurations.html#cron-tasks
 */

module.exports = {
  /**
   * Simple example.
   * Every monday at 1am.
   */
  // '0 1 * * 1': () => {
  //
  // }
};


text:
<!DOCTYPE html>

<wicket:panel>

</wicket:panel>


text:
package matchers_test

import (
	"fmt"
	"reflect"
	"testing"
	"time"

	"git.sr.ht/~nelsam/hel/v4/pkg/pers"
	"github.com/poy/onpar/v2/matchers"
)

func TestOrFailureUsesEachMatcher(t *testing.T) {
	t.Parallel()
	mockMatcherA := newMockMatcher(t, time.Second)
	mockMatcherB := newMockMatcher(t, time.Second)
	mockMatcherC := newMockMatcher(t, time.Second)

	pers.Return(mockMatcherA.MatchOutput, 1, fmt.Errorf("some-error"))
	pers.Return(mockMatcherB.MatchOutput, 2, fmt.Errorf("some-error"))
	pers.Return(mockMatcherC.MatchOutput, 3, fmt.Errorf("some-error"))

	m := matchers.Or(mockMatcherA, mockMatcherB, mockMatcherC)

	_, err := m.Match(101)

	if err == nil {
		t.Error("expected err to not be nil")
	}

	actual := <-mockMatcherA.MatchInput.Actual
	if !reflect.DeepEqual(actual, 101) {
		t.Errorf("expecte %v to equal %v", actual, 101)
	}

	actual = <-mockMatcherB.MatchInput.Actual
	if !reflect.DeepEqual(actual, 101) {
		t.Errorf("expecte %v to equal %v", actual, 101)
	}

	actual = <-mockMatcherC.MatchInput.Actual
	if !reflect.DeepEqual(actual, 101) {
		t.Errorf("expecte %v to equal %v", actual, 101)
	}
}

func TestOrStopsOnSuccess(t *testing.T) {
	t.Parallel()
	mockMatcherA := newMockMatcher(t, time.Second)
	mockMatcherB := newMockMatcher(t, time.Second)
	mockMatcherC := newMockMatcher(t, time.Second)

	pers.Return(mockMatcherA.MatchOutput, 1, fmt.Errorf("some-error"))
	pers.Return(mockMatcherB.MatchOutput, 2, nil)
	pers.Return(mockMatcherC.MatchOutput, 3, nil)

	m := matchers.Or(mockMatcherA, mockMatcherB, mockMatcherC)

	v, err := m.Match(101)

	if err != nil {
		t.Error("expected err to be nil")
	}

	if len(mockMatcherA.MatchCalled) != 1 {
		t.Errorf("expected Match() to be invoked 1 time")
	}

	if len(mockMatcherB.MatchCalled) != 1 {
		t.Errorf("expected Match() to be invoked 1 time")
	}

	if len(mockMatcherC.MatchCalled) != 0 {
		t.Errorf("expected Match() to be invoked 0 times")
	}

	if !reflect.DeepEqual(v, 101) {
		t.Errorf("expecte %v to equal %v", v, 101)
	}
}


text:
title: Code.org Professional Development
---

# Code.org Professional Development #

[col-50]

PD for my course started in 2014-2015

[/col-50]

[col-50]

PD for my course starts in 2015-2016

[/col-50]

[col-50]

Congratulations on completing Code.org professional development!

[/col-50]

[col-50]

[<button>Click Here</button>](/educate/pd/15-16)

[/col-50]


text:
package com.itranswarp.jsonstream.validator.impl;

import org.junit.Before;
import org.junit.Test;

import com.itranswarp.jsonstream.annotation.Format;
import com.itranswarp.jsonstream.format.Email;
import com.itranswarp.jsonstream.format.LowerCase;
import com.itranswarp.jsonstream.validator.impl.StringValidator;
import com.itranswarp.jsonstream.JsonValidateException;

public class FormatStringTest {

	StringValidator formatValidator;
	FormatStringBean bean;

	@Before
	public void setUp() throws Exception {
		formatValidator = new StringValidator(FormatStringBean.class.getDeclaredField("emailValue"));
		bean = new FormatStringBean();
	}

    @Test
    public void testEmailIsOk() {
        formatValidator.validate("michael@itranswarp.com", "path", "value");
    }

	@Test(expected=JsonValidateException.class)
    public void testEmailIsOkButLowerCaseFailed() {
        formatValidator.validate("Michael@itranswarp.com", "path", "value");
    }

	@Test
	public void testEmailValueIsNull() {
	    formatValidator.validate(null, "path", "value");
	}

}

class FormatStringBean {

    @Format(Email.class)
	@Format(LowerCase.class)
	String emailValue;

}


text:
/**
 * This is a generated file. Do not edit or your changes will be lost
 */
#import "ComDZJSONKitModuleAssets.h"

extern NSData* filterDataInRange(NSData* thedata, NSRange range);

@implementation ComDZJSONKitModuleAssets

- (NSData*) moduleAsset
{
	return nil;
}

@end


text:
package ru.histone.v2.java_compiler.bcompiler;

import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.histone.v2.Constants;
import ru.histone.v2.evaluator.Context;
import ru.histone.v2.evaluator.Converter;
import ru.histone.v2.evaluator.EvaluatorHelper;
import ru.histone.v2.evaluator.NodesComparator;
import ru.histone.v2.evaluator.data.HistoneMacro;
import ru.histone.v2.evaluator.node.EvalNode;
import ru.histone.v2.evaluator.node.HasProperties;
import ru.histone.v2.evaluator.node.MacroEvalNode;
import ru.histone.v2.evaluator.node.MapEvalNode;
import ru.histone.v2.java_compiler.bcompiler.data.MacroFunction;
import ru.histone.v2.parser.node.AstType;
import ru.histone.v2.rtti.HistoneType;
import ru.histone.v2.rtti.RttiMethod;
import ru.histone.v2.utils.AsyncUtils;
import ru.histone.v2.utils.ParserUtils;
import ru.histone.v2.utils.RttiUtils;

import java.util.*;
import java.util.concurrent.CompletableFuture;
import java.util.function.BiFunction;
import java.util.function.DoubleBinaryOperator;

import static java.util.concurrent.CompletableFuture.completedFuture;

/**
 * @author Alexey Nevinsky
 */
public class StdLibrary {

    private static final Logger LOG = LoggerFactory.getLogger(StdLibrary.class);

    protected final NodesComparator comparator;
    protected final EvaluatorHelper evaluatorHelper;
    private final Converter converter;

    public StdLibrary(Converter converter) {
        this.converter = converter;
        comparator = new NodesComparator(converter);
        evaluatorHelper = new EvaluatorHelper(converter);
    }

    public CompletableFuture<EvalNode> sub(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return doArithmetic(first, second, (x, y) -> x - y);
    }

    public CompletableFuture<EvalNode> mod(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return doArithmetic(first, second, (x, y) -> x % y);
    }

    public CompletableFuture<EvalNode> mul(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return doArithmetic(first, second, (x, y) -> x * y);
    }

    public CompletableFuture<EvalNode> div(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return doArithmetic(first, second, (x, y) -> x / y);
    }

    private CompletableFuture<EvalNode> doArithmetic(CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second,
                                                     DoubleBinaryOperator sup) {
        return AsyncUtils.sequence(first, second)
                         .thenCompose(l -> {
                             EvalNode left = l.get(0);
                             EvalNode right = l.get(1);
                             if (converter.isNumberNode(left) || left.getType() == HistoneType.T_STRING) {
                                 Double lValue = evaluatorHelper.getValue(left).orElse(null);
                                 if (lValue != null) {
                                     if (converter.isNumberNode(right) || right.getType() == HistoneType.T_STRING) {
                                         Double rValue = evaluatorHelper.getValue(right).orElse(null);
                                         if (rValue != null) {
                                             Double res = sup.applyAsDouble(lValue, rValue);
                                             Optional<Long> longValue = ParserUtils.tryLongNumber(res);
                                             return longValue
                                                     .map(converter::getValue)
                                                     .orElseGet(() -> converter.getValue(res));
                                         }
                                     }
                                 }
                             }
                             return converter.getValue(null);
                         });
    }

    public boolean toBoolean(CompletableFuture<EvalNode> node) {
        return converter.nodeAsBoolean(node.join());
    }

    public CompletableFuture<EvalNode> arr(Object... args) {
        return null;
    }

    public boolean bool(CompletableFuture<EvalNode> apply) {
        return false;
    }

    public CompletableFuture<StringBuilder> append(Context ctx, CompletableFuture<StringBuilder> csb,
                                                   CompletableFuture<EvalNode> var) {
        if (var == null) {
            return csb;
        }

        return var
                .thenCompose(node -> RttiUtils.callToString(ctx, node)
                                              .thenCompose(v -> csb.thenApply(sb -> sb.append(v.getValue())))
                );
    }

    public CompletableFuture<EvalNode> asString(Context ctx, CompletableFuture<StringBuilder> csb) {
        return csb.thenCompose(sb -> RttiUtils.callToString(ctx, converter.createEvalNode(sb.toString())));
    }

    public CompletableFuture<EvalNode> asBooleanNot(Context context, CompletableFuture<EvalNode> node) {
        return node.thenCompose(n -> converter.getValue(!converter.nodeAsBoolean(n)));
    }

    public CompletableFuture<EvalNode> add(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return AsyncUtils.sequence(first, second).thenCompose(lr -> evaluatorHelper.processAddNodes(ctx, lr));
    }

    public CompletableFuture<EvalNode> uSub(Context ctx, CompletableFuture<EvalNode> v) {
        return v.thenApply(evaluatorHelper::processUnaryMinus);
    }

    /**
     * Method creates MapEvalNode from arguments: [CompletableFuture<EvalNode>, String]...
     *
     * @param nodes arguments for create map
     * @return completable future of result map
     */
    public CompletableFuture<EvalNode> array(CompletableFuture<EvalNode>... nodes) {
        if (nodes.length == 0) {
            return completedFuture(new MapEvalNode(new LinkedHashMap<>(0)));
        }
        return AsyncUtils.sequence(nodes)
                         .thenApply(nodeList -> {
                             Map<String, EvalNode> map = new LinkedHashMap<>();
                             for (int i = 0; i < nodeList.size() / 2; i++) {
                                 EvalNode value = nodeList.get(i * 2);
                                 EvalNode key = nodeList.get(i * 2 + 1);
                                 map.put(key.getValue() + "", value);
                             }
                             return new MapEvalNode(map);
                         });
    }

    /**
     * @param ctx   evaluation context
     * @param nodes array of nodes: нулевой элемент - переменная, у которой получаем какое-то значение, остальные - аргументы.
     * @return
     */
    public CompletableFuture<EvalNode> mGet(Context ctx, CompletableFuture<EvalNode>... nodes) {
        return AsyncUtils.sequence(nodes)
                         .thenCompose(nodeList -> ctx.call(nodeList.get(0), RttiMethod.RTTI_M_GET.getId(), nodeList));
    }

    public CompletableFuture<EvalNode> simpleCall(Context ctx, String functionName, List<CompletableFuture<EvalNode>> args) {
        return AsyncUtils.sequence(args)
                         .thenCompose(argList -> {
                             if (CollectionUtils.isNotEmpty(argList)) {
                                 return ctx.call(argList.get(0), functionName, argList);
                             }
                             return ctx.call(functionName, argList);
                         })
                         .exceptionally(converter.checkThrowable(LOG));
    }

    public CompletableFuture<EvalNode> mCall(Context ctx, CompletableFuture<EvalNode> valueNode, CompletableFuture<EvalNode>... nodes) {
        final CompletableFuture<List<EvalNode>> argsFuture = AsyncUtils.sequence(nodes);
        return valueNode
                .thenCompose(value -> argsFuture
                        .thenCompose(args -> {
                                         if (value.getType() == HistoneType.T_MACRO) {
                                             List<EvalNode> arguments = new ArrayList<>();
                                             arguments.add(value);
                                             arguments.addAll(args);
                                             return ctx.call(value, RttiMethod.RTTI_M_CALL.getId(), arguments);
                                         }
                                         if (value.getType() != HistoneType.T_STRING) {
                                             return converter.getValue(null);
                                         }
                                         return ctx.call((String) value.getValue(), args);
                                     }
                        )
                );
    }

    public CompletableFuture<EvalNode> lt(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return comparator.processRelation(first, second, AstType.AST_LT, ctx);
    }

    public CompletableFuture<EvalNode> eq(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return comparator.processRelation(first, second, AstType.AST_EQ, ctx);
    }

    public CompletableFuture<EvalNode> ge(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return comparator.processRelation(first, second, AstType.AST_GE, ctx);
    }

    public CompletableFuture<EvalNode> gt(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return comparator.processRelation(first, second, AstType.AST_GT, ctx);
    }

    public CompletableFuture<EvalNode> le(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return comparator.processRelation(first, second, AstType.AST_LE, ctx);
    }

    public CompletableFuture<EvalNode> neq(Context ctx, CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second) {
        return comparator.processRelation(first, second, AstType.AST_NEQ, ctx);
    }

    public MapEvalNode constructForSelfValue(MapEvalNode array, int currentIndex, int lastIndex) {
        List<Map.Entry<String, EvalNode>> nodes = new ArrayList<>(array.getValue().entrySet());

        Map<String, EvalNode> res = new LinkedHashMap<>();
        res.put(Constants.SELF_CONTEXT_KEY, converter.createEvalNode(nodes.get(currentIndex).getKey()));
        res.put(Constants.SELF_CONTEXT_VALUE, nodes.get(currentIndex).getValue());
        res.put(Constants.SELF_CONTEXT_CURRENT_INDEX, converter.createEvalNode(currentIndex));
        res.put(Constants.SELF_CONTEXT_LAST_INDEX, converter.createEvalNode(lastIndex));
        return (MapEvalNode) converter.createEvalNode(res);
    }

    public MapEvalNode constructWhileSelfValue(int currentIndex) {
        Map<String, EvalNode> res = new LinkedHashMap<>();
        res.put(Constants.SELF_WHILE_ITERATION, converter.createEvalNode(currentIndex));
//        res.put(Constants.SELF_WHILE_CONDITION, nodes.get(currentIndex).getValue());
        return (MapEvalNode) converter.createEvalNode(res);
    }

    public CompletableFuture<EvalNode> toMacro(MacroFunction macroFunction, long argsSize) {
        List<String> args = new ArrayList<>();
        for (int i = 1; i <= argsSize; i++) {
            args.add(i + "");
        }

        HistoneMacro f = new HistoneMacro(args, macroFunction, null, Collections.emptyMap(), HistoneMacro.WrappingType.NONE);

        return CompletableFuture.completedFuture(new MacroEvalNode(f));
    }

    public CompletableFuture<EvalNode> getFromCtx(Context ctx, CompletableFuture<EvalNode> nameNode) {
        return AsyncUtils.sequence(ctx.getValue(Constants.THIS_CONTEXT_VALUE), nameNode)
                         .thenApply(list -> {
                             EvalNode fromCtx = list.get(0);
                             if (fromCtx instanceof HasProperties) {
                                 String name = (String) list.get(1).getValue();
                                 return ((HasProperties) fromCtx).getProperty(converter, name);
                             }
                             return converter.createEvalNode(null);
                         });
    }

    public CompletableFuture<EvalNode> processLogicalNode(CompletableFuture<EvalNode> first, CompletableFuture<EvalNode> second, boolean negateCheck) {
        return first.thenCompose(f -> {
            if (converter.nodeAsBoolean(f) ^ negateCheck) {
                return CompletableFuture.completedFuture(f);
            }
            return second;
        });
    }

    public CompletableFuture<EvalNode> processBorNode(CompletableFuture<EvalNode> first,
                                                      CompletableFuture<EvalNode> second) {
        return processBitwiseNode(first, second, (a, b) -> a | b);
    }

    public CompletableFuture<EvalNode> processBxorNode(CompletableFuture<EvalNode> first,
                                                       CompletableFuture<EvalNode> second) {
        return processBitwiseNode(first, second, (a, b) -> a ^ b);
    }

    public CompletableFuture<EvalNode> processBandNode(CompletableFuture<EvalNode> first,
                                                       CompletableFuture<EvalNode> second) {
        return processBitwiseNode(first, second, (a, b) -> a & b);
    }

    private CompletableFuture<EvalNode> processBitwiseNode(CompletableFuture<EvalNode> firstFuture,
                                                           CompletableFuture<EvalNode> secondFuture,
                                                           BiFunction<Long, Long, Long> function) {
        return AsyncUtils.sequence(firstFuture, secondFuture)
                         .thenApply(f -> {
                             long first = 0;
                             if (f.get(0).getType() == HistoneType.T_NUMBER) {
                                 first = (long) f.get(0).getValue();
                             } else if (f.get(0).getType() == HistoneType.T_BOOLEAN) {
                                 first = converter.nodeAsBoolean(f.get(0)) ? 1 : 0;
                             }
                             long second = 0;
                             if (f.get(1).getType() == HistoneType.T_NUMBER) {
                                 second = (long) f.get(1).getValue();
                             } else if (f.get(1).getType() == HistoneType.T_BOOLEAN) {
                                 second = converter.nodeAsBoolean(f.get(1)) ? 1 : 0;
                             }
                             return converter.createEvalNode(function.apply(first, second));
                         });
    }

    /**
     * Method uses for wrapping ternary operator
     *
     * @param obj ternary operator
     */
    public void wrap(Object obj) {

    }
}


text:
{-# LANGUAGE TemplateHaskell #-}

module Tests.DBNode where

import Control.Monad
import Test.QuickCheck.All
import Test.QuickCheck.Arbitrary
import System.Exit

import Database.Siege.DBNode
import Database.Siege.Memory

import qualified Data.ByteString as B

instance Arbitrary B.ByteString where
   arbitrary = fmap B.pack arbitrary

prop_create_get_value :: B.ByteString -> Bool
prop_create_get_value a = testRawDBOperation $ do
  a' <- createValue a
  a'' <- getValue a'
  return $ a == a''

runTests :: IO ()
runTests = do
  succeed <- $quickCheckAll
  when (not succeed) exitFailure


text:
<!-- build.xml file for ant for Stanford CoreNLP -->

<!-- Before using this, unjar the sources' jar file into the src/ directory! -->

<!-- A "project" describes a set of targets that may be requested
     when Ant is executed.  The "default" attribute defines the
     target which is executed if no specific target is requested,
     and the "basedir" attribute defines the current working directory
     from which Ant executes the requested task.  This is normally
     set to the current working directory.
-->

<project name="StanfordCoreNLP" default="compile" basedir=".">

  <property name="build.home"    value="${basedir}/classes"/>
  <property name="build.tests"    value="${basedir}/classes"/>
  <property name="src.home"      value="${basedir}/src"/>

<!--  ==================== Compilation Control Options ==================== -->

<!--

  These properties control option settings on the Javac compiler when it
  is invoked using the <javac> task.

  compile.debug        Should compilation include the debug option?

  compile.deprecation  Should compilation include the deprecation option?

  compile.optimize     Should compilation include the optimize option?

  compile.source       Source version compatibility

  compile.target       Target class version compatibility

-->

  <property name="compile.debug"       value="true"/>
  <property name="compile.deprecation" value="false"/>
  <property name="compile.encoding"    value="utf-8" />
  <property name="compile.optimize"    value="true"/>
  <property name="compile.source"      value="1.6" />
  <property name="compile.target"      value="1.6" />

<!-- ==================== All Target ====================================== -->

<!--

  The "all" target is a shortcut for running the "clean" target followed
  by the "compile" target, to force a complete recompile.

-->

  <target name="all" depends="clean,compile"
   description="Clean build and dist directories, then compile"/>

<!-- ==================== Clean Target ==================================== -->

<!--

  The "clean" target deletes any previous "build" and "dist" directory,
  so that you can be ensured the application can be built from scratch.

-->

  <target name="clean" description="Delete old classes">
    <delete dir="${build.home}/edu"/>
  </target>

<!-- ==================== Compile Target ================================== -->

<!--

  The "compile" target transforms source files (from your "src" directory)
  into object files in the appropriate location in the build directory.
  This example assumes that you will be including your classes in an
  unpacked directory hierarchy under "/WEB-INF/classes".

-->

  <target name="compile" depends="prepare"
   description="Compile Java sources">

    <!-- Compile Java classes as necessary -->
    <mkdir    dir="${build.home}"/>
    <javac srcdir="${src.home}"
          destdir="${build.home}"
            debug="${compile.debug}"
      deprecation="${compile.deprecation}"
         encoding="${compile.encoding}"
         optimize="${compile.optimize}"
	   source="${compile.source}"
           target="${compile.target}">
      <compilerarg value="-Xmaxerrs"/>
      <compilerarg value="20"/>
      <classpath>
        <fileset dir="${basedir}">
          <include name="*.jar"/>
          <exclude name="stanford-corenlp*"/>
        </fileset>
      </classpath>
      <!-- <compilerarg value="-Xlint"/> -->
    </javac>
  </target>

<!-- ==================== Prepare Target ================================== -->

<!--

  The "prepare" target is used to create the "build" destination directory,
  and copy the static contents of your web application to it.  If you need
  to copy static files from external dependencies, you can customize the
  contents of this task.

  Normally, this task is executed indirectly when needed.

-->

  <target name="prepare">

    <!-- Create build directories as needed -->
    <mkdir  dir="${build.home}"/>

  </target>

</project>


text:
require 'stringio'

module Shr
  module Builtin

    def capture(&block)
      proc = Proc.new do |environment|
        output = relay capture_stdout(&block)
        if environment.key? :out
          File.write(environment[:out], output.read)
        end
        [output, nil]
      end
      @plan << [:capture, proc]
      self
    end

    def cd!(path=nil)
      proc = Proc.new do
        path ? Dir.chdir(path) : Dir.chdir
        [nil, nil]
      end
      @plan << ["#cd! #{path}".strip, proc]
      carry_out
      self
    end

    private

    def capture_stdout
      begin
        $stdout = StringIO.new
        yield
        out = $stdout.string
      ensure
        $stdout = STDOUT
      end
      out
    end

    def relay(source)
      r, w = IO.pipe
      w.write source
      w.close
      r
    end
  end
end


text:
export type CodePoint = number;

export type Emoticon = string;

export type Gender = 0 | 1;

export type GenderKey = 'female' | 'male';

export type Group = number;

export type GroupKey =
	| 'activities'
	| 'animals-nature'
	| 'component'
	| 'flags'
	| 'food-drink'
	| 'objects'
	| 'people-body'
	| 'smileys-emotion'
	| 'symbols'
	| 'travel-places';

export type Hexcode = string;

export type Presentation = 0 | 1;

export type PresentationKey = 'emoji' | 'text';

export type Qualifier = 0 | 1 | 2;

export type Shortcode = string;

export type ShortcodePreset =
	| 'cldr-native'
	| 'cldr'
	| 'discord'
	| 'emojibase-legacy'
	| 'emojibase-native'
	| 'emojibase'
	| 'github'
	| 'iamcal'
	| 'joypixels'
	| 'slack';

export type LocalizedShortcodePreset = `${Locale}/${ShortcodePreset}`;

export type SkinTone = 1 | 2 | 3 | 4 | 5;

export type SkinToneKey = 'dark' | 'light' | 'medium-dark' | 'medium-light' | 'medium';

export type Subgroup = number;

export type SubgroupKey =
	| 'alphanum'
	| 'animal-amphibian'
	| 'animal-bird'
	| 'animal-bug'
	| 'animal-mammal'
	| 'animal-marine'
	| 'animal-reptile'
	| 'arrow'
	| 'arts-crafts'
	| 'av-symbol'
	| 'award-medal'
	| 'body-parts'
	| 'book-paper'
	| 'cat-face'
	| 'clothing'
	| 'computer'
	| 'country-flag'
	| 'currency'
	| 'dishware'
	| 'drink'
	| 'emotion'
	| 'event'
	| 'face-affection'
	| 'face-concerned'
	| 'face-costume'
	| 'face-glasses'
	| 'face-hand'
	| 'face-hat'
	| 'face-negative'
	| 'face-neutral-skeptical'
	| 'face-sleepy'
	| 'face-smiling'
	| 'face-tongue'
	| 'face-unwell'
	| 'family'
	| 'flag'
	| 'food-asian'
	| 'food-fruit'
	| 'food-marine'
	| 'food-prepared'
	| 'food-sweet'
	| 'food-vegetable'
	| 'game'
	| 'gender'
	| 'geometric'
	| 'hair-style'
	| 'hand-fingers-closed'
	| 'hand-fingers-open'
	| 'hand-fingers-partial'
	| 'hand-prop'
	| 'hand-single-finger'
	| 'hands'
	| 'hotel'
	| 'household'
	| 'keycap'
	| 'light-video'
	| 'lock'
	| 'mail'
	| 'math'
	| 'medical'
	| 'money'
	| 'monkey-face'
	| 'music'
	| 'musical-instrument'
	| 'office'
	| 'other-object'
	| 'other-symbol'
	| 'person-activity'
	| 'person-fantasy'
	| 'person-gesture'
	| 'person-resting'
	| 'person-role'
	| 'person-sport'
	| 'person-symbol'
	| 'person'
	| 'phone'
	| 'place-building'
	| 'place-geographic'
	| 'place-map'
	| 'place-other'
	| 'place-religious'
	| 'plant-flower'
	| 'plant-other'
	| 'punctuation'
	| 'religion'
	| 'science'
	| 'skin-tone'
	| 'sky-weather'
	| 'sound'
	| 'sport'
	| 'subdivision-flag'
	| 'time'
	| 'tool'
	| 'transport-air'
	| 'transport-ground'
	| 'transport-sign'
	| 'transport-water'
	| 'warning'
	| 'writing'
	| 'zodiac';

export type Unicode = string;

export interface CompactEmoji
	extends Pick<
		Emoji,
		'emoticon' | 'group' | 'hexcode' | 'label' | 'order' | 'shortcodes' | 'tags'
	> {
	/** List of skin tones as emoji objects. */
	skins?: CompactEmoji[];
	/** Either the emoji or text presentation Unicode character. */
	unicode: Unicode;
}

export type FlatCompactEmoji = Omit<CompactEmoji, 'skins'>;

export interface Emoji {
	/** Emoji presentation unicode character. */
	emoji: Unicode;
	/** If applicable, an emoticon representing the emoji character. */
	emoticon?: Emoticon | Emoticon[];
	/** If applicable, the gender of the emoji character. `0` for female, `1` for male. */
	gender?: Gender;
	/** The categorical group the emoji belongs to. Undefined for uncategorized emojis. */
	group?: Group;
	/**
	 * The hexadecimal representation of the emoji Unicode codepoint. If the emoji supports both
	 * emoji and text variations, the hexcode will not include the variation selector. If a
	 * multi-person, multi-gender, or skin tone variation, the hexcode will include zero width
	 * joiners and variation selectors.
	 */
	hexcode: Hexcode;
	/** A localized description, provided by CLDR, primarily used for text-to-speech (TTS) and accessibility. */
	label: string;
	/** The order in which emoji should be displayed on a device, through a keyboard or emoji picker. Undefined for unordered emojis. */
	order?: number;
	/** List of shortcodes without surrounding colons. */
	shortcodes?: Shortcode[];
	/** If applicable, an array of emoji objects for each skin tone modification, starting at light skin, and ending with dark skin. Also includes multi-skin tones. */
	skins?: Emoji[];
	/** The categorical subgroup the emoji belongs to. Undefined for uncategorized emojis. */
	subgroup?: Subgroup;
	/** An array of localized keywords, provided by CLDR, to use for searching and filtering. */
	tags?: string[];
	/** Text presentation unicode character. */
	text: Unicode;
	/**
	 * If applicable, the skin tone of the emoji character. `1` for light skin, `2` for medium-light
	 * skin, `3` for medium skin, `4` for medium-dark skin, and 5 for dark skin. Multi-person skin
	 * tones will be an array of values.
	 */
	tone?: SkinTone | SkinTone[];
	/** The default presentation of the emoji character. `0` for text, `1` for emoji. */
	type: Presentation;
	/** Version the emoji was added. */
	version: number;
}

export type FlatEmoji = Omit<Emoji, 'skins'>;

export interface EmojiLike {
	hexcode: string;
	shortcodes?: string[];
	skins?: EmojiLike[];
}

export interface GroupDataset {
	groups: Record<string, string>;
	subgroups: Record<string, string>;
	hierarchy: Record<string, number[]>;
}

export type VersionDataset = Record<string, string[]>;

export type ShortcodesDataset = Record<Hexcode, string[] | string>;

export type HexcodesDataset = Record<Hexcode, Record<Hexcode, Qualifier>>;

export interface SkinToneMessage {
	key: SkinToneKey;
	message: string;
}

export interface GroupMessage {
	key: GroupKey;
	message: string;
	order: number;
}

export interface SubgroupMessage {
	key: SubgroupKey;
	message: string;
	order: number;
}

export interface MessagesDataset {
	groups: GroupMessage[];
	skinTones: SkinToneMessage[];
	subgroups: SubgroupMessage[];
}

export type Locale =
	| 'da'
	| 'de'
	| 'en-gb'
	| 'en'
	| 'es-mx'
	| 'es'
	| 'et'
	| 'fi'
	| 'fr'
	| 'hu'
	| 'it'
	| 'ja'
	| 'ko'
	| 'lt'
	| 'ms'
	| 'nb'
	| 'nl'
	| 'pl'
	| 'pt'
	| 'ru'
	| 'sv'
	| 'th'
	| 'uk'
	| 'zh-hant'
	| 'zh';

// OPTIONS

export interface PermutationOptions {
	isFace?: boolean;
	withNose?: boolean;
}

export type CDNUrlFn = (path: string, version: string) => string;

export interface FetchFromCDNOptions extends RequestInit {
	/** Cache the response in local storage instead of session storage. Defaults to `false`. */
	local?: boolean;
	/** The release version to fetch. Defaults to `latest`. */
	version?: string;
	/** The url from which to load the JSON files */
	cdnUrl?: CDNUrlFn | string;
}

export interface FetchEmojisOptions extends FetchFromCDNOptions {
	/** List of shortcode presets to load and merge into the emojis dataset. Defaults to an empty list. */
	shortcodes?: (LocalizedShortcodePreset | ShortcodePreset)[];
}

export interface FetchEmojisExpandedOptions extends FetchEmojisOptions {
	/** Load the compact dataset instead of the full dataset. Defaults to `false`. */
	compact?: boolean;
	/** Flatten the dataset (moving skin tones to the root). Defaults to `false`. */
	flat?: boolean;
}


text:
'''
Created on Sep 13, 2012

@author: Gary
'''

from housemonitor.lib.base import Base
from housemonitor.inputs.zigbeeinput.xbeeinputthread import XBeeInputThread
from housemonitor.lib.hmqueue import HMQueue
from housemonitor.lib.constants import Constants

def instantuate_me():
    return Main()

class Main( Base ):

    @property
    def logger_name( self ):
        return Constants.LogKeys.inputsZigBee

    def __init__( self ):
        super( Main, self ).__init__()
        self.logger.debug( 'Start Input Queue' )
        input_queue = HMQueue( name="ZigBeeInput" )
        self.logger.debug( 'instantuate XBeeInputThread' )
        xbee_thread = XBeeInputThread( input_queue )
        self.logger.debug( 'Start Thread' )
        xbee_thread.start()


text:
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
  <id>overlay</id>
  <formats>
    <format>zip</format>
  </formats>
  <includeBaseDirectory>false</includeBaseDirectory>
  <dependencySets>
    <!-- JDBC Drivers -->
    <dependencySet>
      <outputDirectory>modules/org/postgres/main</outputDirectory>
      <includes>
        <include>org.postgresql:postgresql:jar</include>
      </includes>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>

    <dependencySet>
      <outputDirectory>modules/com/mysql/main</outputDirectory>
      <includes>
        <include>mysql:mysql-connector-java:jar</include>
      </includes>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>

<!--    <dependencySet>-->
<!--      <outputDirectory>standalone/deployments</outputDirectory>-->
<!--      <includes>-->
<!--        <include>com.oracle.database.jdbc:ojdbc11:jar</include>-->
<!--        <include>com.microsoft.sqlserver:mssql-jdbc:jar</include>-->
<!--      </includes>-->
<!--      <useProjectArtifact>false</useProjectArtifact>-->
<!--      <useProjectAttachments>false</useProjectAttachments>-->
<!--      <useTransitiveDependencies>false</useTransitiveDependencies>-->
<!--      <useTransitiveFiltering>false</useTransitiveFiltering>-->
<!--      <directoryMode>0755</directoryMode>-->
<!--      <fileMode>0755</fileMode>-->
<!--    </dependencySet>-->

    <!-- apiman-manager -->
    <dependencySet>
      <outputDirectory>standalone/deployments</outputDirectory>
      <includes>
        <include>*:apiman-manager-ui-war-wildfly8:war</include>
      </includes>
      <outputFileNameMapping>apimanui.war</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>
    <!-- apiman -->
    <dependencySet>
      <outputDirectory>standalone/deployments</outputDirectory>
      <includes>
        <include>*:apiman-manager-api-war-wildfly8:war</include>
      </includes>
      <outputFileNameMapping>apiman.war</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>
    <!-- apiman-gateway-api -->
    <dependencySet>
      <outputDirectory>standalone/deployments</outputDirectory>
      <includes>
        <include>*:apiman-gateway-platforms-war-wildfly8-api:war</include>
      </includes>
      <outputFileNameMapping>apiman-gateway-api.war</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>
    <!-- apiman-gateway -->
    <dependencySet>
      <outputDirectory>standalone/deployments</outputDirectory>
      <includes>
        <include>*:apiman-gateway-platforms-war-wildfly8-gateway:war</include>
      </includes>
      <outputFileNameMapping>apiman-gateway.war</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>
    <!-- Sample data -->
    <dependencySet>
      <outputDirectory>apiman</outputDirectory>
      <includes>
        <include>io.apiman:apiman-distro-data:jar</include>
        <include>io.apiman:apiman-distro-tools</include>
      </includes>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
      <unpack>true</unpack>
      <unpackOptions>
        <excludes>
          <exclude>**/META-INF/**</exclude>
          <exclude>**/sample-data/**</exclude>
        </excludes>
      </unpackOptions>
    </dependencySet>
    <!-- Apiman Data -->
    <dependencySet>
      <outputDirectory>standalone/data</outputDirectory>
      <includes>
        <include>io.apiman:apiman-distro-data:jar</include>
      </includes>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
      <unpack>true</unpack>
      <unpackOptions>
        <includes>
          <include>**/bootstrap/**</include>
        </includes>
      </unpackOptions>
    </dependencySet>
    <!-- Apiman Conf (e.g. email template) -->
    <dependencySet>
      <outputDirectory>standalone/configuration</outputDirectory>
      <includes>
        <include>io.apiman:apiman-distro-conf:jar</include>
      </includes>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
      <unpack>true</unpack>
      <unpackOptions>
        <excludes>
          <exclude>/META-INF/**</exclude>
        </excludes>
      </unpackOptions>
    </dependencySet>
    <!-- Apiman portal -->
    <dependencySet>
      <outputDirectory>standalone/deployments</outputDirectory>
      <includes>
        <include>*:apiman-portal-war-wildfly:war</include>
      </includes>
      <outputFileNameMapping>apiman-developer-portal-wildfly.war</outputFileNameMapping>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>
    <dependencySet>
      <outputDirectory>standalone/configuration/portal</outputDirectory>
      <includes>
        <include>*:apiman-portal-ui:jar</include>
      </includes>
      <unpack>true</unpack>
      <useProjectArtifact>false</useProjectArtifact>
      <useProjectAttachments>false</useProjectAttachments>
      <useTransitiveDependencies>false</useTransitiveDependencies>
      <useTransitiveFiltering>false</useTransitiveFiltering>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </dependencySet>
  </dependencySets>
  <fileSets>
    <!-- Filter module defs -->
    <fileSet>
      <directory>src/main/resources/overlay/modules</directory>
      <outputDirectory>modules</outputDirectory>
      <filtered>true</filtered>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </fileSet>
    <!-- Don't filter everything else as can end up filtering stuff we don't want -->
    <fileSet>
      <directory>src/main/resources/overlay</directory>
      <outputDirectory></outputDirectory>
      <filtered>false</filtered>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
      <excludes>
        <exclude>src/main/resources/overlay/modules</exclude>
      </excludes>
    </fileSet>
    <fileSet>
      <directory>target/keycloak/modules</directory>
      <outputDirectory>modules</outputDirectory>
      <filtered>false</filtered>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
      <excludes>
        <exclude>**/aesh/**</exclude>
      </excludes>
    </fileSet>
    <fileSet>
      <directory>target/keycloak/bin</directory>
      <outputDirectory>bin</outputDirectory>
      <filtered>false</filtered>
      <directoryMode>0755</directoryMode>
      <fileMode>0755</fileMode>
    </fileSet>
  </fileSets>
</assembly>


text:
namespace history {
class WebHistoryService;
}

namespace syncer {
class SyncService;
}

namespace version_info {
enum class Channel;
}

namespace browsing_data {

// Whether the Clear Browsing Data UI should show a notice about the existence
// of other forms of browsing history stored in user's account. The response
// is returned in a |callback|.
void ShouldShowNoticeAboutOtherFormsOfBrowsingHistory(
    const syncer::SyncService* sync_service,
    history::WebHistoryService* history_service,
    base::OnceCallback<void(bool)> callback);

// Whether the Clear Browsing Data UI should popup a dialog with information
// about the existence of other forms of browsing history stored in user's
// account when the user deletes their browsing history for the first time.
// The response is returned in a |callback|. The |channel| parameter
// must be provided for successful communication with the Sync server, but
// the result does not depend on it.
void ShouldPopupDialogAboutOtherFormsOfBrowsingHistory(
    const syncer::SyncService* sync_service,
    history::WebHistoryService* history_service,
    version_info::Channel channel,
    base::OnceCallback<void(bool)> callback);

}  // namespace browsing_data

#endif  // COMPONENTS_BROWSING_DATA_CORE_HISTORY_NOTICE_UTILS_H_


text:
    <input ng-if="!container.isReadonly"
            ng-readonly="container.isReadonly"
            ng-required="container.isRequired"
            name="{{::container.field}}"
            selectize="options"
            options="items"
            class="{{::container.layout !== 'horizontal' ? layoutCss : ''}}"
            ng-model="container.record[container.field]" />

    <input ng-if="container.isReadonly"
           style="{{::style}}"
           readonly="readonly"
           type='text'
           class="form-control {{::container.layout !== 'horizontal' ? layoutCss : ''}}"
           ng-model='readOnlyModel'/>


text:
<?php
namespace test\db;
use ebi\Q;

class AbcFind extends Find{
	protected function __find_conds__(): \ebi\Q{
		return Q::b(Q::eq('value1','abc'));
	}
}


text:
selectbox {
  text-align: left;
  position: relative;
  cursor: pointer;
}

selectbox .select {
  width: 100%;
}

selectbox .select > div {
  float: left;
  width: 100%;
  margin-right: 6px;
  position:relative;
}

selectbox .selected_value {
  padding: 0 0 0 10px;
  border:1px solid #cbcbcb;
  border-radius: 5px;
  height: 33px;
  line-height: 33px;
  background-image: url('../../img/DropDown.XS_D.svg');
  background-repeat: no-repeat;
  background-position: right center;
}

selectbox .options {
  height: 90px;
  top: -89px;
  position: absolute;
  width: 100%;
  border: 1px solid #cbcbcb;
  background-color: #ffffff;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow: auto;
}

selectbox .options > li {
  padding: 5px;
}

selectbox .options > li:hover {
  background-color: #355EA3;
  color: #ffffff;
}

selectbox .options > li.selected {
  background-color: #355EA3;
  color: #ffffff;
}

selectbox ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

selectbox:after {
  content: "";
  display: table;
  clear: both;
}