text:
import {StepBase} from './base';
import * as path from 'path';
import {run} from '../run';
import * as chalk from 'chalk';

export default class PIP extends StepBase {

    /**
     * Gets the name of the section
     * @return {string}
     */
    get section() {
        return "Install Python packages";
    }

    /**
     * Run the step
     * @param  {object} previousStepResults - results from the previous step
     * @return {Promise|object} results
     */
    run(previousStepResults) {
        if (previousStepResults.install === 'l' || previousStepResults.install === 'g') {
            let chain = Promise.resolve();
            if (this.globals.tools.pip) {
                for (let i = 0; i < this.globals.tools.pip.length; i++) {
                    let orgRepo = this.globals.tools.pip[i];
                    let localFlag = (previousStepResults.install === 'l') ? '--user ' : '';
                    let shell = 'python -m pip install ' + localFlag + '-e ' + path.resolve(this.globals.installdir, orgRepo);
                    chain = chain.then(() => run(shell)).then(stdout => {
                        this.success(orgRepo + ' installed');
                        this.details(stdout);
                    }).catch(err => {
                        this.failure(orgRepo + ' installed');
                        this.abort(err, 1);
                    });
                }
            }
            return chain.then(() => {
                console.log(chalk.green.bold('Installation was a success!  You can launch the notebook by running `python -m notebook`'));
                return previousStepResults;
            });
        }
    }
}


text:
.cke_dialog { visibility: visible }
.cke_dialog_body {
    z-index: 1;
    background: #eaeaea;
    border: 1px solid #b2b2b2;
    border-bottom-color: #999;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0 0 3px rgba(0,0,0,.15);
    -webkit-box-shadow: 0 0 3px rgba(0,0,0,.15);
    box-shadow: 0 0 3px rgba(0,0,0,.15);
    position: relative;
}
.cke_dialog td:first-child {background-color: inherit!important;}
.cke_dialog strong { font-weight: bold }
.cke_dialog_title {
    font-weight: bold;
    font-size: 13px;
    cursor: move;
    position: relative;
    color: #474747;
    text-shadow: 0 1px 0 rgba(255,255,255,.75);
    border-bottom: 1px solid #999;
    padding: 6px 10px;
    -moz-border-radius: 2px 2px 0 0;
    -webkit-border-radius: 2px 2px 0 0;
    border-radius: 2px 2px 0 0;
    -moz-box-shadow: 0 1px 0 #fff inset;
    -webkit-box-shadow: 0 1px 0 #fff inset;
    box-shadow: 0 1px 0 #fff inset;
    background: #cfd1cf;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#cfd1cf));
    background-image: -moz-linear-gradient(top,#f5f5f5,#cfd1cf);
    background-image: -webkit-linear-gradient(top,#f5f5f5,#cfd1cf);
    background-image: -o-linear-gradient(top,#f5f5f5,#cfd1cf);
    background-image: -ms-linear-gradient(top,#f5f5f5,#cfd1cf);
    background-image: linear-gradient(top,#f5f5f5,#cfd1cf);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fff5f5f5',endColorstr='#ffcfd1cf');
}
.cke_dialog_contents {
    background-color: #fff;
    overflow: auto;
    padding: 15px 10px 5px 10px;
    margin-top: 30px;
    border-top: 1px solid #bfbfbf;
    -moz-border-radius: 0 0 3px 3px;
    -webkit-border-radius: 0 0 3px 3px;
    border-radius: 0 0 3px 3px;
}
.cke_dialog_contents_body {
    overflow: auto;
    padding: 17px 10px 5px 10px;
    margin-top: 22px;
}
.cke_dialog_footer {
    text-align: right;
    position: relative;
    border: 0;
    outline: 1px solid #bfbfbf;
    -moz-box-shadow: 0 1px 0 #fff inset;
    -webkit-box-shadow: 0 1px 0 #fff inset;
    box-shadow: 0 1px 0 #fff inset;
    -moz-border-radius: 0 0 2px 2px;
    -webkit-border-radius: 0 0 2px 2px;
    border-radius: 0 0 2px 2px;
    background: #cfd1cf;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#cfd1cf));
    background-image: -moz-linear-gradient(top,#ebebeb,#cfd1cf);
    background-image: -webkit-linear-gradient(top,#ebebeb,#cfd1cf);
    background-image: -o-linear-gradient(top,#ebebeb,#cfd1cf);
    background-image: -ms-linear-gradient(top,#ebebeb,#cfd1cf);
    background-image: linear-gradient(top,#ebebeb,#cfd1cf);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ffebebeb',endColorstr='#cfd1cf');
}
.cke_rtl .cke_dialog_footer { text-align: left }
.cke_hc .cke_dialog_footer {
    outline: 0;
    border-top: 1px solid #fff;
}
.cke_dialog .cke_resizer { margin-top: 22px }
.cke_dialog .cke_resizer_rtl { margin-left: 5px }
.cke_dialog .cke_resizer_ltr { margin-right: 5px }
.cke_dialog_tabs {
    height: 24px;
    display: inline-block;
    margin: 5px 0 0;
    position: absolute;
    z-index: 2;
    left: 10px;
}
.cke_rtl .cke_dialog_tabs { right: 10px }
a.cke_dialog_tab {
    height: 16px;
    padding: 4px 8px;
    margin-right: 3px;
    display: inline-block;
    cursor: pointer;
    line-height: 16px;
    outline: 0;
    color: #595959;
    border: 1px solid #bfbfbf;
    -moz-border-radius: 3px 3px 0 0;
    -webkit-border-radius: 3px 3px 0 0;
    border-radius: 3px 3px 0 0;
    background: #d4d4d4;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#fafafa),to(#ededed));
    background-image: -moz-linear-gradient(top,#fafafa,#ededed);
    background-image: -webkit-linear-gradient(top,#fafafa,#ededed);
    background-image: -o-linear-gradient(top,#fafafa,#ededed);
    background-image: -ms-linear-gradient(top,#fafafa,#ededed);
    background-image: linear-gradient(top,#fafafa,#ededed);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fffafafa',endColorstr='#ffededed');
}
.cke_rtl a.cke_dialog_tab {
    margin-right: 0;
    margin-left: 3px;
}
a.cke_dialog_tab:hover {
    background: #ebebeb;
    background: -moz-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ebebeb),color-stop(100%,#dfdfdf));
    background: -webkit-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
    background: -o-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
    background: -ms-linear-gradient(top,#ebebeb 0,#dfdfdf 100%);
    background: linear-gradient(to bottom,#ebebeb 0,#dfdfdf 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ebebeb',endColorstr='#dfdfdf',GradientType=0);
}
a.cke_dialog_tab_selected {
    background: #fff;
    color: #383838;
    border-bottom-color: #fff;
    cursor: default;
    filter: none;
}
a.cke_dialog_tab_selected:hover {
    background: #ededed;
    background: -moz-linear-gradient(top,#ededed 0,#fff 100%);
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#ededed),color-stop(100%,#fff));
    background: -webkit-linear-gradient(top,#ededed 0,#fff 100%);
    background: -o-linear-gradient(top,#ededed 0,#fff 100%);
    background: -ms-linear-gradient(top,#ededed 0,#fff 100%);
    background: linear-gradient(to bottom,#ededed 0,#fff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed',endColorstr='#ffffff',GradientType=0);
}
.cke_hc a.cke_dialog_tab:hover,
.cke_hc a.cke_dialog_tab_selected {
    border: 3px solid;
    padding: 2px 6px;
}
.cke_single_page .cke_dialog_tabs { display: none }
.cke_single_page .cke_dialog_contents {
    padding-top: 5px;
    margin-top: 0;
    border-top: 0;
}
.cke_dialog_close_button {
    background-image: url(images/close.png);
    background-repeat: no-repeat;
    background-position: 0 0;
    position: absolute;
    cursor: pointer;
    text-align: center;
    height: 20px;
    width: 20px;
    top: 5px;
    z-index: 5;
}
.cke_dialog_close_button span { display: none }
.cke_hc .cke_dialog_close_button span {
    display: inline;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    top: 3px;
}
.cke_ltr .cke_dialog_close_button { right: 5px }
.cke_rtl .cke_dialog_close_button { left: 6px }
.cke_dialog_close_button { top: 4px }
div.cke_disabled .cke_dialog_ui_labeled_content div * {
    background-color: #ddd;
    cursor: default;
}
.cke_dialog_ui_vbox table,
.cke_dialog_ui_hbox table { margin: auto }
.cke_dialog_ui_vbox_child { padding: 5px 0 }
.cke_dialog_ui_hbox { width: 100% }
.cke_dialog_ui_hbox_first,
.cke_dialog_ui_hbox_child,
.cke_dialog_ui_hbox_last { vertical-align: top }
.cke_ltr .cke_dialog_ui_hbox_first,
.cke_ltr .cke_dialog_ui_hbox_child { padding-right: 10px }
.cke_rtl .cke_dialog_ui_hbox_first,
.cke_rtl .cke_dialog_ui_hbox_child { padding-left: 10px }
.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,
.cke_ltr .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child { padding-right: 5px }
.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_first,
.cke_rtl .cke_dialog_footer_buttons .cke_dialog_ui_hbox_child {
    padding-left: 5px;
    padding-right: 0;
}
.cke_hc div.cke_dialog_ui_input_text,
.cke_hc div.cke_dialog_ui_input_password,
.cke_hc div.cke_dialog_ui_input_textarea,
.cke_hc div.cke_dialog_ui_input_select,
.cke_hc div.cke_dialog_ui_input_file { border: 1px solid }
textarea.cke_dialog_ui_input_textarea {
    overflow: auto;
    resize: none;
}
input.cke_dialog_ui_input_text,
input.cke_dialog_ui_input_password,
textarea.cke_dialog_ui_input_textarea {
    background-color: #fff;
    border: 1px solid #c9cccf;
    border-top-color: #aeb3b9;
    padding: 4px 6px;
    outline: 0;
    width: 100%;
    *width: 95%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
    box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
}
input.cke_dialog_ui_input_text:hover,
input.cke_dialog_ui_input_password:hover,
textarea.cke_dialog_ui_input_textarea:hover {
    border: 1px solid #aeb3b9;
    border-top-color: #a0a6ad;
}
input.cke_dialog_ui_input_text:focus,
input.cke_dialog_ui_input_password:focus,
textarea.cke_dialog_ui_input_textarea:focus,
select.cke_dialog_ui_input_select:focus {
    outline: 0;
    border: 1px solid #139ff7;
    border-top-color: #1392e9;
}
a.cke_dialog_ui_button {
    display: inline-block;
    *display: inline;
    *zoom: 1;
    padding: 3px 0;
    margin: 0;
    text-align: center;
    color: #333;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid #b6b6b6;
    border-bottom-color: #999;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0 1px 0 rgba(255,255,255,.5),0 0 2px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.15) inset;
    -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.5),0 0 2px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.15) inset;
    box-shadow: 0 1px 0 rgba(255,255,255,.5),0 0 2px rgba(255,255,255,.15) inset,0 1px 0 rgba(255,255,255,.15) inset;
    background: #e4e4e4;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#fff),to(#e4e4e4));
    background-image: -moz-linear-gradient(top,#fff,#e4e4e4);
    background-image: -webkit-linear-gradient(top,#fff,#e4e4e4);
    background-image: -o-linear-gradient(top,#fff,#e4e4e4);
    background-image: -ms-linear-gradient(top,#fff,#e4e4e4);
    background-image: linear-gradient(top,#fff,#e4e4e4);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ffffffff',endColorstr='#ffe4e4e4');
}
span.cke_dialog_ui_button { padding: 0 12px }
a.cke_dialog_ui_button:hover {
    border-color: #9e9e9e;
    background: #ccc;
    background-image: -webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#ccc));
    background-image: -moz-linear-gradient(top,#f2f2f2,#ccc);
    background-image: -webkit-linear-gradient(top,#f2f2f2,#ccc);
    background-image: -o-linear-gradient(top,#f2f2f2,#ccc);
    background-image: -ms-linear-gradient(top,#f2f2f2,#ccc);
    background-image: linear-gradient(top,#f2f2f2,#ccc);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#fff2f2f2',endColorstr='#ffcccccc');
}
a.cke_dialog_ui_button:focus,
a.cke_dialog_ui_button:active {
    border-color: #969696;
    outline: 0;
    -moz-box-shadow: 0 0 6px rgba(0,0,0,.4) inset;
    -webkit-box-shadow: 0 0 6px rgba(0,0,0,.4) inset;
    box-shadow: 0 0 6px rgba(0,0,0,.4) inset;
}
.cke_hc a.cke_dialog_ui_button:hover,
.cke_hc a.cke_dialog_ui_button:focus,
.cke_hc a.cke_dialog_ui_button:active {
    border: 3px solid;
    padding-top: 1px;
    padding-bottom: 1px;
}
.cke_hc a.cke_dialog_ui_button:hover span,
.cke_hc a.cke_dialog_ui_button:focus span,
.cke_hc a.cke_dialog_ui_button:active span {
    padding-left: 10px;
    padding-right: 10px;
}
a.cke_dialog_ui_button_ok span,
a.cke_dialog_ui_button_cancel span {
    color: inherit;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 0 #fff;
    line-height: 20px;
}
a.cke_dialog_ui_button_ok {
    color: #fff;
    text-shadow: 0 -1px 0 #55830c;
    border-color: #62a60a #62a60a #4d9200;
    background: #69b10b;
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#9ad717),to(#69b10b));
    background-image: -webkit-linear-gradient(top,#9ad717,#69b10b);
    background-image: -o-linear-gradient(top,#9ad717,#69b10b);
    background-image: linear-gradient(to bottom,#9ad717,#69b10b);
    background-image: -moz-linear-gradient(top,#9ad717,#69b10b);
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ff9ad717',endColorstr='#ff69b10b');
}
a.cke_dialog_ui_button_ok:hover {
    border-color: #5b9909 #5b9909 #478500;
    background: #88be14;
    background: -webkit-gradient(linear,left top,left bottom,color-stop(0%,#88be14),color-stop(100%,#5d9c0a));
    background: -webkit-linear-gradient(top,#88be14 0,#5d9c0a 100%);
    background: -o-linear-gradient(top,#88be14 0,#5d9c0a 100%);
    background: linear-gradient(to bottom,#88be14 0,#5d9c0a 100%);
    background: -moz-linear-gradient(top,#88be14 0,#5d9c0a 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#88be14',endColorstr='#5d9c0a',GradientType=0);
}
a.cke_dialog_ui_button_ok span { text-shadow: 0 -1px 0 #55830c }
span.cke_dialog_ui_button { cursor: pointer }
a.cke_dialog_ui_button_ok:focus,
a.cke_dialog_ui_button_ok:active,
a.cke_dialog_ui_button_cancel:focus,
a.cke_dialog_ui_button_cancel:active {
    border-width: 2px;
    padding: 2px 0;
}
a.cke_dialog_ui_button_ok:focus,
a.cke_dialog_ui_button_ok:active { border-color: #568c0a }
a.cke_dialog_ui_button_ok:focus span,
a.cke_dialog_ui_button_ok:active span,
a.cke_dialog_ui_button_cancel:focus span,
a.cke_dialog_ui_button_cancel:active span { padding: 0 11px }
.cke_dialog_footer_buttons {
    display: inline-table;
    margin: 5px;
    width: auto;
    position: relative;
    vertical-align: middle;
}
div.cke_dialog_ui_input_select { display: table }
select.cke_dialog_ui_input_select {
    height: 24px;
    line-height: 24px;
    background-color: #fff;
    border: 1px solid #c9cccf;
    border-top-color: #aeb3b9;
    padding: 2px 6px;
    outline: 0;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
    box-shadow: 0 1px 2px rgba(0,0,0,.15) inset;
}
.cke_dialog_ui_input_file {
    width: 100%;
    height: 25px;
}
.cke_hc .cke_dialog_ui_labeled_content input:focus,
.cke_hc .cke_dialog_ui_labeled_content select:focus,
.cke_hc .cke_dialog_ui_labeled_content textarea:focus { outline: 1px dotted }
.cke_dialog .cke_dark_background { background-color: #dedede }
.cke_dialog .cke_light_background { background-color: #ebebeb }
.cke_dialog .cke_centered { text-align: center }
.cke_dialog a.cke_btn_reset {
    float: right;
    background-position: 0 -32px;
    background-image: url(images/mini.png);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    border: 1px none;
    font-size: 1px;
}
.cke_rtl .cke_dialog a.cke_btn_reset { float: left }
.cke_dialog a.cke_btn_locked,
.cke_dialog a.cke_btn_unlocked {
    float: left;
    background-position: 0 0;
    background-image: url(images/mini.png);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    border: none 1px;
    font-size: 1px;
}
.cke_dialog a.cke_btn_locked .cke_icon { display: none }
.cke_rtl .cke_dialog a.cke_btn_locked,
.cke_rtl .cke_dialog a.cke_btn_unlocked { float: right }
.cke_dialog a.cke_btn_unlocked {
    background-position: 0 -16px;
    background-image: url(images/mini.png);
}
.cke_dialog .cke_btn_over {
    border: outset 1px;
    cursor: pointer;
}
.cke_dialog .ImagePreviewBox {
    border: 2px ridge black;
    overflow: scroll;
    height: 200px;
    width: 300px;
    padding: 2px;
    background-color: white;
}
.cke_dialog .ImagePreviewBox table td { white-space: normal }
.cke_dialog .ImagePreviewLoader {
    position: absolute;
    white-space: normal;
    overflow: hidden;
    height: 160px;
    width: 230px;
    margin: 2px;
    padding: 2px;
    opacity: .9;
    filter: alpha(opacity = 90);
    background-color: #e4e4e4;
}
.cke_dialog .FlashPreviewBox {
    white-space: normal;
    border: 2px ridge black;
    overflow: auto;
    height: 160px;
    width: 390px;
    padding: 2px;
    background-color: white;
}
.cke_dialog .cke_pastetext {
    width: 346px;
    height: 170px;
}
.cke_dialog .cke_pastetext textarea {
    width: 340px;
    height: 170px;
    resize: none;
}
.cke_dialog iframe.cke_pasteframe {
    width: 346px;
    height: 130px;
    background-color: white;
    border: 1px solid #aeb3b9;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}
.cke_dialog .cke_hand { cursor: pointer }
.cke_disabled { color: #a0a0a0 }
.cke_dialog_body .cke_label { display: none }
.cke_dialog_body label {
    display: inline;
    margin-bottom: auto;
    cursor: default;
}
.cke_dialog_body label.cke_required { font-weight: bold }
a.cke_smile {
    overflow: hidden;
    display: block;
    text-align: center;
    padding: .3em 0;
}
a.cke_smile img { vertical-align: middle }
a.cke_specialchar {
    cursor: inherit;
    display: block;
    height: 1.25em;
    padding: .2em .3em;
    text-align: center;
}
a.cke_smile,
a.cke_specialchar { border: 1px solid transparent }
a.cke_smile:hover,
a.cke_smile:focus,
a.cke_smile:active,
a.cke_specialchar:hover,
a.cke_specialchar:focus,
a.cke_specialchar:active {
    background: #fff;
    outline: 0;
}
a.cke_smile:hover,
a.cke_specialchar:hover { border-color: #888 }
a.cke_smile:focus,
a.cke_smile:active,
a.cke_specialchar:focus,
a.cke_specialchar:active { border-color: #139ff7 }
.cke_dialog_contents a.colorChooser {
    display: block;
    margin-top: 6px;
    margin-left: 10px;
    width: 80px;
}
.cke_rtl .cke_dialog_contents a.colorChooser { margin-right: 10px }
.cke_dialog_ui_checkbox_input:focus,
.cke_dialog_ui_radio_input:focus,
.cke_btn_over { outline: 1px dotted #696969 }
.cke_iframe_shim {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: alpha(opacity = 0);
    width: 100%;
    height: 100%;
}

redpajama_set_name: RedPajamaGithub


text:
using System.ServiceModel;

namespace Thinktecture.Wscf.Framework.CodeGeneration
{
	/// <summary>
	/// A builder for creating <see cref="FaultImportOptions"/> instances.
	/// </summary>
	public class FaultImportOptionsBuilder : IFaultImportOptionsBuilder
	{
		/// <summary>
		/// Builds a new instance.
		/// </summary>
		/// <returns>A new <see cref="FaultImportOptions"/> instance.</returns>
		public FaultImportOptions Build()
		{
			return new FaultImportOptions {UseMessageFormat = true};
		}
	}
}


text:
package sbahjsic.interpreter.parser.syntaxtree;

import java.util.Arrays;

import sbahjsic.interpreter.compiler.Instruction;
import sbahjsic.interpreter.parser.Node;
import sbahjsic.interpreter.parser.NodeType;

public final class FunctionNode extends Node {

	private final String name;
	private final String[] args;
	private final boolean isLocal;

	public FunctionNode(String name, String[] args) {
		this.name = name;
		this.args = args;
		this.isLocal = false;
	}

	public FunctionNode(String name, String[] args, boolean isLocal) {
		this.name = name;
		this.args = args;
		this.isLocal = isLocal;
	}

	@Override
	public NodeType type() {
		return NodeType.FUNCTION_NODE;
	}

	@Override
	public Instruction[] toInstructions() {
		Instruction[] instructions = new Instruction[args.length + 2];

		for(int i = 0; i < args.length; i++) {
			instructions[i] = Instruction.pushString(args[args.length - 1 - i]);
		}

		instructions[instructions.length - 2] = Instruction.pushString(name);
		instructions[instructions.length - 1] = Instruction.function(args.length, isLocal);

		return instructions;
	}

	@Override
	public String toString() {
		return "FUNCTION" + (isLocal ? "_LOCAL" : "") +"{"+name+", " + Arrays.toString(args) + "}";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + Arrays.hashCode(args);
		result = prime * result + (isLocal ? 1231 : 1237);
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		FunctionNode other = (FunctionNode) obj;
		if (!Arrays.equals(args, other.args))
			return false;
		if (isLocal != other.isLocal)
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}

}


text:
// Copyright (c) 2013 Antya Dev
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using KingAOP.Aspects;
using KingAOP.Core.Methods;
using KingAOP.Core.Properties;

namespace KingAOP
{
    /// <summary>
    /// Represent weaver for weaving aspects.
    /// </summary>
    public class AspectWeaver : DynamicMetaObject
    {
        readonly Type _objType;

        public AspectWeaver(Expression expression, object obj)
            : base(expression, BindingRestrictions.Empty, obj)
        {
            _objType = obj.GetType();
        }

        public override DynamicMetaObject BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args)
        {
            var metaObj = base.BindInvokeMember(binder, args);

            var argsTypes = GetMethodArgsTypes(metaObj);
            var method = _objType.GetMethod(binder.Name,
                BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic,
                null,
                argsTypes,
                null);

            if (method != null && method.IsDefined(typeof(IMethodAspect), false))
            {
                var aspects = RetrieveAspects(method);

                if (method.IsDefined(typeof(OnMethodBoundaryAspect), false))
                {
                    metaObj = new BoundaryAspectGenerator(Value, metaObj, aspects.Cast<OnMethodBoundaryAspect>(), method, args, argsTypes).Generate();
                }
                else
                {
                    metaObj = new InterceptionAspectGenerator(Value, metaObj.Restrictions, aspects.Cast<MethodInterceptionAspect>(), method, args, argsTypes).Generate();
                }
            }
            return metaObj;
        }

        public override DynamicMetaObject BindGetMember(GetMemberBinder binder)
        {
            var metaObj = base.BindGetMember(binder);

            var property = _objType.GetProperty(binder.Name,
                BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

            if (property != null && property.IsDefined(typeof(IAspect), false))
            {
                var aspects = RetrieveAspects(property);
                metaObj = new GetterGenerator(Value, metaObj.Restrictions, aspects, property).Generate();
            }
            return metaObj;
        }

        public override DynamicMetaObject BindSetMember(SetMemberBinder binder, DynamicMetaObject value)
        {
            var metaObj = base.BindSetMember(binder, value);

            var property = _objType.GetProperty(binder.Name,
                BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);

            if (property != null && property.IsDefined(typeof(IAspect), false))
            {
                var aspects = RetrieveAspects(property);
                metaObj = new SetterGenerator(Value, metaObj, aspects, property, value).Generate();
            }
            return metaObj;
        }

        IEnumerable RetrieveAspects(MemberInfo member)
        {
            var aspects = new SortedList<int, object>(new InvertedComparer());
            foreach (Aspect aspect in member.GetCustomAttributes(typeof(Aspect), false))
            {
                var instance = Activator.CreateInstance(aspect.GetType());
                aspects.Add(aspect.AspectPriority, instance);
            }
            return aspects.Values;
        }

        Type[] GetMethodArgsTypes(DynamicMetaObject metaObj)
        {
            MethodCallExpression callExpr = RetrieveMethodCall(metaObj);
            return (callExpr).Arguments.Select(arg =>
            {
                if (arg.NodeType != ExpressionType.Parameter) return arg.Type;

                return ((ParameterExpression)arg).IsByRef ? arg.Type.MakeByRefType() : arg.Type;
            }).ToArray();
        }

        MethodCallExpression RetrieveMethodCall(DynamicMetaObject metaObj)
        {
            Expression callExpr = null;

            while (callExpr == null || callExpr.NodeType != ExpressionType.Call)
            {
                switch (metaObj.Expression.NodeType)
                {
                    case ExpressionType.Call: return (MethodCallExpression)metaObj.Expression;

                    case ExpressionType.Block:
                        var block = (BlockExpression)metaObj.Expression;
                        return (MethodCallExpression)block.Expressions.First(expr => expr.NodeType == ExpressionType.Call);

                    case ExpressionType.Convert: callExpr = ((UnaryExpression)metaObj.Expression).Operand; break;

                    default: throw new NotImplementedException();
                }
            }
            return (MethodCallExpression)callExpr;
        }

        internal class InvertedComparer : IComparer<int>
        {
            public int Compare(int x, int y)
            {
                return y.CompareTo(x);
            }
        }
    }
}


text:
require_relative 'import'

module MobileDevicePool
  class App < Sinatra::Base
    register Sinatra::Namespace

    not_found do
      if request.accept?('text/html')
        send_file 'views/404.html'
      elsif request.accept?('application/json')
        content_type :json
        return {'error' => 'Not Found'}.to_json
      else
        send_file 'views/404.html'
      end
    end

    error 500..599 do
      if request.accept?('text/html')
        send_file 'views/error.html'
      elsif request.accept?('application/json')
        content_type :json
        return {'error' => env['sinatra.error'].message}.to_json
      else
        send_file 'views/error.html'
      end
    end

    namespace '/api' do
      post '/adb/action/restart/?' do
        content_type :json
        result = Adb.restart_server
        result.first ? [200, result[1].to_json] : [500, result[1].to_json]
      end
    end

    namespace '/' do
      get '/?' do
        redirect '/devices'
      end
    end
  end
end


text:
      subroutine rand(seed,n,vector)
C%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
C                                                                      %
C Copyright (C) 1996, The Board of Trustees of the Leland Stanford     %
C Junior University.  All rights reserved.                             %
C                                                                      %
C The programs in GSLIB are distributed in the hope that they will be  %
C useful, but WITHOUT ANY WARRANTY.  No author or distributor accepts  %
C responsibility to anyone for the consequences of using them or for   %
C whether they serve any particular purpose or work at all, unless he  %
C says so in writing.  Everyone is granted permission to copy, modify  %
C and redistribute the programs in GSLIB, but only under the condition %
C that this notice and the above copyright notice remain intact.       %
C                                                                      %
C%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
c---------------------------------------------------------------------
c
c This random number generator generates random numbers in ]0,1[
c Note that if the seed value is zero on the first call, a default
c value of 7931 will be used  in a linear congruential generator to
c generate 55 odd integers for the array 'itab()'. These values are
c preserved by a common statement, so that they may be used in sub-
c sequent calls by setting the seed to zero.If the value of 'seed'
c is greater than zero in a call to the subroutine, then the array
c 'itab' will be initialized and a new seed value will be returned
c by the subroutine. Best results are obtained by making the initial
c call with a seed of your choice and then setting the seed to '0'
c for all subsequent calls.
c
c---------------------------------------------------------------------
      dimension vector(*)
      common /unusual/itab(55),n1,n2,nseed
      integer rn1,seed
c
c Test to see if 55 odd integers must be generated.
c
      if((seed.gt.0).or.(nseed.lt.1)) then
            nseed = seed
            if(seed.le.0) nseed  = 7931
            do i=1,55
                  rn1=mod(nseed*9069,32768)
                  if(mod(rn1,2).eq.0) rn1 = rn1-1
                  itab(i) = rn1
                  nseed = rn1
            end do
            n1 = 0
            n2 = 24
      endif
c
c Generate "n" random components for the vector "VECTOR"
c
      do i=1,n
            itab(55-n1) = mod(itab(55-n2)*itab(55-n1),32768)
            vector(i)   = abs(float(itab(55-n1))/float(32768))
            n1 = mod(n1+1,55)
            n2 = mod(n2+1,55)
      end do
      if(seed.gt.0) seed=nseed
c
c Return with the vector of random numbers:
c
      return
      end


text:
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RoboBraille.WebApi.Models
{
    public class TranslationJob : Job
    {
        [NotMapped]
        public string SourceLanguage { get; set; }
        [NotMapped]
        public string TargetLanguage { get; set; }
    }
}


text:
package com.google.android.gms.wearable;

import com.google.android.gms.common.api.Result;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.data.DataBuffer;
import com.google.android.gms.common.data.DataHolder;

import org.microg.gms.common.PublicApi;

@PublicApi
public class DataItemBuffer extends DataBuffer<DataItem> implements Result {
    private Status status;

    @PublicApi(exclude = true)
    public DataItemBuffer(DataHolder dataHolder) {
        super(dataHolder);
        status = new Status(dataHolder.getStatusCode());
    }

    @Override
    public DataItem get(int position) {
        return null;
    }

    @Override
    public Status getStatus() {
        return null;
    }
}


text:
import AbstractTreeView from 'OpenOrchestra/Application/View/Tree/AbstractTreeView'
import Nodes            from 'OpenOrchestra/Application/Collection/Node/Nodes'
import ApplicationError from 'OpenOrchestra/Service/Error/ApplicationError'
import Application      from 'OpenOrchestra/Application/Application'

/**
 * @class NodesTreeView
 */
class NodesTreeView extends AbstractTreeView
{
    /**
     * @inheritdoc
     */
    preinitialize() {
        super.preinitialize();
        this.events['click .legend-panel .panel-heading'] = '_toggleLegend';
    }

    /**
     * Initialize
     * @param {Statuses} statuses
     * @param {NodeTree} nodesTree
     * @param {string}   language
     */
    initialize({statuses, nodesTree, language}) {
        this._statuses = statuses;
        this._nodesTree = nodesTree;
        this._language = language
    }

    /**
     * Get the tree template
     * @return {Object}
     * @private
     */
    _getTreeTemplate() {
        return this._renderTemplate('Node/nodesTreeView',
            {
                nodesTree : this._nodesTree.models,
                statuses: this._statuses.models,
                language: this._language,
                siteLanguages: Application.getContext().get('siteLanguages')
            }
        );
    }

    /**
     * @param {Object} event
     * @param {Object} ui
     * @private
     */
    _sortAction(event, ui) {
        let $nodes = $(ui.item).parent().children();
        let parentId = $(ui.item).parent().parent('li').data('node-id');
        if (typeof parentId === 'undefined') {
            throw new ApplicationError('undefined parent node id');
        }
        let nodes = [];

        $.each($nodes, function(index, node) {
            nodes.push({'node_id': $(node).data('node-id')})
        });

        nodes = new Nodes(nodes);
        nodes.save({
            urlParameter: {
                'nodeId': parentId
            }
        });
    }

    /**
     * Toggle legend
     *
     * @returns {boolean}
     * @private
     */
    _toggleLegend() {
        $('.legend-panel .panel-body', this.$el).slideToggle();

        return false;
    }
}

export default NodesTreeView;


text:
<?php

namespace Recca0120\Rbac\Traits;

trait RoleTrait
{
    /*
     * bootRoleTrait.
     */
    public static function bootRoleTrait()
    {
        static::saved(function ($model) {
            $model->permissions()->getRelated()->fireModelEvent('saved', false);
        }, 99);
    }
}


text:
<component name="libraryTable">
  <library name="socialauth-4.4">
    <CLASSES>
      <root url="jar://$PROJECT_DIR$/utils/libs/socialauth-4.4.jar!/" />
    </CLASSES>
    <JAVADOC />
    <SOURCES />
  </library>
</component>


text:
package com.zang.api.domain.list;

import com.zang.api.domain.Transcription;
import com.zang.api.domain.ZangList;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.List;

public class TranscriptionsList extends ZangList<Transcription> {

    @Override
    @JsonProperty("transcriptions")
    protected void mapElements(List<Transcription> elements) {
        setElements(elements);
    }

}


text:
package lt.baraksoft.summersystem.model;

import javax.annotation.Generated;
import javax.persistence.metamodel.SetAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
import java.time.LocalDate;

@Generated(value = "Dali", date = "2016-03-19T10:09:57.650+0300")
@StaticMetamodel(User.class)
public class User_ {
	public static volatile SingularAttribute<User, Integer> id;
	public static volatile SingularAttribute<User, String> firstname;
	public static volatile SingularAttribute<User, String> lastname;
	public static volatile SingularAttribute<User, String> email;
	public static volatile SingularAttribute<User, String> facebookId;
	public static volatile SingularAttribute<User, LocalDate> birthdate;
	public static volatile SingularAttribute<User, String> password;
	public static volatile SingularAttribute<User, Boolean> approved;
	public static volatile SingularAttribute<User, Integer> points;
	public static volatile SingularAttribute<User, Integer> groupNumber;
	public static volatile SingularAttribute<User, Boolean> archived;
	public static volatile SingularAttribute<User, LocalDate> validTo;
	public static volatile SetAttribute<User, Reservation> reservationList;

}


text:
/**
 */
package pcmarchoptions;

import archoptions.NeverAllocateToSpecificNodes;

import org.eclipse.emf.common.util.EList;

import org.palladiosimulator.pcm.allocation.AllocationContext;

import org.palladiosimulator.pcm.resourceenvironment.ResourceContainer;

/**
 *
 * A representation of the model object 'PCM Never Allocate To Specific Nodes'.
 *
 *
 *

 * The following features are supported:
 *

 *

 *
{@link pcmarchoptions.PCM_NeverAllocateToSpecificNodes#getAllocationContexts Allocation Contexts}

 *
{@link pcmarchoptions.PCM_NeverAllocateToSpecificNodes#getHwNodes Hw Nodes}

 *

 *
 * @see pcmarchoptions.PcmarchoptionsPackage#getPCM_NeverAllocateToSpecificNodes()
 * @model annotation="http://www.eclipse.org/emf/2002/Ecore constraints='NeverAllocateToSpecificNodes'"
 *        annotation="http://www.eclipse.org/emf/2002/Ecore/OCL NeverAllocateToSpecificNodes='allocationContexts->forAll(a:allocation::AllocationContext | not hwNodes->exists(h|a.resourceContainer_AllocationContext=h))'"
 * @generated
 */
public interface PCM_NeverAllocateToSpecificNodes extends NeverAllocateToSpecificNodes {
	/**
	 * Returns the value of the 'Allocation Contexts' reference list.
	 * The list contents are of type {@link org.palladiosimulator.pcm.allocation.AllocationContext}.
	 *
	 *

	 * If the meaning of the 'Allocation Contexts' reference list isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Allocation Contexts' reference list.
	 * @see pcmarchoptions.PcmarchoptionsPackage#getPCM_NeverAllocateToSpecificNodes_AllocationContexts()
	 * @model required="true"
	 * @generated
	 */
	EList<AllocationContext> getAllocationContexts();

	/**
	 * Returns the value of the 'Hw Nodes' reference list.
	 * The list contents are of type {@link org.palladiosimulator.pcm.resourceenvironment.ResourceContainer}.
	 *
	 *

	 * If the meaning of the 'Hw Nodes' reference list isn't clear,
	 * there really should be more of a description here...
	 *

	 *
	 * @return the value of the 'Hw Nodes' reference list.
	 * @see pcmarchoptions.PcmarchoptionsPackage#getPCM_NeverAllocateToSpecificNodes_HwNodes()
	 * @model required="true"
	 * @generated
	 */
	EList<ResourceContainer> getHwNodes();

} // PCM_NeverAllocateToSpecificNodes


text:
package org.unitime.timetable.util;

import java.net.URL;
import java.util.Locale;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.commons.configuration.event.ConfigurationEvent;
import org.apache.commons.configuration.event.ConfigurationListener;
import org.apache.commons.configuration.reloading.FileChangedReloadingStrategy;
import org.unitime.commons.Debug;
import org.unitime.timetable.ApplicationProperties;
import org.unitime.timetable.listeners.SessionListener;

/**
 * Custom Implementation of MessageResources using Commons Configuration
 * Searches for file messages_{locale language}.properties.
 * If not found uses messages.properties.
 * Used mainly in development to avoid reloading of application.
 *
 * @author Heston Fernandes, Tomas Muller
 */
public class MessageResources extends org.apache.struts.util.MessageResources {
	private static final long serialVersionUID = -3234198544455822319L;

	private static PropertiesConfiguration resource;
	private static String resourceFile;

	public MessageResources(
			MessageResourcesFactory factory,
			String config, boolean returnNull ) {
		super(factory, config, returnNull);
	}

	public MessageResources(
			MessageResourcesFactory factory, String config ) {
		super(factory, config);
	}

	@Override
	public String getMessage(Locale locale, String key) {

		// See MessageResource documentation for complete list and order of search of respurce bundles
		// For our purpose only 2 file names are searched
		if (resource==null) {

			// get the configuration for the specified locale
			resource = (PropertiesConfiguration) getConfiguration(
					this.config + "_" + locale.getLanguage() + ".properties");
			resourceFile = this.config + "_" + locale.getLanguage() + ".properties";

			if (resource == null || !resource.containsKey(key)) {
				// look for the key in the root configuration
				resource = (PropertiesConfiguration) getConfiguration(this.config + ".properties");
				resourceFile = this.config + ".properties";
			}

			if (resource==null)
				return null;
		}
		System.out.println(key + " - " + resource.getString(key));
		return resource.getString(key);
	}

	private Configuration getConfiguration(String name) {
		Configuration configuration = null;
		URL url = Thread.currentThread().getContextClassLoader().getResource(name);
		if (url != null) {
			PropertiesConfiguration pc = new PropertiesConfiguration();
			pc.setURL(url);

			// Set reloading strategy
			String dynamicReload = ApplicationProperties.getProperty("tmtbl.properties.dynamic_reload", null);
			if (dynamicReload!=null && dynamicReload.equalsIgnoreCase("true")) {
				long refreshDelay = Constants.getPositiveInteger(
						ApplicationProperties.getProperty("tmtbl.properties.dynamic_reload_interval"), 15000 );

				FileChangedReloadingStrategy strategy = new FileChangedReloadingStrategy();
				strategy.setRefreshDelay(refreshDelay);
				pc.setReloadingStrategy(strategy);

				pc.addConfigurationListener(new MessageResourcesCfgListener(pc.getBasePath()));
			}

			try {
				pc.load();
				configuration = pc;
			} catch (ConfigurationException e) {
				Debug.error("Message Resources configuration exception: " + e.getMessage());
			}
		}

		return configuration;
	}

	public static PropertiesConfiguration getResource() {
		return resource;
	}

	public static void setResource(PropertiesConfiguration resource) {
		MessageResources.resource = resource;
	}

	public static String getResourceFile() {
		return resourceFile;
	}

	public static void setResourceFile(String resourceFile) {
		MessageResources.resourceFile = resourceFile;
	}

	class MessageResourcesCfgListener implements ConfigurationListener {

		private String basePath;

		public MessageResourcesCfgListener(String basePath) {
			this.basePath = basePath;
		}

		public void configurationChanged(ConfigurationEvent arg0) {
			SessionListener.reloadMessageResources(basePath);
		}

	}
}


text:
ALTER TABLE cohort_generation_info DROP CONSTRAINT FK_cdd_cd;

DROP TABLE cohort_generation_info;

CREATE TABLE cohort_generation_info (
    id                 Number(10)      NOT NULL,
    source_id          Number(10)      NOT NULL,
    start_time         Timestamp(3) NULL,
    execution_duration Number(10)      NULL,
    status             Number(10)      NOT NULL,
    is_valid           Number(1)      NOT NULL,
    CONSTRAINT PK_cohort_generation_info PRIMARY KEY (id, source_id),
    CONSTRAINT FK_cgi_cd FOREIGN KEY(id)
      REFERENCES cohort_definition (id)
      ON DELETE CASCADE
);


text:
@interface UIImage (Helpers)
+ (UIImage *)imageWithImage:(UIImage *)image scaledToSize:(CGSize)newSize;

@end


text:
#include "aes_alt.h"
#include "mbedtls/aes.h"

#ifdef MBEDTLS_AES_ALT

#include <driverlib/crypto.h>
#include <driverlib/prcm.h>
#include <string.h>
#include <utils/code_utils.h>

#define CC2650_AES_KEY_UNUSED (-1)
#define CC2650_AES_CTX_MAGIC (0x7E)

/**
 * bitmap of which key stores are currently used
 */
static uint8_t sUsedKeys = 0;

/**
 * number of active contexts, used for power on/off of the crypto core
 */
static unsigned int sRefNum = 0;

void mbedtls_aes_init(mbedtls_aes_context *ctx)
{
    if (sRefNum++ == 0)
    {
        /* enable the crypto core */
        /* The TRNG should already be running before we ever ask the AES core
         * to do anything, if there is any scenario that the TRNG powers off
         * the peripheral power domain use this code to repower it

        PRCMPowerDomainOn(PRCM_DOMAIN_PERIPH);
        while (PRCMPowerDomainStatus(PRCM_DOMAIN_PERIPH) != PRCM_DOMAIN_POWER_ON);
        */
        PRCMPeripheralRunEnable(PRCM_PERIPH_CRYPTO);
        PRCMPeripheralSleepEnable(PRCM_PERIPH_CRYPTO);
        PRCMPeripheralDeepSleepEnable(PRCM_PERIPH_CRYPTO);
        PRCMLoadSet();

        while (!PRCMLoadGet())
            ;
    }

    ctx->magic   = CC2650_AES_CTX_MAGIC;
    ctx->key_idx = CC2650_AES_KEY_UNUSED;
}

void mbedtls_aes_free(mbedtls_aes_context *ctx)
{
    otEXPECT(ctx->magic == CC2650_AES_CTX_MAGIC);

    if (ctx->key_idx != CC2650_AES_KEY_UNUSED)
    {
        sUsedKeys &= ~(1 << ctx->key_idx);
    }

    if (--sRefNum == 0)
    {
        /* disable the crypto core */
        /* The TRNG core needs the peripheral power domain powered on to
         * function. if there is a situation where the power domain must be
         * powered off, use this code to do so.

        PRCMPowerDomainOff(PRCM_DOMAIN_PERIPH);
        while (PRCMPowerDomainStatus(PRCM_DOMAIN_PERIPH) != PRCM_DOMAIN_POWER_OFF);
        */
        PRCMPeripheralRunDisable(PRCM_PERIPH_CRYPTO);
        PRCMPeripheralSleepDisable(PRCM_PERIPH_CRYPTO);
        PRCMPeripheralDeepSleepDisable(PRCM_PERIPH_CRYPTO);
        PRCMLoadSet();

        while (!PRCMLoadGet())
            ;
    }

    memset((void *)ctx, 0x00, sizeof(ctx));

exit:
    return;
}

int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits)
{
    unsigned char key_idx;
    int           retval = 0;

    otEXPECT_ACTION(ctx->magic == CC2650_AES_CTX_MAGIC, retval = -1);

    if (ctx->key_idx != CC2650_AES_KEY_UNUSED)
    {
        sUsedKeys &= ~(1 << ctx->key_idx);
    }

    /* our hardware only supports 128 bit keys */
    otEXPECT_ACTION(keybits == 128u, retval = MBEDTLS_ERR_AES_INVALID_KEY_LENGTH);

    for (key_idx = 0; ((sUsedKeys >> key_idx) & 0x01) != 0 && key_idx < 8; key_idx++)
        ;

    /* we have no more room for this key */
    otEXPECT_ACTION(key_idx < 8, retval = -2);

    otEXPECT_ACTION(CRYPTOAesLoadKey((uint32_t *)key, key_idx) == AES_SUCCESS,
                    retval = MBEDTLS_ERR_AES_INVALID_KEY_LENGTH);

    sUsedKeys |= (1 << key_idx);
    ctx->key_idx = key_idx;
exit:
    return retval;
}

int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, unsigned int keybits)
{
    unsigned char key_idx;
    int           retval = 0;

    otEXPECT_ACTION(ctx->magic == CC2650_AES_CTX_MAGIC, retval = -1);

    if (ctx->key_idx != CC2650_AES_KEY_UNUSED)
    {
        sUsedKeys &= ~(1 << ctx->key_idx);
    }

    /* our hardware only supports 128 bit keys */
    otEXPECT_ACTION(keybits == 128u, retval = MBEDTLS_ERR_AES_INVALID_KEY_LENGTH);

    for (key_idx = 0; ((sUsedKeys >> key_idx) & 0x01) != 0 && key_idx < 8; key_idx++)
        ;

    /* we have no more room for this key */
    otEXPECT_ACTION(key_idx < 8, retval = -2);

    otEXPECT_ACTION(CRYPTOAesLoadKey((uint32_t *)key, key_idx) == AES_SUCCESS,
                    retval = MBEDTLS_ERR_AES_INVALID_KEY_LENGTH);

    sUsedKeys |= (1 << key_idx);
    ctx->key_idx = key_idx;
exit:
    return retval;
}

/**
 * \brief          AES-ECB block encryption/decryption
 *
 * \param ctx      AES context
 * \param mode     MBEDTLS_AES_ENCRYPT or MBEDTLS_AES_DECRYPT
 * \param input    16-byte input block
 * \param output   16-byte output block
 *
 * \return         0 if successful
 */
int mbedtls_aes_crypt_ecb(mbedtls_aes_context *ctx, int mode, const unsigned char input[16], unsigned char output[16])
{
    int retval = -1;

    retval = CRYPTOAesEcb((uint32_t *)input, (uint32_t *)output, ctx->key_idx, mode == MBEDTLS_AES_ENCRYPT, false);
    otEXPECT(retval == AES_SUCCESS);

    while ((retval = CRYPTOAesEcbStatus()) == AES_DMA_BSY)
        ;

    CRYPTOAesEcbFinish();

exit:
    return retval;
}

#endif /* MBEDTLS_AES_ALT */


text:
package org.zeroturnaround.exec.stream.slf4j;

import org.slf4j.Logger;
import org.zeroturnaround.exec.stream.LogOutputStream;

/**
 * Output stream that writes to a given {@link Logger}.
 *
 * @author Rein Raudjärv
 */
public abstract class Slf4jOutputStream extends LogOutputStream {

  protected final Logger log;

  public Slf4jOutputStream(Logger logger) {
    this.log = logger;
  }

  public Logger getLogger() {
    return log;
  }

}