text:
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
  border: 0 }

table.borderless td, table.borderless th {
  /* Override padding for "table.docutils td" with "! important".
     The right padding separates the table cells. */
  padding: 0 0.5em 0 0 ! important }

.first {
  /* Override more specific margin styles with "! important". */
  margin-top: 0 ! important }

.last, .with-subtitle {
  margin-bottom: 0 ! important }

.hidden {
  display: none }

a.toc-backref {
  text-decoration: none ;
  color: black }

blockquote.epigraph {
  margin: 2em 5em ; }

dl.docutils dd {
  margin-bottom: 0.5em }

object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
  overflow: hidden;
}

/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
  font-weight: bold }
*/

div.abstract {
  margin: 2em 5em }

div.abstract p.topic-title {
  font-weight: bold ;
  text-align: center }

div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
  margin: 2em ;
  border: medium outset ;
  padding: 1em }

div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
  font-weight: bold ;
  font-family: sans-serif }

div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
  color: red ;
  font-weight: bold ;
  font-family: sans-serif }

/* Uncomment (and remove this text!) to get reduced vertical space in
   compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
  margin-bottom: 0.5em }

div.compound .compound-last, div.compound .compound-middle {
  margin-top: 0.5em }
*/

div.dedication {
  margin: 2em 5em ;
  text-align: center ;
  font-style: italic }

div.dedication p.topic-title {
  font-weight: bold ;
  font-style: normal }

div.figure {
  margin-left: 2em ;
  margin-right: 2em }

div.footer, div.header {
  clear: both;
  font-size: smaller }

div.line-block {
  display: block ;
  margin-top: 1em ;
  margin-bottom: 1em }

div.line-block div.line-block {
  margin-top: 0 ;
  margin-bottom: 0 ;
  margin-left: 1.5em }

html[dir="rtl"] div.line-block div.line-block {
  margin-top: 0 ;
  margin-bottom: 0 ;
  margin-right: 1.5em  ;
  margin-left: 0 }

div.sidebar {
  margin: 0 0 0.5em 1em ;
  border: medium outset ;
  padding: 1em ;
  background-color: #ffffee ;
  width: 40% ;
  float: right ;
  clear: right }

div.sidebar p.rubric {
  font-family: sans-serif ;
  font-size: medium }

div.system-messages {
  margin: 5em }

div.system-messages h1 {
  color: red }

div.system-message {
  border: medium outset ;
  padding: 1em }

div.system-message p.system-message-title {
  color: red ;
  font-weight: bold }

div.topic {
  margin: 2em }

h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
  margin-top: 0.4em }

h1.title {
  text-align: center }

h2.subtitle {
  text-align: center }

hr.docutils {
  width: 75% }

img.align-left, .figure.align-left, object.align-left {
  clear: left ;
  float: left ;
  margin-right: 1em }

img.align-right, .figure.align-right, object.align-right {
  clear: right ;
  float: right ;
  margin-left: 1em }

img.align-center, .figure.align-center, object.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.align-left {
  text-align: left }

.align-center {
  clear: both ;
  text-align: center }

.align-right {
  text-align: right }

/* reset inner alignment in figures */
div.align-right {
  text-align: inherit }

/* div.align-center * { */
/*   text-align: left } */

ol.simple, ul.simple {
  margin-bottom: 1em }

ol.arabic {
  list-style: decimal }

ol.loweralpha {
  list-style: lower-alpha }

ol.upperalpha {
  list-style: upper-alpha }

ol.lowerroman {
  list-style: lower-roman }

ol.upperroman {
  list-style: upper-roman }

p.attribution {
  text-align: right ;
  margin-left: 50% }

p.caption {
  font-style: italic }

p.credits {
  font-style: italic ;
  font-size: smaller }

p.label {
  white-space: nowrap }

p.rubric {
  font-weight: bold ;
  font-size: larger ;
  color: maroon ;
  text-align: center }

p.sidebar-title {
  font-family: sans-serif ;
  font-weight: bold ;
  font-size: larger }

p.sidebar-subtitle {
  font-family: sans-serif ;
  font-weight: bold }

p.topic-title {
  font-weight: bold }

pre.address {
  margin-bottom: 0 ;
  margin-top: 0 ;
  font: inherit }

pre.literal-block, pre.doctest-block, pre.math, pre.code {
  margin-left: 2em ;
  margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}

span.classifier {
  font-family: sans-serif ;
  font-style: oblique }

span.classifier-delimiter {
  font-family: sans-serif ;
  font-weight: bold }

span.interpreted {
  font-family: sans-serif }

span.option {
  white-space: nowrap }

span.pre {
  white-space: pre }

span.problematic {
  color: red }

span.section-subtitle {
  /* font-size relative to parent (h1..h6 element) */
  font-size: 80% }

table.citation {
  border-left: solid 1px gray;
  margin-left: 1px }

table.docinfo {
  margin: 2em 4em }

table.docutils {
  margin-top: 0.5em ;
  margin-bottom: 0.5em }

table.footnote {
  border-left: solid 1px black;
  margin-left: 1px }

table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
  padding-left: 0.5em ;
  padding-right: 0.5em ;
  vertical-align: top }

table.docutils th.field-name, table.docinfo th.docinfo-name {
  font-weight: bold ;
  text-align: left ;
  white-space: nowrap ;
  padding-left: 0 }

h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
  font-size: 100% }

ul.auto-toc {
  list-style-type: none }

/* code.css file generated by Nikola */
pre.code .hll { background-color: #ffffcc }
pre.code  { background: #f8f8f8; }
pre.code .c { color: #408080; font-style: italic } /* Comment */
pre.code .err { border: 1px solid #FF0000 } /* Error */
pre.code .k { color: #008000; font-weight: bold } /* Keyword */
pre.code .o { color: #666666 } /* Operator */
pre.code .cm { color: #408080; font-style: italic } /* Comment.Multiline */
pre.code .cp { color: #BC7A00 } /* Comment.Preproc */
pre.code .c1 { color: #408080; font-style: italic } /* Comment.Single */
pre.code .cs { color: #408080; font-style: italic } /* Comment.Special */
pre.code .gd { color: #A00000 } /* Generic.Deleted */
pre.code .ge { font-style: italic } /* Generic.Emph */
pre.code .gr { color: #FF0000 } /* Generic.Error */
pre.code .gh { color: #000080; font-weight: bold } /* Generic.Heading */
pre.code .gi { color: #00A000 } /* Generic.Inserted */
pre.code .go { color: #888888 } /* Generic.Output */
pre.code .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
pre.code .gs { font-weight: bold } /* Generic.Strong */
pre.code .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
pre.code .gt { color: #0044DD } /* Generic.Traceback */
pre.code .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
pre.code .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
pre.code .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
pre.code .kp { color: #008000 } /* Keyword.Pseudo */
pre.code .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
pre.code .kt { color: #B00040 } /* Keyword.Type */
pre.code .m { color: #666666 } /* Literal.Number */
pre.code .s { color: #BA2121 } /* Literal.String */
pre.code .na { color: #7D9029 } /* Name.Attribute */
pre.code .nb { color: #008000 } /* Name.Builtin */
pre.code .nc { color: #0000FF; font-weight: bold } /* Name.Class */
pre.code .no { color: #880000 } /* Name.Constant */
pre.code .nd { color: #AA22FF } /* Name.Decorator */
pre.code .ni { color: #999999; font-weight: bold } /* Name.Entity */
pre.code .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
pre.code .nf { color: #0000FF } /* Name.Function */
pre.code .nl { color: #A0A000 } /* Name.Label */
pre.code .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
pre.code .nt { color: #008000; font-weight: bold } /* Name.Tag */
pre.code .nv { color: #19177C } /* Name.Variable */
pre.code .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
pre.code .w { color: #bbbbbb } /* Text.Whitespace */
pre.code .mb { color: #666666 } /* Literal.Number.Bin */
pre.code .mf { color: #666666 } /* Literal.Number.Float */
pre.code .mh { color: #666666 } /* Literal.Number.Hex */
pre.code .mi { color: #666666 } /* Literal.Number.Integer */
pre.code .mo { color: #666666 } /* Literal.Number.Oct */
pre.code .sb { color: #BA2121 } /* Literal.String.Backtick */
pre.code .sc { color: #BA2121 } /* Literal.String.Char */
pre.code .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
pre.code .s2 { color: #BA2121 } /* Literal.String.Double */
pre.code .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
pre.code .sh { color: #BA2121 } /* Literal.String.Heredoc */
pre.code .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
pre.code .sx { color: #008000 } /* Literal.String.Other */
pre.code .sr { color: #BB6688 } /* Literal.String.Regex */
pre.code .s1 { color: #BA2121 } /* Literal.String.Single */
pre.code .ss { color: #19177C } /* Literal.String.Symbol */
pre.code .bp { color: #008000 } /* Name.Builtin.Pseudo */
pre.code .vc { color: #19177C } /* Name.Variable.Class */
pre.code .vg { color: #19177C } /* Name.Variable.Global */
pre.code .vi { color: #19177C } /* Name.Variable.Instance */
pre.code .il { color: #666666 } /* Literal.Number.Integer.Long */
table.codetable { width: 100%;} td.linenos {text-align: right; width: 4em;}

/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxWrapper {max-width:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/*
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000; opacity: 0.9; filter: alpha(opacity = 90);}
#colorbox{outline:0;}
    #cboxContent{margin-top:20px;background:#000;}
        .cboxIframe{background:#fff;}
        #cboxError{padding:50px; border:1px solid #ccc;}
        #cboxLoadedContent{border:5px solid #000; background:#fff;}
        #cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;}
        #cboxCurrent{position:absolute; top:-20px; right:0px; color:#ccc;}
        #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}

        /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
        #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }

        /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
        #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

        #cboxSlideshow{position:absolute; top:-20px; right:90px; color:#fff;}
        #cboxPrevious{position:absolute; top:50%; left:5px; margin-top:-32px; background:url(images/controls.png) no-repeat top left; width:28px; height:65px; text-indent:-9999px;}
        #cboxPrevious:hover{background-position:bottom left;}
        #cboxNext{position:absolute; top:50%; right:5px; margin-top:-32px; background:url(images/controls.png) no-repeat top right; width:28px; height:65px; text-indent:-9999px;}
        #cboxNext:hover{background-position:bottom right;}
        #cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) no-repeat top center; width:38px; height:19px; text-indent:-9999px;}
        #cboxClose:hover{background-position:bottom center;}

#container {
    width: 960px;
    margin: 0 auto;
}

#contentcolumn {
    max-width: 760px;
}
#q {
    width: 150px;
}

img {
    max-width: 90%;
}

.postbox {
    border-bottom: 2px solid darkgrey;
    margin-bottom: 12px;
}

.titlebox {
    text-align: right;
}

#addthisbox {margin-bottom: 12px;}

td.label {
    /* Issue #290 */
    background-color: inherit;
}

.footnote-reference {
    /* Issue 290 */
    vertical-align: super;
    font-size: xx-small;
}

.caption {
    /* Issue 292 */
    text-align: center;
    padding-top: 1em;
}

div.figure > img,
div.figure > a > img {
    /* Issue 292 */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

blockquote p, blockquote {
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.25;
}

ul.bricks > li {
    display: inline;
    background-color: lightblue;
    padding: 8px;
    border-radius: 5px;
    line-height: 3;
    white-space:nowrap;
    margin: 3px;
}

.at300b, .stMainServices, .stButton, .stButton_gradient {
    box-sizing: content-box;
}

pre, pre code {
    white-space: pre;
    word-wrap: normal;
    overflow: auto;
}

article.post-micro {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5em;
}

.image-block {
    display: inline-block;
}

.flowr_row {
    width: 100%;
}

.tags {
    padding-left: 0;
    margin-left: -5px;
    list-style: none;
    text-align: center;

}

.tags > li {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #999;
    border-radius: 10px;
}

.tags > li a {
    color: #fff;
}

.metadata p:before,
.postlist .listdate:before {
    content: " — ";
}

.metadata p:first-of-type:before {
    content: "";
}

.metadata p {
    display: inline;
}

.posttranslations h3 {
    display: inline;
    font-size: 1em;
    font-weight: bold;
}

.posttranslations h3:last-child {
    display: none;
}

.entry-content {
    margin-top: 1em;
}

.navbar-brand {
    padding: 0 15px;
}

.navbar-brand #blog-title {
    padding: 15px 0;
    display: inline-block;
}

.navbar-brand #logo {
    max-width: 100%;
}

.navbar-brand>img {
    display: inline;
}

.row {
    margin: 0;
}

/* for alignment with Bootstrap's .entry-content styling */
.entry-summary {
    margin-top: 1em;
}

/* Custom page footer */
#footer {
    padding-top: 19px;
    color: #777;
    border-top: 1px solid #e5e5e5;
}

/* hat tip bootstrap/html5 boilerplate */
@media print {
    *, *:before, *:after {
        font-family: Garamond, Junicode, serif;
    }

    body {
        font-size: 12pt;
    }

    article .entry-title a[href]:after,
    article .metadata a[href]:after,
    article .tags a[href]:after {
        content: "";
    }

    article .metadata .sourceline {
        display: none;
    }

    article .metadata .linkline a[href]:after {
        content: " (" attr(href) ")";
    }

    .navbar {
        display: none;
    }
}


text:
namespace Umbraco.Cms.Core.Deploy;

/// <summary>
/// Represents a context cache used by Deploy operations.
/// </summary>
public interface IContextCache
{
    /// <summary>
    /// Creates the item on the context cache using the specified <paramref name="key" />.
    /// </summary>
    /// <typeparam name="T">The type of the cached item.</typeparam>
    /// <param name="key">The key of the cached item.</param>
    /// <param name="item">The item.</param>
    void Create<T>(string key, T item);

    /// <summary>
    /// Gets an item from the context cache or creates and stores it using the specified <paramref name="key" />.
    /// </summary>
    /// <typeparam name="T">The type of the cached item.</typeparam>
    /// <param name="key">The key of the cached item.</param>
    /// <param name="factory">The factory method to create the item (if it doesn't exist yet).</param>
    /// <returns>
    /// The item.
    /// </returns>
    T? GetOrCreate<T>(string key, Func<T?> factory);

    /// <summary>
    /// Clears all cached items on this context.
    /// </summary>
    void Clear();
}

redpajama_set_name: RedPajamaGithub


text:
// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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.

#ifndef _FASTDDS_SHAREDMEM_TRANSPORT_DESCRIPTOR_
#define _FASTDDS_SHAREDMEM_TRANSPORT_DESCRIPTOR_

#include "fastdds/rtps/transport/TransportDescriptorInterface.h"

namespace eprosima {
namespace fastdds {
namespace rtps {

class TransportInterface;

/**
 * Shared memory transport configuration.
 * The kind value for SharedMemTransportDescriptor is given by eprosima::fastrtps::rtps::LOCATOR_KIND_SHM.
 *
 * - segment_size_: size of the shared memory segment (in octets).
 *
 * - port_queue_capacity_: size of the listening port (in messages).
 *
 * - healthy_check_timeout_ms_: timeout for the health check of ports (ms).
 *
 * - rtps_dump_file_: full path of the protocol dump file.
 *
 * @ingroup TRANSPORT_MODULE
 */
struct SharedMemTransportDescriptor : public TransportDescriptorInterface
{
    //! Destructor
    virtual ~SharedMemTransportDescriptor() = default;

    virtual TransportInterface* create_transport() const override;

    //! Minimum size of the send buffer
    uint32_t min_send_buffer_size() const override
    {
        return segment_size_;
    }

    //! Constructor
    RTPS_DllAPI SharedMemTransportDescriptor();

    //! Copy constructor
    RTPS_DllAPI SharedMemTransportDescriptor(
            const SharedMemTransportDescriptor& t) = default;

    //! Copy assignment
    RTPS_DllAPI SharedMemTransportDescriptor& operator =(
            const SharedMemTransportDescriptor& t) = default;

    //! Return the size of the shared memory segment
    RTPS_DllAPI uint32_t segment_size() const
    {
        return segment_size_;
    }

    //! Set the size of the shared memory segment
    RTPS_DllAPI void segment_size(
            uint32_t segment_size)
    {
        segment_size_ = segment_size;
    }

    //! Return the maximum size of a single message in the transport (in octets)
    virtual uint32_t max_message_size() const override
    {
        return maxMessageSize;
    }

    //! Set the maximum size of a single message in the transport (in octets)
    RTPS_DllAPI void max_message_size(
            uint32_t max_message_size)
    {
        maxMessageSize = max_message_size;
    }

    //! Return the size of the listening port (in messages)
    RTPS_DllAPI uint32_t port_queue_capacity() const
    {
        return port_queue_capacity_;
    }

    //! Set the size of the listening port (in messages)
    RTPS_DllAPI void port_queue_capacity(
            uint32_t port_queue_capacity)
    {
        port_queue_capacity_ = port_queue_capacity;
    }

    //! Return the timeout for the health check of ports (ms)
    RTPS_DllAPI uint32_t healthy_check_timeout_ms() const
    {
        return healthy_check_timeout_ms_;
    }

    //! Set the timeout for the health check of ports (ms)
    RTPS_DllAPI void healthy_check_timeout_ms(
            uint32_t healthy_check_timeout_ms)
    {
        healthy_check_timeout_ms_ = healthy_check_timeout_ms;
    }

    //! Return the full path of the protocol dump file
    RTPS_DllAPI std::string rtps_dump_file() const
    {
        return rtps_dump_file_;
    }

    //! Set the full path of the protocol dump file
    RTPS_DllAPI void rtps_dump_file(
            const std::string& rtps_dump_file)
    {
        rtps_dump_file_ = rtps_dump_file;
    }

    //! Comparison operator
    RTPS_DllAPI bool operator ==(
            const SharedMemTransportDescriptor& t) const;

private:

    uint32_t segment_size_;
    uint32_t port_queue_capacity_;
    uint32_t healthy_check_timeout_ms_;
    std::string rtps_dump_file_;

};

} // namespace rtps
} // namespace fastdds
} // namespace eprosima

#endif // _FASTDDS_SHAREDMEM_TRANSPORT_DESCRIPTOR_


text:
'use strict';

var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];

var _Node = require('./Node');

var _Node2 = _interopRequireDefault(_Node);

var _Event = require('./Event');

var _Event2 = _interopRequireDefault(_Event);

var _Document = require('./Document');

var _Document2 = _interopRequireDefault(_Document);

var _DocumentFragment = require('./DocumentFragment');

var _DocumentFragment2 = _interopRequireDefault(_DocumentFragment);

global.window = global;
global.document = new _Document2['default']();
global.Event = _Event2['default'];
global.Node = _Node2['default'];
global.Document = _Document2['default'];
global.DocumentFragment = _DocumentFragment2['default'];
//# sourceMappingURL=global.js.map


text:
package com.mwronski.hateoas.services.v2;

import com.google.common.collect.Sets;
import com.mwronski.hateoas.model.Message;
import com.mwronski.hateoas.model.ResourceEntity;
import com.mwronski.hateoas.model.Resources;
import com.mwronski.hateoas.repositories.Repository;
import com.mwronski.hateoas.services.ReadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.*;

import static com.google.common.base.Preconditions.checkArgument;
import static com.mwronski.hateoas.log.Tracer.tracer;
import static com.mwronski.hateoas.model.builder.Builders.message;
import static com.mwronski.hateoas.services.ServiceUtils.normalize;
import static com.mwronski.hateoas.services.ServiceUtils.pageToIndex;

/**
 * Service manages messages kept in the application.

 * It's an extension of version 1.0 that was created to support more features
 * related with messages and keep backward compatibility at the same time.

 * Service provides access to all fields of messages.

 * Moreover services allows to decide which fields should be returned while getting list of message (pageable access).

 * Note: class cannot be final because of controller link builder
 *
 * @author Michal Wronski
 * @version 2.0
 * @date 27-05-2014
 */
@RequestMapping(value = "/", produces = "application/vnd.messages-v2+*",
        headers = {"Accept=application/vnd.messages-v2+json", "Accept=application/vnd.messages-v2+xml"})
@RestController
public class MessageServiceV2 extends ReadService<Message> {

    @Autowired
    private Repository<Message> messageRepository;

    /**
     * Create message
     *
     * @param request with address of the sender
     * @param title   title of new message
     * @param content content of new message
     * @return ID of created message
     */
    @RequestMapping(value = "/message", method = RequestMethod.POST)
    @ResponseBody
    public HttpEntity<Message> create(HttpServletRequest request, @RequestParam String title, @RequestParam String content) {
        tracer(this).info("Creating new message - title: %s, content: %s", title, content);
        Message msg = message()
                .withTitle(title)
                .withContent(content)
                .withSender(request.getRemoteAddr())
                .build();
        msg = messageRepository.create(msg);
        Message msgId = getRepository().find(msg.getEntityId(), ResourceEntity.COLUMN_ENTITY_ID);
        addSelfLink(msgId);
        return new ResponseEntity<Message>(msgId, HttpStatus.CREATED);
    }

    @Override
    protected List<Message> findElements(int startIndex, int count, String... includeFields) {
        System.out.println(Arrays.toString(includeFields));
        Set<String> columns = includeFields != null ? Sets.newHashSet(includeFields) : new HashSet<String>();
        columns.add(ResourceEntity.COLUMN_ENTITY_ID); //ID always must be included
        tracer(this).debug("Filter - included columns: %s", columns);
        return messageRepository.get(startIndex, DEFAULT_PAGE_SIZE, columns.toArray(new String[columns.size()]));
    }

    @Override
    protected final Repository<Message> getRepository() {
        return messageRepository;
    }

}


text:
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright © 2015, University of Washington
All rights reserved.
 *
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above
      copyright notice, this list of conditions and the following
      disclaimer in the documentation and/or other materials provided
      with the distribution.

    * Neither the name of the University of Washington nor the names
      of its contributors may be used to endorse or promote products
      derived from this software without specific prior written
      permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL UNIVERSITY OF
WASHINGTON BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>edu.uw.apl</groupId>
    <artifactId>tupelo-amqp-parent</artifactId>
    <version>1.2.11</version>
  </parent>

  <groupId>edu.uw.apl</groupId>
  <artifactId>tupelo-amqp-objects</artifactId>
  <version>1.2.11</version>
  <packaging>jar</packaging>
  <name>Tupelo Disk Management - AMQP Objects</name>

  <dependencies>
    <dependency>
      <groupId>${project.groupId}</groupId>
      <artifactId>tupelo-model-core</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>com.google.code.gson</groupId>
      <artifactId>gson</artifactId>
    </dependency>
    <dependency>
      <groupId>com.rabbitmq</groupId>
      <artifactId>amqp-client</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-jar-plugin</artifactId>
	<configuration>
	  <archive>
	    <manifest>
	      <addClasspath>true</addClasspath>
	      <addDefaultImplementationEntries>
		true
	      </addDefaultImplementationEntries>
	      <addDefaultSpecificationEntries>
		true
	      </addDefaultSpecificationEntries>
	    </manifest>
	  </archive>
	</configuration>
      </plugin>
      <plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-dependency-plugin</artifactId>
	<executions>
	  <execution>
	    <id>copy-dependencies</id>
	    <phase>package</phase>
	    <goals>
	      <goal>copy-dependencies</goal>
	    </goals>
	    <configuration>
	      <outputDirectory>${project.build.directory}</outputDirectory>
	    </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>


text:
package de.gessnerfl.rabbitmq.queue.management.service.security;

public class JWTTokenCreationFailedException extends RuntimeException {
    public JWTTokenCreationFailedException(String message, Throwable cause) {
        super(message, cause);
    }
}


text:
Adds nginx with sites support and independent php/ruby backends per site

## Description

Allows us to have:

 * nginx
 * independend sites
 * and independent backends (currently ruby and php)
 * *easily* extend to other backends
 * conigure php backend (systemwide)
 * simplest proxies
 * redirects from aliases (like www.site.com to site.com)
 * logs by site`s host name instead of default common logs (access.log and error.log)

It works on one simple principle:

 * in nginx we have "include conf.d/*.site.conf;"
 * in site we have few includes like "include "conf.d/<%= name %>.*.before.conf";"

Same principle is in php fpm and ruby's thin configuration. And good puppet keeps our dynamically generated config directory always actual by "recurse => true, purge => true" of the file's parameters.

## Usage

### Install nginx

Add this to your main module:

```ruby
  class {"nginx":
    user                => "www-data",
    worker_processes    => 1,
    worker_connections  => 1024,
    worker_rlimit_nofile=> 8192,
    gzip                => false
  }
```

Here we show all values, but they are already in defaults, so you can do it in less code as:

```ruby
  class {"nginx":
  }
```
Or in such way :)

```ruby
  class {"nginx": }
```

### Add site

By "site" we understand here "virtual host" in terms of apache or in terms of nginx it's a "server".

Title "Our site name" should be unique as it's some sort of id between other sites and between site and it's backends.

```ruby
  nginx::site {"Our site name":
    server_name => "our.site.com",
    redirect_from_aliases => "www.our.site.com",
    root        => "/var/www/our.site.com",
    root_owner  => "www-data",
    root_group  => "www-data",
    index       => "index.html index.htm",
    try_files   => '$uri $uri/ $uri.html =404',
    is_default  => true,
    is_independent_logs => true,
    custom_inside => "puppet:///modules/your-module/path-to-file.conf"
  }
```
Most params here are named same as in nginx config. It will help you to expand easily by adding new params and also to search in nginx wiki by their names.
*Abstraction here is just evil.*

**custom_inside** param is a method to pass your own nginx config inside. It's a puppet path to file in some of your modules.

**redirect_from_aliases** param is for redirecting from secondary domains (aliases) to the main domain with persistent code.

**is_independent_logs** param gives us individual access and error logs for site.

**Note** Single quotes around try_files are for this: in double quotes puppet will try to expand $uri variable and become sad.

### Enable some site`s param globally

Imagine, that we want independent logs for all sites by default -- we can use puppet`s defaults:

```ruby
  Nginx::Site {
    is_independent_logs => true,
  }
```

Same is true for other params and classes.

### Add backend to the site

So now we want to add backend to our site?

For ruby it will be:

```ruby
  nginx::backend::ruby {"Our site name":
    root        => "/usr/local/lib/redmine",
    port        => 8000,
    address     => '127.0.0.1',
    servers     => 3,
    is_welcome  => false,
    try_files   => '$uri $uri/ $uri/index.html @rubybackend'
  }
```

And for our lovely php:

```ruby
  nginx::backend::php {"Our site name":
    port        => 9000,
    try_files   => '$uri $uri/ $uri/index.html /index.php?url=$uri&$args'
  }
```

When adding backends, please watch for your port ranges -- they should not intersects. In ruby backend (thin web-server) it will create by default 3 servers on ports 8000, 8001 & 8002.

**Note.** Pls remember to use same title as for site: "Our site name".

### Configure PHP backend

```ruby
    class {"nginx::backend::config::php":
      display_errors      => "On",
      error_reporting     => "E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT",
      expose_php          => "Off",
      html_errors         => "On",
      memory_limit        => "32M",
      short_open_tag      => "yes",
      date__timezone      => "Antarctica/Vostok",  # <-- Here we set date.timezone key
    }
```

**Note.** Dots in config keys are replaced by two underscores. Anyway if you have
IDE or some kind of code completeion -- it shouldn't be a problem as all possible
(or just many of them) keys are incorporated in *nginx::backend::config::php* class.

### Add proxy to some backend

```ruby
  nginx::proxy {"Frontend to backend":
    server_name   => "front.end",
    upstream_name => "http://back.end"
  }
```
Current version of proxy is simplest of possible -- just two directives, but it will work.

## Requirements

Puppet should have $::osfamily and $::lsbdistcodename facts. If your puppet is old,
then add this in your site.pp before node definitions:

```ruby
import "nginx/osfamily"
```

## GOODTODO

* Add more unversal connection between site & backend. Now we can't have only 1-to-1 connection of site and backend, as puppet will report duplication
* Add more backends for different languages
* Add more backends for concrete language. For example in ruby we can have mogrel, passenger (standalone here only) and another
* Add more nginx/site config params, but leave most good defaults
* Impruv mai inglish hia :)


text:
<!DOCTYPE html>

    <meta charset="utf-8"/>

调整填报教师 -
                    调整

                        <button type="button" class="btn btn-primary" id="page_back">返回</button>

                    <button type="button" class="btn btn-outline btn-default" id="refresh">刷新
                    </button>

                        姓名
                        联系方式
                        指导人数
                        可报人数
                        操作

学生

当前选择 :

                        姓名
                        学号
                        班级
                        邮箱
                        联系方式
                        操作

© Company 2016

                        <button type="button" class="close" data-dismiss="modal">×Close</button>

选择指导教师

                        <form role="form" id="teacher_form" style="height: 300px;overflow: auto">

                            <input name="graduationDesignTutorId" type="hidden" id="teacherGraduationDesignTutorId"/>
                            <input name="graduationDesignReleaseId" type="hidden"
                                   th:value="${graduationDesignReleaseId}"/>
                            <input type="hidden" id="teacherGraduationDesignTeacherId"/>
                        </form>

                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        <button type="button" class="btn btn-primary" id="saveTeacher">确定</button>

                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

志愿教师

                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>

        <input type="hidden" class="dy_script" value="/js/graduate/design/adjustech/design_adjustech_adjust.js"/>


text:
class NamespaceTables < ActiveRecord::Migration
  def change
    rename_table :reviews, :spree_reviews
    rename_table :feedback_reviews, :spree_feedback_reviews
  end
end


text:
define([
    'text!templates/Tasks/list/ListTemplate.html'
],

 function (ListTemplate) {
     var TasksListItemView = Backbone.View.extend({
         el: '#listTable',

         initialize: function (options) {
             this.collection = options.collection;
             this.startNumber = (options.page < 1) ? 0 : (options.page - 1) * options.itemsNumber;//Counting the start index of list items
         },

         render: function () {
             this.$el.append(_.template(ListTemplate, { tasksCollection: this.collection.toJSON(), startNumber: this.startNumber }));
         }
     });

     return TasksListItemView;
 });


text:
"use strict";
/**
  `RSVP.resolve` returns a promise that will become fulfilled with the passed
  `value`. `RSVP.resolve` is essentially shorthand for the following:

  ```javascript
  var promise = new RSVP.Promise(function(resolve, reject){
    resolve(1);
  });

  promise.then(function(value){
    // value === 1
  });
  ```

  Instead of writing the above, your code now simply becomes the following:

  ```javascript
  var promise = RSVP.resolve(1);

  promise.then(function(value){
    // value === 1
  });
  ```

  @method resolve
  @for RSVP.Promise
  @param {Any} value value that the returned promise will be resolved with
  @param {String} label optional string for identifying the returned promise.
  Useful for tooling.
  @return {Promise} a promise that will become fulfilled with the given
  `value`
*/
exports["default"] = function resolve(value, label) {
  /*jshint validthis:true */
  var Constructor = this;

  return new Constructor(function(resolve, reject) {
    resolve(value);
  }, label);
};


text:
Spree::Core::Engine.add_routes do
  namespace :admin do
    # https://github.com/spree/spree/blob/3-0-stable/backend/config/routes.rb#L73
    resources :orders do
      resources :bookkeeping_documents, only: :index do
        get 'refresh', on: :collection
      end
    end

    resource :print_invoice_settings, only: [:edit, :update]
    resources :bookkeeping_documents, only: [:index, :show]
  end
end


text:
define('api/CommonAPI', ['model/token', 'lib/cookie'], function (token, cookie) {
    var userobj = token.getUserInfo();
    if (cookie.get('_displaylabelids') == "" || cookie.get('_displaylabelids') == null) {
        cookie.add('_displaylabelids', ["8"], '/', 86400 * 1);
    }
    userobj.DisplayLabel = JSON.stringify(cookie.get('_displaylabelids').split(","));

    return {
        commonObj: {
            UserId: userobj.UserId || 0,
            Guid: userobj.UserGuid ||"",
            DisplayLabel: userobj.DisplayLabel || "",
            SourceTypeSysNo:2,
            ExtensionSysNo: userobj.ExtensionSysNo || "",
            AreaSysNo: userobj.AreaSysNo || "",
            ChannelID: userobj.ChannelID || "",
            ClientIp: userobj.ClientIp || "",
        }
    }
});


text:
(function () {
    'use strict';

angular.module('pariapp')

/*.controller('NavCtrl', function($scope, $ionicSideMenuDelegate) {
  $scope.showMenu = function () {
    $ionicSideMenuDelegate.toggleLeft();
  };
})*/

.controller('home', function ($scope, $http,$location,$rootScope,utilites,ionicToast,$ionicLoading,$ionicSlideBoxDelegate,$ionicPopup) {

	$ionicLoading.show();
	$scope.cStoreName=window.localStorage['cStoreName'];
	$scope.gotonext=function(intCategoryId,strCategoryName)
	{
		window.plugins.nativepagetransitions.slide({"href" : "#/app/categorylists/"+intCategoryId+"/"+strCategoryName});
		//#/app/productlist/{{subcategory.intCategoryId}}/{{subcategory.strCategoryName}}
	}
	/* $scope.popup=function(){
		$ionicPopup.confirm({
			title: '',
			template: 'Are you sure you want to exit?'
		  }).then(function(res) {
			if (res) {
			  ionic.Platform.exitApp();
			}
		  })
	} */

	$http({
		method: 'POST',
		url:$rootScope.path+'Category.asmx/SelectAllCatagoryAndSubCategory',
		headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
		transformRequest: function (obj) {
			var str = [];
			for (var p in obj)
				str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
				return str.join("&");
			},
		data: {
			   UserId:$rootScope.UserId,
			    cToken:$rootScope.Token
			  }
		}).success(function (response) {
			//console.log(response);
			$scope.categorylist=response;
			$ionicSlideBoxDelegate.update();
			$ionicLoading.hide();
		}).error(function (data, status) {
			console.log(status);
			ionicToast.show($rootScope.connectionmsg,'middle', true, 2500);
			$ionicLoading.hide();
		})

		$http({
		method: 'POST',
		url:$rootScope.path+'slider.asmx/SelectAllSlider',
		headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
		transformRequest: function (obj) {
			var str = [];
			for (var p in obj)
				str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
				return str.join("&");
			},
		data: {
			   UserId:$rootScope.UserId,
			    cToken:$rootScope.Token
			  }
		}).success(function (response) {
			console.log(response);
			$scope.strSliderImage=response[0].strSliderImage;
			//$scope.categorylist=response;
			//$scope.imgpath=$rootScope.imagepath;
			$ionicSlideBoxDelegate.update();
			$ionicLoading.hide();
		}).error(function (data, status) {
			console.log(status);
			ionicToast.show($rootScope.connectionmsg,'middle', true, 2500);
			$ionicLoading.hide();
		})

		$http({
			method: 'POST',
			url:$rootScope.path+'Offer.asmx/SelectRowCustomerWise',
			headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
			transformRequest: function (obj) {
				var str = [];
				for (var p in obj)
					str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
					return str.join("&");
				},
			data: {nCustomerId:window.localStorage['nCustomerId'],
				   nUserId:$rootScope.UserId,
				     cToken:$rootScope.Token
				  }
		}).success(function (response) {
			//console.log(response);
			var offer=response;
			if(response[0].Success!=0)
				$scope.count=offer.length;
			else
				$scope.count=0;
			//$ionicLoading.hide();
		}).error(function (data, status) {
			console.log(status);
			ionicToast.show($rootScope.connectionmsg,'middle', true, 2500);
			//$ionicLoading.hide();
		})

		 $scope.menu = [
{"text" : "Home"},
{"text" : "Games"},
{"text" : "Mail"},
{"text" : "Car"},
{"text" : "Profile"},
{"text" : "Favourites"},
{"text" : "Chats"},
{"text" : "Settings"},
{"text" : "Photos"},
{"text" : "Pets"}
];

})

}());


text:
using System;
using System.Collections.Generic;
using System.Web;
using CsQuery;
using CsQuery.Web;

namespace CsQuery.AspNet
{
    public class CsQueryPage: System.Web.UI.Page, ICsQueryControl
    {
        public CQ Doc { get; protected set; }
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            var csqContext = WebForms.CreateFromRender(this, base.Render, writer);

            if (csqContext.IsAsync)
            {
                foreach (var item in csqContext.AsyncPostbackData) {
                    Cq_RenderUpdatePanel(item.Dom,item.ID);
                }
            }
            else
            {
                Doc = csqContext.Dom;
                Cq_Render();
            }

            csqContext.Render();
        }

        /// <summary>
        /// Override this property to manipulate the Doc before it is rendered.
        /// </summary>

        protected virtual void Cq_Render()
        {

        }

        /// <summary>
        /// Override this property to manipulate the Doc for an update panel.
        /// </summary>
        ///
        /// <param name="doc">
        /// The CQ object representing the update panel data.
        /// </param>
        /// <param name="updatePanelId">
        /// Name ID the update panel.
        /// </param>

        protected virtual void Cq_RenderUpdatePanel(CQ doc, string updatePanelId) {

        }
    }
}


text:
<?php

include_once 'RouteParser.php';
include_once 'UrlScanner.php';

class RouteParserTest extends PHPUnit_Framework_TestCase
{
    public function test_route_pattern_segments_correct_pattern_isArray()
    {
        $url_pattern = '/users/:id';
        $routeParser = new RouteParser($url_pattern);

        $this->assertEquals('array', gettype($routeParser->route_pattern_segments));
    }
    public function test_route_pattern_segments_correct_pattern_trailing_slash_isArray()
    {
        $url_pattern = '/users/:id/';
        $routeParser = new RouteParser($url_pattern);

        $this->assertEquals('array', gettype($routeParser->route_pattern_segments));
    }
    public function test_route_pattern_segments_faulty_pattern_isArray()
    {
        $url_pattern = 'sdfsdf';
        $routeParser = new RouteParser($url_pattern);
        $this->assertEquals('array', gettype($routeParser->route_pattern_segments));
    }
    public function test_url_pattern_variations()
    {
        $url_pattern = 'accounts/';
        $routeParser = new RouteParser($url_pattern);
        $url_pattern = '/accounts';
        $routeParser = new RouteParser($url_pattern);
        $url_pattern = '/accounts/';
        $routeParser = new RouteParser($url_pattern);
    }

    /**
     * @expectedException Exception
     * $url_pattern must be a string
     */
    public function test_route_pattern_segments_invalid_input_shouldRaiseException()
    {
        $url_pattern = 123452345;
        $routeParser = new RouteParser($url_pattern);

    }
    /**
     * @expectedException Exception
     * $url_pattern must contain a noun
     */
    public function test_route_pattern_segments_empty_string_shouldRaiseException()
    {
        $url_pattern = '';
        $routeParser = new RouteParser($url_pattern);

    }
    /**
     * @expectedException Exception
     * Url pattern is not in valid format
     */
    public function test_route_pattern_invalid_shouldRaiseException()
    {
        $url_pattern = '/users/{id';
        $routeParser = new RouteParser($url_pattern);
    }
    /**
     * @expectedException Exception
     * Url pattern is not in valid format, should not contain white space
     */
    public function test_route_pattern_invalid_white_space_shouldRaiseException()
    {
        $url_pattern = '/users/:i d';
        $routeParser = new RouteParser($url_pattern);
    }
}


text:
module SimpleJsonApi
  module Rails
    class Error < StandardError
      def status
        500
      end
    end

    class BadRequestError < Error
      def status
        400
      end
    end

    class NotFoundError < Error
      def status
        404
      end
    end

    class NotAcceptableError < Error
      def status
        406
      end
    end

    class ConflictError < Error
      def status
        409
      end
    end

    class UnsupportedMediaTypeError < Error
      def status
        415
      end
    end
  end
end


text:
VoiceXML sample - Voice Mailbox to record and send messages

These files are part of a sample VoiceXML application that's being created to show developers how to create VoiceXML applications for the IVR VoiceXML Platform.

For more information, please visit  http://www.ivrpowers.com


text:
package org.apache.wicket.util.template;

import java.io.IOException;
import java.util.Map;

import org.apache.wicket.Application;
import org.apache.wicket.javascript.IJavascriptCompressor;
import org.apache.wicket.util.io.Streams;
import org.apache.wicket.util.lang.Packages;
import org.apache.wicket.util.resource.IResourceStream;
import org.apache.wicket.util.resource.ResourceStreamNotFoundException;
import org.apache.wicket.util.resource.locator.ResourceStreamLocator;
import org.apache.wicket.util.string.interpolator.MapVariableInterpolator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * A String resource that can be appended to.
 *
 * @author Eelco Hillenius
 * @since 1.2.6
 */
public class PackagedTextTemplate extends TextTemplate
{
	/** log. */
	private static final Logger log = LoggerFactory.getLogger(PackagedTextTemplate.class);

	private static final long serialVersionUID = 1L;

	/** contents */
	private final StringBuffer buffer = new StringBuffer();

	/**
	 * Constructor.
	 *
	 * @param clazz
	 *            the Class to be used for retrieving the classloader for loading the
	 *            PackagedTextTemplate
	 * @param fileName
	 *            the name of the file, relative to the clazz position
	 */
	public PackagedTextTemplate(final Class<?> clazz, final String fileName)
	{
		this(clazz, fileName, "text");
	}

	/**
	 * Constructor.
	 *
	 * @param clazz
	 *            the Class to be used for retrieving the classloader for loading the
	 *            PackagedTextTemplate
	 * @param fileName
	 *            the name of the file, relative to the clazz position
	 * @param contentType
	 *            the mime type of this resource, such as "image/jpeg" or "
	 *            text/html"
	 */
	public PackagedTextTemplate(final Class<?> clazz, final String fileName,
		final String contentType)
	{
		this(clazz, fileName, contentType, null);
	}

	/**
	 * Constructor.
	 *
	 * @param clazz
	 *            the Class to be used for retrieving the classloader for loading the
	 *            PackagedTextTemplate
	 * @param fileName
	 *            the name of the file, relative to the clazz position
	 * @param contentType
	 *            the mime type of this resource, such as "image/jpeg" or "
	 *            text/html"
	 * @param encoding
	 *            the file's encoding, for example, "UTF-8"
	 */
	public PackagedTextTemplate(final Class<?> clazz, final String fileName,
		final String contentType, final String encoding)
	{
		super(contentType);

		String path = Packages.absolutePath(clazz, fileName);

		Application app = Application.get();

		// first try default class loading locator to find the resource
		IResourceStream stream = app.getResourceSettings().getResourceStreamLocator().locate(clazz,
			path);

		if (stream == null)
		{
			// if default locator couldnt find the resource, than some fallback
			stream = new ResourceStreamLocator().locate(clazz, path);
		}

		if (stream == null)
		{
			throw new IllegalArgumentException("resource " + fileName + " not found for scope " +
				clazz + " (path = " + path + ")");
		}

		setLastModified(stream.lastModifiedTime());

		try
		{
			if (encoding != null)
			{
				buffer.append(Streams.readString(stream.getInputStream(), encoding));
			}
			else
			{
				buffer.append(Streams.readString(stream.getInputStream()));
			}
		}
		catch (IOException e)
		{
			throw new RuntimeException(e);
		}
		catch (ResourceStreamNotFoundException e)
		{
			throw new RuntimeException(e);
		}
		finally
		{
			try
			{
				stream.close();
			}
			catch (IOException e)
			{
				log.error(e.getMessage(), e);
			}
		}
	}

	/**
	 * @see org.apache.wicket.util.resource.AbstractStringResourceStream#getString()
	 */
	@Override
	public String getString()
	{
		IJavascriptCompressor compressor = Application.get()
			.getResourceSettings()
			.getJavascriptCompressor();

		if (compressor != null)
		{
			return compressor.compress(buffer.toString());
		}
		else
		{
			// don't strip the comments
			return buffer.toString();
		}
	}

	/**
	 * Interpolates a Map of variables with the content and replaces the content with
	 * the result. Variables are denoted in the String by the
	 * syntax ${variableName}. The contents will be altered by replacing each variable
	 * of the form ${variableName} with the value returned by
	 * variables.getValue("variableName").
	 *

	 * WARNING: there is no going back to the original contents after the interpolation is done. If
	 * you need to do different interpolations on the same original contents, use the method
	 * {@link #asString(Map)} instead.
	 *

	 *
	 * @param variables
	 *            a Map of variables to interpolate
	 * @return this for chaining
	 */
	@Override
	public final TextTemplate interpolate(Map<String, Object> variables)
	{
		if (variables != null)
		{
			String result = new MapVariableInterpolator(buffer.toString(), variables).toString();
			buffer.delete(0, buffer.length());
			buffer.append(result);
		}
		return this;
	}

}


text:
//
// Explore
//    - The Adventure Interpreter
//
// Copyright (C) 2006  Joe Peterson
//

package com.wildlava.explore;

import java.io.FileInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.applet.Applet;
import java.awt.Frame;
import java.awt.TextArea;
import java.awt.event.*;
import java.awt.Label;
import java.awt.Color;
import java.awt.Font;
import java.awt.Toolkit;
import java.net.URL;

public class Explore extends Applet implements Runnable
{
   private boolean applet = false;
   private ExpIO io = new ExpIO(null);

   public void init()
   {
      applet = true;

      TextArea output = new TextArea(null, 16, 64,
                                     TextArea.SCROLLBARS_VERTICAL_ONLY);
      output.setEditable(false);
      output.setBackground(Color.black);
      output.setForeground(Color.green);
      output.setFont(new Font("Dialog", Font.PLAIN, 14));
      add("output", output);

      io = new ExpIO(output);

      Thread thread = new Thread(this, "Explore");
      thread.start();
   }

   /*
   public void destroy()
   {
      io.output.removeKeyListener(io.input);
      io.output = null;

      io.input = null;

      io.thread.stop();
      io.thread = null;
   }
   */

   public static void main(String args[])
   {
      Explore explore = new Explore();
      Thread thread = new Thread(explore, "Explore");
      thread.start();
   }

   public void run()
   {
      do
      {
         io.print("");
         io.print("");
         io.print("*** EXPLORE ***  ver 4.6");
         io.print("");

         World world = new World(io);

         String advname;

         do
         {
            io.print("Name of adventure: ", false);
            advname = io.input();
         } while (advname == null);
         advname = advname.trim().toLowerCase();
         String filename = advname + ".exp";

         BufferedReader file_stream = getAdventureInputStream(filename);
         if (file_stream != null)
         {
            io.print("");
            io.print(advname + " is now being built...");

            if (world.load(file_stream))
            {
               try
               {
                  file_stream.close();
               }
               catch (java.io.IOException x)
               {
                  io.print("Error closing adventure file!");
               }

               io.print("");
               io.print("");
               io.print(world.title);
               io.print("");

               playAdventure(world);
            }
            else
            {
               try
               {
                  file_stream.close();
               }
               catch (java.io.IOException x)
               {
                  io.print("Error closing adventure file!");
               }

               io.print("Error while building adventure!");
            }
         }
         else
         {
            io.print("Sorry, that adventure is not available.");
         }
      } while (applet);
   }

   BufferedReader getAdventureInputStream(String filename)
   {
      BufferedReader file_stream;

      if (applet)
      {
         URL url;

         try
         {
            url = new URL(getCodeBase(), filename);
         }
         catch (java.net.MalformedURLException e)
         {
            return null;
         }

         try
         {
            file_stream = new BufferedReader(new InputStreamReader(url.openStream()));
         }
         catch (java.io.IOException e)
         {
            return null;
         }
      }
      else
      {
         try
         {
            FileInputStream stream = new FileInputStream(filename);
            file_stream = new BufferedReader(new InputStreamReader(stream));
         }
         catch (java.io.FileNotFoundException x)
         {
            return null;
         }
      }

      return file_stream;
   }

   void playAdventure(World world)
   {
      int result = World.RESULT_DESCRIBE;
      while ((result & World.RESULT_END_GAME) == 0)
      {
         io.holdOutput();

         int check_result = world.checkForAuto();
         if (check_result != World.RESULT_NOTHING)
         {
            result = check_result;
            continue;
         }

         if ((result & World.RESULT_DESCRIBE) != 0)
         {
            io.printNow("");

            if (io.releaseOutput())
            {
               io.print("");
            }

            io.print(world.player.current_room.description());
         }
         else
         {
            io.releaseOutput();
         }

         io.print(":", false);
         String wish = io.input();

         wish = ExpUtil.superTrim(wish);

         if (wish != null && !wish.equals(""))
         {
            io.holdOutput();

            result = world.processCommand(wish, true);
            if ((result & World.RESULT_END_GAME) != 0)
            {
               break;
            }
         }
         else
         {
            result = World.RESULT_NORMAL;
         }
      }

      if ((result & World.RESULT_WIN) != 0 ||
          (result & World.RESULT_DIE) != 0)
      {
         io.printNow("");
      }

      if (io.releaseOutput())
      {
         io.print("");
      }
   }
}


text:
var profession_adv_interface = (function() {
  var build_modal = function() {
    $('#modal-unlock-advanced').modal({
      show: false
    }).on('hidden.bs.modal', function() {
      // why bootstrap add padding-right upon close???
      $('body').css('padding-right', 0);
    }).on('shown.bs.modal', function() {
      $('body').css('padding-right', 0);
    })

    $('#adv-unlock').on('click', function() {
      $('#modal-unlock-advanced').modal('show');
    })

    $('#btn-dismiss-advanced-warning').on('click', function() {
      $('#modal-unlock-advanced').modal('hide');
      hide_unlock(true);
    })

    $('#adv-prof-adv').on('click', function() {
      update_dropdown_list();
    })
  }

  var attach_selector = function() {
    /*$('#adv-selector').selectpicker({

    }).on('changed.bs.select', function() {
      update_gui($('#adv-selector').val());
    });*/

    $('#adv-profession-list').find('.list-adv').on('click', function(event) {
      var $this = $(this);
      var anchor = $this.find('a');

      if ($this.hasClass('disabled') || anchor.hasClass('selected-profession')) {
        return false;
      } else {
        update_gui($(this).attr('data-prof'));
      }

      event.preventDefault();
    })
  }

  var attach_list_toggle = function() {
    $('#adv-list-toggle').change(function() {
      var val = $(this).prop('checked');

      set_list_toggle_state(val);
    })

    set_list_toggle_state($('#adv-list-toggle').prop('checked'));
  }

  var set_list_toggle_state = function(val) {
    if (val) {
      $('#advanced-list').fadeIn();
      $('#skill-pool').hide();
    } else {
      $('#advanced-list').hide();
      $('#skill-pool').fadeIn();
    }
  }

  var update_gui = function(val) {
    var resp = set(val);
    enable_select_button(val, true);
    //reinitialize_all_select_buttons();
    //enable_select_button(val, true);

    add_to_config_gui(val, resp);
  }

  var update_dropdown_list = function() {
    var s = profession_adv.selected();

    $('#adv-profession-list').find('li[data-prof]').each(function() {
      var prof = $(this).attr('data-prof');
      var anchor = $(this).find('a');

      if (s[prof] != undefined) {
        anchor.addClass('selected-profession');
      } else {
        anchor.removeClass('selected-profession');
      }
    })
  }

  var add_to_config_gui = function(name, show) {
    if (show) {
      var s = '
'
            +   '' + name + ''
            +   ''
            + '
';
      $('#profession-adv-config').prepend(s);
    } else {
      $('#profession-adv-config').find('[data-prof="' + name + '"]').parent().remove();
    }

    update_dropdown_list();

    $('#profession-adv-config').find('span.glyphicon-remove').on('click', function() {
      var $this = $(this);
      var prof = $this.attr('data-prof');
      profession_adv.set(prof);
      enable_select_button(prof, true);
      $this.parent().remove();
      skills.update_availability(true);
      update_dropdown_list();
    })
  }

  var set_list_gui = function(val) {
    $('#adv-list-toggle').bootstrapToggle(val ? 'on' : 'off');
  }

  var build_selector = function(data) {
    //var raw = '<option class="default-no-selection">No Selection</option>';
    var raw = '';

    $.each(data, function(k, _junk) {
      //raw += '<option value="' + k + '">' + k + '</option>';
      raw += '
'
           +   ''
           +     k
           +   ''
           + '
';
    })

    $('#adv-profession-list').append(raw);
    //$('#adv-selector').selectpicker('refresh');
    attach_selector();
    attach_list_toggle();
  }

  var reinitialize_all_select_buttons = function() {
    $('#advanced-list')
      .find('button[data-adv]')
        .text('Select')
        .prop('disabled', false);
  }

  var enable_select_button = function(name, value) {
    var selected = profession_adv.selected();
    var o = $('#advanced-list').find('button[data-adv="' + name + '"]');

    if (value) {
      if (selected[name] == undefined) {
        o.text('Select').removeClass('btn-danger').show();
      } else {
        o.text('Deselect').addClass('btn-danger').show();
      }
    } else {
      o.hide();
    }
  }

  var update_selector = function(data) {
    var s = $('#adv-profession-list');
    $.each(data, function(k, val) {
      var o = s.find('[data-prof="' + k + '"]');

      if (val) {
        o.removeClass('disabled');
      } else {
        o.addClass('disabled');
      }
      //o.prop('disabled', !val);
    })

    //s.selectpicker('refresh');
  }

  var hide_unlock = function(val) {
    if (val) {
      profile.set_acknowledge(true);
      profession_adv.update();
      $('#profession-adv-unlock').hide();
      $('#filter-adv-list').show();
      $('#filter-adv').prop('checked', false);
      $('#profession-adv-select-container').show();
      filterview.apply_all();
    } else {
      $('#profession-adv-unlock').show();
      $('#filter-adv-list').hide();
      $('#filter-adv').prop('checked', true);
      $('#profession-adv-select-container').hide();
      filterview.apply_all();
    }
  }

  var display_readable = function(s, target, name) {
    var display = new Array();
    var highlight_in_list = function(list, _highlight) {
      if (_highlight == undefined) {
        return list.join(', ');
      } else {
        var highlight = _highlight;
        if (!Array.isArray(_highlight)) {
          highlight = new Array(_highlight);
        }

        var s = '';
        list.forEach(function(x) {
          if (highlight.indexOf(x) != -1) {
            s += '' + x + '' + ', ';
          } else {
            s += x + ', ';
          }
        })

        return s.slice(0, -2);
      }
    }

    var unroll = function(composite, depth, context, _invert) {
      var invert = _invert == undefined ? false : _invert;

      if (composite.operator != undefined) {
        //console.log('Depth ' + depth + ' << ' + composite.operator.toUpperCase() + ' >>');

        var h = '';
        var s = '';
        switch(composite.operator) {
          case 'and': h = 'All:'; break;
          case 'or':  h = 'Any:'; break;
          case 'not': h = 'None:'; break;
        }

        s = Array((depth) * 4).join(' ') + (composite.result ? '✓ ' : '✗ ') + h;
        if (composite.result) {
          display.push('' + s + '');
          //console.log(s);
        } else {
          display.push('' + s + '');
          //console.log(s);
        }

        composite.data.forEach(function(x) {
          unroll(x, depth + 1, context, composite.operator == 'not' ? true : false);
        })

      } else {
        var s = '';
        var p = composite.result ? '✓ ' : '✗ ';
        var h = '';
        switch(composite.condition[0]) {
          case 'p':
            s += 'Profession: ';
            s += highlight_in_list(composite.condition.slice(1), context.conditions.professions);
            break;
          case 'k':
            s += 'Skill: ';
            s += highlight_in_list(composite.condition.slice(1), context.conditions.skills);
            break;
          case 's':
            s += 'Strain: ';
            s += highlight_in_list(composite.condition.slice(1), context.conditions.strain);
            break;
          case 'xp_sum':
            // buffer minimum XP to check when XP drops below minimum requirement
            // advanced_profession_min_xp[name] = parseInt(composite.condition[1])
            s += 'XP >= ';
            s += composite.condition[1];
            break;
          case 'stat_sum':
            switch(composite.condition[1]) {
              case 'hp_or_mp': s += 'HP/MP >= '; break;
              case 'hp': s += 'HP >= '; break;
              case 'mp': s += 'MP >= '; break;
            }

            s += composite.condition[2];
            break;
          case 'lore_type':
            s += 'Lore skills count >= ';
            s += composite.condition[1];
            break;
          case 'psionic_type':
            switch(composite.condition[1]) {
              case 'basic': s += 'Basic Psionic skills >= '; break;
              case 'intermediate': s += 'Intermediate Psionic skills >= '; break;
              case 'advanced': s += 'Advanced Psionic skills >= '; break;
            }
            s += composite.condition[2];
            break;
        }

        s = Array(depth * 4).join('&nbsp') + p + s;// + composite.condition.slice(1).join(', ');

        if (invert) {
          composite.result = !composite.result;
        }

        if (composite.result) {
          display.push('' + s + '');
          //console.log(s);
        } else {
          display.push('' + s + '');
          //console.log(s);
        }

      }
    }

    //console.log(util.inspect(this.logical_trees, { showHidden: false, depth: null }));

    //var that = s;
    s.logical_trees.forEach(function(x) {
      unroll(x, 0, s);
    });

    target.html(display.join('
'))
  }

  var render = function(data) {
    var s = '';
    var t = '
'
          +   'Requirement here'
          + '
';
    var button = function(adv) {
      return '<button type="button" class="btn btn-primary btn-xs pull-right btn-adv" '
           +   'data-adv="' + adv + '" '
           +   '>'
           +   'Select'
           + '</button>';
    }

    $.each(data, function(name, _junk) {
      // var t = $('

')
      //           .addClass('adv-requirement')
      //           .hide()
      //           .append('Requirement here');

      // var s = $('

')
      //           .addClass('list-group-item')
      //           .addClass('faded')
      //           .addClass('clickable-advanced')
      //           //.addClass('col-xs-12 col-md-6 col-lg-4')
      //           .addClass('col-xs-12')
      //           .attr('p-adv', name)
      //           .append(name)
      //           .append(t)
      //           .append($('<button></button>')
      //                     .append('Select')
      //                     .attr('ap-name', name)
      //                     .addClass('btn btn-primary btn-xs pull-right btn-advanced-profession')
      //                     .on('click', function() {
      //                       $('.btn-advanced-profession').prop('disabled', false).text('Select');
      //                       $(this)
      //                         .prop('disabled', true)
      //                         .text('Selected')

      //                       $('#profession-selector').multiselect('select', name, true);

      //                       return false;
      //                     }))
      //           .on('click', function() {
      //             var target = $(this).find('.adv-requirement');

      //             if (target.is(':hidden')) {
      //               target.show();
      //             } else {
      //               target.hide();
      //             }
      //           });

      s += '
'
        +    name
        +    t
        +    button(name)
        +  '
'
    })

    $('#advanced-list').append(s);

    $('#advanced-list').find('div.adv').on('click', function() {
      var target = $(this).find('.adv-requirement');
      if (target.is(':hidden')) {
        target.show();
      } else {
        target.hide();
      }
    })

    $('#advanced-list').find('button.btn-adv').on('click', function() {
      var val = $(this).attr('data-adv');
      set_gui(val);
      return false;
    })
  }

  var reset = function() {
    profession_adv.reset();
    $('#profession-adv-config').empty();
    update_dropdown_list();
    hide_unlock(false);
  }

  var set = function(x) {
    var state = profession_adv.set(x);
    skills.update_availability(true);
    return state;
  }

  var set_gui = function(val) {
    //$('#adv-selector').selectpicker('val', val);
    update_gui(val);
  }

  var update_overlimit = function(n) {
    if (n > 0) {
      $('#adv-limit-warning').show();
      $('#adv-overlimit').text(n);
    } else {
      $('#adv-limit-warning').hide();
    }
  }

  return {
    build_modal: build_modal,
    build_selector: build_selector,
    display_readable: display_readable,
    enable_select_button: enable_select_button,
    hide_unlock: hide_unlock,
    update_selector: update_selector,
    update_gui: update_gui,
    render: render,
    reset: reset,
    set_gui: set_gui,
    set_list_gui: set_list_gui,
    update_overlimit: update_overlimit,
    update_dropdown_list: update_dropdown_list
  }
})();


text:
package org.apache.wiki.markdown.renderer;

import com.vladsch.flexmark.html.HtmlWriter;
import com.vladsch.flexmark.html.renderer.LinkType;
import com.vladsch.flexmark.html.renderer.NodeRenderer;
import com.vladsch.flexmark.html.renderer.NodeRendererContext;
import com.vladsch.flexmark.html.renderer.NodeRenderingHandler;
import com.vladsch.flexmark.html.renderer.ResolvedLink;
import org.apache.wiki.markdown.nodes.JSPWikiLink;

import java.util.HashSet;
import java.util.Set;

/**
 * Flexmark {@link NodeRenderer} for {@link JSPWikiLink}s.
 */
public class JSPWikiLinkRenderer implements NodeRenderer {

    /**
     * {@inheritDoc}
     *
     * @see com.vladsch.flexmark.html.renderer.NodeRenderer#getNodeRenderingHandlers()
     */
    @Override
    public Set< NodeRenderingHandler< ? > > getNodeRenderingHandlers() {
        final HashSet< NodeRenderingHandler< ? > > set = new HashSet<>();
        set.add( new NodeRenderingHandler<>( JSPWikiLink.class, new NodeRenderingHandler.CustomNodeRenderer< JSPWikiLink >() {

            /**
             * {@inheritDoc}
             */
            @Override
            public void render( final JSPWikiLink node, final NodeRendererContext context, final HtmlWriter html ) {
                if( context.isDoNotRenderLinks() ) {
                    context.renderChildren( node );
                } else {
                    // standard Link Rendering
                    final ResolvedLink resolvedLink = context.resolveLink( LinkType.LINK, node.getUrl().unescape(), null );

                    html.attr( "href", resolvedLink.getUrl() );
                    if( node.getTitle().isNotNull() ) {
                        html.attr( "title", node.getTitle().unescape() );
                    }
                    html.srcPos( node.getChars() ).withAttr( resolvedLink ).tag( "a" );
                    context.renderChildren( node );
                    html.tag( "/a" );
                }
            }
        } ) );
        return set;
    }

}


text:
assert = require('assert');
fs = require('fs');

describe('Database exists', function(){
    describe('cheching database file existance', function(){
        it('should return true value', function(){
            fs.exists('./storage/database.db', function (exists) {
                assert.strictEqual(exists,true);
            })
        })
    })
})


text:
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Resolution.cs" company="James Jackson-South">
//   Copyright (c) James Jackson-South.
//   Licensed under the Apache License, Version 2.0.
// </copyright>
// <summary>
//   Encapsulates methods to change the resolution of the image.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace ImageProcessor.Processors
{
    using System;
    using System.Collections.Generic;
    using System.Drawing;

    using ImageProcessor.Common.Exceptions;
    using ImageProcessor.Imaging.MetaData;

    /// <summary>
    /// Encapsulates methods to change the resolution of the image.
    /// </summary>
    public class Resolution : IGraphicsProcessor
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Resolution"/> class.
        /// </summary>
        public Resolution() => this.Settings = new Dictionary<string, string>();

        /// <summary>
        /// Gets or sets the dynamic parameter.
        /// </summary>
        public dynamic DynamicParameter
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets any additional settings required by the processor.
        /// </summary>
        public Dictionary<string, string> Settings
        {
            get;
            set;
        }

        /// <summary>
        /// Processes the image.
        /// </summary>
        /// <param name="factory">
        /// The current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class containing
        /// the image to process.
        /// </param>
        /// <returns>
        /// The processed image from the current instance of the <see cref="T:ImageProcessor.ImageFactory"/> class.
        /// </returns>
        public Image ProcessImage(ImageFactory factory)
        {
            const float InchInCm = 0.3937007874015748f;
            Image image = factory.Image;

            try
            {
                Tuple<int, int, PropertyTagResolutionUnit> resolution = this.DynamicParameter;

                // Set the bitmap resolution data.
                // Ensure that the resolution is recalculated for bitmap since it only
                // supports inches.
                if (resolution.Item3 == PropertyTagResolutionUnit.Cm)
                {
                    float horizontal = resolution.Item1 / InchInCm;
                    float vertical = resolution.Item2 / InchInCm;
                    ((Bitmap)image).SetResolution(horizontal, vertical);
                }
                else
                {
                    ((Bitmap)image).SetResolution(resolution.Item1, resolution.Item2);
                }

                if (factory.PreserveExifData && factory.ExifPropertyItems.Count > 0)
                {
                    // Set the horizontal EXIF data.
                    var horizontalRational = new Rational<uint>((uint)resolution.Item1, 1);
                    factory.SetPropertyItem(ExifPropertyTag.XResolution, horizontalRational);

                    // Set the vertical EXIF data.
                    var verticalRational = new Rational<uint>((uint)resolution.Item2, 1);
                    factory.SetPropertyItem(ExifPropertyTag.YResolution, verticalRational);

                    // Set the unit EXIF data
                    ushort units = (ushort)resolution.Item3;
                    factory.SetPropertyItem(ExifPropertyTag.ResolutionUnit, units);
                }
            }
            catch (Exception ex)
            {
                throw new ImageProcessingException("Error processing image with " + this.GetType().Name, ex);
            }

            return image;
        }
    }
}


text:
HR

Payroll and Payslip Management

Payslips for Payroll Groups

HR Management | Payslips for Payroll Groups

Payslips for Payroll Groups

Salary Waged Payroll

                                            Payroll group
                                            Recent payslip
                                            Employees

                                            Monthly

                                            Current Payslip
                                            December 2016
                                            7
                                            <a href="<?php echo base_url('Payslip/generate_payslips'); ?>"> <button type="button" class="btn btn-warning btn btn-xs">Generate payslip</button>
                                                <a href="<?php echo base_url('Payslip/view_Generate_Payslip'); ?>"> <button type="button" class="btn btn-primary btn btn-xs">View Payslips</button>


text:
cask :v1 => 'prefs-editor' do
  version :latest
  sha256 :no_check

  url 'http://files.tempel.org/Various/OSX_Prefs_Editor/PrefsEditor.zip'
  homepage 'http://www.tempel.org/PrefsEditor'
  license :unknown    # todo: improve this machine-generated value

  app 'Prefs Editor.app'
end