text:
package br.com.objectos.way.io;

import static br.com.objectos.testing.MoreMatchers.equalTo;
import static com.google.common.collect.Lists.transform;
import static org.hamcrest.MatcherAssert.assertThat;

import java.util.List;

import br.com.objectos.comuns.io.Encoding;
import br.com.objectos.way.io.Table.Error;

import com.google.common.collect.ImmutableList;

import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

/**
 * @author mario.marques@objectos.com.br (Mario Marques Junior)
 */
@Test
public class TableReaderCsvTest {

  private TableReader<Entity> reader;
  private TableReader<Entity> quoted;
  private TableReader<Entity> escaped;

  @BeforeClass
  public void setupReader() {
    reader = WayIO.tableReaderOf(Entity.class)
        .csv()
        .onSemicolons()
        .notQuoted()
        .notEscaped()
        .encodedWith(Encoding.UTF_8)
        .skipFirstLines(1)
        .parseWith(new EntityParser())
        .filterWith(new EntityFilter())
        .build();

    quoted = WayIO.tableReaderOf(Entity.class)
        .csv()
        .onSemicolons()
        .quoted()
        .notEscaped()
        .encodedWith(Encoding.UTF_8)
        .skipFirstLines(1)
        .parseWith(new EntityParser())
        .filterWith(new EntityFilter())
        .build();

    escaped = WayIO.tableReaderOf(Entity.class)
        .csv()
        .onSemicolons()
        .quoted()
        .escaped()
        .encodedWith(Encoding.UTF_8)
        .skipFirstLines(1)
        .parseWith(new EntityParser())
        .filterWith(new EntityFilter())
        .build();
  }

  public void read_normal() {
    List<Entity> fakes = FakeEntities.getAll();
    List<String> expected = transform(fakes, EntityToString.INSTANCE);

    Table<Entity> table = reader.readResource("/csv/reader.csv").get();
    printErrors(table);

    List<Entity> rows = table.getRows();
    List<String> res = transform(rows, EntityToString.INSTANCE);

    assertThat(res.size(), equalTo(3));
    assertThat(res, equalTo(expected));
  }

  public void read_error() {
    List<Entity> fakes = FakeEntities.getAll();
    List<String> expected = transform(fakes, EntityToString.INSTANCE);

    Table<Entity> table = reader.readResource("/csv/reader_error.csv").get();
    printErrors(table);

    List<Entity> rows = table.getRows();
    List<String> res = transform(rows, EntityToString.INSTANCE);

    assertThat(res.size(), equalTo(3));
    assertThat(res, equalTo(expected));
  }

  public void read_quoted() {
    List<Entity> fakes = FakeEntities.getAll();
    List<String> expected = transform(fakes, EntityToString.INSTANCE);

    Table<Entity> table = quoted.readResource("/csv/reader_quoted.csv").get();
    printErrors(table);

    List<Entity> rows = table.getRows();
    List<String> res = transform(rows, EntityToString.INSTANCE);

    assertThat(res.size(), equalTo(3));
    assertThat(res, equalTo(expected));
  }

  public void read_escaped() {
    List<Entity> fakes = ImmutableList.<Entity> builder()
        .addAll(FakeEntities.getAll())
        .add(FakeEntities.ENTITY_D)
        .build();
    List<String> expected = transform(fakes, EntityToString.INSTANCE);

    Table<Entity> table = escaped.readResource("/csv/reader_escaped.csv").get();
    printErrors(table);

    List<Entity> rows = table.getRows();
    List<String> res = transform(rows, EntityToString.INSTANCE);

    assertThat(res.size(), equalTo(4));
    assertThat(res, equalTo(expected));
  }

  private void printErrors(Table<Entity> table) {
    List<Error> errors = table.getErrors();
    for (Error error : errors) {
      System.out.println(error);
    }
  }

}


text:
/**
 * A RenderSurfaceBase is the base for RenderSurface and
 * RenderDepthStencilSurface.
 *
 * @param {number} width The width of this RenderSurface.
 * @param {number} height The height of this RenderSurface.
 * @param {o3d.Texture} texture The texture of this RenderSurface.
 * @constructor
 */
o3d.RenderSurfaceBase = function(width, height, texture) {
  o3d.ParamObject.call(this);

  /**
   * The width of the surface, in pixels.
   * @type {number}
   */
  this.width = width || 0;

  /**
   * The height of the surface, in pixels.
   * @type {number}
   */
  this.height = height || 0;

  /**
   * The texture in which this surface is contained.
   */
  this.texture = texture || null;

  /**
   * The mip level targeted by this render surface.
   * @type {number}
   */
  this.level = 0;

  /**
   * The underlying GL framebuffer object.
   * @type {WebGLFramebuffer}
   * @private
   */
  this.framebuffer_ = null;

};
o3d.inherit('RenderSurfaceBase', 'ParamObject');

o3d.ParamObject.setUpO3DParam_(o3d.RenderSurfaceBase, 'width', 'ParamInteger');
o3d.ParamObject.setUpO3DParam_(o3d.RenderSurfaceBase, 'height', 'ParamInteger');

/**
 * A RenderSurface encapsulates the notion of a renderable surface.
 * When used in conjunction with a RenderSurfaceSet node in the render graph,
 * the API allows for rendering of primitives to the given surface.
 * RenderSurface objects are not constructable through the Pack API, they may
 * only be accessed through the texture getRenderSurface(...) interfaces.
 * @constructor
 */
o3d.RenderSurface = function() {
  o3d.RenderSurfaceBase.call(this);
};
o3d.inherit('RenderSurface', 'RenderSurfaceBase');

/**
 * Initializes a render surface to render to the given texture.
 * @param {o3d.Texture2D} texture The texture.
 */
o3d.RenderSurface.prototype.initWithTexture = function(texture, level) {
  this.framebuffer_ = this.gl.createFramebuffer();
  this.texture = texture;
  this.level = level;
  this.width = texture.width;
  this.height = texture.height;
};

/**
 * A RenderDepthStencilSurface represents a depth stencil render surface.
 * @constructor
 */
o3d.RenderDepthStencilSurface = function() {
  o3d.RenderSurfaceBase.call(this);

  /**
   * The GL renderbuffer object for the depth / stencil buffer.
   * @type {WebGLRenderbuffer}
   * @private
   */
  this.depth_stencil_buffer_ = null;
};
o3d.inherit('RenderDepthStencilSurface', 'RenderSurfaceBase');

/**
 * Allocates depth and stnecil buffers of the given size.
 * @param {number} width
 * @param {number} height
 * @private
 */
o3d.RenderDepthStencilSurface.prototype.initWithSize_ =
    function(width, height) {
  this.depth_stencil_buffer_ = this.gl.createRenderbuffer();
  this.gl.bindRenderbuffer(this.gl.RENDERBUFFER, this.depth_stencil_buffer_);
  this.gl.renderbufferStorage(
     this.gl.RENDERBUFFER, this.gl.DEPTH_COMPONENT16, width, height);
  this.width = width;
  this.height = height;
};

redpajama_set_name: RedPajamaGithub


text:
#ifndef _PROCESS_H_
#define _PROCESS_H_

#ifdef RTE_EXEC_ENV_BSDAPP
#define self "curproc"
#define exe "file"
#else
#define self "self"
#define exe "exe"
#endif

/*
 * launches a second copy of the test process using the given argv parameters,
 * which should include argv[0] as the process name. To identify in the
 * subprocess the source of the call, the env_value parameter is set in the
 * environment as $RTE_TEST
 */
static inline int
process_dup(const char *const argv[], int numargs, const char *env_value)
{
	int num;
#ifdef RTE_LIBRTE_XEN_DOM0
	char *argv_cpy[numargs + 2];
#else
	char *argv_cpy[numargs + 1];
#endif
	int i, fd, status;
	char path[32];

	pid_t pid = fork();
	if (pid < 0)
		return -1;
	else if (pid == 0) {
		/* make a copy of the arguments to be passed to exec */
		for (i = 0; i < numargs; i++)
			argv_cpy[i] = strdup(argv[i]);
#ifdef RTE_LIBRTE_XEN_DOM0
		argv_cpy[i] = strdup("--xen-dom0");
		argv_cpy[i + 1] = NULL;
		num = numargs + 1;
#else
		argv_cpy[i] = NULL;
		num = numargs;
#endif

		/* close all open file descriptors, check /proc/self/fd to only
		 * call close on open fds. Exclude fds 0, 1 and 2*/
		for (fd = getdtablesize(); fd > 2; fd-- ) {
			snprintf(path, sizeof(path), "/proc/" exe "/fd/%d", fd);
			if (access(path, F_OK) == 0)
				close(fd);
		}
		printf("Running binary with argv[]:");
		for (i = 0; i < num; i++)
			printf("'%s' ", argv_cpy[i]);
		printf("\n");

		/* set the environment variable */
		if (setenv(RECURSIVE_ENV_VAR, env_value, 1) != 0)
			rte_panic("Cannot export environment variable\n");
		if (execv("/proc/" self "/" exe, argv_cpy) < 0)
			rte_panic("Cannot exec\n");
	}
	/* parent process does a wait */
	while (wait(&status) != pid)
		;
	return status;
}

#endif /* _PROCESS_H_ */


text:
layout: post
title: Getting Creative With the Google Maps API
date: 2014-10-16 07:20
author: administrator
comments: true
categories: [HTML/CSS]
---
You've designed a shiny new website; carefully selecting the colors, typography and photographs to perfectly reflect the company's branding.  Then your client asks you to add a map. Sure, you could use a map building 'wizard', such as the one that comes with every google account. But, let's face it, their functionality is limited and they look pretty generic!

http://webdesign.tutsplus.com/tutorials/getting-creative-with-the-google-maps-api--webdesign-13380


text:
namespace glslang {

// Load 'token' with the next token in the stream of tokens.
void HlslTokenStream::advanceToken()
{
    scanner.tokenize(token);
}

// Return the current token class.
EHlslTokenClass HlslTokenStream::peek() const
{
    return token.tokenClass;
}

// Return true, without advancing to the next token, if the current token is
// the expected (passed in) token class.
bool HlslTokenStream::peekTokenClass(EHlslTokenClass tokenClass) const
{
    return peek() == tokenClass;
}

// Return true and advance to the next token if the current token is the
// expected (passed in) token class.
bool HlslTokenStream::acceptTokenClass(EHlslTokenClass tokenClass)
{
    if (peekTokenClass(tokenClass)) {
        advanceToken();
        return true;
    }

    return false;
}

} // end namespace glslang


text:
module.exports = {
    'before': function(browser) {
        browser.maximizeWindow();
    },

    'after': function(browser) {
        browser.end();
    },
    'Enums: REST v2: Methods - Query String': function(browser) {
        const methodURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v2/methods/Addresses/ResolveAddress/`;
        const enumURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v2/methods/Addresses/enums/ResolveAddress%20>%20textCase/`;
        const attr = 'textCase';

        browser
            .initialize(methodURL)
            .navigateToUrl(`.endpoint-summary a[href~="${attr}"]`, '.enum-summary', enumURL);

        browser.page.enums()
            .pageIsValid(attr, 'Query String Parameter - Enum', 'selectable text case for address validation', 2);

        browser
            .navigateToUrl('h1 a', '.endpoint-summary', methodURL);
    },
    'Enums: REST v2: Models - Request Body': function(browser) {
        const modelURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v2/models/AccountModel/`;
        const enumURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v2/models/enums/AccountModel%20>%20accountStatusId/`;
        const attr = 'AccountModel > accountStatusId';

        browser
            .initialize(modelURL, '.model-summary')
            .navigateToUrl(`.model-summary a[href="../enums/${attr}"]`, '.enum-summary', enumURL);

        browser.page.enums()
            .pageIsValid(attr, 'Request Body Parameter - Enum', 'The current status of this account.', 4);
    },

    'Enums: REST v2: Methods - Path Parameter': function(browser) {
        const methodURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v2/methods/Transactions/GetTransactionByCodeAndType/`;
        const enumURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v2/methods/Transactions/enums/GetTransactionByCodeAndType%20>%20documentType/`;
        const attr = 'documentType';

        browser
            .initialize(methodURL, '.endpoint-summary')
            .navigateToUrl(`.endpoint-summary a[href~="${attr}"]`, '.enum-summary', enumURL);

        browser.page.enums()
            .pageIsValid(attr, 'URL Path Parameter - Enum', 'The transaction type to retrieve', 11);
    },

    'Enums: REST v1: Models - Path Parameter': function(browser) {
        const modelURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v1/models/TaxDetail/`;
        const enumURL = `${browser.globals.baseURL}/api-reference/avatax/rest/v1/models/enums/TaxDetail%20>%20JurisType/`;
        const attr = 'JurisType';

        browser
            .initialize(modelURL, '.model-summary')
            .navigateToUrl(`.model-summary a[href~="${attr}"]`, '.enum-summary', enumURL);

        // description is not present on this page
        browser.page.enums()
            .assert.containsText('h1', attr)
            .assert.containsText('@enumType', 'Request Body Parameter - Enum')
            .assert.elementNumTimes('@valueTable', 5, 'enums')
            .api.element('css selector', 'main h2#description + p', function(element) {
                browser.assert.equal(element.error,
                    'An element could not be located on the page using the given search parameters.');
            });

        browser
            .navigateToUrl('h1 a', '.model-summary', modelURL);
    }
};


text:
{{utils.prefetch_link(next_url)}}
# endblock

# block content

{{title}} это займет всего 8 секунд

        Войти через Google

      # if config.CONFIG_DB.has_facebook

          Войти через Facebook

      # endif

      # if config.CONFIG_DB.has_twitter

          Войти через Twitter

      # endif

      # if config.CONFIG_DB.has_github

          Войти через GitHub

      # endif

      # if config.CONFIG_DB.has_bitbucket

          Войти через Bitbucket

      # endif

      # if config.CONFIG_DB.has_vk

          Войти через VK

      # endif

      # if config.CONFIG_DB.has_linkedin

          Войти через LinkedIn

      # endif

      # if config.CONFIG_DB.has_dropbox

          Войти через Dropbox

      # endif

      # if config.CONFIG_DB.has_windowslive

          Войти через Windows Live

      # endif

      # if config.CONFIG_DB.has_stackoverflow

          Войти через Stack Overflow

      # endif

      # if config.CONFIG_DB.has_reddit

          Войти через Reddit

      # endif

      # if config.CONFIG_DB.has_instagram

          Войти через Instagram

      # endif

      # if config.CONFIG_DB.has_yahoo

          Sign in with Yahoo!

      # endif

        <input type="checkbox" checked> Keep me signed in

# endblock


text:
import time
import datetime
import os
import sys
import logging
import argparse

import agent_util
import photo_uploader

def take_photo(config):
  if config.getboolean('Mock', 'Status'):
    filename = config.get('Mock', 'PhotoPath')
    logging.debug('Mock On, use mock photo at %s', filename)
    return filename
  else:
    return __take_photo_by_picamera(config)

def __take_photo_by_picamera(config):
  '''take photo by pi camera'''
  import picamera

  # code recipe from
  # https://picamera.readthedocs.org/en/release-0.7/recipes1.html
  with picamera.PiCamera() as camera:
    camera.resolution = (1024, 768)
    camera.start_preview()
    # Camera warm-up time
    time.sleep(2)
    filepath = determine_photo_path(config)
    logging.info('Capture to %s', filepath)
    camera.capture(filepath)
    return filepath

def determine_photo_path(config):
  # use current time as filename to prevent duplicating files
  filename = datetime.datetime.now().strftime('%Y%m%d-%H-%M-%S.jpg')
  capture_dir = config.get('Default', 'CaptureDir')
  agent_util.ensure_directory(capture_dir)
  return os.path.join(capture_dir, filename)

def upload_photo(filename, config):
  if config.getboolean('Default', 'CountFace'):
    import face_detect

    face_count = face_detect.count_face(filename)
    if config.getboolean('Default', 'DeletePhotoWithoutFace') and face_count == 0:
      # no face in photo, just delete this photo
      logging.info('No face, delete photo %s', filename)
      os.remove(filename)
      return
    else:
      logging.info('%d face detected', face_count)

  logging.info('Start uploading')
  resp = photo_uploader.upload(filename, config)
  status_code = resp.status_code
  # TODO more appropriate checking method
  if status_code == 201: # created
    logging.info('Upload %s successfully, AWS key %s', filename, resp.json()['aws_key'])
  else:
    logging.warn('Failed to upload %s, status code %d', filename, status_code)

def __parse_args():
  parser = argparse.ArgumentParser()
  parser.add_argument('-f', '--config')
  args = parser.parse_args()
  return vars(args)

def __load_config(args):
  config_path = args['config'] or 'settings.ini'
  print 'Load config from ' + os.path.realpath(config_path)
  return agent_util.load_config(config_path)

def __init(config):
  loggingLevel = config.get('Default', 'LoggingLevel')
  logging.basicConfig(
    level = agent_util.determineLoggingLevel(loggingLevel),
    format='%(asctime)s %(levelname)s %(message)s'
  )

if __name__ == '__main__':
  config = __load_config(__parse_args())
  __init(config)
  filename = take_photo(config)
  upload_photo(filename, config)


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
    <description>Spring file for GAR example.</description>

    <!--
        Bean used from imported jar file from GAR/lib.
    -->
    <bean id="example.bean" class="org.apache.ignite.spi.deployment.uri.tasks.GarHelloWorldBean" scope="singleton"/>
</beans>


text:
from __future__ import absolute_import, division, print_function

from datetime import datetime

from datashape import discover, Option
from datashape import dshape
from networkx import NetworkXNoPath
import numpy as np
import pandas as pd
import pytest

from odo import odo

data = [('Alice', 100), ('Bob', 200)]

def test_discover_dataframe():
    df = pd.DataFrame([('Alice', 100), ('Bob', 200)],
                      columns=['name', 'amount'])

    assert discover(df) == dshape('2 * {name: ?string, amount: int64}')

def test_discover_series():
    s = pd.Series([1, 2, 3])

    assert discover(s) == 3 * discover(s[0])

def test_floats_are_optional():
    df = pd.DataFrame([('Alice', 100), ('Bob', None)],
                      columns=['name', 'amount'])
    ds = discover(df)
    assert isinstance(ds[1].types[1], Option)

def test_datetime_to_timestamp():
    dt = datetime(2014, 1, 1)
    ts = odo(dt, pd.Timestamp)
    assert isinstance(ts, pd.Timestamp)
    assert ts == pd.Timestamp('2014-01-01')

def test_nan_to_nat():
    assert odo(float('nan'), pd.Timestamp) is pd.NaT
    assert odo(np.nan, pd.Timestamp) is pd.NaT

    with pytest.raises(NetworkXNoPath):
        # Check that only nan can be converted.
        odo(0.5, pd.Timestamp)

def test_none_to_nat():
    assert odo(None, pd.Timestamp) is pd.NaT

def test_nat_to_nat():
    assert odo(pd.NaT, pd.Timestamp) is pd.NaT


text:
require 'support/serializers/cache_examples'
describe 'cache Examples' do
  before do
    allow(EasySerializer).to receive(:cache).and_return(CacheMock)
    allow(EasySerializer).to receive(:perform_caching).and_return(true)
  end
  describe CacheWholeExample do
    let(:obj) { OpenStruct.new(name: 'Rio de Janeiro') }
    let(:serialized) { described_class.call(obj) }
    it { expect{ serialized }.not_to raise_error }
    it { expect(serialized).to eq(:cached) }
  end
  describe CacheNestedExample do
    let(:obj) do
      OpenStruct.new(
        name: 'Rio de Janeiro',
        nested: OpenStruct.new(id: 1, name: 'some name')
      )
    end
    let(:serialized) { described_class.call(obj) }
    it { expect{ serialized }.not_to raise_error }
    it { expect(serialized.fetch(:nested)).to eq(:cached) }
    it { expect(serialized.fetch(:name)).to eq(obj.name) }
  end
  describe CacheMethodExample do
    let(:obj) do
      OpenStruct.new(costly: 'really long processing method')
    end
    let(:serialized) { described_class.call(obj) }
    it { expect{ serialized }.not_to raise_error }
    it { expect(serialized.fetch(:costly)).to eq(:cached) }
    context 'cache returning the content' do
      let(:my_cache) { CacheMockExplicid }
      before do
        allow(EasySerializer).to receive(:cache).and_return(my_cache)
        expect(my_cache).to receive(:fetch).and_call_original
      end
      it { expect(serialized.fetch(:costly)).to eq(obj.costly) }
    end
  end
  describe CacheBlockExample do
    let(:obj) do
      OpenStruct.new(costly: 'really long processing method')
    end
    let(:serialized) { described_class.call(obj) }
    it { expect{ serialized }.not_to raise_error }
    it { expect(serialized.fetch(:costly)).to eq(:cached) }
    context 'cache returning the content' do
      let(:my_cache) { CacheMockExplicid }
      before do
        allow(EasySerializer).to receive(:cache).and_return(my_cache)
        expect(my_cache).to receive(:fetch).and_call_original
      end
      it { expect(serialized.fetch(:costly)).to eq(obj.costly) }
    end
  end

end


text:
var select = require('../');
var test = require('tape');
var tokenize = require('html-tokenize');
var fs = require('fs');
var through = require('through2');

test('page .content', function (t) {
    var expected = [
        [ 'open', Buffer('
') ],
        [ 'text', Buffer('\n      ') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('beep boop') ],
        [ 'close', Buffer('') ],
        [ 'text', Buffer('\n      ') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('robot') ],
        [ 'close', Buffer('') ],
        [ 'text', Buffer('\n    ') ],
        [ 'close', Buffer('
') ]
    ];
    t.plan(expected.length);
    var s = select('.content', function (e) {
        e.createReadStream().pipe(through.obj(function (row, enc, next) {
            t.deepEqual(row, expected.shift());
            next();
        }));
    });
    readStream().pipe(tokenize()).pipe(s);
    s.resume();
});

test('page *', function (t) {
    var expected = [
        [ 'open', Buffer('') ],
        [ 'text', Buffer('beep boop') ],
        [ 'close', Buffer('') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('robot') ],
        [ 'close', Buffer('') ]
    ];
    t.plan(expected.length + 2);
    var s = select('.content *', function (e) {
        t.ok(true, 'match');
        e.createReadStream().pipe(through.obj(function (row, enc, next) {
            t.deepEqual(row, expected.shift());
            next();
        }));
    });
    readStream().pipe(tokenize()).pipe(s);
    s.resume();
});

test('page div.content', function (t) {
    var expected = [
        [ 'open', Buffer('
') ],
        [ 'text', Buffer('\n      ') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('beep boop') ],
        [ 'close', Buffer('') ],
        [ 'text', Buffer('\n      ') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('robot') ],
        [ 'close', Buffer('') ],
        [ 'text', Buffer('\n    ') ],
        [ 'close', Buffer('
') ]
    ];
    t.plan(expected.length);
    var s = select('div.content', function (e) {
        e.createReadStream().pipe(through.obj(function (row, enc, next) {
            t.deepEqual(row, expected.shift());
            next();
        }));
    });
    readStream().pipe(tokenize()).pipe(s);
    s.resume();
});

test('page .name', function (t) {
    var expected = [
        [ 'open', Buffer('
') ],
        [ 'text', Buffer('whoa') ],
        [ 'close', Buffer('
') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('robot') ],
        [ 'close', Buffer('') ],
    ];
    t.plan(expected.length);
    var s = select('.name', function (e) {
        e.createReadStream().pipe(through.obj(function (row, enc, next) {
            t.deepEqual(row, expected.shift());
            next();
        }));
    });
    readStream().pipe(tokenize()).pipe(s);
    s.resume();
});

test('page span.greeting', function (t) {
    var expected = [
        [ 'open', Buffer('') ],
        [ 'text', Buffer('beep boop') ],
        [ 'close', Buffer('') ],
    ];
    t.plan(expected.length);
    var s = select('span.greeting', function (e) {
        e.createReadStream().pipe(through.obj(function (row, enc, next) {
            t.deepEqual(row, expected.shift());
            next();
        }));
    });
    readStream().pipe(tokenize()).pipe(s);
    s.resume();
});

test('page .content span', function (t) {
    var expected = [
        [ 'open', Buffer('') ],
        [ 'text', Buffer('beep boop') ],
        [ 'close', Buffer('') ],
        [ 'open', Buffer('') ],
        [ 'text', Buffer('robot') ],
        [ 'close', Buffer('') ]
    ];
    t.plan(expected.length);
    var s = select('.content span', function (e) {
        e.createReadStream().pipe(through.obj(function (row, enc, next) {
            t.deepEqual(row, expected.shift());
            next();
        }));
    });
    readStream().pipe(tokenize()).pipe(s);
    s.resume();
});

function readStream () {
    return fs.createReadStream(__dirname + '/page/index.html');
}


text:
<package>

  <name>aros_moveit_config</name>
  <version>1.0.0</version>
  <description>
     An automatically generated package with all the configuration and launch files for using the robot ARoS with the MoveIt! Motion Planning Framework
  </description>
  <author email="gianpaologulletta@gmail.com">Gianpaolo Gulletta</author>
  <maintainer email="gianpaologulletta@gmail.com">Gianpaolo Gulletta</maintainer>

  <license>GPLv3</license>

  <url type="repository">https://github.com/zohannn/aros_moveit_config </url>

  <run_depend>moveit_ros_move_group</run_depend>
  <run_depend>moveit_planners_ompl</run_depend>
  <run_depend>moveit_ros_visualization</run_depend>
  <run_depend>joint_state_publisher</run_depend>
  <run_depend>robot_state_publisher</run_depend>
  <run_depend>xacro</run_depend>
  <build_depend>aros_description</build_depend>
  <run_depend>aros_description</run_depend>

  <buildtool_depend>catkin</buildtool_depend>

</package>


text:
using RIAPP.DataService.DomainService.Attributes;

namespace RIAppDemo.BLL.Models
{
    [TypeName("ITestLookUpProduct")]
    public class LookUpProduct
    {
        public int ProductID { get; set; }
        public string Name { get; set; }
    }
}


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

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Revisit-After" content="20 days">
<meta name="Author" content="Xythos Software Inc. San Francisco, CA">
<meta name="copyright" content=" © 2008 Xythos Software Inc. All Rights Reserved">
<meta name="Robots" content="all">
<meta name="Distribution" content="Global">

<title>Customizable Document Management Platform for Developers - Open Standards Based - Easy to Integrate</title>

<link rel="stylesheet" type="text/css" media="screen" href="../_css/styles.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../_css/highlighting.css" />
<link rel="icon" href="http://www.xythos.com/favicon.ico">

<meta name="description" content="Xythos' WebFile Content Management Server is composed of a Web Server, Application Server and a Relational Database.">
<meta name="keywords" content="document management, open standards based content management platform, WebDAV Server, JSR-170, Alfresco alternative, jive alternative, java based, j2ee, open api, scalable document server, document management platform, Wiki, RSS, social tagging">
<meta name="Abstract" content="Easy to integrate document management platform.">

Xythos Software Inc.
xythos.com

Support | Contact Us

Business

Education

Government

Developers

OEMs

Partners

Products

Solutions

Products

Overview

Product Suites

Enterprise Document Management Suite

Digital Locker Suite

WebFile Development Suite

Products

Enterprise Document Manager

Digital Locker

WebFile Server

Components

Technology

Features

Benefits

Client Applications

Xythos Drive

Xythos Filer

Resources

WebFile Development Suite Data Sheet

White Paper: Integrating Content Management within Enterprise Applications

White Paper: WebFile Server Architecture

What's New in EDMS 7.1?

Discover the safe and easy alternative to traditional ECM systems.

Check out the new features here

Web Seminars

Find out how extranet based file collaboration can ease your email burden.

 See the web seminar

"This feature-rich application also reduces file redundancy, putting less strain on network storage resources."

Developers

Get Xythos developer tips at developer.xythos.com

developer.xythos.com

WebFile Content Management Server Components

Test Drive

              Xythos Enterprise Document Management Suite free for 30 days.

The WebFile Server consists of three main components:

Web Server: The content management web server component of
					WebFile Server fields incoming HTTP requests.
					WebFile Server is delivered with a bundled Tomcat servlet container that also functions as the web server;
					however, it is also possible to install WebFile Server with a separate web server. The web server functionality
					may be split among several machines by making use of an HTTP load balancer, by using round-robin IP
					addressing, or by using some other feature native to the web server software or operating system.

Application Server: The Application Server (or Java Servlet Container) component of
					WebFile Server runs the servlet engine and APIs and hosts the WebFile Server servlets and JSPs. The
					Application Server component allows communication through the WebDAV extensions
					to the HTTP specification as
					well as all other headers and methods supported under the HTTP 1.1 and WebDAV protocols. Since WebFile
					Server does not store state information in the application server, the system can be scaled by adding
					multiple, independent application servers that run together or by clustering application servers within the
					same WebFile Server installation.

Database: WebFile Server uses a relational database to persist configuration information
					and to store all file metadata, such as permissions, versions, properties, comments and logging information.
					Supported databases include DB2, Oracle, PostgreSQL and MS SQL Server. WebFile Server can be scaled across
					multiple, independent databases and can also be run in any high availability configuration. There is no
					limitation on the volume of files and associated metadata that can be managed by the WebFile Server system.

WebFile Server Architecture - Click for larger Image

The following components are optional for a WebFile Server deployment

File System: WebFile Server can store all file content directly onto a storage device,
						rather than in the chosen database. The WebFile Server was designed to scale its storage capacity by
						simply adding storage devices. Therefore, there is no limitation on the amount of space and the number of
						storage devices that WebFile Server can manage. WebFile Server can easily scale to store any size file and
						any number of files.

LDAP Server: Although WebFile Server does provide its own user model, a directory
						server may be used in order to provide a single place across multiple systems, in order to manage user
						accounts, group membership, and logon credentials. Centralized account management and a single secure user
						credential eliminates the problem of requiring users to remember multiple passwords, as well as requiring
						IT managers to handle multiple system accounts and passwords for one set of users. Xythos WebFile Server
						helps address this goal by integrating with any directory server that conforms to the LDAP specification
						v2 or v3.

Load Balancer: If there is more than one Application Server in the system, a load
						balancer should be used in front of WebFile Server. To improve performance, the WebFile Server makes
						extensive use of caches.

Home | News & Events | About Xythos | Resources | Services | Support | Site Map | Privacy Policy

		© Copyright 2008, Xythos Software San Francisco CA


text:
<!--
  ~ Copyright (c) 2010-2017 Evolveum and contributors
  ~
  ~ This work is dual-licensed under the Apache License 2.0
  ~ and European Union Public License. See LICENSE file for details.
  -->

<shadow xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        oid="88519fca-3f4a-44ca-91c8-dc9be5bf3d03" version="0">
    <name>hbarbossa</name>
    <resourceRef oid="10000000-0000-0000-0000-000000000003" type="c:ResourceType"/>
    <dead>false</dead>
    <synchronizationSituation>linked</synchronizationSituation>
    <synchronizationSituationDescription>
        <situation>linked</situation>
        <channel>syncChannel</channel>
    </synchronizationSituationDescription>
    <objectClass xmlns:qn80="http://midpoint.evolveum.com/xml/ns/public/resource/instance/10000000-0000-0000-0000-000000000003">qn80:AccountObjectClass</objectClass>
    <attributes xmlns:gen913="http://midpoint.evolveum.com/xml/ns/public/resource/instance/10000000-0000-0000-0000-000000000003">
        <gen913:cn>Hector Barbossa</gen913:cn>
        <icfs:name>uid=hbarbossa,ou=people,dc=example,dc=com</icfs:name>
        <gen913:sn>Barbossa</gen913:sn>
        <gen913:uid>hbarbossa</gen913:uid>
        <icfs:uid>8daaeeae-f0c7-41c9-b258-2a3351aa8876</icfs:uid>
    </attributes>
    <activation>
        <administrativeStatus>enabled</administrativeStatus>
    </activation>
</shadow>


text:
namespace Valle.GtkUtilidades
{
	public partial class FormularioBase
	{
		protected virtual void Contruir ()
		{
			global::Stetic.Gui.Initialize (this);
			// Widget Valle.TpvFinal.FormularioBase
			this.Name = "Valle.TpvFinal.FormularioBase";
			this.Title = global::Mono.Unix.Catalog.GetString ("DesgloseTicket");

			this.WindowPosition = ((global::Gtk.WindowPosition)(4));
			if ((this.Child != null)) {
				this.Child.ShowAll ();
			}
			this.DefaultWidth = 30;
			this.DefaultHeight = 30;
			this.Modal = false;
			this.AllowShrink = false;
			this.AllowGrow = false;
			this.Decorated = false;
			this.SkipTaskbarHint = true;

			this.ExposeEvent += new global::Gtk.ExposeEventHandler (this.OnExposeEvent);
		}
	}
}


text:
/**
 * @file
 * @brief		POSIX isatty() function.
 *
 * @todo		This is not implemented properly.
 */

#include <kernel/file.h>
#include <kernel/status.h>

#include <errno.h>
#include <unistd.h>

#include "libsystem.h"

/** Check whether a file descriptor refers to a TTY.
 * @param fd		File descriptor to check.
 * @return		1 if a TTY, 0 if not. */
int isatty(int fd) {
	file_info_t info;
	unsigned type;
	status_t ret;

	ret = kern_object_type(fd, &type);
	if(ret != STATUS_SUCCESS) {
		libsystem_status_to_errno(ret);
		return 0;
	}

	switch(type) {
	case OBJECT_TYPE_FILE:
		ret = kern_file_info(fd, &info);
		if(ret != STATUS_SUCCESS) {
			libsystem_status_to_errno(ret);
			return 0;
		}

		if(info.type == FILE_TYPE_CHAR)
			return 1;
	default:
		errno = ENOTTY;
		return 0;
	}
}


text:
/***************************************************************************

Copyright (c) Microsoft Corporation. All rights reserved.
This code is licensed under the Visual Studio SDK license terms.
THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

***************************************************************************/

using System;
using System.ComponentModel;
using System.Text;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Runtime.InteropServices;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.Package.Automation;
using Microsoft.Win32;
using EnvDTE;
using IOleServiceProvider = Microsoft.VisualStudio.OLE.Interop.IServiceProvider;

namespace Microsoft.Samples.VisualStudio.IronPythonProject
{
	[ComVisible(true), CLSCompliant(false)]
	[Guid("BF389FD8-F382-41b1-B502-63CB11254137")]
	public class PythonFileNodeProperties : SingleFileGeneratorNodeProperties
	{
		#region ctors
		public PythonFileNodeProperties(HierarchyNode node)
			: base(node)
		{
		}
		#endregion

		#region properties
		[Browsable(false)]
		public string Url
		{
			get
			{
				return "file:///" + this.Node.Url;
			}
		}
		[Browsable(false)]
		public string SubType
		{
			get
			{
				return ((PythonFileNode)this.Node).SubType;
			}
			set
			{
				((PythonFileNode)this.Node).SubType = value;
			}
		}

		[Microsoft.VisualStudio.Package.SRCategoryAttribute(Microsoft.VisualStudio.Package.SR.Advanced)]
		[Microsoft.VisualStudio.Package.LocDisplayName(Microsoft.VisualStudio.Package.SR.BuildAction)]
		[Microsoft.VisualStudio.Package.SRDescriptionAttribute(Microsoft.VisualStudio.Package.SR.BuildActionDescription)]
		public virtual PythonBuildAction PythonBuildAction
		{
			get
			{
				string value = this.Node.ItemNode.ItemName;
				if (value == null || value.Length == 0)
				{
					return PythonBuildAction.None;
				}
				return (PythonBuildAction)Enum.Parse(typeof(PythonBuildAction), value);
			}
			set
			{
				this.Node.ItemNode.ItemName = value.ToString();
			}
		}

		[Browsable(false)]
		public override BuildAction BuildAction
		{
			get
			{
				switch(this.PythonBuildAction)
				{
					case PythonBuildAction.ApplicationDefinition:
					case PythonBuildAction.Page:
					case PythonBuildAction.Resource:
						return BuildAction.Compile;
					default:
						return (BuildAction)Enum.Parse(typeof(BuildAction), this.PythonBuildAction.ToString());
				}
			}
			set
			{
				this.PythonBuildAction = (PythonBuildAction)Enum.Parse(typeof(PythonBuildAction), value.ToString());
			}
		}
		#endregion
	}

	public enum PythonBuildAction { None, Compile, Content, EmbeddedResource, ApplicationDefinition, Page, Resource };
}


text:
import React from 'react';
import PropTypes from 'prop-types';
import Logo from 'rsg-components/Logo';
import Markdown from 'rsg-components/Markdown';
import Styled from 'rsg-components/Styled';
import cx from 'classnames';
import Ribbon from 'rsg-components/Ribbon';
import Version from 'rsg-components/Version';

const styles = ({ color, fontFamily, fontSize, sidebarWidth, mq, space, maxWidth }) => ({
	root: {
		minHeight: '100vh',
		backgroundColor: color.baseBackground,
	},
	hasSidebar: {
		paddingLeft: sidebarWidth,
		[mq.small]: {
			paddingLeft: 0,
		},
	},
	content: {
		maxWidth,
		padding: [[space[2], space[4]]],
		margin: [[0, 'auto']],
		[mq.small]: {
			padding: space[2],
		},
		display: 'block',
	},
	sidebar: {
		backgroundColor: color.sidebarBackground,
		border: [[color.border, 'solid']],
		borderWidth: [[0, 1, 0, 0]],
		position: 'fixed',
		top: 0,
		left: 0,
		bottom: 0,
		width: sidebarWidth,
		overflow: 'auto',
		'-webkit-overflow-scrolling': 'touch',
		[mq.small]: {
			position: 'static',
			width: 'auto',
			borderWidth: [[1, 0, 0, 0]],
			paddingBottom: space[0],
		},
	},
	logo: {
		padding: space[2],
		borderBottom: [[1, color.border, 'solid']],
	},
	footer: {
		display: 'block',
		color: color.light,
		fontFamily: fontFamily.base,
		fontSize: fontSize.small,
	},
});

export function StyleGuideRenderer({
	classes,
	title,
	version,
	homepageUrl,
	children,
	toc,
	hasSidebar,
}) {
	return (

				{children}

					<Markdown text={`Generated with [React Styleguidist](${homepageUrl})`} />

			{hasSidebar && (

						<Logo>{title}</Logo>
						{version && <Version>{version}</Version>}

					{toc}

			)}
			<Ribbon />

	);
}

StyleGuideRenderer.propTypes = {
	classes: PropTypes.object.isRequired,
	title: PropTypes.string.isRequired,
	version: PropTypes.string,
	homepageUrl: PropTypes.string.isRequired,
	children: PropTypes.node.isRequired,
	toc: PropTypes.node.isRequired,
	hasSidebar: PropTypes.bool,
};

export default Styled(styles)(StyleGuideRenderer);


text:
package au.gov.ga.geodesy.support.mapper.orika.geodesyml;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;

import java.util.Arrays;

import org.springframework.beans.factory.annotation.Autowired;
import org.testng.annotations.Test;

import au.gov.ga.geodesy.domain.model.sitelog.GnssReceiverLogItem;
import au.gov.ga.geodesy.support.spring.UnitTest;
import au.gov.ga.geodesy.support.utils.GMLDateUtils;
import au.gov.xml.icsm.geodesyml.v_0_4.GnssReceiverType;
import au.gov.xml.icsm.geodesyml.v_0_4.IgsReceiverModelCodeType;

import net.opengis.gml.v_3_2_1.CodeType;
import net.opengis.gml.v_3_2_1.TimePositionType;

public class GnssReceiverMapperTest extends UnitTest {

    @Autowired
    private GnssReceiverMapper mapper;

    @Test
    public void testMappingToLogItem() {
        String dateInstalled = "2012-03-24T02:03:23.000Z";

        GnssReceiverType receiver = new GnssReceiverType()
            .withIgsModelCode((IgsReceiverModelCodeType) new IgsReceiverModelCodeType()
                .withCodeSpace("https://igscb.jpl.nasa.gov/igscb/station/general/rcvr_ant.tab")
                .withCodeList("http://xml.gov.au/icsm/geodesyml/codelists/antenna-receiver-codelists.xml#GeodesyML_GNSSReceiverTypeCode")
                .withCodeListValue("LEICA GRX1200GGPRO")
                .withValue("LEICA GRX1200GGPRO")
            )
            .withNotes("test notes")
            .withSatelliteSystem(Arrays.asList(
                new CodeType().withValue("GPS").withCodeSpace("eGeodesy/satelliteSystem"),
                new CodeType().withValue("Galileo").withCodeSpace("eGeodesy/satelliteSystem")
            ))
            .withFirmwareVersion("1.2")
            .withManufacturerSerialNumber("123")
            .withElevationCutoffSetting(4.0)
            .withDateInstalled(timePosition(dateInstalled));

        GnssReceiverLogItem logItem = mapper.to(receiver);
        assertThat(logItem.getType(), equalTo(receiver.getIgsModelCode().getCodeListValue()));
        assertThat(logItem.getFirmwareVersion(), equalTo(receiver.getFirmwareVersion()));
        assertThat(logItem.getSerialNumber(), equalTo(receiver.getManufacturerSerialNumber()));
        assertThat(logItem.getElevationCutoffSetting(), equalTo(String.valueOf(receiver.getElevationCutoffSetting())));
        assertThat(logItem.getSatelliteSystem(), equalTo("GPS,Galileo"));
        assertThat(logItem.getDateInstalled(), equalTo(GMLDateUtils.stringToDateMultiParsers(receiver.getDateInstalled().getValue().get
            (0))));
        assertThat(logItem.getEffectiveDates().getFrom(),equalTo( GMLDateUtils.stringToDateMultiParsers(receiver.getDateInstalled()
            .getValue().get(0))));
        assertThat(logItem.getNotes(), equalTo(receiver.getNotes()));

        GnssReceiverType receiverB = mapper.from(logItem);
        assertThat(receiverB.getIgsModelCode().getCodeSpace(), equalTo("https://igscb.jpl.nasa.gov/igscb/station/general/rcvr_ant.tab"));
        assertThat(receiverB.getIgsModelCode().getCodeList(), equalTo("http://xml.gov" +
            ".au/icsm/geodesyml/codelists/antenna-receiver-codelists.xml#GeodesyML_GNSSReceiverTypeCode"));
        assertThat(receiverB.getIgsModelCode().getCodeListValue(), equalTo("LEICA GRX1200GGPRO"));
        assertThat(receiverB.getIgsModelCode().getValue(), equalTo("LEICA GRX1200GGPRO"));
        assertThat(receiverB.getFirmwareVersion(), equalTo(logItem.getFirmwareVersion()));
        assertThat(receiverB.getManufacturerSerialNumber(), equalTo(logItem.getSerialNumber()));
        assertThat(receiverB.getElevationCutoffSetting(), equalTo(Double.parseDouble(logItem.getElevationCutoffSetting())));
        assertThat(receiverB.getSatelliteSystem(), equalTo(receiver.getSatelliteSystem()));
        assertThat(GMLDateUtils.stringToDateMultiParsers(receiverB.getDateInstalled().getValue().get(0)), equalTo(logItem
            .getDateInstalled()));
        assertThat(logItem.getEffectiveDates().getFrom(), equalTo(GMLDateUtils.stringToDateMultiParsers(receiverB.getDateInstalled()
            .getValue().get(0))));
        assertThat(receiverB.getNotes(), equalTo(logItem.getNotes()));
    }

    private TimePositionType timePosition(String date) {
        TimePositionType timePosition = new TimePositionType();
        timePosition.getValue().add(date);
        return timePosition;
    }
}


text:
from django.urls import reverse
from django.utils.safestring import mark_safe
from django.forms import widgets
from django.conf import settings
from django.utils.translation import ugettext as _

class RelatedFieldWidgetCanAdd(widgets.Select):
    """
    Supplements the standard Select widget behaviour by adding an 'add' button.

    Added related_kwargs for targeted redirection.

    Adapted from:
    http://stackoverflow.com/questions/28068168/django-adding-an-add-new-button-for-a-foreignkey-in-a-modelform
    """

    def __init__(
        self,
        related_model,
        related_url=None,
        related_kwargs=None, *args, **kwargs
    ):

        super(RelatedFieldWidgetCanAdd, self).__init__(*args, **kwargs)

        if not related_url:         # construct a url for the default admin site
            rel_to = related_model
            info = (rel_to._meta.app_label, rel_to._meta.object_name.lower())
            related_url = 'admin:%s_%s_add' % info
            related_kwargs = {}

        # Be careful that here "reverse" is not allowed
        self.related_url = related_url
        self.related_kwargs = related_kwargs

    def render(self, name, value, *args, **kwargs):
        self.related_url = reverse(
            self.related_url,
            kwargs=self.related_kwargs,
        )
        output = [
            super(RelatedFieldWidgetCanAdd, self).render(
                name,
                value,
                *args,
                **kwargs,
            )
        ]
        output.append(' ' % \
            (self.related_url, name))
        output.append('' % (settings.STATIC_URL, _('+ New')))
        return mark_safe(''.join(output))


text:
//Listing 7.14 Using a typecast to use the new declared parent interface
package ajia.main;

import ajia.banking.domain.Account;
import ajia.tracking.Identifiable;

//import ...

public class Main {
	public static void main(String[] args) {
		Account account = new Account(1);
		Identifiable identifiableAccount = (Identifiable) account;
		identifiableAccount.setId(6L);
		System.out.println("Id is " + identifiableAccount.getId());
	}
}


text:
==========
DJANGO-ACL
==========

Django has a built in permissions system, but all the permissions are more directly related to models. This is meant to
extend that system by adding permissions, or actions, not related specifically to models.

This also adds an ACL aspect to Django-CMS as an optional feature. See Documentation (cmsacl) below.

*************************
Documentation (djangoacl)
*************************

Add to ``INSTALLED APPS``
=========================
    Add the module to your installed apps.

    .. code-block:: python

        INSTALLED_APS = (
            ...
            'djangoacl'
        )

Authentication Backend
======================
    Add the new authentication backend to ``AUTHENTICATION_BACKENDS`` in settings.py

    .. code-block:: python

        AUTHENTICATION_BACKENDS = (
            ...
            'djangoacl.auth.backends.ACLBackend',
        )

Run migrations
==============
    .. code-block:: bash

        $ python manage.py migrate djangoacl

Add the action
==============
    Go to http://yoursite/admin/djangoacl/action/add/ and add the action.

    Give the action a name. This can be pretty much anything you want but recommend no spaces or special characters.
    Also probably best not to use anything that matches then normal permission patters such as `<action>_<model>` or
    `<model>.<action>`

    Make sure to add any related users or groups.

Request Permission
==================

    Request permission in the normal way using the ``permission_required`` decorator. See
    https://docs.djangoproject.com/en/1.8/topics/auth/default/#the-permission-required-decorator

*************************
Documentation (djangoacl)
*************************

Add to ``INSTALLED APPS``
=========================
    Add the module to your installed apps.

    .. code-block:: python

        INSTALLED_APS = (
            ...
            'djangoacl.cmsacl'
        )

Register the MenuModifier
=========================
    You will want to put this somewhere you know will be run before as soon as possible. I would recommend in your
    urls or somewhere similar. This will keep the pages from showing up in the menu if the user does not have
    permissions.

    .. code-block:: python

        from menus.menu_pool import menu_pool
        menu_pool.register_modifier(ACLModifier)

Add the new Middleware
======================
    Add the new middleware to ``MIDDLEWARE_CLASSES`` in settings.py

    .. code-block:: python

        MIDDLEWARE_CLASSES = (
            ...
            'djangoacl.cmsacl.middleware.CMSPageACL',
        )

Run migrations
==============
    .. code-block:: bash

        $ python manage.py migrate cmsacl

Add the action
==============
    Go to http://yoursite/admin/cmsacl/action/add/ and add the action.

    Give the action a name. This can be pretty much anything you want but recommend no spaces or special characters.
    Also probably best not to use anything that matches then normal permission patters such as `<action>_<model>` or
    `<model>.<action>`

    Attach a page to the action.

    Make sure to add any related users or groups.


text:
<!--Form Validation-->
    <script type="text/javascript">
function validateForm(){

  var name = document.getElementById('your-name');
  var email = document.getElementById('your-mail');
  var message = document.getElementById('message');
  alert(name+email+message);

  if(isAlphabet(name, "Please enter only letters for your's Name")){
      if(emailValidator(email, "Please enter a valid email address")){
        if(notEmpty(message, "Please Fill up your Feedback")){
                    return true;
                  }
                }
              }

  return false;

}

function notEmpty(elem, helperMsg){
  if(elem.value.length == 0){
    alert(helperMsg);
    elem.focus(); // set the focus to this input
    return false;
  }
  return true;
}

function isAlphabet(elem, helperMsg){
  var alphaExp = /^[a-zA-Z][a-zA-Z ]+$/;
  if(elem.value.match(alphaExp)){
    return true;
  }else{
    alert(helperMsg);
    elem.focus();
    return false;
  }
}

function emailValidator(elem, helperMsg){
  var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-Z0-9]{2,4}$/;
  if(elem.value.match(emailExp)){
    return true;
  }else{
    alert(helperMsg);
    elem.focus();
    return false;
  }
}
</script>


text:
package com.github.milenkovicm.kafka;

import io.netty.buffer.Unpooled;
import kafka.consumer.ConsumerIterator;
import kafka.consumer.KafkaStream;
import kafka.message.MessageAndMetadata;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

import java.util.List;
import java.util.Set;
import java.util.TreeSet;

import static org.hamcrest.CoreMatchers.is;

@Ignore("test works but it may need some time to finish as kafka controller waits some time to replicate data before it dies")
public class FailureTest extends AbstractMultiBrokerTest {
    public static final String TEST_MESSAGE = "test message from netty - good job";

    @BeforeClass
    public static void start() {
        BROKER_COUNT = 2;
        AbstractMultiBrokerTest.start();
    }

    @Test
    public void test_producer() throws Exception {

        String topic = "test";

        createTopic(topic, 2, 2);
        ProducerProperties properties = new ProducerProperties();
        properties.override(ProducerProperties.NETTY_THREAD_COUNT, 1);
        properties.override(ProducerProperties.NETTY_DEBUG_PIPELINE, true);
        properties.override(ProducerProperties.PARTITIONER, new RRPartitioner());

        KafkaProducer producer = new KafkaProducer("localhost", START_PORT, topic, properties);
        producer.connect().sync();
        KafkaTopic kafkaTopic = producer.topic();

        kafkaTopic.send(Unpooled.wrappedBuffer(new byte[] { 0 }), freeLaterBuffer(TEST_MESSAGE.getBytes()));
        kafkaTopic.send(Unpooled.wrappedBuffer(new byte[] { 1 }), freeLaterBuffer(TEST_MESSAGE.getBytes()));
        kafkaServers.get(0).shutdown();
        kafkaTopic.send(Unpooled.wrappedBuffer(new byte[] { 2 }), freeLaterBuffer(TEST_MESSAGE.getBytes()));
        kafkaTopic.send(Unpooled.wrappedBuffer(new byte[] { 3 }), freeLaterBuffer(TEST_MESSAGE.getBytes()));

        final List<KafkaStream<byte[], byte[]>> consume = consume(topic);

        final KafkaStream<byte[], byte[]> stream = consume.get(0);
        final ConsumerIterator<byte[], byte[]> messages = stream.iterator();

        Set<Integer> partitions = new TreeSet<>();

        MessageAndMetadata<byte[], byte[]> message = messages.next();
        Assert.assertThat("message should be equal", new String(message.message()), is(TEST_MESSAGE));
        partitions.add(message.partition());

        message = messages.next();
        Assert.assertThat("message should be equal", new String(message.message()), is(TEST_MESSAGE));
        partitions.add(message.partition());

        message = messages.next();
        Assert.assertThat("message should be equal", new String(message.message()), is(TEST_MESSAGE));
        partitions.add(message.partition());

        message = messages.next();
        Assert.assertThat("message should be equal", new String(message.message()), is(TEST_MESSAGE));
        partitions.add(message.partition());

        Assert.assertThat("we should have message from all partitions", partitions.toArray(), is((Object[]) new Integer[] { 0, 1 }));
        producer.disconnect().sync();

    }
}


text:
import React, {
  StyleSheet,
  Component,
  View,
  Text,
  TouchableOpacity
} from 'react-native';

const styles = StyleSheet.create({
  button: {
    width: 100,
    height: 30,
    padding: 10,
    backgroundColor: 'lightgray',
    alignItems: 'center',
    justifyContent: 'center',
    margin: 3
  }
});

export default class Counter extends Component {

  render() {
    const { counter, increment, decrement } = this.props;

    return (
      <View style={{alignItems: 'center'}}>
        <Text>{counter}</Text>
        <TouchableOpacity onPress={increment} style={styles.button}>
          <Text>up!!!</Text>
        </TouchableOpacity>
        <TouchableOpacity onPress={decrement} style={styles.button}>
          <Text>down</Text>
        </TouchableOpacity>
      </View>
    );
  }
}


text:
// Copyright 2014 The Oppia Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/**
 * @fileoverview Data and directive for the Oppia admin page.
 */

require(
  'components/forms/schema-based-editors/schema-based-editor.directive.ts');
require('directives/focus-on.directive.ts');
require('pages/admin-page/navbar/admin-navbar.directive.ts');
require(
  'pages/admin-page/activities-tab/admin-dev-mode-activities-tab.directive.ts');
require(
  'pages/admin-page/activities-tab/' +
  'admin-prod-mode-activities-tab.directive.ts');
require('pages/admin-page/config-tab/admin-config-tab.directive.ts');
require('pages/admin-page/jobs-tab/admin-jobs-tab.directive.ts');
require('pages/admin-page/misc-tab/admin-misc-tab.directive.ts');
require('pages/admin-page/roles-tab/admin-roles-tab.directive.ts');
require('value_generators/valueGeneratorsRequires.ts');

require('domain/objects/NumberWithUnitsObjectFactory.ts');
require('domain/utilities/url-interpolation.service.ts');
require('pages/admin-page/services/admin-data.service.ts');
require('pages/admin-page/services/admin-router.service.ts');
require('services/csrf-token.service.ts');
require('services/utils.service.ts');

angular.module('oppia').directive('adminPage', [
  'UrlInterpolationService', function(UrlInterpolationService) {
    return {
      restrict: 'E',
      scope: {},
      bindToController: {},
      templateUrl: UrlInterpolationService.getDirectiveTemplateUrl(
        '/pages/admin-page/admin-page.directive.html'),
      controllerAs: '$ctrl',
      controller: [
        '$location', '$rootScope', '$scope', 'AdminDataService',
        'AdminRouterService', 'CsrfTokenService', 'DEV_MODE',
        function(
            $location, $rootScope, $scope, AdminDataService,
            AdminRouterService, CsrfTokenService, DEV_MODE) {
          var ctrl = this;
          ctrl.isActivitiesTabOpen = function() {
            return AdminRouterService.isActivitiesTabOpen();
          };
          ctrl.isJobsTabOpen = function() {
            return AdminRouterService.isJobsTabOpen();
          };
          ctrl.isConfigTabOpen = function() {
            return AdminRouterService.isConfigTabOpen();
          };
          ctrl.isRolesTabOpen = function() {
            return AdminRouterService.isRolesTabOpen();
          };
          ctrl.isMiscTabOpen = function() {
            return AdminRouterService.isMiscTabOpen();
          };
          ctrl.setStatusMessage = function(statusMessage) {
            ctrl.statusMessage = statusMessage;
          };

          ctrl.$onInit = function() {
            $scope.$on('$locationChangeSuccess', function() {
              AdminRouterService.showTab($location.path().replace('/', '#'));
            });
            ctrl.userEmail = '';
            AdminDataService.getDataAsync().then(function(response) {
              ctrl.userEmail = response.user_email;
              // TODO(#8521): Remove the use of $rootScope.$apply()
              // once the directive is migrated to angular.
              $rootScope.$apply();
            });
            ctrl.inDevMode = DEV_MODE;
            ctrl.statusMessage = '';
            CsrfTokenService.initializeToken();
          };
        }
      ]
    };
  }
]);


text:
package de.mhus.test.bridgews.bridgews_server;

import java.util.HashMap;
import java.util.logging.Logger;

import javax.jws.WebService;

import aQute.bnd.annotation.component.Component;
import de.mhus.osgi.jwsbridge.AbstractJavaWebService;
import de.mhus.osgi.jwsbridge.JavaWebService;
import de.mhus.osgi.jwsbridge.WebServiceInfo;
import de.mhus.test.ws.ws_model.WSEntity;
import de.mhus.test.ws.ws_model.WSService;

@WebService(endpointInterface = "de.mhus.test.ws.ws_model.WSService")
@Component(name="HohohoHeHeBridge",immediate=true,provide=JavaWebService.class)
public class BridgeWsServer extends AbstractJavaWebService implements WSService {

	private Logger log = Logger.getLogger(BridgeWsServer.class.getName());
	private HashMap<String, WSEntity> map = new HashMap<String, WSEntity>();

	public BridgeWsServer() {
		addEntity(new WSEntity("alf")); // sample
	}

//	public Object getServiceObject() {
//		return this;
//	}

//	public String getServiceName() {
//		return "itsabridge";
//	}

	public void addEntity(WSEntity entity) {
		if (entity == null) return;
		log.info("add " + entity.getName());
		map.put(entity.getName(), entity);
	}

	public WSEntity[] getAll() {
		return map.values().toArray(new WSEntity[0]);
	}

	public void removeEntity(WSEntity entity) {
		if (entity == null) return;
		log.info("remove " + entity.getName());
		map.remove(entity.getName());
	}

	@Override
	public WSEntity get(String name) {
		return map.get(name);
	}

//	public void published(WebServiceInfo info) {
//
//	}
//
//	public void stopped(WebServiceInfo info) {
//
//	}

}


text:
@interface NSManagedObjectContext (Create)

+ (NSManagedObjectContext *)mainContext;

- (instancetype)childManagedObjectContext;

@end


text:
<?php declare(strict_types=1);

namespace Limoncello\Validation\Contracts\Errors;

/**
 * @package Limoncello\Validation
 */
interface ErrorCodes
{
    // Generic

    /** Message code */
    const INVALID_VALUE = 0;

    /** Message code */
    const REQUIRED = self::INVALID_VALUE + 1;

    // Types

    /** Message code */
    const IS_STRING = self::REQUIRED + 1;

    /** Message code */
    const IS_BOOL = self::IS_STRING + 1;

    /** Message code */
    const IS_INT = self::IS_BOOL + 1;

    /** Message code */
    const IS_FLOAT = self::IS_INT + 1;

    /** Message code */
    const IS_NUMERIC = self::IS_FLOAT + 1;

    /** Message code */
    const IS_DATE_TIME = self::IS_NUMERIC + 1;

    /** Message code */
    const IS_ARRAY = self::IS_DATE_TIME + 1;

    // Comparisons

    /** Message code */
    const DATE_TIME_BETWEEN = self::IS_ARRAY + 1;

    /** Message code */
    const DATE_TIME_EQUALS = self::DATE_TIME_BETWEEN + 1;

    /** Message code */
    const DATE_TIME_LESS_OR_EQUALS = self::DATE_TIME_EQUALS + 1;

    /** Message code */
    const DATE_TIME_LESS_THAN = self::DATE_TIME_LESS_OR_EQUALS + 1;

    /** Message code */
    const DATE_TIME_MORE_OR_EQUALS = self::DATE_TIME_LESS_THAN + 1;

    /** Message code */
    const DATE_TIME_MORE_THAN = self::DATE_TIME_MORE_OR_EQUALS + 1;

    /** Message code */
    const DATE_TIME_NOT_EQUALS = self::DATE_TIME_MORE_THAN + 1;

    /** Message code */
    const NUMERIC_BETWEEN = self::DATE_TIME_NOT_EQUALS + 1;

    /** Message code */
    const NUMERIC_LESS_OR_EQUALS = self::NUMERIC_BETWEEN + 1;

    /** Message code */
    const NUMERIC_LESS_THAN = self::NUMERIC_LESS_OR_EQUALS + 1;

    /** Message code */
    const NUMERIC_MORE_OR_EQUALS = self::NUMERIC_LESS_THAN + 1;

    /** Message code */
    const NUMERIC_MORE_THAN = self::NUMERIC_MORE_OR_EQUALS + 1;

    /** Message code */
    const SCALAR_EQUALS = self::NUMERIC_MORE_THAN + 1;

    /** Message code */
    const SCALAR_NOT_EQUALS = self::SCALAR_EQUALS + 1;

    /** Message code */
    const SCALAR_IN_VALUES = self::SCALAR_NOT_EQUALS + 1;

    /** Message code */
    const STRING_LENGTH_BETWEEN = self::SCALAR_IN_VALUES + 1;

    /** Message code */
    const STRING_LENGTH_MIN = self::STRING_LENGTH_BETWEEN + 1;

    /** Message code */
    const STRING_LENGTH_MAX = self::STRING_LENGTH_MIN + 1;

    /** Message code */
    const STRING_REG_EXP = self::STRING_LENGTH_MAX + 1;

    /** Message code */
    const IS_NULL = self::STRING_REG_EXP + 1;

    /** Message code */
    const IS_NOT_NULL = self::IS_NULL + 1;

    // Special code for those who extend this enum

    /** Message code */
    const LAST = self::IS_NOT_NULL;
}


text:
package amz

type DescribeInstancesResponse struct {
	RequestId      string `xml:"requestId"`
	ReservationSet []struct {
		InstancesSet []EC2Instance `xml:"instancesSet>item"`
	} `xml:"reservationSet>item"`
}


text:
package sourceviewer.demo;

import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

import org.lwjgl.glfw.GLFW;
import org.lwjgl.opengl.GL;
import org.lwjgl.opengl.GL11;
import org.lwjgl.system.MemoryUtil;

import de.matthiasmann.twl.DesktopArea;
import de.matthiasmann.twl.EditField;
import de.matthiasmann.twl.Event;
import de.matthiasmann.twl.FPSCounter;
import de.matthiasmann.twl.GUI;
import de.matthiasmann.twl.ResizableFrame;
import de.matthiasmann.twl.ScrollPane;
import de.matthiasmann.twl.TabbedPane;
import de.matthiasmann.twl.TextArea;
import de.matthiasmann.twl.ToggleButton;
import de.matthiasmann.twl.model.DefaultEditFieldModel;
import de.matthiasmann.twl.model.EditFieldModel;
import de.matthiasmann.twl.renderer.lwjgl.LWJGLRenderer;
import de.matthiasmann.twl.textarea.StyleSheet;
import de.matthiasmann.twl.theme.ThemeManager;
import sourceviewer.JavaTextAreaModel;
import sourceviewer.StringSyntaxHighlighter;
import test.TestUtils;

/**
 *
 * @author Matthias Mann
 */
public final class Demo extends DesktopArea {

	public static void main(String[] args) {
		try {
			if (GLFW.glfwInit() != GL11.GL_TRUE) {
				System.err.println("Failed To Initilize GLFW!");
				System.exit(-1);
			}
			long window = GLFW.glfwCreateWindow(1200, 600,
					"TWL DesktopArea Demo", MemoryUtil.NULL, MemoryUtil.NULL);

			if (window == MemoryUtil.NULL) {
				System.err.println("Failed To Create Window!");
				System.exit(-1);
			}
			GLFW.glfwMakeContextCurrent(window);
			GL.createCapabilities();

			GLFW.glfwSwapInterval(1); // vsync

			LWJGLRenderer renderer = new LWJGLRenderer();
			Demo demo = new Demo();
			GUI gui = new GUI(demo, renderer);

			ThemeManager theme = ThemeManager.createThemeManager(
					Demo.class.getResource("demo.xml"), renderer);
			gui.applyTheme(theme);

			while (!(GLFW.glfwWindowShouldClose(window) == GL11.GL_TRUE)
					&& !demo.quit) {
				GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);

				gui.update();

				/**
				 * requires LWJGL 2.4 - for 2.3 just call Display.update()
				 */
				GLFW.glfwPollEvents();
				GLFW.glfwSwapBuffers(window);
				GL11.glGetError(); // force sync with multi threaded GL driver
			}

			gui.destroy();
			theme.destroy();
			GLFW.glfwDestroyWindow(window);
		} catch (Exception ex) {
			TestUtils.showErrMsg(ex);
		}
	}

	private final FPSCounter fpsCounter;
	private final ResizableFrame frame;
	private final TabbedPane tabbedPane;
	private final StyleSheet styleSheet;
	private final ArrayList<TabEntry> entrys;
	private final ToggleButton showLineNumbersBtn;
	private final ToggleButton scrollTabsBtn;

	public boolean quit;

	public Demo() {
		entrys = new ArrayList<TabEntry>();

		fpsCounter = new FPSCounter();
		add(fpsCounter);

		showLineNumbersBtn = new ToggleButton("Show line numbers");
		add(showLineNumbersBtn);

		scrollTabsBtn = new ToggleButton("Scroll tabs");
		scrollTabsBtn.setActive(true);
		add(scrollTabsBtn);

		tabbedPane = new TabbedPane();
		tabbedPane.setScrollTabs(scrollTabsBtn.isActive());

		frame = new ResizableFrame();
		frame.setTitle("Source code viewer");
		frame.add(tabbedPane);
		add(frame);

		frame.setSize(1100, 520);
		frame.setPosition(40, 20);

		styleSheet = new StyleSheet();

		try {
			styleSheet.parse("ol > li { padding-left: 5px; }"
					+ "pre {font-family: code }"
					+ ".comment    { font-family: codeComment }"
					+ ".commentTag { font-family: codeCommentTag }"
					+ ".string     { font-family: codeString  }"
					+ ".keyword    { font-family: codeKeyword }");
		} catch (IOException ex) {
			Logger.getLogger(Demo.class.getName()).log(Level.SEVERE,
					"Can't parse style sheet", ex);
		}

		final String[] files = new String[] { "demo/Demo.java",
				"JavaScanner.java", "JavaTextAreaModel.java",
				"CharacterIterator.java", "KeywordList.java", };
		for (String path : files) {
			try {
				addSourceFile(path);
			} catch (IOException ex) {
				Logger.getLogger(Demo.class.getName()).log(Level.SEVERE,
						"Can't open file: " + path, ex);
			}
		}

		parseFiles();

		showLineNumbersBtn.addCallback(new Runnable() {
			public void run() {
				parseFiles();
			}
		});
		scrollTabsBtn.addCallback(new Runnable() {
			public void run() {
				tabbedPane.setScrollTabs(scrollTabsBtn.isActive());
			}
		});

		EditFieldModel efm = new DefaultEditFieldModel();
		EditField ef = new EditField(null, efm);
		ef.setMultiLine(true);
		ef.setText("public class HelloWorld {\n"
				+ "    public static void main(String[] args) {\n"
				+ "        System.out.println(\"Hello World\");\n" + "    }\n"
				+ "}\n");

		StringSyntaxHighlighter ssh = new StringSyntaxHighlighter(efm,
				ef.getStringAttributes());
		ssh.registerCallback();

		ScrollPane sp = new ScrollPane(ef);
		sp.setFixed(ScrollPane.Fixed.HORIZONTAL);
		sp.setExpandContentSize(true);

		tabbedPane.addTab("Source editor", sp);
	}

	public void parseFiles() {
		boolean withLineNumbers = showLineNumbersBtn.isActive();
		for (TabEntry e : entrys) {
			try {
				e.parse(withLineNumbers);
			} catch (IOException ex) {
				Logger.getLogger(Demo.class.getName()).log(Level.SEVERE,
						"Can't parse file: " + e.url, ex);
			}
		}
	}

	public void addSourceFile(String path) throws IOException {
		URL ref = Demo.class.getResource("demo.xml");
		URL url = new URL(ref, "../../sourceviewer/".concat(path));

		JavaTextAreaModel jtam = new JavaTextAreaModel();
		entrys.add(new TabEntry(jtam, url));

		TextArea textArea = new TextArea(jtam);
		textArea.setTheme("textarea");
		textArea.setStyleClassResolver(styleSheet);

		ScrollPane sp = new ScrollPane(textArea);
		sp.setTheme("scrollpane");
		sp.setFixed(ScrollPane.Fixed.HORIZONTAL);
		sp.setExpandContentSize(true);

		tabbedPane.addTab(path, sp);
	}

	@Override
	protected void layout() {
		super.layout();

		// fpsCounter is bottom right
		fpsCounter.adjustSize();
		fpsCounter.setPosition(getInnerRight() - fpsCounter.getWidth(),
				getInnerBottom() - fpsCounter.getHeight());

		// showLineNumbersBtn is bottom left
		showLineNumbersBtn.adjustSize();
		showLineNumbersBtn.setPosition(getInnerX(), getInnerBottom()
				- showLineNumbersBtn.getHeight());

		scrollTabsBtn.adjustSize();
		scrollTabsBtn.setPosition(showLineNumbersBtn.getRight() + 5,
				getInnerBottom() - scrollTabsBtn.getHeight());
	}

	@Override
	protected boolean handleEvent(Event evt) {
		if (super.handleEvent(evt)) {
			return true;
		}
		switch (evt.getType()) {
		case KEY_PRESSED:
			switch (evt.getKeyCode()) {
			case Event.KEY_ESCAPE:
				quit = true;
				return true;
			}
		default:
			break;
		}
		return false;
	}

	static class TabEntry {
		final JavaTextAreaModel jtam;
		final URL url;

		public TabEntry(JavaTextAreaModel jtam, URL url) {
			this.jtam = jtam;
			this.url = url;
		}

		public void parse(boolean withLineNumbers) throws IOException {
			jtam.parse(url, withLineNumbers);
		}
	}
}


text:
class CrossOriginRequest
  def initialize(app)
    @app = app
  end

  def call(env)
    status, headers, body = @app.call(env)
    headers['Access-Control-Allow-Origin'] = '*'
    headers['Access-Control-Request-Method'] = '*'
    [status, headers, body]
  end
end


text:
package flex.messaging.io.amfx.bytes_tag;

import flex.messaging.io.amfx.DeserializationConfirmation;
import flex.messaging.io.amf.ActionMessage;
import flex.messaging.io.amf.MessageBody;
import flex.messaging.MessageException;

public class Confirm16a extends DeserializationConfirmation
{
    private ActionMessage EXPECTED_VALUE;

    public Confirm16a()
    {
        ActionMessage m = new ActionMessage();
        MessageBody body = new MessageBody();
        m.addBody(body);

        byte[] bytes = new byte[17];
        for (int i = 0; i < 17; i++)
        {
            bytes[i] = (byte)i;
        }

        body.setData(bytes);
        EXPECTED_VALUE = m;
    }

    public ActionMessage getExpectedMessage()
    {
        return EXPECTED_VALUE;
    }

    public MessageException getExpectedException()
    {
        return null;
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Biatora stizenbergeri Hepp

### Remarks
null


text:
<!DOCTYPE html>

  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>AngularJS Touch Slider</title>

  <link rel="stylesheet" href="./lib/bootstrap.min.css">
  <link rel="stylesheet" href="../dist/rzslider.css"/>
  <link rel="stylesheet" href="demo.css"/>
  <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>

Debug slider

    <rzslider
      data-rz-slider-model="debugSlider.value"
      data-rz-slider-options="debugSlider.options"
    ></rzslider>


text:
package org.venice.piazza.servicecontroller.messaging.handlers;

import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.venice.piazza.servicecontroller.data.accessor.DatabaseAccessor;

import org.venice.piazza.servicecontroller.util.CoreServiceProperties;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import model.job.PiazzaJobType;
import model.job.metadata.ResourceMetadata;
import model.job.type.DescribeServiceMetadataJob;
import model.service.metadata.Service;
import util.PiazzaLogger;
import util.UUIDFactory;

	public class DescribeServiceHandlerTest {

		ResourceMetadata rm = null;
		Service service = null;

		// Create some mocks
		@Mock
		private DatabaseAccessor accessorMock;

		@Mock
		private CoreServiceProperties coreServicePropMock;

		@Mock
		private PiazzaLogger piazzaLoggerMock;

		@Mock
		private UUIDFactory uuidFactoryMock;

		@Mock
		private ObjectMapper omMock;

		@InjectMocks
		private DescribeServiceHandler dsHandler;

		@Before
	    public void setup() {
	        // Setup a Service with some Resource Metadata
			rm = new ResourceMetadata();
			rm.name = "toUpper Params";
			rm.description = "Service to convert string to uppercase";

			service = new Service();
			service.setMethod ("POST");
			service.setServiceId("a842aae2-bd74-4c4b-9a65-c45e8cd9060");
			service.setResourceMetadata(rm);
			service.setUrl("http://localhost:8082/string/toUpper");
			MockitoAnnotations.initMocks(this);
	    }

		@Test
		/**
		 * Test what happens when a null is sent to register a service
		 */
		public void testHandleJobRequestNull() {
			PiazzaJobType jobRequest = null;
			ResponseEntity<String> result = dsHandler.handle(jobRequest);
	        assertEquals("The response to a null JobRequest update should be null", HttpStatus.BAD_REQUEST, result.getStatusCode());
		}

		/**
		 * Test that the service metadata can be retrieved.
		 */
		@Test
		public void testSuccessDescribe() {
			DescribeServiceMetadataJob job = new DescribeServiceMetadataJob();
			String testServiceId = "a842aae2-bd74-4c4b-9a65-c45e8cd9060";
			job.setServiceID(testServiceId);
			try {
				ObjectMapper mapper = new ObjectMapper();
				String responseServiceString = mapper.writeValueAsString(service);

				ResponseEntity<String> responseEntity = new  ResponseEntity<String>(responseServiceString, HttpStatus.OK);

				final DescribeServiceHandler dsMock = Mockito.spy (dsHandler);

				Mockito.doReturn(responseEntity).when(dsMock).handle(job);
				ResponseEntity<String> result = dsMock.handle(job);

				assertEquals ("The response entity was correct for this describe request", responseEntity, result);
				assertEquals ("The response code is 200", HttpStatus.OK, responseEntity.getStatusCode());
				assertEquals ("The body of the response is correct", responseEntity.getBody(), responseServiceString);

			} catch (JsonProcessingException jpe) {
				jpe.printStackTrace();
			}

		}
		/**
		 * Test what happens when the service cannot be described
		 */
		@Test
		public void testUnsuccessful() {
			DescribeServiceMetadataJob job = new DescribeServiceMetadataJob();

			String testServiceId = "a842aae2-bd74-4c4b-9a65-c45e8cd9060";
			job.setServiceID(testServiceId);
			final DescribeServiceHandler dsMock = Mockito.spy (dsHandler);
			ResponseEntity<String> responseEntity = new  ResponseEntity<String>("", HttpStatus.NOT_FOUND);

			Mockito.doReturn(responseEntity).when(dsMock).handle(testServiceId);
			ResponseEntity<String> result = dsMock.handle(job);

			assertEquals ("The status code should be HttpStatus.NOT_FOUND.", HttpStatus.NOT_FOUND, result.getStatusCode());

		}
		/**
		 * Test that the service metadata can be retrieved.
		 */
		@Test
		public void testSuccessDescribeService() {
			String testServiceId = "a842aae2-bd74-4c4b-9a65-c45e8cd9060";
			try {
				ObjectMapper mapper = new ObjectMapper();
				String responseServiceString = mapper.writeValueAsString(service);
				ResponseEntity<String> responseEntity = new  ResponseEntity<String>(responseServiceString, HttpStatus.OK);

				Mockito.doReturn(service).when(accessorMock).getServiceById(testServiceId);
				ResponseEntity<String> result = dsHandler.handle(testServiceId);

				assertEquals ("The response entity was correct for this describe request", responseEntity, result);
				assertEquals ("The response code is 200", HttpStatus.OK, responseEntity.getStatusCode());
				assertEquals ("The body of the response is correct", responseEntity.getBody(), responseServiceString);

			} catch (JsonProcessingException jpe) {
				jpe.printStackTrace();
			}

		}
		/**
		 * Test that the service metadata could not be retrieved
		 */
		@Test
		public void testUnSuccessDescribeService() {
			String testServiceId = "a842aae2-bd74-4c4b-9a65-c45e8cd9060";
			ResponseEntity<String> responseEntity = new  ResponseEntity<String>("null", HttpStatus.OK);

			Mockito.doReturn(null).when(accessorMock).getServiceById(testServiceId);
			ResponseEntity<String> result = dsHandler.handle(testServiceId);

			assertEquals ("The response entity was correct for this describe request", responseEntity, result);
			assertEquals ("The response code is 200", HttpStatus.OK, responseEntity.getStatusCode());
			assertEquals ("The body of the response is correct", "null", responseEntity.getBody());

		}

		/**
		 * Test that the service metadata could not be retrieved
		 * due to a marshalling error
		 */
		@Test
		public void testUnSuccessDescribeServiceException() {
			String testServiceId = "a842aae2-bd74-4c4b-9a65-c45e8cd9060";
			ResponseEntity<String> responseEntity = new ResponseEntity<>("null", HttpStatus.OK);
			try {
				Mockito.when(omMock.writeValueAsString(Mockito.anyString())).thenThrow( new JsonProcessingException("") {});
			} catch (JsonProcessingException jpe) {
				jpe.printStackTrace();
			}
			ResponseEntity<String> result = dsHandler.handle(testServiceId);

			assertEquals ("The response entity was correct for this describe request", responseEntity, result);
			assertEquals ("The response code is 200", HttpStatus.OK, responseEntity.getStatusCode());
			assertEquals ("The body of the response is correct", "null", responseEntity.getBody());

		}
}


text:
title: "plugin inspect"
description: "The plugin inspect command description and usage"
keywords: "plugin, inspect"
---

# plugin inspect

```markdown
Usage:  docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]

Display detailed information on one or more plugins

Options:
  -f, --format string   Format output using a custom template:
                        'json':             Print in JSON format
                        'TEMPLATE':         Print output using the given Go template.
                        Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates
      --help            Print usage
```

## Description

Returns information about a plugin. By default, this command renders all results
in a JSON array.

## Examples

### Inspect a plugin

The following example example inspects the `tiborvass/sample-volume-plugin` plugin:

```console
$ docker plugin inspect tiborvass/sample-volume-plugin:latest
```

Output is in JSON format (output below is formatted for readability):

```json
{
  "Id": "8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21",
  "Name": "tiborvass/sample-volume-plugin:latest",
  "PluginReference": "tiborvas/sample-volume-plugin:latest",
  "Enabled": true,
  "Config": {
    "Mounts": [
      {
        "Name": "",
        "Description": "",
        "Settable": null,
        "Source": "/data",
        "Destination": "/data",
        "Type": "bind",
        "Options": [
          "shared",
          "rbind"
        ]
      },
      {
        "Name": "",
        "Description": "",
        "Settable": null,
        "Source": null,
        "Destination": "/foobar",
        "Type": "tmpfs",
        "Options": null
      }
    ],
    "Env": [
      "DEBUG=1"
    ],
    "Args": null,
    "Devices": null
  },
  "Manifest": {
    "ManifestVersion": "v0",
    "Description": "A test plugin for Docker",
    "Documentation": "https://docs.docker.com/engine/extend/plugins/",
    "Interface": {
      "Types": [
        "docker.volumedriver/1.0"
      ],
      "Socket": "plugins.sock"
    },
    "Entrypoint": [
      "plugin-sample-volume-plugin",
      "/data"
    ],
    "Workdir": "",
    "User": {
    },
    "Network": {
      "Type": "host"
    },
    "Capabilities": null,
    "Mounts": [
      {
        "Name": "",
        "Description": "",
        "Settable": null,
        "Source": "/data",
        "Destination": "/data",
        "Type": "bind",
        "Options": [
          "shared",
          "rbind"
        ]
      },
      {
        "Name": "",
        "Description": "",
        "Settable": null,
        "Source": null,
        "Destination": "/foobar",
        "Type": "tmpfs",
        "Options": null
      }
    ],
    "Devices": [
      {
        "Name": "device",
        "Description": "a host device to mount",
        "Settable": null,
        "Path": "/dev/cpu_dma_latency"
      }
    ],
    "Env": [
      {
        "Name": "DEBUG",
        "Description": "If set, prints debug messages",
        "Settable": null,
        "Value": "1"
      }
    ],
    "Args": {
      "Name": "args",
      "Description": "command line arguments",
      "Settable": null,
      "Value": [

      ]
    }
  }
}
```

###  Format the output (--format)

```console
$ docker plugin inspect -f '{{.Id}}' tiborvass/sample-volume-plugin:latest

8c74c978c434745c3ade82f1bc0acf38d04990eaf494fa507c16d9f1daa99c21
```

## Related commands

* [plugin create](plugin_create.md)
* [plugin enable](plugin_enable.md)
* [plugin disable](plugin_disable.md)
* [plugin install](plugin_install.md)
* [plugin ls](plugin_ls.md)
* [plugin push](plugin_push.md)
* [plugin rm](plugin_rm.md)
* [plugin set](plugin_set.md)
* [plugin upgrade](plugin_upgrade.md)


text:
'use strict';

function formatError(exception, compact) {
  var where = '', message = exception.reason || '(unknown reason)';

  if (!exception.mark) return message;

  if (exception.mark.name) {
    where += 'in "' + exception.mark.name + '" ';
  }

  where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')';

  if (!compact && exception.mark.snippet) {
    where += '\n\n' + exception.mark.snippet;
  }

  return message + ' ' + where;
}

function YAMLException(reason, mark) {
  // Super constructor
  Error.call(this);

  this.name = 'YAMLException';
  this.reason = reason;
  this.mark = mark;
  this.message = formatError(this, false);

  // Include stack trace in error object
  if (Error.captureStackTrace) {
    // Chrome and NodeJS
    Error.captureStackTrace(this, this.constructor);
  } else {
    // FF, IE 10+ and Safari 6+. Fallback for others
    this.stack = (new Error()).stack || '';
  }
}

// Inherit from Error
YAMLException.prototype = Object.create(Error.prototype);
YAMLException.prototype.constructor = YAMLException;

YAMLException.prototype.toString = function toString(compact) {
  return this.name + ': ' + formatError(this, compact);
};

module.exports = YAMLException;


text:
bool Unzip(const FilePath& zip_file, const FilePath& dest_dir,
           std::vector<FilePath>* files);

#endif  // CHROME_COMMON_UNZIP_H_


text:
package webcrypt.math;

/**
 * Static class useful for converting between various numerical types
 */
import java.math.BigInteger;

public class Conversions{

    public static BigInteger int2BigInteger(int x){
	return new BigInteger(""+x);
    }

    public static BigInteger[] int2BigInteger(int[] x){
	BigInteger[] output = new BigInteger[x.length];
	for(int i=0; i<x.length; i++) output[i] = int2BigInteger(x[i]);
	return output;
    }
}


text:
'use strict';

var SearchParameters = require('../../../src/SearchParameters');

test('getConjunctiveRefinements returns value in facets', function() {
  var state = new SearchParameters({
    facets: ['test'],
    facetsRefinements: {
      test: ['zongo']
    }
  });

  expect(state.getConjunctiveRefinements('test')).toEqual(['zongo']);
});

test('getConjunctiveRefinements returns [] if facet is not conjunctive', function() {
  var state = new SearchParameters({
    facetsRefinements: {
      test: ['zongo']
    }
  });

  expect(state.getConjunctiveRefinements('test')).toEqual([]);
});


text:
'use strict';
var winston = require('winston');

module.exports = {
    up: function (queryInterface, Sequelize) {
        return queryInterface.addColumn('vod', 'expiration_time', {
                type: Sequelize.DATE,
                defaultValue: '2019:01:01 00:00:00',
                after: 'default_subtitle_id'
            })
            .catch(function (err) {
                winston.error('Adding column vod.expiration_time failed with error message: ', err.message);
            });
    },

    down: function (queryInterface, Sequelize) {
        return queryInterface.removeColumn('vod', 'expiration_time')
            .catch(function (err) {
                winston.error('Dropping column vod.expiration_time failed with error message: ', err.message);
            });
    }
};


text:
'use strict';

/**
 * Main module of the application.
 */

//////////////////////////////////////////////////////////////////////
// Here we have to declare all the modules used in the application ...
//////////////////////////////////////////////////////////////////////

angular.module('services', []);
angular.module('controllers', []);
angular.module('constants', []);
angular.module('directives', []);

//////////////////////////////////////////////////////////////////////
// Here we declare the application 'yapp' with all the dependencies,
// which are the modules the application depends on  ...
//////////////////////////////////////////////////////////////////////

angular.module('yapp', [
    'ui.router',
    'ngAnimate',
    'services',
    'controllers',
    'constants',
    'directives',
    'ngMaterial'
  ])
  .config(function($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.when('/dashboard', '/dashboard/overview');
    $urlRouterProvider.otherwise('/login');

    // This part defines the routing rules ...
    $stateProvider
      .state('base', {
        abstract: true,
        url: '',
        templateUrl: 'views/base.html'
      })
      .state('login', {
        url: '/login',
        parent: 'base',
        templateUrl: 'views/login.html',
        controller: 'LoginCtrl'
      })
      .state('dashboard', {
        url: '/dashboard',
        parent: 'base',
        templateUrl: 'views/dashboard.html',
        controller: 'DashboardCtrl'
      })
      .state('overview', {
        url: '/overview',
        parent: 'dashboard',
        templateUrl: 'views/dashboard/overview.html'
      })
      .state('reports', {
        url: '/reports',
        parent: 'dashboard',
        templateUrl: 'views/dashboard/reports.html'
      })
      .state('users', {
        url: '/users',
        parent: 'dashboard',
        templateUrl: 'views/dashboard/users.html',
        controller: 'UsersCtrl'
      })
      .state('test', {
        url: '/test',
        parent: 'dashboard',
        templateUrl: 'views/dashboard/test.html',
        controller: 'TestCtrl'
      })
      .state('map', {
        url: '/map',
        parent: 'dashboard',
        templateUrl: 'views/dashboard/map.html',
        controller: 'MapCtrl'
      })
      .state('data', {
        url: '/data',
        parent: 'dashboard',
        templateUrl: 'views/dashboard/data.html',
        controller: 'DataCtrl'
      });
  })
  // This is needed for the authentiaction with the _xcsrf header ...
  .config(function ($httpProvider) {
  	$httpProvider.defaults.withCredentials = true;
  	$httpProvider.defaults.headers.common["X-Requested-With"] = 'XMLHttpRequest';
});


text:
package org.jetbrains.plugins.scala.lang.adjustTypes

import com.intellij.psi.PsiNamedElement
import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestCase
import org.jetbrains.plugins.scala.extensions.{PsiElementExt, PsiNamedElementExt}
import org.jetbrains.plugins.scala.lang.psi.ScalaPsiUtil
import org.jetbrains.plugins.scala.util.TestUtils
import org.junit.Assert

class StaticJavaTest extends LightJavaCodeInsightFixtureTestCase {

  override def setUp(): Unit = {
    TestUtils.optimizeSearchingForIndexableFiles()
    super.setUp()
  }

  def testStaticJava(): Unit = {
    val file = myFixture.addFileToProject("TestStatic.java",
      """public class TestStatic {
        |
        |    public static int staticField = 0;
        |
        |    public static int staticMethod() {
        |        return 1;
        |    }
        |
        |    enum Enum {
        |        A1;
        |
        |        public static String enumStaticField = "";
        |        public String enumField = "";
        |
        |        enum Enum2 {
        |            B1;
        |        }
        |    }
        |
        |    interface Interface {
        |        String interfaceField = "";
        |    }
        |
        |    class Inner {
        |        public int innerField = 1;
        |
        |        public static int innerStaticField = 2; //compile error
        |    }
        |
        |    public static class StaticInner {
        |        public int staticClassField = 1;
        |
        |        public static int staticClassStaticField = 2;
        |    }
        |}""".stripMargin.replace("\r", ""))

    val hasStablePaths = file.depthFirst().collect {
      case named: PsiNamedElement if ScalaPsiUtil.hasStablePath(named) => named.name
    }

    Assert.assertEquals(hasStablePaths.toSet,
      Set("TestStatic", "staticField", "staticMethod", "Enum", "A1", "enumStaticField", "Enum2", "B1",
        "Interface", "interfaceField", "StaticInner", "staticClassStaticField"))
  }
}


text:
/**
 *
 * Provides the source code of the Dwriter application, and an entry-point for
 * command-line invocation.
 */
package dwriter;


text:
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Chapter 1. Boost.Intrusive</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Chapter 1. Boost.Intrusive">
<link rel="next" href="intrusive/introduction.html" title="Introduction">

Home
Libraries
People
FAQ
More

Chapter 1. Boost.Intrusive

Olaf Krzikalla

Ion Gaztanaga

Copyright © 2005 Olaf Krzikalla

Copyright © 2006-2015 Ion Gaztanaga

        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction

Presenting
      Boost.Intrusive

Building
      Boost.Intrusive

Intrusive and non-intrusive
    containers

Differences
      between intrusive and non-intrusive containers

Properties
      of Boost.Intrusive containers

How to use Boost.Intrusive

Using base hooks

Using member hooks

Using both hooks

Object lifetime

When to use?

Concept summary

Presenting Boost.Intrusive
    containers

Safe hooks

Features of the safe mode

Configuring safe-mode
      assertions

Auto-unlink hooks

What's
      an auto-unlink hook?

Auto-unlink
      hook example

Auto-unlink
      hooks and containers with constant-time size()

Intrusive singly linked list: slist

slist hooks

slist container

Example

Intrusive doubly linked list: list

list hooks

list container

Example

Intrusive associative containers:
    set, multiset, rbtree

set, multiset
      and rbtree hooks

set,
      multiset and rbtree containers

Example

Semi-Intrusive
    unordered associative containers: unordered_set, unordered_multiset

unordered_set
      and unordered_multiset performance notes

unordered_set
      and unordered_multiset hooks

unordered_set
      and unordered_multiset containers

Example

Custom
      bucket traits

Map and multimap-like interface
    for associative containers

Intrusive avl tree based associative
    containers: avl_set, avl_multiset and avltree

avl_set,
      avl_multiset and avltree hooks

avl_set,
      avl_multiset and avltree containers

Example

Intrusive splay tree based
    associative containers: splay_set, splay_multiset and , splay_tree

Advantages
      and disadvantages of splay tree based containers

splay_set,
      splay_multiset and splaytree containers

Example

Intrusive scapegoat tree based
    associative containers: sg_set, sg_multiset and sgtree

sg_set,
      sg_multiset and sgtree containers

Example

Intrusive treap based associative
    containers: treap_set, treap_multiset and treap

treap_set,
      treap_multiset and treap containers

Exception
      safety of treap-based intrusive containers

Example

Binary search tree hooks: bs_set_base_hook
    and bs_set_member_hook

Advanced lookup
    and insertion functions for associative containers

Advanced
      lookups

Advanced
      insertions

Positional
      insertions

Erasing and disposing
    values from Boost.Intrusive containers

Cloning Boost.Intrusive containers

Using function hooks

Recursive Boost.Intrusive containers

Using smart pointers with
    Boost.Intrusive containers

Requirements
      for smart pointers compatible with Boost.Intrusive

Obtaining iterators
    from values

Any Hooks: A single hook for any Intrusive
    container

Concepts explained

Node algorithms with custom
    NodeTraits

Intrusive
      singly linked list algorithms

Intrusive
      doubly linked list algorithms

Intrusive
      red-black tree algorithms

Intrusive
      splay tree algorithms

Intrusive
      avl tree algorithms

Intrusive
      treap algorithms

Containers with custom ValueTraits

ValueTraits
      interface

Custom ValueTraits
      example

Reusing
      node algorithms for different values

Simplifying
      value traits definition

Stateful
      value traits

Thread safety guarantees

Scary Iterators

Stability and insertion
    with hint in ordered associative containers with equivalent keys

Obtaining
    the same types and reducing symbol length

Design Notes

Boost.Intrusive
      in performance sensitive environments

Boost.Intrusive
      in space constrained environments

Boost.Intrusive
      as a basic building block

Extending
      Boost.Intrusive

Performance

Back
      insertion and destruction

Reversing

Sorting

Write
      access

Conclusions

Release Notes

Boost
      1.61 Release

Boost
      1.60 Release

Boost
      1.59 Release

Boost
      1.58 Release

Boost
      1.57 Release

Boost
      1.56 Release

Boost
      1.55 Release

Boost
      1.54 Release

Boost
      1.53 Release

Boost
      1.51 Release

Boost
      1.49 Release

Boost
      1.48 Release

Boost
      1.46 Release

Boost
      1.45 Release

Boost
      1.40 Release

Boost
      1.39 Release

Boost
      1.38 Release

Boost
      1.37 Release

Boost
      1.36 Release

Tested compilers

References

Acknowledgements

Indexes

Reference

Header <boost/intrusive/any_hook.hpp>

Header <boost/intrusive/avl_set.hpp>

Header <boost/intrusive/avl_set_hook.hpp>

Header <boost/intrusive/avltree.hpp>

Header <boost/intrusive/avltree_algorithms.hpp>

Header <boost/intrusive/bs_set.hpp>

Header <boost/intrusive/bs_set_hook.hpp>

Header <boost/intrusive/bstree.hpp>

Header <boost/intrusive/bstree_algorithms.hpp>

Header <boost/intrusive/circular_list_algorithms.hpp>

Header <boost/intrusive/circular_slist_algorithms.hpp>

Header <boost/intrusive/derivation_value_traits.hpp>

Header <boost/intrusive/hashtable.hpp>

Header <boost/intrusive/intrusive_fwd.hpp>

Header <boost/intrusive/linear_slist_algorithms.hpp>

Header <boost/intrusive/link_mode.hpp>

Header <boost/intrusive/list.hpp>

Header <boost/intrusive/list_hook.hpp>

Header <boost/intrusive/member_value_traits.hpp>

Header <boost/intrusive/options.hpp>

Header <boost/intrusive/pack_options.hpp>

Header <boost/intrusive/parent_from_member.hpp>

Header <boost/intrusive/pointer_plus_bits.hpp>

Header <boost/intrusive/pointer_rebind.hpp>

Header <boost/intrusive/pointer_traits.hpp>

Header <boost/intrusive/priority_compare.hpp>

Header <boost/intrusive/rbtree.hpp>

Header <boost/intrusive/rbtree_algorithms.hpp>

Header <boost/intrusive/set.hpp>

Header <boost/intrusive/set_hook.hpp>

Header <boost/intrusive/sg_set.hpp>

Header <boost/intrusive/sgtree.hpp>

Header <boost/intrusive/sgtree_algorithms.hpp>

Header <boost/intrusive/slist.hpp>

Header <boost/intrusive/slist_hook.hpp>

Header <boost/intrusive/splay_set.hpp>

Header <boost/intrusive/splaytree.hpp>

Header <boost/intrusive/splaytree_algorithms.hpp>

Header <boost/intrusive/treap.hpp>

Header <boost/intrusive/treap_algorithms.hpp>

Header <boost/intrusive/treap_set.hpp>

Header <boost/intrusive/trivial_value_traits.hpp>

Header <boost/intrusive/unordered_set.hpp>

Header <boost/intrusive/unordered_set_hook.hpp>

Last revised: May 05, 2016 at 21:18:17 GMT