text:
// make console.log safe to use
window.console || (console = {log: function() {}});

//------------- Options for Super Mario -------------//
var smOptions = {
    fixedWidth: false//activate fixed version with true
};

// document ready function
$(document).ready(function() {
    $.egox.ui.tabs.init();

    //window resize events
    $(window).resize(function() {
        //get the window size

        var wSize = $(window).width();
        if (wSize > 980) {
            $('.shortcuts.hided').removeClass('hided').attr("style", "");
            $('.sidenav.hided').removeClass('hided').attr("style", "");
        }
        $.egox.ui.tabs.resize();
//    var size = "Window size is:" + $(window).width();
        //console.log(size);
    });

    $(window).load(function() {
        var wHeight = $(window).height();
        $('#sidebar.scrolled').css('height', wHeight - 63 + 'px');
    });

    //make template fixed width
    if (smOptions.fixedWidth) {
        $('body').addClass('fixedWidth');
        $('#header').addClass('container');
        $('#wrapper').addClass('container');
    }

    //localStorage.setItem('rtl', 0);

    //Disable certain links
    $('a[href^=#]').click(function(e) {
        e.preventDefault();
    });

    //------------- Navigation -------------//

    var mainNav = $('.mainnav>ul>li');
    mainNav.find('ul').siblings().addClass('hasUl').append('');
    var mainNavLink = mainNav.find('a').not('.sub a');
    var mainNavLinkAll = mainNav.find('a');
    var mainNavSubLink = mainNav.find('.sub a').not('.sub li');
    var mainNavCurrent = mainNav.find('a.current');

    //add hasSub to first element
    if (mainNavLink.hasClass('hasUl')) {
        $(this).closest('li').addClass('hasSub');
    }

    /*Auto current system in main navigation */
    var domain = document.domain;
    var folder = '';//if you put site in folder not in main domain you need to specify it. example http://www.host.com/folder/site
    var absoluteUrl = 0; //put value of 1 if use absolute path links. example http://www.host.com/dashboard instead of /dashboard

    function setCurrentClass(mainNavLinkAll, url) {
        mainNavLinkAll.each(function(index) {
            //convert href to array and get last element
            var href = $(this).attr('href');

            if (href == url) {
                //set new current class
                $(this).addClass('current');

                parents = $(this).parentsUntil('li.hasSub');
                parents.each(function() {
                    if ($(this).hasClass('sub')) {
                        //its a part of sub menu need to expand this menu
                        $(this).prev('a.hasUl').addClass('drop');
                        $(this).addClass('expand');
                    }
                });
            }
        });
    }

    if (domain === '') {
        //domain not found looks like is in testing phase
        var pageUrl = window.location.pathname.split('/');
        var winLoc = pageUrl.pop(); // get last item
        setCurrentClass(mainNavLinkAll, winLoc);

    } else {
        if (absoluteUrl === 0) {
            //absolute url is disabled
            var afterDomain = window.location.pathname;
            if (folder != '') {
                afterDomain = afterDomain.replace(folder + '/', '');
            } else {
                afterDomain = afterDomain.replace('/', '');
            }
            setCurrentClass(mainNavLinkAll, afterDomain);
        } else {
            //absolute url is enabled
            var newDomain = 'http://' + domain + window.location.pathname;
            setCurrentClass(mainNavLinkAll, newDomain);
        }
    }

    //hover magic add blue color to icons when hover - remove or change the class if not you like.
    mainNavLinkAll.hover(
            function() {
                $(this).find('span.icon16').addClass('blue');
            },
            function() {
                $(this).find('span.icon16').removeClass('blue');
            }
    );

    //click magic
    mainNavLink.click(function(event) {
        var $this = $(this);
        if ($this.hasClass('hasUl')) {
            event.preventDefault();
            if ($this.hasClass('drop')) {
                $(this).siblings('ul.sub').slideUp(250).siblings().toggleClass('drop');
            } else {
                $(this).siblings('ul.sub').slideDown(250).siblings().toggleClass('drop');
            }
        }
    });
    mainNavSubLink.click(function(event) {
        var $this = $(this);
        if ($this.hasClass('hasUl')) {
            event.preventDefault();
            if ($this.hasClass('drop')) {
                $(this).siblings('ul.sub').slideUp(250).siblings().toggleClass('drop');
            } else {
                $(this).siblings('ul.sub').slideDown(250).siblings().toggleClass('drop');
            }
        } else {
            event.preventDefault();
            var href = $this.attr('href');
            var title = $this.text();
            $.egox.ui.tabs.openTab(title, href);
        }
    });

    //responsive buttons
    $('.resBtn>a').click(function(event) {
        var $this = $(this);
        if ($this.hasClass('drop')) {
            $this.removeClass('drop');
        } else {
            $this.addClass('drop');
        }
        if ($('#sidebar').length) {
            $('#sidebar').toggleClass('offCanvas');
            $('#sidebarbg').toggleClass('offCanvas');
            if ($('#sidebar-right').length) {
                $('#sidebar-right').toggleClass('offCanvas');
            }
        }
        if ($('#sidebar-right').length) {
            $('#sidebar-right').toggleClass('offCanvas');
            $('#sidebarbg-right').toggleClass('offCanvas');
        }
        $('#content').toggleClass('offCanvas');
        if ($('#content-one').length) {
            $('#content-one').toggleClass('offCanvas');
        }
    });

    //Hide and show sidebar btn
    $(function() {
        //var pages = ['http://www.suggeelson.com/themes/supr/js/grid.html','http://www.suggeelson.com/themes/supr/js/charts.html'];
        var pages = [];

        for (var i = 0, j = pages.length; i < j; i++) {

            if ($.cookie("currentPage") == pages[i]) {
                var cBtn = $('.collapseBtn.leftbar');
                cBtn.children('a').attr('title', 'Show Left Sidebar');
                cBtn.addClass('shadow hide');
                cBtn.css({'top': '20px', 'left': '200px'});
                $('#sidebarbg').css('margin-left', '-299' + 'px');
                $('#sidebar').css('margin-left', '-299' + 'px');
                if ($('#content').length) {
                    $('#content').css('margin-left', '0');
                }
                if ($('#content-two').length) {
                    $('#content-two').css('margin-left', '0');
                }
                $.egox.ui.tabs.resize();
            }

        }

    });

    $('.collapseBtn').bind('click', function() {
        var $this = $(this);

        //left sidbar clicked
        if ($this.hasClass('leftbar')) {
            if ($(this).hasClass('hide-sidebar')) {
                //show sidebar
                $this.removeClass('hide-sidebar');
                $this.children('a').attr('title', 'Hide Left Sidebar');

            } else {
                //hide sidebar
                $this.addClass('hide-sidebar');
                $this.children('a').attr('title', 'Show Left Sidebar');
            }
            $('#sidebarbg').toggleClass('hided');
            $('#sidebar').toggleClass('hided');
            $('.collapseBtn.leftbar').toggleClass('top shadow');
            //expand content

            if ($('#content').length) {
                $('#content').toggleClass('hided');
            }
            if ($('#content-two').length) {
                $('#content-two').toggleClass('hided');
            }
        }

        //right sidebar clicked
        if ($this.hasClass('rightbar')) {
            if ($(this).hasClass('hide-sidebar')) {
                //show sidebar
                $this.removeClass('hide-sidebar');
                $this.children('a').attr('title', 'Hide Right Sidebar');

            } else {
                //hide sidebar
                $this.addClass('hide-sidebar');
                $this.children('a').attr('title', 'Show Right Sidebar');
            }
            $('#sidebarbg-right').toggleClass('hided');
            $('#sidebar-right').toggleClass('hided');
            if ($('#content').length) {
                $('#content').toggleClass('hided-right');
            }
            if ($('#content-one').length) {
                $('#content-one').toggleClass('hided');
            }
            if ($('#content-two').length) {
                $('#content-two').toggleClass('hided-right');
            }
            $('.collapseBtn.rightbar').toggleClass('top shadow');

        }
        var tempInterval = setInterval(function() {
            $.egox.ui.tabs.resize();
        }, 0);
        setTimeout(function() {
            clearInterval(tempInterval);
        }, 500);
    });

    //------------- widget panel magic -------------//

    var widget = $('div.panel');
    var widgetOpen = $('div.panel').not('div.panel.closed');
    var widgetClose = $('div.panel.closed');
    //close all widgets with class "closed"
    widgetClose.find('div.panel-body').hide();
    widgetClose.find('.panel-heading>.minimize').removeClass('minimize').addClass('maximize');

    widget.find('.panel-heading>a').click(function(event) {
        event.preventDefault();
        var $this = $(this);
        if ($this.hasClass('minimize')) {
            //minimize content
            $this.removeClass('minimize').addClass('maximize');
            $this.parent('div').addClass('min');
            cont = $this.parent('div').next('div.panel-body');
            cont.slideUp(500, 'easeOutExpo'); //change effect if you want :)

        } else
        if ($this.hasClass('maximize')) {
            //minimize content
            $this.removeClass('maximize').addClass('minimize');
            $this.parent('div').removeClass('min');
            cont = $this.parent('div').next('div.panel-body');
            cont.slideDown(500, 'easeInExpo'); //change effect if you want :)
        }

    });

    //show minimize and maximize icons
    widget.hover(function() {
        $(this).find('.panel-heading>a').show(50);
    }
    , function() {
        $(this).find('.panel-heading>a').hide();
    });

    //add shadow if hover panel
    widget.not('.drag').hover(function() {
        $(this).addClass('hover');
    }
    , function() {
        $(this).removeClass('hover');
    });

    //------------- Tooltips -------------//

    //top tooltip
    $('.tip').qtip({
        content: false,
        position: {
            my: 'bottom center',
            at: 'top center',
            viewport: $(window)
        },
        style: {
            classes: 'qtip-tipsy'
        }
    });

    //tooltip in right
    $('.tipR').qtip({
        content: false,
        position: {
            my: 'left center',
            at: 'right center',
            viewport: $(window)
        },
        style: {
            classes: 'qtip-tipsy'
        }
    });

    //tooltip in bottom
    $('.tipB').qtip({
        content: false,
        position: {
            my: 'top center',
            at: 'bottom center',
            viewport: $(window)
        },
        style: {
            classes: 'qtip-tipsy'
        }
    });

    //tooltip in left
    $('.tipL').qtip({
        content: false,
        position: {
            my: 'right center',
            at: 'left center',
            viewport: $(window)
        },
        style: {
            classes: 'qtip-tipsy'
        }
    });

    //------------- Uniform  -------------//
    //add class .nostyle if not want uniform to style field
    $('.search-btn').addClass('nostyle');//tell uniform to not style this element
    $("input, textarea, select").not('.nostyle').uniform();

});


text:
package org.apache.camel.model;

import org.junit.Assert;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class OnFallbackDefinitionTest {

    @Test
    public void testLabel() {
        OnFallbackDefinition ofd = new OnFallbackDefinition();
        ofd.addOutput(new ToDefinition("urn:foo1"));
        ofd.addOutput(new ToDefinition("urn:foo2"));
        assertEquals("onFallback[urn:foo1,urn:foo2]", ofd.getLabel());
    }
}

redpajama_set_name: RedPajamaGithub


text:
'use strict';

var React = require('react-native');
var {
  StyleSheet,
  NavigatorIOS
} = React;

var NavigationBar = React.createClass({
  render: function() {
    return (
      <NavigatorIOS
        style={styles.container}
        initialRoute={initialRoute}
      />
    );
  }
});

var styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'white',
  }
});

module.exports = NavigationBar;


text:
using MSyics.Traceyi;

namespace Microsoft.Extensions.Logging;

/// <summary>
/// TraceyiLogger を提供します。
/// </summary>
[ProviderAlias("Traceyi")]
public class TraceyiLoggerProvider : ILoggerProvider
{
    public ILogger CreateLogger(string categoryName) => new TraceyiLogger(Traceable.Get(categoryName));

    public void Dispose()
    {
        Traceable.Shutdown();
        GC.SuppressFinalize(this);
    }
}


text:
import live

@live.once
def test_log():
    live.log('test')


text:
A go library and cli executable to download a product from network.pivotal.io

# Get It

`go get github.com/cfmobile/gopivnet`

# Usage

```
gopivnet -help
Usage of gopivnet:
  -file="": filename where to save the pivotal product
  -fileType="": type of file.  Defaults to 'pivotal' tile
  -product="": product to download
  -token="": pivnet token
  -version="": version of the product. If missing download the latest version
```

Example: `gopivnet -product p-redis -token <token> -version "1.4.7" -file p-redis.pivotal`

# Fetching a pivnet token

https://network.pivotal.io/docs/api

Relevant section:
> Some products and releases may require authentication to access or modify. Your Pivotal Network API Token can be found on your [Edit Profile](https://network.pivotal.io/users/dashboard/edit-profile) page. This API token should be used in the Authorization header of the request. The Authentication API can be used to test that you are using your authorization token correctly.

# Library

The api package is meant to make it simple to fetch a pivotal product of a specific version and download it.


text:
<bill session="110" type="s" number="2647" updated="2009-01-09T17:22:38-05:00">
	<status><introduced date="1202965200" datetime="2008-02-14"/></status>

	<introduced date="1202965200" datetime="2008-02-14"/>
	<titles>
		<title type="official" as="introduced">A bill to suspend temporarily the duty on fan assisted, plugin, scented oil dispensing, electrothermic appliances.</title>
	</titles>
	<sponsor id="300061"/>
	<cosponsors>

	</cosponsors>
	<actions>
		<action date="1202965200" datetime="2008-02-14"><text>Sponsor introductory remarks on measure. (CR S1061)</text></action>
		<action date="1202965200" datetime="2008-02-14"><text>Read twice and referred to the Committee on Finance.</text></action>
	</actions>
	<committees>

	</committees>
	<relatedbills>

	</relatedbills>
	<subjects>

	</subjects>
	<amendments>

	</amendments>

	2/14/2008--Introduced.
Amends the Harmonized Tariff Schedule of the United States to suspend temporarily the duty on fan assisted, plugin, scented oil dispensing, electrothermic appliances.

</bill>


text:
using UnityEngine;
using System.Collections;

public class Bullet : MonoBehaviour {

    private Transform[] tBulletTrail;
    private GameObject goPlayer;

	void Start ()
    {
        tBulletTrail = gameObject.GetComponentsInChildren<Transform>();
        goPlayer = GameObject.FindWithTag("Player");
	}

	void Update ()
    {
        tBulletTrail[1].LookAt(goPlayer.transform);

        Destroy(gameObject, 5f);
	}
}


text:
//-----------------------------------------------------------------------
// <copyright file="UriQueryBuilder.cs" company="Microsoft">
//    Copyright 2013 Microsoft Corporation
//
//    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.
// </copyright>
//-----------------------------------------------------------------------

namespace Microsoft.WindowsAzure.Storage.Core
{
    using Microsoft.WindowsAzure.Storage.Core.Util;
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// A convenience class for constructing URI query strings.
    /// </summary>
#if WINDOWS_RT
    internal
#else
    public
#endif
        class UriQueryBuilder
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="UriQueryBuilder"/> class.
        /// </summary>
        public UriQueryBuilder()
            : this(null /* builder */)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="UriQueryBuilder"/> class that contains elements copied from the specified <see cref="UriQueryBuilder"/>.
        /// </summary>
        /// <param name="builder">The <see cref="UriQueryBuilder"/> whose elements are copied to the new <see cref="UriQueryBuilder"/>.</param>
        public UriQueryBuilder(UriQueryBuilder builder)
        {
            this.parameters = builder != null ?
                new Dictionary<string, string>(builder.parameters) :
                new Dictionary<string, string>();
        }

        /// <summary>
        /// Stores the query parameters.
        /// </summary>
        private Dictionary<string, string> parameters;

        /// <summary>
        /// Add the query string value with URI escaping.
        /// </summary>
        /// <param name="name">The query string name.</param>
        /// <param name="value">The query string value.</param>
        public void Add(string name, string value)
        {
            if (value != null)
            {
                value = Uri.EscapeDataString(value);
            }

            this.parameters.Add(name, value);
        }

        /// <summary>
        /// Returns a <see cref="System.String"/> containing the URI.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> containing the URI.
        /// </returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            bool first = true;

            foreach (KeyValuePair<string, string> pair in this.parameters)
            {
                if (first)
                {
                    first = false;
                    sb.Append("?");
                }
                else
                {
                    sb.Append("&");
                }

                sb.Append(pair.Key);

                if (pair.Value != null)
                {
                    sb.AppendFormat("={0}", pair.Value);
                }
            }

            return sb.ToString();
        }

        /// <summary>
        /// Adds a query parameter to a URI.
        /// </summary>
        /// <param name="storageUri">A <see cref="StorageUri"/> containing the original URI, including any existing query parameters.</param>
        /// <returns>A <see cref="StorageUri"/> object with the new query parameter appended.</returns>
        public StorageUri AddToUri(StorageUri storageUri)
        {
            CommonUtility.AssertNotNull("storageUri", storageUri);

            return new StorageUri(
                this.AddToUri(storageUri.PrimaryUri),
                this.AddToUri(storageUri.SecondaryUri));
        }

        /// <summary>
        /// Adds a query parameter to a URI.
        /// </summary>
        /// <param name="uri">A <see cref="System.Uri"/> object containing the original URI, including any existing query parameters.</param>
        /// <returns>A <see cref="System.Uri"/> object with the new query parameter appended.</returns>
        public Uri AddToUri(Uri uri)
        {
            if (uri == null)
            {
                return null;
            }

            // The correct way to add query parameters to a URI http://msdn.microsoft.com/en-us/library/system.uribuilder.query.aspx
            string queryToAppend = this.ToString();

            if (queryToAppend.Length > 1)
            {
                queryToAppend = queryToAppend.Substring(1);
            }

            UriBuilder baseUri = new UriBuilder(uri);

            if (baseUri.Query != null && baseUri.Query.Length > 1)
            {
                baseUri.Query = baseUri.Query.Substring(1) + "&" + queryToAppend;
            }
            else
            {
                baseUri.Query = queryToAppend;
            }

            return baseUri.Uri;
        }
    }
}


text:
'use strict';

// Dependencies
//
const assert = require('assert');
let router = require('../../../lib/router');

describe('router', () => {

	describe('#routes', () => {

		it('should return the list of all the HTTP methods and the routes associated with them', (done) => {

			let routes = {
			    HEAD    : {},
			    GET     : {},
			    POST    : {},
			    PUT     : {},
			    DELETE  : {},
			    PATCH   : {}
			};

			assert.deepEqual(routes, router.routes);
			done();

		});

	});

	describe('#handler', () => {

		describe('when the route is matched', () => {

			it('should execute the route', (done) => {

				let routeFunk = () => { done(); };

				router.get = router.attachMethodToServer('GET', {});
				router.get('/my-test', routeFunk);
				let mockedMethod = {method: 'GET', url: '/my-test'};
				router.handler(mockedMethod, {});

			});

		});

		describe('when the route is not matched', () => {

			it('should return a response notifying the user that the route was not found', (done) => {

				let mockedMethod 	= {method: 'GET', url: '/my-other-test'};
				let mockedResponse 	= {statusCode: null, headers: null, content: null};
				mockedResponse.writeHead = (statusCode, headers) => {
					mockedResponse.statusCode 	= statusCode;
					mockedResponse.headers 		= headers;
				};
				mockedResponse.end 	= (content) => {
					mockedResponse.content = content;
				};

				router.handler(mockedMethod, mockedResponse);
				assert.equal(404,mockedResponse.statusCode);
				assert.deepEqual({'Content-Type': 'text/plain'}, mockedResponse.headers);
				assert.equal('Not Found\n', mockedResponse.content);
				done();

			});

		});

        describe('when a route with dynamic variables is matched', () => {

		 	it('should execute the route, and populate the req.params object with the matching parameters', (done) => {

				let routeFunk = (req) => {
					assert.equal(req.params.username, 'paulbjensen');
					done();
				};
				router.get('/users/:username', routeFunk);
				let mockedMethod = {method: 'GET', url: '/users/paulbjensen'};
				let mockedResponse 	= {statusCode: null, headers: null, content: null};
				mockedResponse.writeHead = (statusCode, headers) => {
					mockedResponse.statusCode 	= statusCode;
					mockedResponse.headers 	= headers;
				};
				mockedResponse.end = (content) => {
					mockedResponse.content = content;
				};
				router.handler(mockedMethod, mockedResponse);

         	});

         	it('should execute the route and populate the req.params object with the matching parameters if the route parameter is inside the url', (done) => {

						let routeFunk = (req) => {
							assert.equal(req.params.username, 'paulbjensen');
							done();
						};
						router.get('/users/:username/posts/', routeFunk);
						let mockedMethod = {method: 'GET', url: '/users/paulbjensen/posts'};
						let mockedResponse 	= {statusCode: null, headers: null, content: null};
						mockedResponse.writeHead = (statusCode, headers) => {
							mockedResponse.statusCode 	= statusCode;
							mockedResponse.headers 		= headers;
						};
						mockedResponse.end = (content) => {
							mockedResponse.content = content;
						};
						router.handler(mockedMethod, mockedResponse);

         	});

         	it('should execute the route and populate the req.params object with the matching parameters if the route parameters are inside the url', (done) => {

				let routeFunk = (req) => {
					assert.equal(req.params.username, 'paulbjensen');
					assert.equal(req.params.id, 42);
					done();
				};
				let routeFunkTwo = () => {
					done(new Error('Should not have been triggered'));
				};
				router.get('/users/:username/posts/:id', routeFunk);
				router.get('/users/:username/posts/test', routeFunkTwo);
				let mockedMethod = {method: 'GET', url: '/users/paulbjensen/posts/42'};
				let mockedResponse 	= {statusCode: null, headers: null, content: null};
				mockedResponse.writeHead = (statusCode, headers) => {
					mockedResponse.statusCode 	= statusCode;
					mockedResponse.headers 		= headers;
				};
				mockedResponse.end =  (content) => {
					mockedResponse.content = content;
				};
				router.handler(mockedMethod, mockedResponse);

         	});

        });

        describe('when a route with dynamic variables is not matched', () => {

			it('should return a response notifying the user that the route was not found', (done) => {

				let routeFunkTwo = () => {
					done(new Error('Should not have been triggered'));
				};
				router.get('/users/:username/posts/test', routeFunkTwo);
				let mockedMethod 	= {method: 'GET', url: '/my-other-test/will/not/triger'};

				let mockedResponse = {statusCode: null, headers: null, content: null};
				mockedResponse.writeHead = (statusCode, headers) => {
					mockedResponse.statusCode = statusCode;
					mockedResponse.headers = headers;
				};
				mockedResponse.end = (content) => {
					mockedResponse.content = content;
				};

				router.handler(mockedMethod, mockedResponse);
				assert.equal(404,mockedResponse.statusCode);
				assert.deepEqual({'Content-Type': 'text/plain'}, mockedResponse.headers);
				assert.equal('Not Found\n', mockedResponse.content);
				done();

			});

    });

	});

	describe('#handleExtensionNotHandled', () => {});

	describe('#parseFilePath', () => {

		describe('when the file does not exist', () => {

			it('should attach a file not found handler');

		});

		describe('when the file extension is not handled', () => {

			it('should attach a file extension not handled handler', (done) => {

				const extension = '.d';
				let mockedResponse = {statusCode: null, headers: null, content: null};
				mockedResponse.writeHead = (statusCode, headers) => {
					mockedResponse.statusCode = statusCode;
					mockedResponse.headers = headers;
				};
				mockedResponse.end = (content) => {
					mockedResponse.content = content;
				};
				router.handleExtensionNotHandled(extension, mockedResponse);
				assert.equal(500,mockedResponse.statusCode);
				assert.deepEqual({'Content-Type': 'text/plain'}, mockedResponse.headers);
				assert.equal('File extension .d is not currently handled by the server\n', mockedResponse.content);
				done();
			});

		});

		it('should return a handler for the file based on the file extension');

	});

});


text:
/** @file
 *
 * "gr" keyboard mapping
 *
 * This file is automatically generated; do not edit
 *
 */

FILE_LICENCE ( PUBLIC_DOMAIN );

#include <ipxe/keymap.h>

/** "gr" keyboard mapping */
struct key_mapping gr_mapping[] __keymap = {
};


text:
FILE(REMOVE_RECURSE
  "CMakeFiles/MatrixBase_cwise_const.dir/MatrixBase_cwise_const.cpp.o"
  "MatrixBase_cwise_const.pdb"
  "MatrixBase_cwise_const"
)

# Per-language clean rules from dependency scanning.
FOREACH(lang CXX)
  INCLUDE(CMakeFiles/MatrixBase_cwise_const.dir/cmake_clean_${lang}.cmake OPTIONAL)
ENDFOREACH(lang)


text:
namespace ui {

ScopedMakeCurrent::ScopedMakeCurrent(gfx::GLContext* context,
                                     gfx::GLSurface* surface)
    : previous_context_(gfx::GLContext::GetCurrent()),
      previous_surface_(gfx::GLSurface::GetCurrent()),
      context_(context),
      surface_(surface),
      succeeded_(false) {
  DCHECK(context);
  DCHECK(surface);
  succeeded_ = context->MakeCurrent(surface);
}

ScopedMakeCurrent::~ScopedMakeCurrent() {
  if (previous_context_.get()) {
    DCHECK(previous_surface_.get());
    previous_context_->MakeCurrent(previous_surface_.get());
  } else {
    context_->ReleaseCurrent(surface_.get());
  }
}

bool ScopedMakeCurrent::Succeeded() const {
  return succeeded_;
}

}  // namespace ui


text:
package com.ibm.ws.massive.internal;

import com.ibm.ws.massive.LoginInfoEntry;

public abstract class AbstractMassive {

    protected LoginInfoEntry _loginInfoResource;

    public AbstractMassive(LoginInfoEntry loginInfoResource) {
        _loginInfoResource = loginInfoResource;
    }

}


text:
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**class** | **String!** |  | [optional] [default to null]
**links** | [***GithubRepositorylinks**](GithubRepositorylinks.md) |  | [optional] [default to null]
**defaultBranch** | **String!** |  | [optional] [default to null]
**description** | **String!** |  | [optional] [default to null]
**name** | **String!** |  | [optional] [default to null]
**permissions** | [***GithubRepositorypermissions**](GithubRepositorypermissions.md) |  | [optional] [default to null]
**private** | **Boolean!** |  | [optional] [default to null]
**fullName** | **String!** |  | [optional] [default to null]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


text:
namespace chrono {

/// Class for a box shape that can be visualized in some way.
class ChApi ChBoxShape : public ChVisualization {
  protected:
    geometry::ChBox gbox;

  public:
    ChBoxShape() {}
    ChBoxShape(const geometry::ChBox& mbox) : gbox(mbox) {}

    virtual ~ChBoxShape() {}

    // Access the sphere geometry
    geometry::ChBox& GetBoxGeometry() { return gbox; }

    /// Method to allow serialization of transient data to archives.
    virtual void ArchiveOUT(ChArchiveOut& marchive) override;

    /// Method to allow de-serialization of transient data from archives.
    virtual void ArchiveIN(ChArchiveIn& marchive) override;
};

CH_CLASS_VERSION(ChBoxShape, 0)

}  // end namespace chrono

#endif


text:
using System;
using System.Collections.Generic;
using System.Linq;
using Cluster.System.Api;
using NakedObjects;

namespace Cluster.Accounts.Api
{

    public interface IPayment : IDomainInterface
    {
        string CurrencyCode();

        decimal Amount { get; }

        string Description { get; }

        string AnalysisCodes { get; }
    }
}


text:
package io.github.ibuildthecloud.gdapi.servlet;

import java.io.IOException;

import javax.inject.Inject;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class ApiRequestFilter implements Filter {

    ApiRequestFilterDelegate apiRequestFilterDelegate;

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        apiRequestFilterDelegate.doFilter(request, response, chain);
    }

    @Override
    public void destroy() {
    }

    public ApiRequestFilterDelegate getApiRequestFilterDelegate() {
        return apiRequestFilterDelegate;
    }

    @Inject
    public void setApiRequestFilterDelegate(ApiRequestFilterDelegate apiRequestFilterDelegate) {
        this.apiRequestFilterDelegate = apiRequestFilterDelegate;
    }

}


text:
name: Участие в разработке BeeGo
sort: 1
---

# Участие в разработке BeeGo

## Введение

BeeGo - это свободное ПО с открытым исходным кодом, что означает, что любой может участвовать
в разработке и развитии. Исходный код BeeGo размещен на GitHub, который предоставляет очень
простой путь для разветвления проекта в форки и для совместной работы с изменениями.

## Пулл-реквесты

Процесс принятия пулл-реквеста для новых возможностей, багфиксов и документации различается.

### Багфиксы

Пулл-реквесты исправляющие ошибки не требуют создания тикета. Если вы имеете
решение для исправления ошибки, пожалуйста опишите его в деталях в вашем пулл-реквесте.

### Улучшение документации

Вы можете помочь улучшить документацию послав пулл-реквест в
[beedoc](https://github.com/beego/beedoc) репозиторий.

### Предложение новых возможностей

Прежде чем вы создадите пулл-реквест с новой функциональностью, вы должны сначала создать
тикет с меткой `[Proposal]` в заголовке, подробно описать новую функциональность, а так же
путь её имплементации в BeeGo.

Предложения будут рассмотрены и обсуждены основными разработчиками и могут быть
приняты или отклонены.

Если предложение принято, то имплементируйте возможность и создайте пулл-реквест.
Но если вы не будете следовать гайдлайнам, то пулл-реквест может быть отклонен немедленно.

BeeGo следует стандартному [Git Flow](http://nvie.com/posts/a-successful-git-branching-model/).
Таким образом вся разработка происходит в ветке `develop`. Поэтому, пожалуйста, создавайте ваши
пулл-реквесты в ветку `develop`.


text:
<?php

namespace Tests\Unit\WindowsAzure\ServiceRuntime\Internal;
use Tests\Framework\TestResources;
use WindowsAzure\Common\Internal\Utilities;
use WindowsAzure\ServiceRuntime\Internal\AcquireCurrentState;
use WindowsAzure\ServiceRuntime\Internal\CurrentStatus;
use WindowsAzure\ServiceRuntime\Internal\FileInputChannel;
use WindowsAzure\ServiceRuntime\Internal\FileOutputChannel;
use WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeCurrentStateClient;
use WindowsAzure\ServiceRuntime\Internal\XmlCurrentStateSerializer;

/**
 * Unit tests for class Protocol1RuntimeCurrentStateClient.
 *
 * @category  Microsoft
 * @package   Tests\Unit\WindowsAzure\ServiceRuntime\Internal
 * @author    Azure PHP SDK <azurephpsdk@microsoft.com>
 * @copyright 2012 Microsoft Corporation
 * @license   http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
 * @version   Release: 0.4.0_2014-01
 * @link      https://github.com/windowsazure/azure-sdk-for-php
 */
class Protocol1RuntimeCurrentStateClientTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @covers WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeCurrentStateClient::__construct
     */
    public function testConstruct()
    {
        $serializer = new XmlCurrentStateSerializer();
        $outputChannel = new FileOutputChannel();

        // Setup
        $protocol1RuntimeCurrentStateClient =
            new Protocol1RuntimeCurrentStateClient(
                $serializer,
                $outputChannel);

        // Test
        $this->assertInstanceOf('WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeCurrentStateClient',
            $protocol1RuntimeCurrentStateClient);
    }

    /**
     * @covers WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeCurrentStateClient::setEndpoint
     * @covers WindowsAzure\ServiceRuntime\Internal\Protocol1RuntimeCurrentStateClient::setCurrentState
     */
    public function testSetCurrentState()
    {
        // Setup
        $rootDirectory = 'root';
        $fileName = 'test';
        $fileContents = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" .
            '<CurrentState>' .
            '<StatusLease ClientId="clientId">' .
            '<Acquire>' .
            '<Incarnation>1</Incarnation>' .
            '<Status>Recycle</Status>' .
            '<Expiration>2000-01-01T00:00:00.0000000Z</Expiration>' .
            '</Acquire>' .
            '</StatusLease>' .
            '</CurrentState>';

        \vfsStreamWrapper::register();
        \vfsStreamWrapper::setRoot(new \vfsStreamDirectory($rootDirectory));

        $file = \vfsStream::newFile($fileName);
        \vfsStreamWrapper::getRoot()->addChild($file);

        $serializer = new XmlCurrentStateSerializer();
        $fileOutputChannel = new FileOutputChannel();

        $protocol1RuntimeCurrentStateClient =
            new Protocol1RuntimeCurrentStateClient(
                $serializer,
                $fileOutputChannel
            );

        $protocol1RuntimeCurrentStateClient->setEndpoint(
            \vfsStream::url($rootDirectory . '/' . $fileName)
        );

        // Test
        $recycleState = new AcquireCurrentState(
            'clientId',
            1,
            CurrentStatus::RECYCLE,
            new \DateTime('2000-01-01', new \DateTimeZone('UTC'))
        );

        $protocol1RuntimeCurrentStateClient->setCurrentState($recycleState);

        $fileInputChannel = new FileInputChannel();
        $fileInputStream = $fileInputChannel->getInputStream(
            \vfsStream::url($rootDirectory . '/' . $fileName)
        );

        $inputChannelContents = stream_get_contents($fileInputStream);
        $this->assertEquals($fileContents, $inputChannelContents);
    }
}


text:
package org.apache.hadoop.hdfs.client;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import java.util.EnumSet;

import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CacheFlag;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.RemoteIterator;
import org.apache.hadoop.hdfs.DFSInotifyEventInputStream;
import org.apache.hadoop.hdfs.DistributedFileSystem;
import org.apache.hadoop.hdfs.protocol.CacheDirectiveEntry;
import org.apache.hadoop.hdfs.protocol.CacheDirectiveInfo;
import org.apache.hadoop.hdfs.protocol.CachePoolEntry;
import org.apache.hadoop.hdfs.protocol.CachePoolInfo;
import org.apache.hadoop.hdfs.protocol.EncryptionZone;
import org.apache.hadoop.hdfs.protocol.HdfsConstants;
import org.apache.hadoop.security.AccessControlException;
import org.apache.hadoop.hdfs.tools.DFSAdmin;

/**
 * The public API for performing administrative functions on HDFS. Those writing
 * applications against HDFS should prefer this interface to directly accessing
 * functionality in DistributedFileSystem or DFSClient.
 *
 * Note that this is distinct from the similarly-named {@link DFSAdmin}, which
 * is a class that provides the functionality for the CLI `hdfs dfsadmin ...'
 * commands.
 */
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class HdfsAdmin {

  private DistributedFileSystem dfs;

  /**
   * Create a new HdfsAdmin client.
   *
   * @param uri the unique URI of the HDFS file system to administer
   * @param conf configuration
   * @throws IOException in the event the file system could not be created
   */
  public HdfsAdmin(URI uri, Configuration conf) throws IOException {
    FileSystem fs = FileSystem.get(uri, conf);
    if (!(fs instanceof DistributedFileSystem)) {
      throw new IllegalArgumentException("'" + uri + "' is not an HDFS URI.");
    } else {
      dfs = (DistributedFileSystem)fs;
    }
  }

  /**
   * Set the namespace quota (count of files, directories, and sym links) for a
   * directory.
   *
   * @param src the path to set the quota for
   * @param quota the value to set for the quota
   * @throws IOException in the event of error
   */
  public void setQuota(Path src, long quota) throws IOException {
    dfs.setQuota(src, quota, HdfsConstants.QUOTA_DONT_SET);
  }

  /**
   * Clear the namespace quota (count of files, directories and sym links) for a
   * directory.
   *
   * @param src the path to clear the quota of
   * @throws IOException in the event of error
   */
  public void clearQuota(Path src) throws IOException {
    dfs.setQuota(src, HdfsConstants.QUOTA_RESET, HdfsConstants.QUOTA_DONT_SET);
  }

  /**
   * Set the disk space quota (size of files) for a directory. Note that
   * directories and sym links do not occupy disk space.
   *
   * @param src the path to set the space quota of
   * @param spaceQuota the value to set for the space quota
   * @throws IOException in the event of error
   */
  public void setSpaceQuota(Path src, long spaceQuota) throws IOException {
    dfs.setQuota(src, HdfsConstants.QUOTA_DONT_SET, spaceQuota);
  }

  /**
   * Clear the disk space quota (size of files) for a directory. Note that
   * directories and sym links do not occupy disk space.
   *
   * @param src the path to clear the space quota of
   * @throws IOException in the event of error
   */
  public void clearSpaceQuota(Path src) throws IOException {
    dfs.setQuota(src, HdfsConstants.QUOTA_DONT_SET, HdfsConstants.QUOTA_RESET);
  }

  /**
   * Allow snapshot on a directory.
   * @param path The path of the directory where snapshots will be taken.
   */
  public void allowSnapshot(Path path) throws IOException {
    dfs.allowSnapshot(path);
  }

  /**
   * Disallow snapshot on a directory.
   * @param path The path of the snapshottable directory.
   */
  public void disallowSnapshot(Path path) throws IOException {
    dfs.disallowSnapshot(path);
  }

  /**
   * Add a new CacheDirectiveInfo.
   *
   * @param info Information about a directive to add.
   * @param flags {@link CacheFlag}s to use for this operation.
   * @return the ID of the directive that was created.
   * @throws IOException if the directive could not be added
   */
  public long addCacheDirective(CacheDirectiveInfo info,
      EnumSet<CacheFlag> flags) throws IOException {
  return dfs.addCacheDirective(info, flags);
  }

  /**
   * Modify a CacheDirective.
   *
   * @param info Information about the directive to modify. You must set the ID
   *          to indicate which CacheDirective you want to modify.
   * @param flags {@link CacheFlag}s to use for this operation.
   * @throws IOException if the directive could not be modified
   */
  public void modifyCacheDirective(CacheDirectiveInfo info,
      EnumSet<CacheFlag> flags) throws IOException {
    dfs.modifyCacheDirective(info, flags);
  }

  /**
   * Remove a CacheDirective.
   *
   * @param id identifier of the CacheDirectiveInfo to remove
   * @throws IOException if the directive could not be removed
   */
  public void removeCacheDirective(long id)
      throws IOException {
    dfs.removeCacheDirective(id);
  }

  /**
   * List cache directives. Incrementally fetches results from the server.
   *
   * @param filter Filter parameters to use when listing the directives, null to
   *               list all directives visible to us.
   * @return A RemoteIterator which returns CacheDirectiveInfo objects.
   */
  public RemoteIterator<CacheDirectiveEntry> listCacheDirectives(
      CacheDirectiveInfo filter) throws IOException {
    return dfs.listCacheDirectives(filter);
  }

  /**
   * Add a cache pool.
   *
   * @param info
   *          The request to add a cache pool.
   * @throws IOException
   *          If the request could not be completed.
   */
  public void addCachePool(CachePoolInfo info) throws IOException {
    dfs.addCachePool(info);
  }

  /**
   * Modify an existing cache pool.
   *
   * @param info
   *          The request to modify a cache pool.
   * @throws IOException
   *          If the request could not be completed.
   */
  public void modifyCachePool(CachePoolInfo info) throws IOException {
    dfs.modifyCachePool(info);
  }

  /**
   * Remove a cache pool.
   *
   * @param poolName
   *          Name of the cache pool to remove.
   * @throws IOException
   *          if the cache pool did not exist, or could not be removed.
   */
  public void removeCachePool(String poolName) throws IOException {
    dfs.removeCachePool(poolName);
  }

  /**
   * List all cache pools.
   *
   * @return A remote iterator from which you can get CachePoolEntry objects.
   *          Requests will be made as needed.
   * @throws IOException
   *          If there was an error listing cache pools.
   */
  public RemoteIterator<CachePoolEntry> listCachePools() throws IOException {
    return dfs.listCachePools();
  }

  /**
   * Create an encryption zone rooted at an empty existing directory, using the
   * specified encryption key. An encryption zone has an associated encryption
   * key used when reading and writing files within the zone.
   *
   * @param path    The path of the root of the encryption zone. Must refer to
   *                an empty, existing directory.
   * @param keyName Name of key available at the KeyProvider.
   * @throws IOException            if there was a general IO exception
   * @throws AccessControlException if the caller does not have access to path
   * @throws FileNotFoundException  if the path does not exist
   */
  public void createEncryptionZone(Path path, String keyName)
    throws IOException, AccessControlException, FileNotFoundException {
    dfs.createEncryptionZone(path, keyName);
  }

  /**
   * Get the path of the encryption zone for a given file or directory.
   *
   * @param path The path to get the ez for.
   *
   * @return The EncryptionZone of the ez, or null if path is not in an ez.
   * @throws IOException            if there was a general IO exception
   * @throws AccessControlException if the caller does not have access to path
   * @throws FileNotFoundException  if the path does not exist
   */
  public EncryptionZone getEncryptionZoneForPath(Path path)
    throws IOException, AccessControlException, FileNotFoundException {
    return dfs.getEZForPath(path);
  }

  /**
   * Returns a RemoteIterator which can be used to list the encryption zones
   * in HDFS. For large numbers of encryption zones, the iterator will fetch
   * the list of zones in a number of small batches.
   *

   * Since the list is fetched in batches, it does not represent a
   * consistent snapshot of the entire list of encryption zones.
   *

   * This method can only be called by HDFS superusers.
   */
  public RemoteIterator<EncryptionZone> listEncryptionZones()
      throws IOException {
    return dfs.listEncryptionZones();
  }

  /**
   * Exposes a stream of namesystem events. Only events occurring after the
   * stream is created are available.
   * See {@link org.apache.hadoop.hdfs.DFSInotifyEventInputStream}
   * for information on stream usage.
   * See {@link org.apache.hadoop.hdfs.inotify.Event}
   * for information on the available events.
   *

   * Inotify users may want to tune the following HDFS parameters to
   * ensure that enough extra HDFS edits are saved to support inotify clients
   * that fall behind the current state of the namespace while reading events.
   * The default parameter values should generally be reasonable. If edits are
   * deleted before their corresponding events can be read, clients will see a
   * {@link org.apache.hadoop.hdfs.inotify.MissingEventsException} on
   * {@link org.apache.hadoop.hdfs.DFSInotifyEventInputStream} method calls.
   *
   * It should generally be sufficient to tune these parameters:
   * dfs.namenode.num.extra.edits.retained
   * dfs.namenode.max.extra.edits.segments.retained
   *
   * Parameters that affect the number of created segments and the number of
   * edits that are considered necessary, i.e. do not count towards the
   * dfs.namenode.num.extra.edits.retained quota):
   * dfs.namenode.checkpoint.period
   * dfs.namenode.checkpoint.txns
   * dfs.namenode.num.checkpoints.retained
   * dfs.ha.log-roll.period
   *

   * It is recommended that local journaling be configured
   * (dfs.namenode.edits.dir) for inotify (in addition to a shared journal)
   * so that edit transfers from the shared journal can be avoided.
   *
   * @throws IOException If there was an error obtaining the stream.
   */
  public DFSInotifyEventInputStream getInotifyEventStream() throws IOException {
    return dfs.getInotifyEventStream();
  }

  /**
   * A version of {@link HdfsAdmin#getInotifyEventStream()} meant for advanced
   * users who are aware of HDFS edits up to lastReadTxid (e.g. because they
   * have access to an FSImage inclusive of lastReadTxid) and only want to read
   * events after this point.
   */
  public DFSInotifyEventInputStream getInotifyEventStream(long lastReadTxid)
      throws IOException {
    return dfs.getInotifyEventStream(lastReadTxid);
  }

  /**
   * Set the source path to the specified storage policy.
   *
   * @param src The source path referring to either a directory or a file.
   * @param policyName The name of the storage policy.
   */
  public void setStoragePolicy(final Path src, final String policyName)
      throws IOException {
    dfs.setStoragePolicy(src, policyName);
  }
}


text:
<?php

namespace Infuse\IronMQ;

use Infuse\HasApp;
use Infuse\Queue\Driver\IronDriver;
use Infuse\Queue;

class Controller
{
    use HasApp;

    public function message($req, $res)
    {
        // verify auth token
        if ($req->query('auth_token') != $this->app['config']->get('ironmq.auth_token')) {
            return $res->setCode(401);
        }

        // parse the message from the request
        $ironDriver = new IronDriver($this->app);
        $message = $ironDriver->buildMessageFromRequest($req);

        // notify the queue listeners of the message
        Queue::receiveMessage($message);
    }
}


text:
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var core_1 = require("@angular/core");
require("rxjs/add/operator/toPromise");
require("rxjs");
require("rxjs/Rx");
var search_1 = require("../../hotel/object/search");
var localStorage_service_1 = require("./localStorage.service");
var SearchService = (function () {
    function SearchService() {
        if (localStorage_service_1.LocalStorageService.getItem("search"))
            this.search = localStorage_service_1.LocalStorageService.getItem("search");
        else
            this.search = new search_1.Search();
        this.search.limit = 10;
        this.search.offset = 0;
    }
    SearchService.prototype.updateHotelsReservation = function (idHotel, idArrangement, activeRooms) {
        this.search.activeRooms = JSON.parse(JSON.stringify(activeRooms));
        this.search.idHotel = JSON.parse(JSON.stringify(idHotel));
        this.search.idArrangement = JSON.parse(JSON.stringify(idArrangement));
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    SearchService.prototype.ngOnChanges = function () {
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    SearchService.prototype.getSearch = function () {
        return JSON.parse(JSON.stringify(this.search));
    };
    SearchService.prototype.setSearch = function (search) {
        this.search = JSON.parse(JSON.stringify(search));
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    SearchService.prototype.setRoom = function (rooms) {
        this.search.rooms = rooms;
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    SearchService.prototype.resetOffset = function () {
        this.search.offset = 0;
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    SearchService.prototype.resetSearch = function () {
        this.search.idHotel = null;
        this.search.idArrangement = null;
        this.search.activeRooms = null;
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    SearchService.prototype.incrementLimit = function () {
        this.search.offset += this.search.limit;
        localStorage_service_1.LocalStorageService.setItem("search", this.search);
    };
    return SearchService;
}());
SearchService = __decorate([
    core_1.Injectable()
], SearchService);
exports.SearchService = SearchService;


text:
#include "opencv2/core/core.hpp"
#import "opencv2/highgui/cap_ios.h"

UIImage* MatToUIImage(const cv::Mat& image);
void UIImageToMat(const UIImage* image,
                         cv::Mat& m, bool alphaExist = false);


text:
// 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.
package com.cloud.agent.api;

import java.util.List;

import com.cloud.agent.api.to.PortForwardingRuleTO;

/**
 *
 */
public class ConfigurePortForwardingRulesOnLogicalRouterCommand extends Command {

	private String logicalRouterUuid;
	private List<PortForwardingRuleTO> rules;

	public ConfigurePortForwardingRulesOnLogicalRouterCommand(String logicalRouterUuid, List<PortForwardingRuleTO> rules) {
		this.logicalRouterUuid = logicalRouterUuid;
		this.rules = rules;
	}

	public String getLogicalRouterUuid() {
		return logicalRouterUuid;
	}

	public void setLogicalRouterUuid(String logicalRouterUuid) {
		this.logicalRouterUuid = logicalRouterUuid;
	}

	public List<PortForwardingRuleTO> getRules() {
		return rules;
	}

	public void setRules(List<PortForwardingRuleTO> rules) {
		this.rules = rules;
	}

	/* (non-Javadoc)
	 * @see com.cloud.agent.api.Command#executeInSequence()
	 */
	@Override
	public boolean executeInSequence() {
		return false;
	}

}


text:
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">

            </button>

                    <button type="button" class="btn btn-default btn-lg" ng-click="jumpToLocation(links[0])">GIS</button>

                    <button type="button" class="btn btn-default btn-lg" ng-click="jumpToLocation(links[1])">Seabed Mapping</button>

                    <button type="button" class="btn btn-default btn-lg" ng-click="jumpToLocation(links[2])">Other Services</button>

                    <button type="button" class="btn btn-default btn-lg" ng-click="jumpToLocation(links[3])">Equipment</button>

                    <button type="button" class="btn btn-default btn-lg" ng-click="contactModal()">Contact Echology</button>


text:
<?php
/**
 *
 * Project: QAS API
 * Date: 01/09/2015
 * @author Mariusz Soltys.
 * @version 1.0.0
 * @license http://opensource.org/licenses/MIT
 *
 */

require_once __DIR__ . '/../vendor/autoload.php';

use Marsoltys\QASapi\QAS;
use Marsoltys\QASapi\Utils;

/**
 * @var $wsdl string URL to QAS WSDL file, i.e. "http://somehost.com/proweb.wsdl"
 */
$wsdl = "";

$qas = new QAS($wsdl);
$utils = new Utils();
$result = "";

/**
 * Very basic API call example
 */

/**
 * $qas->call() Invokes method provided in 'action' element of array
 *
 * $_POST = array(
 *      'action'=>'DoGetData'
 *      'params'=> [
 *          ...
 *      ]
 * )
 *
 */

if (!empty($_POST['action'])) {
    $result = $qas->call($_POST);
} elseif (!empty($_POST['Moniker'])) {
    // Lets step-in, refine results or get full adress details- invokes DoRefine action
    if (!empty($_POST['getDetails'])) {
        // get full address details
        $result = $qas->getAddressDetails($_POST['Moniker']);
    } else {
        // step-in / refine results
        $result = $qas->refine($_POST['Moniker']);
    }
} elseif (!empty($_POST)) {
    // Lets do initial request - invokes DoSearch action
    $test = $utils->sanitizeInputArray($_POST);
    $result = $qas->search($utils->formatSearchQuery($test));
}

if (is_a($result, 'SoapFault')) {
    //If SoapFault was returned from server
    echo $utils->soapError($result, true);
} else {
    // If everything is ok, return JSON string
    echo $qas->getJson();
}


text:
The Anatomy of Homework
=======================

## The assignment ecosystem consists of the following

- a) a `git` repository containing one or more assignments
- b) a subdirectory of (a) containing resources described by a .homework.json file
- c) a gzipped tarball containing (b)
- d) a url that resolves to (c)
- e) a path, relative to the root of (a), resolving to (b)
- f) a `git` url that, when cloned and combined with (e), results in (b)
- g) a `<name>@<version>` that is published on the registry with (d), (e), and (f)

Git urls can be of the form:

    git://github.com/user/project.git#commit-hash
    git+ssh://user@hostname:project.git#commit-hash
    git+http://user@hostname/project/blah.git#commit-hash
    git+https://user@hostname/project/blah.git#commit-hash

The `commit-hash` is the unique sha for a single commit. Tags and branches are
not permitted. `homework publish` will fail if the `git` url is invalid.

In addition, it should be noted that assignments are immutable. Any changes to
an assignment MUST result in a new version.

## The .homework.json File

You need to have a `.homework.json` file in the root of your project to do
much of anything with homework.  That is basically the whole interface.

See [Files: .homework.json](../files/homework.json.md) for details about what goes in that file.

You can use `homework init` in the root of your assignment in order to get you
started with a pretty basic .homework.json file.  See [Command: init](../commands/init.md) for
more info.

## Keeping files *out* of your assignment

It is highly recommended that certain files are ignored from the assignments
repositories by adding them to `.gitignore`.

* `.*.swp`
* `._*`
* `.DS_Store`
* `.git` (but not `/.git`, obviously)
* `.hg`
* `.lock-wscript`
* `.svn`
* `.wafpickle-*`
* `CVS`
* `npm-debug.log`
* `node_modules`
* `bower_components`

The following paths and files are necessary, so adding them to `.gitignore`
will prevent you from publishing your assignment.

* `.homework.json`
* `README.md`

## Create a User Account

Create a user with the adduser command.  It works like this:

    homework adduser

and then follow the prompts.

This is documented better in [Commands: adduser](../commands/adduser.md).

## Publish your assignment

This part's easy.  In the root of your folder, do this:

    homework publish

You can give publish a path to a folder.


text:
namespace dbcrudgen {
    namespace db {
        namespace oracle {

            //
            // OracleTableColumn
            // //
            class OracleTableColumn {
            public:

                std::string table_name;
                std::string column_name;
                std::string data_type;
                std::string data_type_mod;
                std::string data_type_owner;
                int data_length;
                int data_precision;
                int data_scale;
                std::string nullable;
                int column_id;
                std::string default_length;
                std::string data_default;
                int num_distinct;
                std::string low_value;
                std::string high_value;
                int density;
                int num_nulls;
                int num_buckets;
                std::string last_analyzed;
                int sample_size;
                std::string character_set_name;
                std::string char_col_decl_length;
                std::string global_stats;
                std::string user_stats;
                int avg_col_len;
                int char_length;
                std::string char_used;
                std::string v80_fmt_image;
                std::string data_upgraded;
                std::string histogram;

                OracleTableColumn(std::string table_name, std::string column_name, std::string data_type,
                                  std::string data_type_mod, std::string data_type_owner, int data_length,
                                  int data_precision, int data_scale, std::string nullable, int column_id,
                                  std::string default_length, std::string data_default, int num_distinct,
                                  std::string low_value, std::string high_value, int density, int num_nulls,
                                  int num_buckets, std::string last_analyzed, int sample_size,
                                  std::string character_set_name, std::string char_col_decl_length,
                                  std::string global_stats, std::string user_stats, int avg_col_len, int char_length,
                                  std::string char_used, std::string v80_fmt_image, std::string data_upgraded,
                                  std::string histogram) : table_name(table_name), column_name(column_name),
                                                           data_type(data_type), data_type_mod(data_type_mod),
                                                           data_type_owner(data_type_owner), data_length(data_length),
                                                           data_precision(data_precision), data_scale(data_scale),
                                                           nullable(nullable), column_id(column_id),
                                                           default_length(default_length), data_default(data_default),
                                                           num_distinct(num_distinct), low_value(low_value),
                                                           high_value(high_value), density(density),
                                                           num_nulls(num_nulls),
                                                           num_buckets(num_buckets), last_analyzed(last_analyzed),
                                                           sample_size(sample_size),
                                                           character_set_name(character_set_name),
                                                           char_col_decl_length(char_col_decl_length),
                                                           global_stats(global_stats), user_stats(user_stats),
                                                           avg_col_len(avg_col_len), char_length(char_length),
                                                           char_used(char_used), v80_fmt_image(v80_fmt_image),
                                                           data_upgraded(data_upgraded), histogram(histogram) {}

                std::string getTable_name() {
                    return table_name;
                }

                std::string getColumn_name() {
                    return column_name;
                }

                std::string getData_type() {
                    return data_type;
                }

                std::string getData_type_mod() {
                    return data_type_mod;
                }

                std::string getData_type_owner() {
                    return data_type_owner;
                }

                int getData_length() {
                    return data_length;
                }

                int getData_precision() {
                    return data_precision;
                }

                int getData_scale() {
                    return data_scale;
                }

                std::string getNullable() {
                    return nullable;
                }

                int getColumn_id() {
                    return column_id;
                }

                std::string getDefault_length() {
                    return default_length;
                }

                std::string getData_default() {
                    return data_default;
                }

                int getNum_distinct() {
                    return num_distinct;
                }

                std::string getLow_value() {
                    return low_value;
                }

                std::string getHigh_value() {
                    return high_value;
                }

                int getDensity() {
                    return density;
                }

                int getNum_nulls() {
                    return num_nulls;
                }

                int getNum_buckets() {
                    return num_buckets;
                }

                std::string getLast_analyzed() {
                    return last_analyzed;
                }

                int getSample_size() {
                    return sample_size;
                }

                std::string getCharacter_set_name() {
                    return character_set_name;
                }

                std::string getChar_col_decl_length() {
                    return char_col_decl_length;
                }

                std::string getGlobal_stats() {
                    return global_stats;
                }

                std::string getUser_stats() {
                    return user_stats;
                }

                int getAvg_col_len() {
                    return avg_col_len;
                }

                int getChar_length() {
                    return char_length;
                }

                std::string getChar_used() {
                    return char_used;
                }

                std::string getV80_fmt_image() {
                    return v80_fmt_image;
                }

                std::string getData_upgraded() {
                    return data_upgraded;
                }

                std::string getHistogram() {
                    return histogram;
                }
            };
        }
    }
}

#endif //DBCRUDGEN_CPP_ORACLETABLECOLUMN_H


text:
<?php

namespace PHPBenchmark\Console\Commands;

class Quick
{

}


text:
Your first XF web app

To create the first XF application the simplest way is to use XF Generator through yo xf:application init [appName].

For now it scaffolds an app in the way you can see by example: XF Hello World App.


text:
namespace chrono {

// Forward references (for parent hierarchy pointer)
class ChSystem;
class ChParticleCloud;

/// Class for a single particle clone in the ChParticleCloud cluster.
/// It does not define mass, inertia and shape because those are _shared_ among them.
class ChApi ChAparticle : public ChParticleBase, public ChContactable_1vars<6> {
  public:
    ChAparticle();
    ChAparticle(const ChAparticle& other);
    ~ChAparticle();

    ChAparticle& operator=(const ChAparticle& other);

    // Access the variables of the node
    virtual ChVariables& Variables() override { return variables; }

    // Get the container
    ChParticleCloud* GetContainer() const { return container; }
    // Set the container
    void SetContainer(ChParticleCloud* mc) { container = mc; }

    // INTERFACE TO ChContactable

	virtual ChContactable::eChContactableType GetContactableType() const override { return CONTACTABLE_6; }

    /// Access variables.
    virtual ChVariables* GetVariables1() override { return &Variables(); }

    /// Tell if the object must be considered in collision detection.
    virtual bool IsContactActive() override { return true; }

    /// Get the number of DOFs affected by this object (position part).
    virtual int ContactableGet_ndof_x() override { return 7; }

    /// Get the number of DOFs affected by this object (speed part).
    virtual int ContactableGet_ndof_w() override { return 6; }

    /// Get all the DOFs packed in a single vector (position part)
    virtual void ContactableGetStateBlock_x(ChState& x) override {
        x.segment(0, 3) = GetCoord().pos.eigen();
        x.segment(3, 4) = GetCoord().rot.eigen();
    }

    /// Get all the DOFs packed in a single vector (speed part)
    virtual void ContactableGetStateBlock_w(ChStateDelta& w) override;

    /// Increment the provided state of this object by the given state-delta increment.
    /// Compute: x_new = x + dw.
    virtual void ContactableIncrementState(const ChState& x, const ChStateDelta& dw, ChState& x_new) override;

    /// Express the local point in absolute frame, for the given state position.
    virtual ChVector<> GetContactPoint(const ChVector<>& loc_point, const ChState& state_x) override;

    /// Get the absolute speed of a local point attached to the contactable.
    /// The given point is assumed to be expressed in the local frame of this object.
    /// This function must use the provided states.
    virtual ChVector<> GetContactPointSpeed(const ChVector<>& loc_point,
                                            const ChState& state_x,
                                            const ChStateDelta& state_w) override;

    /// Get the absolute speed of point abs_point if attached to the surface.
    /// Easy in this case because there are no rotations..
    virtual ChVector<> GetContactPointSpeed(const ChVector<>& abs_point) override;

    /// Return the coordinate system for the associated collision model.
    /// ChCollisionModel might call this to get the position of the
    /// contact model (when rigid) and sync it.
    virtual ChCoordsys<> GetCsysForCollisionModel() override { return this->coord; }

    /// Apply the force, expressed in absolute reference, applied in pos, to the
    /// coordinates of the variables. Force for example could come from a penalty model.
    virtual void ContactForceLoadResidual_F(const ChVector<>& F,
                                            const ChVector<>& abs_point,
                                            ChVectorDynamic<>& R) override;

    /// Apply the given force at the given point and load the generalized force array.
    /// The force and its application point are specified in the global frame.
    /// Each object must set the entries in Q corresponding to its variables, starting at the specified offset.
    /// If needed, the object states must be extracted from the provided state position.
    virtual void ContactForceLoadQ(const ChVector<>& F,
                                   const ChVector<>& point,
                                   const ChState& state_x,
                                   ChVectorDynamic<>& Q,
                                   int offset) override;

    /// Compute the jacobian(s) part(s) for this contactable item. For example,
    /// if the contactable is a ChBody, this should update the corresponding 1x6 jacobian.
    virtual void ComputeJacobianForContactPart(const ChVector<>& abs_point,
                                               ChMatrix33<>& contact_plane,
                                               ChVariableTupleCarrier_1vars<6>::type_constraint_tuple& jacobian_tuple_N,
                                               ChVariableTupleCarrier_1vars<6>::type_constraint_tuple& jacobian_tuple_U,
                                               ChVariableTupleCarrier_1vars<6>::type_constraint_tuple& jacobian_tuple_V,
                                               bool second) override;

    /// Compute the jacobian(s) part(s) for this contactable item, for rolling about N,u,v
    /// (used only for rolling friction NSC contacts)
    virtual void ComputeJacobianForRollingContactPart(
        const ChVector<>& abs_point,
        ChMatrix33<>& contact_plane,
        ChVariableTupleCarrier_1vars<6>::type_constraint_tuple& jacobian_tuple_N,
        ChVariableTupleCarrier_1vars<6>::type_constraint_tuple& jacobian_tuple_U,
        ChVariableTupleCarrier_1vars<6>::type_constraint_tuple& jacobian_tuple_V,
        bool second) override;

    /// used by some SMC code
    virtual double GetContactableMass() override { return variables.GetBodyMass(); }

    /// This is only for backward compatibility
    virtual ChPhysicsItem* GetPhysicsItem() override;

    // SERIALIZATION
    virtual void ArchiveOUT(ChArchiveOut& marchive) override;
    virtual void ArchiveIN(ChArchiveIn& marchive) override;

    // DATA
    ChParticleCloud* container;
    ChVariablesBodySharedMass variables;
    collision::ChCollisionModel* collision_model;
    ChVector<> UserForce;
    ChVector<> UserTorque;
};

/// Class for clusters of 'clone' particles, that is many rigid objects with the same shape and mass.
/// This can be used to make granular flows, where you have thousands of objects with the same shape. In fact, a single
/// ChParticleCloud object can be more memory-efficient than many ChBody objects, because they share many features,
/// such as mass and collision shape. If you have N different families of shapes in your granular simulations (ex. 50%
/// of particles are large spheres, 25% are small spheres and 25% are polyhedrons) you can simply add three
/// ChParticleCloud objects to the ChSystem. This would be more efficient anyway than creating all shapes as ChBody.
class ChApi ChParticleCloud : public ChIndexedParticles {
  public:
    ChParticleCloud();
    ChParticleCloud(const ChParticleCloud& other);
    ~ChParticleCloud();

    /// "Virtual" copy constructor (covariant return type).
    virtual ChParticleCloud* Clone() const override { return new ChParticleCloud(*this); }

    /// Enable/disable the collision for this cluster of particles.
    /// before anim starts (it is not automatically
    /// recomputed here because of performance issues.)
    void SetCollide(bool mcoll);
    virtual bool GetCollide() const override { return do_collide; }

    /// Set the state of all particles in the cluster to 'fixed' (default: false).
    /// If true, the particles do not move.
    void SetFixed(bool state) { fixed = state; }

    /// Return true if the particle cluster is currently active and thereofre included into the system solver.
    /// A cluster is inactive if it is fixed to ground.
    virtual bool IsActive() const override { return !fixed; }

    /// Set the maximum linear speed (beyond this limit it will be clamped).
    /// This is useful in virtual reality and real-time simulations, because it reduces the risk of bad collision
    /// detection. The realism is limited, but the simulation is more stable.
    void SetLimitSpeed(bool mlimit) { do_limit_speed = mlimit; };
    bool GetLimitSpeed() const { return do_limit_speed; };

    /// Get the number of particles.
    size_t GetNparticles() const override { return particles.size(); }

    /// Get all particles in the cluster.
    std::vector<ChAparticle*> GetParticles() const { return particles; }

    /// Access the N-th particle.
    ChParticleBase& GetParticle(unsigned int n) override {
        assert(n < particles.size());
        return *particles[n];
    }

    /// Resize the particle cluster. Also clear the state of
    /// previously created particles, if any.
    /// NOTE! Define the sample collision shape using GetCollisionModel()->...
    /// before adding particles!
    void ResizeNparticles(int newsize) override;

    /// Add a new particle to the particle cluster, passing a
    /// coordinate system as initial state.
    /// NOTE! Define the sample collision shape using GetCollisionModel()->...
    /// before adding particles!
    void AddParticle(ChCoordsys<double> initial_state = CSYSNORM) override;

    /// Set the material surface for contacts
    void SetMaterialSurface(const std::shared_ptr<ChMaterialSurface>& mnewsurf) { matsurface = mnewsurf; }

    /// Set the material surface for contacts
    std::shared_ptr<ChMaterialSurface>& GetMaterialSurface() { return matsurface; }

    // STATE FUNCTIONS

    // (override/implement interfaces for global state vectors, see ChPhysicsItem for comments.)
    virtual void IntStateGather(const unsigned int off_x,
                                ChState& x,
                                const unsigned int off_v,
                                ChStateDelta& v,
                                double& T) override;
    virtual void IntStateScatter(const unsigned int off_x,
                                 const ChState& x,
                                 const unsigned int off_v,
                                 const ChStateDelta& v,
                                 const double T,
                                 bool full_update) override;
    virtual void IntStateGatherAcceleration(const unsigned int off_a, ChStateDelta& a) override;
    virtual void IntStateScatterAcceleration(const unsigned int off_a, const ChStateDelta& a) override;
    virtual void IntStateIncrement(const unsigned int off_x,
                                   ChState& x_new,
                                   const ChState& x,
                                   const unsigned int off_v,
                                   const ChStateDelta& Dv) override;
    virtual void IntStateGetIncrement(const unsigned int off_x,
                                   const ChState& x_new,
                                   const ChState& x,
                                   const unsigned int off_v,
                                   ChStateDelta& Dv) override;
    virtual void IntLoadResidual_F(const unsigned int off, ChVectorDynamic<>& R, const double c) override;
    virtual void IntLoadResidual_Mv(const unsigned int off,
                                    ChVectorDynamic<>& R,
                                    const ChVectorDynamic<>& w,
                                    const double c) override;
    virtual void IntToDescriptor(const unsigned int off_v,
                                 const ChStateDelta& v,
                                 const ChVectorDynamic<>& R,
                                 const unsigned int off_L,
                                 const ChVectorDynamic<>& L,
                                 const ChVectorDynamic<>& Qc) override;
    virtual void IntFromDescriptor(const unsigned int off_v,
                                   ChStateDelta& v,
                                   const unsigned int off_L,
                                   ChVectorDynamic<>& L) override;

    // SOLVER FUNCTIONS

    // Override/implement system functions of ChPhysicsItem
    // (to assemble/manage data for system solver)

    virtual void VariablesFbReset() override;
    virtual void VariablesFbLoadForces(double factor = 1) override;
    virtual void VariablesQbLoadSpeed() override;
    virtual void VariablesFbIncrementMq() override;
    virtual void VariablesQbSetSpeed(double step = 0) override;
    virtual void VariablesQbIncrementPosition(double step) override;
    virtual void InjectVariables(ChSystemDescriptor& mdescriptor) override;

    // Other functions

    /// Set no speed and no accelerations (but does not change the position)
    void SetNoSpeedNoAcceleration() override;

    /// Access the collision model for the collision engine: this is the 'sample'
    /// collision model that is used by all particles.
    /// To get a non-null pointer, remember to SetCollide(true), before.
    collision::ChCollisionModel* GetCollisionModel() { return particle_collision_model; }

    /// Synchronize coll.models coordinates and bounding boxes to the positions of the particles.
    virtual void SyncCollisionModels() override;
    virtual void AddCollisionModelsToSystem() override;
    virtual void RemoveCollisionModelsFromSystem() override;

    /// After you added collision shapes to the sample coll.model (the one
    /// that you access with GetCollisionModel() ) you need to call this
    /// function so that all collision models of particles will reference the sample coll.model.
    void UpdateParticleCollisionModels();

    /// Mass of each particle. Must be positive.
    void SetMass(double newmass) {
        if (newmass > 0)
            particle_mass.SetBodyMass(newmass);
    }
    double GetMass() const { return particle_mass.GetBodyMass(); }

    /// Set the inertia tensor of each particle
    void SetInertia(const ChMatrix33<>& newXInertia);
    /// Set the diagonal part of the inertia tensor of each particle
    void SetInertiaXX(const ChVector<>& iner);
    /// Get the diagonal part of the inertia tensor of each particle
    ChVector<> GetInertiaXX() const;
    /// Set the extra-diagonal part of the inertia tensor of each particle
    /// (xy, yz, zx values, the rest is symmetric)
    void SetInertiaXY(const ChVector<>& iner);
    /// Get the extra-diagonal part of the inertia tensor of each particle
    /// (xy, yz, zx values, the rest is symmetric)
    ChVector<> GetInertiaXY() const;

    /// Trick. Set the maximum linear speed (beyond this limit it will
    /// be clamped). This is useful in virtual reality and real-time
    /// simulations, because it reduces the risk of bad collision detection.
    /// This speed limit is active only if you set  SetLimitSpeed(true);
    void SetMaxSpeed(float m_max_speed) { max_speed = m_max_speed; }
    float GetMaxSpeed() const { return max_speed; }

    /// Trick. Set the maximum angular speed (beyond this limit it will
    /// be clamped). This is useful in virtual reality and real-time
    /// simulations, because it reduces the risk of bad collision detection.
    /// This speed limit is active only if you set  SetLimitSpeed(true);
    void SetMaxWvel(float m_max_wvel) { max_wvel = m_max_wvel; }
    float GetMaxWvel() const { return max_wvel; }

    /// When this function is called, the speed of particles is clamped
    /// into limits posed by max_speed and max_wvel  - but remember to
    /// put the body in the SetLimitSpeed(true) mode.
    void ClampSpeed();

    /// Set the amount of time which must pass before going automatically in
    /// sleep mode when the body has very small movements.
    void SetSleepTime(float m_t) { sleep_time = m_t; }
    float GetSleepTime() const { return sleep_time; }

    /// Set the max linear speed to be kept for 'sleep_time' before freezing.
    void SetSleepMinSpeed(float m_t) { sleep_minspeed = m_t; }
    float GetSleepMinSpeed() const { return sleep_minspeed; }

    /// Set the max linear speed to be kept for 'sleep_time' before freezing.
    void SetSleepMinWvel(float m_t) { sleep_minwvel = m_t; }
    float GetSleepMinWvel() const { return sleep_minwvel; }

    // UPDATE FUNCTIONS

    /// Update all auxiliary data of the particles
    virtual void Update(double mytime, bool update_assets = true) override;
    /// Update all auxiliary data of the particles
    virtual void Update(bool update_assets = true) override;

    // SERIALIZATION
    virtual void ArchiveOUT(ChArchiveOut& marchive) override;
    virtual void ArchiveIN(ChArchiveIn& marchive) override;

  private:
    std::vector<ChAparticle*> particles;  ///< the parricles

    ChSharedMassBody particle_mass;  ///< shared mass of particles

    collision::ChCollisionModel* particle_collision_model;  ///< sample collision model

    std::shared_ptr<ChMaterialSurface> matsurface;  ///< data for surface contact and impact

    bool fixed;
    bool do_collide;
    bool do_limit_speed;

    float max_speed;  ///< limit on linear speed (useful for increased simulation speed)
    float max_wvel;   ///< limit on angular vel. (useful for increased simulation speed)

    float sleep_time;
    float sleep_minspeed;
    float sleep_minwvel;
    float sleep_starttime;
};

CH_CLASS_VERSION(ChParticleCloud,0)

}  // end namespace chrono

#endif


text:
import React, {Component} from 'react'
import {Route, Switch, Redirect} from 'react-router-dom'

import Overview from './Overview'
import ApiConsole from './ApiConsole'
import Documentation from './Documentation'
import Documents from './Documents/Documents'
import Forum from './Forum'
import Sdk from './Sdk'
import BasicInfo from './BasicInfo'
import {PageNotFound} from '../../Base/Errors/index'
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import PhoneIcon from 'material-ui-icons/Phone';
import FavoriteIcon from 'material-ui-icons/Favorite';
import PersonPinIcon from 'material-ui-icons/PersonPin';

export default class Details extends Component {
    constructor(props){
        super(props);
        this.state = {
            value: 'overview',
        };
    }

    handleChange = (event, value) => {
        this.setState({ value });
        this.props.history.push({pathname: "/apis/" + this.props.match.params.api_uuid + "/" + value});
    };
    componentDidMount() {
        this.props.setLeftMenu(true);
    }

    componentWillUnmount() {
        /* Hide the left side nav bar when detail page is unmount ,
         since the left nav bar is currently only associated with details page*/
        this.props.setLeftMenu(false);
    }

    render() {
        let redirect_url = "/apis/" + this.props.match.params.api_uuid + "/overview";
        return (
            <div className="tab-content">
                <BasicInfo uuid={this.props.match.params.api_uuid} />
                <AppBar position="static" color="default" style={{margin:"10px 0px 10px 35px"}}>
                    <Tabs
                        value={this.state.value}
                        onChange={this.handleChange}
                        fullWidth
                        indicatorColor="accent"
                        textColor="accent"
                    >
                        <Tab value="overview" icon={<PhoneIcon />} label="Overview" />
                        <Tab value="console" icon={<FavoriteIcon />} label="API Console" />
                        <Tab value="documentation" icon={<PersonPinIcon />} label="Documentation" />
                        <Tab value="forum" icon={<PersonPinIcon />} label="Forum" />
                        <Tab value="sdk" icon={<PersonPinIcon />} label="SDKs" />
                    </Tabs>
                </AppBar>
                <Switch>
                    <Redirect exact from="/apis/:api_uuid" to={redirect_url}/>
                    <Route path="/apis/:api_uuid/overview" component={Overview}/>
                    <Route path="/apis/:api_uuid/console" component={ApiConsole}/>
                    <Route path="/apis/:api_uuid/documentation" component={Documents}/>
                    <Route path="/apis/:api_uuid/forum" component={Forum}/>
                    <Route path="/apis/:api_uuid/sdk" component={Sdk}/>
                    <Route component={PageNotFound}/>
                </Switch>
            </div>
        );
    }
}


text:
"""Pulse penetration ratio and density absolute mean calculations.

See https://github.com/eEcoLiDAR/eEcoLiDAR/issues/23.
"""

import numpy as np

from laserchicken.feature_extractor.base_feature_extractor import FeatureExtractor
from laserchicken.keys import point, normalized_height

# classification according to
# http://www.asprs.org/wp-content/uploads/2010/12/LAS_1-4_R6.pdf
GROUND_TAGS = [2]

def _is_ground(i, point_cloud):
    return point_cloud[point]['raw_classification']["data"][i] in GROUND_TAGS

class PulsePenetrationFeatureExtractor(FeatureExtractor):
    """Feature extractor for the point density."""

    @classmethod
    def requires(cls):
        """
        Get a list of names of the point attributes that are needed for this feature extraction.

        For simple features, this could be just x, y, and z. Other features can build on again
        other features to have been computed first.

        :return: List of feature names
        """
        return []

    @classmethod
    def provides(cls):
        """
        Get a list of names of the feature values.

        This will return as many names as the number feature values that will be returned.
        For instance, if a feature extractor returns the first 3 eigen values, this method
        should return 3 names, for instance 'eigen_value_1', 'eigen_value_2' and 'eigen_value_3'.

        :return: List of feature names
        """
        return ['pulse_penetration_ratio']

    def extract(self, point_cloud, neighborhoods, target_point_cloud, target_indices, volume_description):
        """
        Extract the feature value(s) of the point cloud at location of the target.

        :param point_cloud: environment (search space) point cloud
        :param neighborhoods: list of arrays of indices of points within the point_cloud argument
        :param target_point_cloud: point cloud that contains target point
        :param target_indices: list of indices of the target point in the target point cloud
        :param volume_description: volume object that describes the shape and size of the search volume
        :return: feature values
        """
        return [self._extract_one(point_cloud, neighborhood) for neighborhood in neighborhoods]

    def _extract_one(self, point_cloud, neighborhood):
        if 'raw_classification' not in point_cloud[point]:
            raise ValueError(
                'Missing raw_classification attribute which is necessary for calculating pulse_penetratio and '
                'density_absolute_mean features.')

        ground_indices = [i for i in neighborhood if _is_ground(i, point_cloud)]
        pulse_penetration_ratio = self._get_pulse_penetration_ratio(
            ground_indices, len(neighborhood))

        return pulse_penetration_ratio

    @staticmethod
    def _get_ground_indices(point_cloud, ground_tags):
        index_grd = []
        for ipt, c in enumerate(point_cloud):
            if c in ground_tags:
                index_grd.append(ipt)
        return index_grd

    @staticmethod
    def _get_pulse_penetration_ratio(ground_indices, n_total_points):
        n_total = max(n_total_points, 1)
        n_ground = len(ground_indices)
        return float(n_ground) / n_total

    def get_params(self):
        """
        Return a tuple of parameters involved in the current feature extractor object.

        Needed for provenance.
        """
        return ()


text:
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v2.0.1...v2.1.0)

**Merged pull requests:**

- Add Docs for dnsimple\_certificate [\#49](https://github.com/dnsimple/chef-dnsimple/pull/49) ([onlyhavecans](https://github.com/onlyhavecans))
- Feature/install certificate [\#48](https://github.com/dnsimple/chef-dnsimple/pull/48) ([aeden](https://github.com/aeden))

## [v2.0.1](https://github.com/dnsimple/chef-dnsimple/tree/v2.0.1) (2017-05-18)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v2.0.0...v2.0.1)

**Fixed bugs:**

- Re-release 2.0.0 with updated Stove [\#47](https://github.com/dnsimple/chef-dnsimple/issues/47)

## [v2.0.0](https://github.com/dnsimple/chef-dnsimple/tree/v2.0.0) (2017-04-24)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.4...v2.0.0)

**Fixed bugs:**

- Force apt in the run list for ubuntu platforms [\#41](https://github.com/dnsimple/chef-dnsimple/pull/41) ([martinisoft](https://github.com/martinisoft))

**Closed issues:**

- Chef 11 needs compat resources [\#45](https://github.com/dnsimple/chef-dnsimple/issues/45)

**Merged pull requests:**

- Replace fog with dnsimple and rewrite to Chef 12.5+ resource [\#46](https://github.com/dnsimple/chef-dnsimple/pull/46) ([martinisoft](https://github.com/martinisoft))
- It seems that Chef 11 and Compat resources no go [\#44](https://github.com/dnsimple/chef-dnsimple/pull/44) ([jjasghar](https://github.com/jjasghar))
- Update README.md [\#43](https://github.com/dnsimple/chef-dnsimple/pull/43) ([jjasghar](https://github.com/jjasghar))

## [v1.3.4](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.4) (2016-09-30)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.3...v1.3.4)

**Merged pull requests:**

- Swap fog gem for fog-dnsimple [\#42](https://github.com/dnsimple/chef-dnsimple/pull/42) ([martinisoft](https://github.com/martinisoft))

## [v1.3.3](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.3) (2016-06-27)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.2...v1.3.3)

**Fixed bugs:**

- getchef.com isn't our site anymore [\#37](https://github.com/dnsimple/chef-dnsimple/pull/37) ([jjasghar](https://github.com/jjasghar))

**Merged pull requests:**

- Update Travis-CI builds to use Integration [\#40](https://github.com/dnsimple/chef-dnsimple/pull/40) ([martinisoft](https://github.com/martinisoft))
- Fix test suite names for kitchen [\#39](https://github.com/dnsimple/chef-dnsimple/pull/39) ([onlyhavecans](https://github.com/onlyhavecans))
- Remove 16.04 due to bento issues. Update Documents [\#38](https://github.com/dnsimple/chef-dnsimple/pull/38) ([onlyhavecans](https://github.com/onlyhavecans))

## [v1.3.2](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.2) (2016-06-24)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.1...v1.3.2)

**Merged pull requests:**

- Move to cookstyle over chefstyle [\#36](https://github.com/dnsimple/chef-dnsimple/pull/36) ([onlyhavecans](https://github.com/onlyhavecans))

## [v1.3.1](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.1) (2016-06-10)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.3.0...v1.3.1)

**Merged pull requests:**

- Update documentation with a correction for the token usage [\#35](https://github.com/dnsimple/chef-dnsimple/pull/35) ([martinisoft](https://github.com/martinisoft))

## [v1.3.0](https://github.com/dnsimple/chef-dnsimple/tree/v1.3.0) (2016-06-10)
[Full Changelog](https://github.com/dnsimple/chef-dnsimple/compare/v1.2.0...v1.3.0)

**Fixed bugs:**

- DNSimple API authentication [\#24](https://github.com/dnsimple/chef-dnsimple/issues/24)

**Merged pull requests:**

- Support api tokens [\#33](https://github.com/dnsimple/chef-dnsimple/pull/33) ([martinisoft](https://github.com/martinisoft))

## [v1.2.0](https://github.com/dnsimple/chef-dnsimple/tree/v1.2.0) (2016-06-10)
**Fixed bugs:**

- Fix ChefSpec Deprecation Warning [\#25](https://github.com/dnsimple/chef-dnsimple/issues/25)
- centos-65 requires patch utility due to nokogiri, only build-essential ~\> 2.0.4 installs patch [\#21](https://github.com/dnsimple/chef-dnsimple/issues/21)
- Fix converging in modern chef 11 and chef 12 [\#32](https://github.com/dnsimple/chef-dnsimple/pull/32) ([onlyhavecans](https://github.com/onlyhavecans))
- Cleanup testing [\#31](https://github.com/dnsimple/chef-dnsimple/pull/31) ([martinisoft](https://github.com/martinisoft))

**Closed issues:**

- Use Fog DNSimple API Auth [\#27](https://github.com/dnsimple/chef-dnsimple/issues/27)
- Ubuntu 14.04 package requirement [\#23](https://github.com/dnsimple/chef-dnsimple/issues/23)
- Should have option to gracefully handle existing A record for CNAME create [\#18](https://github.com/dnsimple/chef-dnsimple/issues/18)
- Release a new version to Chef Community site [\#11](https://github.com/dnsimple/chef-dnsimple/issues/11)
- Add Test Kitchen [\#10](https://github.com/dnsimple/chef-dnsimple/issues/10)
- Cookbook removes undesired records [\#9](https://github.com/dnsimple/chef-dnsimple/issues/9)
- Should depend on 'build-essential' [\#7](https://github.com/dnsimple/chef-dnsimple/issues/7)
- LWRP should use load\_current\_resource [\#2](https://github.com/dnsimple/chef-dnsimple/issues/2)

**Merged pull requests:**

- Update build status and metadata [\#30](https://github.com/dnsimple/chef-dnsimple/pull/30) ([martinisoft](https://github.com/martinisoft))
- Unpin build-essential, blocks many popular cookbooks from use [\#22](https://github.com/dnsimple/chef-dnsimple/pull/22) ([martinb3](https://github.com/martinb3))
- Support creating record with multiple content values [\#20](https://github.com/dnsimple/chef-dnsimple/pull/20) ([josacar](https://github.com/josacar))
- Use load\_current\_resource in lwrp [\#15](https://github.com/dnsimple/chef-dnsimple/pull/15) ([josacar](https://github.com/josacar))
- Integrate Test Kitchen [\#14](https://github.com/dnsimple/chef-dnsimple/pull/14) ([dje](https://github.com/dje))
- Configure attributes for ohai to workaround empty node.platform\_family [\#13](https://github.com/dnsimple/chef-dnsimple/pull/13) ([josacar](https://github.com/josacar))
- Avoid removing records with different type on create [\#12](https://github.com/dnsimple/chef-dnsimple/pull/12) ([josacar](https://github.com/josacar))
- Build Essential Dependancy [\#8](https://github.com/dnsimple/chef-dnsimple/pull/8) ([ichilton](https://github.com/ichilton))
- add platform support for rhel platforms and expand coverage for more debian platforms [\#6](https://github.com/dnsimple/chef-dnsimple/pull/6) ([mattkasa](https://github.com/mattkasa))
- Fix missing pkg dependencies, update to chef\_gem; add name to metadata. [\#5](https://github.com/dnsimple/chef-dnsimple/pull/5) ([mdxp](https://github.com/mdxp))
- Improvements to LWRP and Documentation [\#1](https://github.com/dnsimple/chef-dnsimple/pull/1) ([jtimberman](https://github.com/jtimberman))

\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*