text:
package dev.nick.app.wildcard.repo;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

class SqlHelper extends SQLiteOpenHelper {

    static final String TABLE_NAME = "pkgs";
    private static final String DATABASE_NAME = "pkgs.db";
    private static final int DATABASE_VERSION = 1;

    SqlHelper(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("CREATE TABLE "
                + TABLE_NAME
                + " (_id integer primary key autoincrement, pkgName TEXT, name TEXT, accessTimes INTEGER, lastAccessTime LONG)");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
        onCreate(db);
    }
}


text:
/* global grunionEditorView, tinyMCE, QTags, wp */
( function( $, wp, grunionEditorView ) {
	wp.mce = wp.mce || {};
	if ( 'undefined' === typeof wp.mce.views ) {
		return;
	}

	wp.mce.grunion_wp_view_renderer = {
		shortcode_string : 'contact-form',
		template       : wp.template( 'grunion-contact-form' ),
		field_templates: {
			email               : wp.template( 'grunion-field-email' ),
			telephone           : wp.template( 'grunion-field-telephone' ),
			textarea            : wp.template( 'grunion-field-textarea' ),
			radio               : wp.template( 'grunion-field-radio' ),
			checkbox            : wp.template( 'grunion-field-checkbox' ),
			'checkbox-multiple' : wp.template( 'grunion-field-checkbox-multiple' ),
			select              : wp.template( 'grunion-field-select' ),
			date                : wp.template( 'grunion-field-date' ),
			text                : wp.template( 'grunion-field-text' ),
			name                : wp.template( 'grunion-field-text' ),
			url                 : wp.template( 'grunion-field-url' )
		},
		edit_template  : wp.template( 'grunion-field-edit' ),
		editor_inline  : wp.template( 'grunion-editor-inline' ),
		editor_option  : wp.template( 'grunion-field-edit-option' ),
		getContent     : function() {
			var content = this.shortcode.content,
				index = 0,
				field, named,
				body = '';

			// If it's the legacy `[contact-form /]` syntax, populate default fields.
			if ( ! content ) {
				content = grunionEditorView.default_form;
			}

			// Render the fields.
			while ( ( field = wp.shortcode.next( 'contact-field', content, index ) ) ) {
				index = field.index + field.content.length;
				named = field.shortcode.attrs.named;
				if ( ! named.type || ! this.field_templates[ named.type ] ) {
					named.type = 'text';
				}
				if ( named.required ) {
					named.required = grunionEditorView.labels.required_field_text;
				}
				if ( named.options && 'string' === typeof named.options ) {
					named.options = named.options.split( ',' );
				}
				body += this.field_templates[ named.type ]( named );
			}

			var options = {
				body : body,
				submit_button_text : grunionEditorView.labels.submit_button_text
			};

			return this.template( options );
		},
		edit: function( data, update_callback ) {
			var shortcode_data = wp.shortcode.next( this.shortcode_string, data ),
				shortcode = shortcode_data.shortcode,
				$tinyMCE_document = $( tinyMCE.activeEditor.getDoc() ),
				$view = $tinyMCE_document.find( '.wpview.wpview-wrap' ).filter( function() {
					return $( this ).attr( 'data-mce-selected' );
				} ),
				$editframe = $( '<iframe scrolling="no" class="inline-edit-contact-form" />' ),
				index = 0,
				named,
				fields = '',
				field;

			if ( ! shortcode.content ) {
				shortcode.content = grunionEditorView.default_form;
			}

			// Render the fields.
			while ( ( field = wp.shortcode.next( 'contact-field', shortcode.content, index ) ) ) {
				index = field.index + field.content.length;
				named = field.shortcode.attrs.named;
				if ( named.options && 'string' === typeof named.options ) {
					named.options = named.options.split( ',' );
				}
				fields += this.edit_template( named );
			}

			$editframe.on( 'checkheight', function() {
				var innerDoc = ( this.contentDocument ) ? this.contentDocument : this.contentWindow.document;
				this.style.height = '10px';
				this.style.height = ( 5 + innerDoc.body.scrollHeight ) + 'px';
				tinyMCE.activeEditor.execCommand( 'wpAutoResize' );
			} );

			$editframe.on( 'load', function() {
				var stylesheet_url = ( 1 === window.isRtl ) ? grunionEditorView.inline_editing_style_rtl : grunionEditorView.inline_editing_style,
					$stylesheet = $( '<link rel="stylesheet" href="' + stylesheet_url + '" />' ),
					$dashicons_css = $( '<link rel="stylesheet" href="' + grunionEditorView.dashicons_css_url + '" />' );

				$stylesheet.on( 'load', function() {
					$editframe.contents().find( 'body' ).css( 'visibility', 'visible' );
					$editframe.trigger( 'checkheight' );
				} );
				$editframe.contents().find( 'head' ).append( $stylesheet ).append( $dashicons_css );

				$editframe.contents().find( 'body' ).html( wp.mce.grunion_wp_view_renderer.editor_inline( {
					to      : shortcode.attrs.named.to,
					subject : shortcode.attrs.named.subject,
					fields  : fields
				} ) ).css( 'visibility', 'hidden' );

				$editframe.contents().find( 'input:first' ).focus();

				setTimeout( function(){
					$editframe.trigger( 'checkheight' );
				}, 250 );

				var $editfields = $editframe.contents().find( '.grunion-fields' ),
					$buttons = $editframe.contents().find( '.grunion-controls' );

				$editfields.sortable();

				// Now, add all the listeners!

				$editfields.on( 'change select', 'select[name=type]', function() {
					$( this ).closest( '.grunion-field-edit' )[ 0 ].className =
						'card is-compact grunion-field-edit grunion-field-' + $( this ).val();
					$editframe.trigger( 'checkheight' );
				} );

				$editfields.on( 'click', '.delete-option', function( e ) {
					e.preventDefault();
					$( this ).closest( 'li' ).remove();
					$editframe.trigger( 'checkheight' );
				} );

				$editfields.on( 'click', '.add-option', function( e ) {
					var $new_option = $( wp.mce.grunion_wp_view_renderer.editor_option() );
					e.preventDefault();
					$( this ).closest( 'li' ).before( $new_option );
					$editframe.trigger( 'checkheight' );
					$new_option.find( 'input:first' ).focus();
				} );

				$editfields.on( 'click', '.delete-field', function( e ) {
					e.preventDefault();
					$( this ).closest( '.card' ).remove();
					$editframe.trigger( 'checkheight' );
				} );

				$buttons.find( 'input[name=submit]' ).on( 'click', function(){
					var new_data = shortcode;

					new_data.type = 'closed';
					new_data.attrs = {};
					new_data.content = '';

					$editfields.children().each( function() {
						var field_shortcode = {
								tag   : 'contact-field',
								type  : 'single',
								attrs : {
									label : $( this ).find( 'input[name=label]' ).val(),
									type  : $( this ).find( 'select[name=type]' ).val()
								}
							},
							options = [];

						if ( $( this ).find( 'input[name=required]:checked' ).length ) {
							field_shortcode.attrs.required = '1';
						}

						$( this ).find( 'input[name=option]' ).each( function() {
							if ( $( this ).val() ) {
								options.push( $( this ).val() );
							}
						} );
						if ( options.length ) {
							field_shortcode.attrs.options = options.join( ',' );
						}

						new_data.content += wp.shortcode.string( field_shortcode );
					} );

					if ( $editframe.contents().find( 'input[name=to]' ).val() ) {
						new_data.attrs.to = $editframe.contents().find( 'input[name=to]' ).val();
					}
					if ( $editframe.contents().find( 'input[name=subject]' ).val() ) {
						new_data.attrs.subject = $editframe.contents().find( 'input[name=subject]' ).val();
					}

					update_callback( wp.shortcode.string( new_data ) );
				} );

				$buttons.find( 'input[name=cancel]' ).on( 'click', function() {
					update_callback( wp.shortcode.string( shortcode ) );
				} );

				$buttons.find( 'input[name=add-field]' ).on( 'click', function() {
					var $new_field = $( wp.mce.grunion_wp_view_renderer.edit_template( {} ) );
					$editfields.append( $new_field );
					$editfields.sortable( 'refresh' );
					$editframe.trigger( 'checkheight' );
					$new_field.find( 'input:first' ).focus();
				} );
			} );

			$view.html( $editframe );
		}
	};
	wp.mce.views.register( 'contact-form', wp.mce.grunion_wp_view_renderer );

	// Add the 'text' editor button.
	QTags.addButton(
		'grunion_shortcode',
		grunionEditorView.labels.quicktags_label,
		function() {
			QTags.insertContent( '[contact-form]' + grunionEditorView.default_form + '[/contact-form]' );
		}
	);

	var $wp_content_wrap = $( '#wp-content-wrap' );
	$( '#insert-jetpack-contact-form' ).on( 'click', function( e ) {
		e.preventDefault();
		if ( $wp_content_wrap.hasClass( 'tmce-active' ) ) {
			tinyMCE.execCommand( 'grunion_add_form' );
		} else if ( $wp_content_wrap.hasClass( 'html-active' ) ) {
			QTags.insertContent( '[contact-form]' + grunionEditorView.default_form + '[/contact-form]' );
		} else {
			window.console.error( 'Neither TinyMCE nor QuickTags is active. Unable to insert form.' );
		}
	} );
}( jQuery, wp, grunionEditorView ) );

redpajama_set_name: RedPajamaGithub


text:
function node() {
    this.children = [];
    this.name = "";
    this.position = {};
    this.args = [];
}

node.prototype.links = function() {
    var self = this;
    if (self.children.length == 0)
        return [];
    var arr = [{
        source: self.position,
        target: self.children[0].position
    }].concat(self.children[0].links());
    if (self.children.length > 1)
        arr = arr.concat([{
            source: self.position,
            target: self.children[1].position
        }]).concat(self.children[1].links());
    return arr;
}

node.prototype.getAllPositions = function() {
    var arr = [this.position]
    switch (this.children.length) {
        case 1:
            arr = arr.concat(this.children[0].getAllPositions());
            break;
        case 2:
            arr = arr.concat(this.children[0].getAllPositions())
                .concat(this.children[1].getAllPositions());
            break;
        default:
            break;
    }
    return arr;
}

node.prototype.height = function() {
    if (this.children.length == 0)
        return 1;
    if (this.children.length == 1)
        return this.children[0].height() + 1;
    return Math.max(this.children[0].height(), this.children[1].height()) + 1;
}

var Mimir = {};
Mimir.visualization = {
    XDIFF: 100,
    YDIFF: 80,
    WIDTH: 700,
    HEIGHT: 200,
    RADIUS: 5,
    FONTSIZE: "0.7em",
    ZOOMFONTSIZE: "1em",

    propagatePositions: function(node, xVal, yVal, div) {
        var xdiff = Mimir.visualization.XDIFF;
        var ydiff = Mimir.visualization.YDIFF;
        node.position = {
            x: xVal,
            y: yVal,
            name: node.name,
            args: node.args
        };
        if (node.children.length == 0)
            return node;
        else if (node.children.length == 1)
            node.children = [Mimir.visualization.propagatePositions(node.children[0], xVal - xdiff, yVal, div)];
        else {
            node.children = [Mimir.visualization.propagatePositions(node.children[0], xVal - xdiff, yVal + ydiff / (2 * div), 2 * div),
                Mimir.visualization.propagatePositions(node.children[1], xVal - xdiff, yVal - ydiff / (2 * div), 2 * div)
            ];
        }
        return node;
    },

    createTree: function(flow) {
        var root = new node();
        root.name = flow.name;
        root.args = flow.args;
        var rootChild = [];
        for (var i = 0; i < flow.children.length; i++) {
            rootChild.push(Mimir.visualization.createTree(flow.children[i]));
        }
        root.children = rootChild;
        return root;
    },

    graph: function(node) {
        Mimir.visualization.XDIFF = Mimir.visualization.WIDTH/(node.height() + 1);
        var width = Mimir.visualization.WIDTH, height = Mimir.visualization.HEIGHT,
        radius = Mimir.visualization.RADIUS, fontSize = Mimir.visualization.FONTSIZE,
        zoomFontSize = Mimir.visualization.ZOOMFONTSIZE;

        node = Mimir.visualization.propagatePositions(node, width - Mimir.visualization.XDIFF, height / 2, 1);
        var nodes = node.getAllPositions();
        var links = node.links();

        var vis = d3.select("#graph")
            .append("svg:svg")
            .attr("class", "stage")
            .attr("width", width)
            .attr("height", height);

        var uinodes = vis.selectAll("circle.node")
            .data(nodes)
            .enter().append("g")
            .attr("class", "node")
            .on("mouseover", function(d, i) {
                d3.select(this).selectAll("circle")
                    .transition()
                    .duration(250)
                    .attr("r", radius + 3)
                    .attr("fill", "orange");

                d3.select(this).select("text")
                    .transition()
                    .duration(250)
                    .attr("fill", "brown")
                    .attr("font-size", zoomFontSize);
            })
            .on("mouseout", function(d, i) {
                d3.select(this).selectAll("circle")
                    .transition()
                    .duration(250)
                    .attr("r", radius)
                    .attr("fill", "black");

                d3.select(this).select("text")
                    .transition()
                    .duration(250)
                    .attr("fill", "black")
                    .attr("font-size", fontSize);
            });

        uinodes.append("svg:circle")
            .attr("cx", function(d) {
                return d.x;
            })
            .attr("cy", function(d) {
                return d.y;
            })
            .attr("r", radius)
            .attr("fill", "black");

        uinodes.append("text")
            .text(function(d, i) {
                var params = "";
                if(d.args.length > 0)
                    return params = d.args.join();
                return d.name;
            })
            .attr("x", function(d, i) {
                return d.x;
            })
            .attr("y", function(d, i) {
                return d.y - 10;
            })
            .attr("font-family", "Helvetica Neue,Helvetica,Arial,sans-serif")
            .attr("fill", "black")
            .attr("font-size", fontSize);

        vis.selectAll(".line")
            .data(links)
            .enter()
            .append("line")
            .attr("x1", function(d) {
                return d.source.x
            })
            .attr("y1", function(d) {
                return d.source.y
            })
            .attr("x2", function(d) {
                return d.target.x
            })
            .attr("y2", function(d) {
                return d.target.y
            })
            .style("stroke", "rgb(6,120,155)");
    },

    drawGraph: function() {
        var flow = $('#flow').val();
        if (flow == undefined)
            return;
        var root = new node();
        root.name = "RESULT";
        root.children = [Mimir.visualization.createTree($.parseJSON(flow))];
        Mimir.visualization.graph(root);
    }

}


text:
namespace AcademyPlatform.Web.Infrastructure.Extensions
{
    public static class IntExtensions
    {
        public static string ToFileSize(this int fileSize)
        {
            string[] sizes = { "B", "KB", "MB", "GB" };
            int order = 0;
            while (fileSize >= 1024 && order + 1 < sizes.Length)
            {
                order++;
                fileSize = fileSize / 1024;
            }

            string result = $"{fileSize:0.##} {sizes[order]}";
            return result;
        }
    }
}


text:
package provider;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.net.Uri;
import android.support.annotation.Nullable;
import android.util.Log;

public class BankBackDoorProvider extends ContentProvider {
    public BankBackDoorProvider() {
    }

    /**
     * 安全保障:保安:UriMatcher
     * 匹配失败就NO_MATCH
     */
    private static UriMatcher matcher=new UriMatcher(UriMatcher.NO_MATCH);
    private static final int SUCCESS = 1;

    static {
        matcher.addURI("com.vero.BankBackDoorProvider","accounts",SUCCESS);
    }

    @Override
    public boolean onCreate() {
        return false;
    }

    @Nullable
    @Override
    public String getType(Uri uri) {
        return null;
    }

    @Nullable
    @Override
    public Uri insert(Uri uri, ContentValues values) {
        Log.i("BankBackDoor","insert");
        int result=matcher.match(uri);
        if (SUCCESS==result){
            Log.i("BankBackDoorProvider","uri---正确了");
        }else {
            throw  new RuntimeException("暗号不对,滚");
        }
        return null;
    }

    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {
        Log.i("BankBackDoor","delete");
        return 0;
    }

    @Override
    public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
        Log.i("BankBackDoor","update");
        return 0;
    }

    @Nullable
    @Override
    public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
        Log.i("BankBackDoor","query");
        return null;
    }
}


text:
var AVAILABLE_KEYWORDS = [
];

module.exports = AVAILABLE_KEYWORDS;


text:
/*
 * This file was automatically generated by sel-utils and
 * released under the MIT License.
 *
 * License: https://github.com/sel-project/sel-utils/blob/master/LICENSE
 * Repository: https://github.com/sel-project/sel-utils
 * Generated from https://github.com/sel-project/sel-utils/blob/master/xml/protocol/java210.xml
 */
package sul.protocol.java210.serverbound;

import sul.utils.*;

public class PlayerBlockPlacement extends Packet {

	public static final int ID = (int)28;

	public static final boolean CLIENTBOUND = false;
	public static final boolean SERVERBOUND = true;

	@Override
	public int getId() {
		return ID;
	}

	// hand
	public static final int MAIN_HAND = (int)0;
	public static final int OFF_HAND = (int)1;

	public long position;
	public int face;
	public int hand;
	public Tuples.ByteXYZ cursorPosition = new Tuples.ByteXYZ();

	public PlayerBlockPlacement() {}

	public PlayerBlockPlacement(long position, int face, int hand, Tuples.ByteXYZ cursorPosition) {
		this.position = position;
		this.face = face;
		this.hand = hand;
		this.cursorPosition = cursorPosition;
	}

	@Override
	public int length() {
		return Buffer.varuintLength(face) + Buffer.varuintLength(hand) + 12;
	}

	@Override
	public byte[] encode() {
		this._buffer = new byte[this.length()];
		this.writeVaruint(ID);
		this.writeBigEndianLong(position);
		this.writeVaruint(face);
		this.writeVaruint(hand);
		this.writeBigEndianByte(cursorPosition.x); this.writeBigEndianByte(cursorPosition.y); this.writeBigEndianByte(cursorPosition.z);
		return this.getBuffer();
	}

	@Override
	public void decode(byte[] buffer) {
		this._buffer = buffer;
		this.readVaruint();
		position=readBigEndianLong();
		face=this.readVaruint();
		hand=this.readVaruint();
		cursorPosition=new Tuples.ByteXYZ(); cursorPosition.x=readBigEndianByte(); cursorPosition.y=readBigEndianByte(); cursorPosition.z=readBigEndianByte();
	}

	public static PlayerBlockPlacement fromBuffer(byte[] buffer) {
		PlayerBlockPlacement ret = new PlayerBlockPlacement();
		ret.decode(buffer);
		return ret;
	}

	@Override
	public String toString() {
		return "PlayerBlockPlacement(position: " + this.position + ", face: " + this.face + ", hand: " + this.hand + ", cursorPosition: " + this.cursorPosition.toString() + ")";
	}

}


text:
require File.expand_path('../../../spec_helper', __FILE__)
require 'pathname'

describe "Pathname#==" do

  it "returns true when identical paths are used" do
    (Pathname.new('') == Pathname.new('')).should == true
  end

  it "returns true when identical paths are used" do
    (Pathname.new('') == Pathname.new('/usr/local/bin')).should == false
  end

end


text:
[ -d ../my-vim-ide/templates ] && \
[ -d ../vim-template/templates ] && \
mv ../vim-template/templates ../vim-template/templates.org && \
ln -sf ../my-vim-ide/templates ../vim-template/templates

#[ -d ../my-vim-ide/codesnippets ] && \
#[ -d ../c-support/c-support/codesnippets ] && \
#mv ../c-support/c-support/codesnippets ../c-support/c-support/codesnippets.org && \
#ln -sf ../../my-vim-ide/codesnippets ../c-support/c-support/codesnippets

return 0 || exit 0


text:
package org.symphonyoss.util;

import org.symphonyoss.client.SymphonyClient;
import org.symphonyoss.client.SymphonyClientConfig;
import org.symphonyoss.client.SymphonyClientConfigID;
import org.symphonyoss.client.SymphonyClientFactory;
import org.symphonyoss.client.model.Chat;
import org.symphonyoss.client.model.SymAuth;
import org.symphonyoss.symphony.authenticator.model.Token;
import org.symphonyoss.symphony.clients.model.SymStream;
import org.symphonyoss.symphony.clients.model.SymUser;
import javax.ws.rs.client.ClientBuilder;
import java.util.HashSet;
import java.util.Set;

/**
 * Created by Frank Tarsillo on 6/19/2016.
 */
public class TestFactory {
    private static final SymphonyClient symClient = SymphonyClientFactory.getClient(SymphonyClientFactory.TYPE.BASIC);
    private static final SymAuth symAuth = new SymAuth();

    static {

        Token token = new Token();
        token.setName("TOKEN_NAME");
        token.setToken("TOKEN_VALUE");
        symAuth.setKeyToken(token);
        symAuth.setSessionToken(token);
        symClient.setSymAuth(symAuth);
        SymphonyClientConfig symphonyClientConfig = new SymphonyClientConfig();

        symphonyClientConfig.set(SymphonyClientConfigID.POD_URL,"POD_URL");
        symphonyClientConfig.set(SymphonyClientConfigID.AGENT_URL,"AGENT_URL");
        symphonyClientConfig.set(SymphonyClientConfigID.USER_EMAIL,"USER_EMAIL");
        symphonyClientConfig.set(SymphonyClientConfigID.TRUSTSTORE_FILE,"TRUSTSTORE_FILE");
        symphonyClientConfig.set(SymphonyClientConfigID.TRUSTSTORE_PASSWORD,"TRUSTSTORE_PASSWORD");
        symphonyClientConfig.set(SymphonyClientConfigID.USER_CERT_PASSWORD,"USER_CERT_PASSWORD");
        symphonyClientConfig.set(SymphonyClientConfigID.USER_CERT_FILE, "USER_CERT_FILE");
        symClient.setConfig(symphonyClientConfig);

        symClient.setAgentHttpClient(ClientBuilder.newBuilder().build());
        symClient.setPodHttpClient(ClientBuilder.newBuilder().build());

    }

    public static SymphonyClient getSymClient() {
        return symClient;
    }

    public static SymAuth getSymAuth() {
        return symAuth;
    }

    public static Chat getChat(){

        Chat chat = new Chat();
        chat.setLocalUser(symClient.getLocalUser());
        Set<SymUser> remoteUsers = new HashSet<>();
        SymUser aUser = new SymUser();
        aUser.setId((long)1234567890);
        aUser.setEmailAddress("test.user@domain.com");
        remoteUsers.add(aUser);

        chat.setRemoteUsers(remoteUsers);

        SymStream stream = new SymStream();
        stream.setStreamId("ABCDEFGHIJKLMNOPQRSTUV");
        chat.setStream(stream);

        return chat;

    }
}


text:
<project name="Project dependencies" default="deps" basedir=".">
	<!-- project dependencies -->
	<target name="deps">
		<ant antfile="${main.buildfile}" target="dep">
			<property name="module" value="abstraction-common"/>
		</ant>
	</target>
</project>


text:
.well {
  background-image: -webkit-linear-gradient(top, #ebebeb 0%, #f8f8f8 100%);
  background-image: -o-linear-gradient(top, #ebebeb 0%, #f8f8f8 100%);
  background-image: linear-gradient(to bottom, #ebebeb 0%, #f8f8f8 100%);
  background-repeat: repeat-x;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff8f8f8', GradientType=0);
  border-color: #dfdfdf;
  -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
}
.page-wrapper {
  float: left;
  width: 100%;
  position: relative;
}
/* Layouts */
.wrapper {
  width: 100%;
  min-height: 100%;
  float: left;
}
.wrapper:before,
.wrapper:after {
  content: " ";
  display: table;
}
.wrapper:after {
  clear: both;
}
.wrapper .wrapper-content {
  float: left;
}
/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
.content,
.page-sidebar {
  min-height: 100%;
  display: block;
}
.content {
  background-color: #262123;
  margin-left: 220px;
}
/* Begin Page Sidebar */
.page-sidebar {
  *position: absolute;
  width: 220px;
  float: left;
  background-color: #2b2628;
  z-index: 10;
}
.page-sidebar .sidebar {
  color: #FFFFFF;
}
.page-sidebar .sidebar ul.sidebar-menu li.active > a {
  background-color: #4e8ef7 !important;
  color: #FFFFFF;
}
.page-sidebar .sidebar ul.sidebar-menu li.sidebar-title {
  padding: 12px 5px 12px 15px;
  font-size: 18px;
}
.page-sidebar .sidebar ul.sidebar-menu li > a {
  background-color: #2b2628;
  color: #bcbcbc;
}
.page-sidebar .sidebar ul.sidebar-menu li > a .label,
.page-sidebar .sidebar ul.sidebar-menu li > a .badge {
  float: right;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li.active > a {
  background-color: #201c1e !important;
  color: #fff;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li > a {
  padding: 7px 15px 7px 45px;
  background-color: #262123;
  color: #bcbcbc;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li > a:hover,
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li > a:focus {
  background-color: #201c1e;
  color: #fff;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li > a > i[class*="icon-"] {
  margin-right: 10px;
  font-size: 14px;
  opacity: 0.5;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li ul.nav-third-level li.active > a {
  color: #4e8ef7;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li ul.nav-third-level li > a {
  padding: 7px 15px 7px 70px;
  background-color: #1b1819 !important;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li ul.nav-third-level li > a:hover,
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li ul.nav-third-level li > a:focus {
  color: #4e8ef7;
}
.page-sidebar .sidebar ul.sidebar-menu li ul.nav-second-level li ul.nav-third-level li > a > i[class*="icon-"] {
  margin-right: 10px;
  font-size: 14px;
  opacity: 0.5;
}
/* End Page Sidebar */
.main-content {
  float: left;
  width: 100%;
  padding: 20px 15px;
  background-color: #f5f6f6;
}
/* Page Header */
.page-header {
  margin: 10px 0 20px 0;
  font-size: 22px;
}
.page-header > small {
  color: #666767;
  display: block;
  margin-top: 5px;
}
/********************/
/* header */
body .header {
  position: relative;
  max-height: 100px;
}
body .header .navbar {
  height: 50px;
  margin-bottom: 0;
  margin-left: 220px;
  background-color: #FFFFFF;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
body .header .navbar .sidebar-toggle {
  float: left;
  padding: 16px 5px 12px;
  margin: 0px 10px;
  background-color: transparent;
  background-image: none;
  border: 0px solid transparent;
  border-radius: 0 !important;
}
body .header .navbar .sidebar-toggle i {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}
body .header .navbar .search-form {
  padding: 8px 10px;
}
body .header .navbar .search-form .input-icon input {
  width: 200px;
  -webkit-transition: width 0.2s;
  -o-transition: width 0.2s;
  transition: width 0.2s;
}
body .header .navbar .search-form .input-icon input:focus {
  width: 350px;
}
body .header .navbar .search-form .input-icon i {
  cursor: pointer;
}
body .header .navbar .navbar-right ul.navbar-nav > li {
  height: 50px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.open > a {
  background-color: #f5f5f5;
}
body .header .navbar .navbar-right ul.navbar-nav > li a:hover,
body .header .navbar .navbar-right ul.navbar-nav > li a:focus {
  background-color: #f5f5f5;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-extra ul.dropdown-menu {
  min-width: 160px;
  max-width: 300px;
  width: 233px;
  background-color: #ffffff;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li:first-child a {
  border-top: none;
  border-bottom: 1px solid #f4f4f4;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li:last-child a {
  border-bottom: 1px solid #f4f4f4;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li.footer > a > i {
  margin-top: 3px;
  float: right;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li a {
  display: block;
  clear: both;
  line-height: 20px;
  white-space: normal;
  padding: 10px;
  border-bottom: 1px solid #f4f4f4 !important;
  color: #666666;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li a:hover {
  background-color: #f5f5f5;
  color: #666666;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li p {
  padding: 10px;
  background-color: #e5e5e5;
  margin: 0px;
  color: #666666;
}
body .header .navbar .navbar-right ul.navbar-nav > li ul.dropdown-menu > li ul.dropdown-menu-list {
  padding-right: 0 !important;
  padding-left: 0;
  list-style: none;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-messages .dropdown-menu p {
  background-color: #4e8ef7;
  color: #FFFFFF;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-messages .dropdown-menu .avatar {
  float: left;
  padding-right: 6px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-messages .dropdown-menu .avatar img {
  height: 40px;
  width: 40px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-messages .dropdown-menu .subject {
  display: block;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-messages .dropdown-menu .subject .from {
  font-size: 14px;
  font-weight: 400;
  color: #4e8ef7;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-messages .dropdown-menu .time {
  font-size: 12px;
  font-style: italic;
  position: relative;
  float: right;
  opacity: 0.8;
  filter: alpha(opacity=80);
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-notifications .dropdown-menu p {
  background-color: #de1771;
  color: #FFFFFF;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-notifications .dropdown-menu .time {
  font-size: 12px;
  text-align: right;
  font-style: italic;
  opacity: 0.8;
  filter: alpha(opacity=80);
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-tasks .dropdown-menu p {
  background-color: #68b828;
  color: #FFFFFF;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-tasks .dropdown-menu .task {
  margin-bottom: 5px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-tasks .dropdown-menu .task .percent {
  float: right;
  display: inline-block;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-tasks .dropdown-menu .progress {
  margin-bottom: 0;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-user img {
  margin-top: -3px;
  margin-right: 7px;
  height: 25px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-user i.fa.fa-angle-down {
  font-size: 13px;
  margin-left: 5px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-user i[class*="icon-"] {
  margin-right: 10px;
}
body .header .navbar .navbar-right ul.navbar-nav > li.dropdown-user .dropdown-menu li a i {
  font-size: 16px;
}
body .header .navbar .nav a {
  padding-top: 14px;
  padding-bottom: 14px;
}
body .header .navbar .nav a.fullscreen-toggle:hover i,
body .header .navbar .nav a.toggle-quick-sidebar:hover i {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
}
body .header .navbar .nav a i {
  -webkit-transition: all 0.25s ease-out;
  -o-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
  font-size: 18px;
  color: #999999;
}
body .header .navbar .nav > li > a > .badge {
  position: absolute;
  top: 7px;
  right: 2px;
}
body .header .logo {
  font-family: 'Squada One';
  float: left;
  font-size: 30px;
  text-align: left;
  padding: 0 15px;
  width: 220px;
  height: 50px;
  display: block;
  background-color: #393235;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
body .header .logo a.logo-text {
  color: #ffba00;
  -webkit-text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.1);
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}
body .header .logo a.logo-text:hover {
  color: #68b828;
  -webkit-text-shadow: none;
  text-shadow: none;
}
body .header .logo a.sidebar-toggle {
  font-size: 22px;
  color: #bcbcbc;
  opacity: 0.5;
  line-height: 50px;
}
body .header .logo a.sidebar-toggle i {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  -webkit-transition: all 250ms ease-out;
  -o-transition: all 250ms ease-out;
  transition: all 250ms ease-out;
}
body .header .logo a.sidebar-toggle i:hover {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -o-transform: rotate(180deg);
  transform: rotate(180deg);
}
.content > .content-header {
  position: relative;
  float: left;
  width: 100%;
  padding: 12px 15px;
  background-color: #f9fafa;
}
.content > .content-header > h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  color: #999999;
}
.content > .content-header > h1 > small {
  font-size: 12px;
  display: block;
  margin-top: 7px;
  color: #aaaaaa;
}
.content > .content-header > .breadcrumb {
  float: right;
  background: transparent;
  margin-top: 0px;
  margin-bottom: 0;
  font-size: 13px;
  padding: 5px;
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 0px;
}
.content > .content-header > .breadcrumb > li > a {
  color: #666666;
  text-decoration: none;
}
.content > .content-header > .breadcrumb > li > a > i {
  margin-right: 5px;
  font-size: 16px;
  color: #666666;
}
.content > .content-header > .breadcrumb > li + li:before {
  font-family: 'Simple-Line-Icons';
  content: '\e051';
}
@media screen and (max-width: 768px) {
  .content > .content-header > .breadcrumb {
    position: relative;
    margin-top: 5px;
    top: 0;
    right: 0;
    float: none;
    background: #efefef;
  }
}
/* header */
/* sidebar */
.sidebar .sidebar-form input:focus {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-color: transparent!important;
}
.sidebar .sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar .sidebar-menu > li {
  margin: 0;
  padding: 0;
}
.sidebar .sidebar-menu > li > a {
  padding: 10px 15px;
  display: block;
}
.sidebar .sidebar-menu > li > a > i[class*="fa-"],
.sidebar .sidebar-menu > li > a > i[class*="glyphicon-"],
.sidebar .sidebar-menu > li > a > i[class*="icon-"] {
  margin-right: 15px;
  font-size: 15px;
  opacity: 0.5;
}
.sidebar .sidebar-menu .treeview-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar .sidebar-menu .treeview-menu > li {
  margin: 0;
}
.sidebar .sidebar-menu .treeview-menu > li > a {
  padding: 5px 5px 5px 15px;
  display: block;
  font-size: 14px;
  margin: 0px 0px;
}
.sidebar .sidebar-menu .treeview-menu > li > a > .fa,
.sidebar .sidebar-menu .treeview-menu > li > a > .glyphicon,
.sidebar .sidebar-menu .treeview-menu > li > a > .ion {
  width: 20px;
}
.user-panel {
  padding: 10px;
}
.user-panel:before,
.user-panel:after {
  content: " ";
  display: table;
}
.user-panel:after {
  clear: both;
}
.user-panel > .image {
  float: left;
}
.user-panel > .image > img {
  width: 45px;
  height: 45px;
}
.user-panel > .info {
  font-weight: 600;
  padding: 5px 5px 5px 15px;
  font-size: 14px;
  line-height: 1;
}
.user-panel > .info > p {
  margin-bottom: 9px;
}
.user-panel > .info > a {
  text-decoration: none;
  padding-right: 5px;
  margin-top: 3px;
  font-size: 11px;
  font-weight: normal;
}
.user-panel > .info > a > .fa,
.user-panel > .info > a > .ion,
.user-panel > .info > a > .glyphicon {
  margin-right: 3px;
}
/* sidebar */
/* Begin Page Header Fixed */
.page-header-fixed .header {
  position: fixed;
}
.page-header-fixed .page-wrapper {
  margin-top: 50px;
}
@media screen and (max-width: 480px) {
  .page-header-fixed .wrapper {
    margin-top: 50px;
  }
}
/* End Page Header Fixed */
/* Begin Page Sidebar Fixed */
.page-sidebar-fixed .page-wrapper .wrapper .page-sidebar {
  position: fixed;
}
.page-sidebar-fixed.page-sidebar-right .page-wrapper .wrapper .page-sidebar {
  margin-right: 0;
  right: 0;
}
.page-sidebar-fixed.page-sidebar-right.page-quick-sidebar-push-open .page-wrapper .wrapper .page-sidebar {
  margin-right: 250px;
  right: 0;
}
.page-sidebar-fixed.page-sidebar-right-closed .page-wrapper .wrapper .page-sidebar {
  margin-right: 0;
  right: 0;
  left: auto;
}
.page-sidebar-fixed.page-sidebar-right-closed.page-quick-sidebar-push-open .page-wrapper .wrapper .page-sidebar {
  margin-right: 250px;
  right: 0;
}
/* End Page Sidebar Fixed */
/* Begin Sidebar Right */
.page-sidebar-right .page-wrapper .header .logo {
  width: 220px;
  float: right;
}
.page-sidebar-right .page-wrapper .header .navbar {
  margin-right: 220px;
  margin-left: 0;
}
.page-sidebar-right .page-wrapper .wrapper .page-sidebar {
  *left: auto;
  *right: 0;
  float: right;
}
.page-sidebar-right .page-wrapper .wrapper .content {
  margin-left: 0;
  margin-right: 220px;
}
/* End Sidebar Right */
/* Begin Sidebar Right Fixed */
.page-sidebar-right-fixed .page-wrapper .header .logo {
  width: 220px;
  float: right;
}
.page-sidebar-right-fixed .page-wrapper .header .navbar {
  margin-right: 220px;
  margin-left: 0;
}
.page-sidebar-right-fixed .page-wrapper .wrapper .page-sidebar {
  position: fixed;
  left: auto;
  right: 0;
}
.page-sidebar-right-fixed .page-wrapper .wrapper .content {
  margin-left: 0;
  margin-right: 220px;
}
/* End Sidebar Right Fixed */
/* Begin Sidebar Left Closed */
.page-sidebar-left-closed .header .logo {
  width: 50px;
}
.page-sidebar-left-closed .header .logo a.logo-text {
  display: none;
}
.page-sidebar-left-closed .header .navbar {
  margin-left: 50px;
}
.page-sidebar-left-closed .wrapper .page-sidebar {
  width: 50px;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar .user-panel {
  padding: 8px 5px;
  text-align: center;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar .user-panel .image {
  float: none !important;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar .user-panel .image img {
  width: 35px;
  height: 35px;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar .user-panel .info {
  display: none;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li {
  position: relative;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a {
  position: relative;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .sidebar-text {
  display: none;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .badge {
  position: absolute;
  top: 3px;
  right: 7px;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .label {
  position: absolute;
  top: 3px;
  right: -15px;
  z-index: 100;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > ul.nav-second-level {
  display: none;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li.sidebar-title {
  display: none;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text {
  display: block;
  position: absolute;
  top: 0;
  left: 50px;
  padding: 10px 15px;
  margin-left: 0;
  background-color: #4e8ef7;
  color: #ffffff;
  width: 180px;
  z-index: 10;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text:after {
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-right-color: #4e8ef7;
  border-width: 8px;
  margin-top: -8px;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level {
  display: block;
  position: absolute;
  top: 40px;
  left: 50px;
  width: 180px;
  z-index: 10;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-left-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > ul.nav-third-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-left-closed .wrapper .content {
  margin-left: 50px;
}
/* End Sidebar Left Closed */
/* Begin Sidebar Left Fixed Closed */
.page-sidebar-left-fixed-closed .header .logo {
  width: 50px;
}
.page-sidebar-left-fixed-closed .header .logo a.logo-text {
  display: none;
}
.page-sidebar-left-fixed-closed .header .navbar {
  margin-left: 50px;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar {
  width: 50px;
  position: fixed;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar .user-panel {
  padding: 8px 5px;
  text-align: center;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar .user-panel .image {
  float: none !important;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar .user-panel .image img {
  width: 35px;
  height: 35px;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar .user-panel .info {
  display: none;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li {
  position: relative;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a {
  position: relative;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .sidebar-text {
  display: none;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .badge {
  position: absolute;
  top: 3px;
  right: 7px;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .label {
  position: absolute;
  top: 3px;
  right: -15px;
  z-index: 100;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > ul.nav-second-level {
  display: none;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li.sidebar-title {
  display: none;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text {
  display: block;
  position: absolute;
  top: 0;
  left: 50px;
  padding: 12px 15px;
  margin-left: 0;
  background-color: #4e8ef7;
  color: #ffffff;
  width: 180px;
  z-index: 10;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text:after {
  right: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-right-color: #4e8ef7;
  border-width: 8px;
  margin-top: -8px;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level {
  display: block;
  position: absolute;
  top: 40px;
  left: 50px;
  width: 180px;
  z-index: 10;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-left-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > ul.nav-third-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-left-fixed-closed .wrapper .content {
  margin-left: 50px;
}
/* End Sidebar Left Fixed Closed */
/* Begin Sidebar Right Closed */
.page-sidebar-right-closed .header .logo {
  width: 50px;
  float: right;
}
.page-sidebar-right-closed .header .logo a.logo-text {
  display: none;
}
.page-sidebar-right-closed .header .navbar {
  margin-right: 50px;
  margin-left: 0;
}
.page-sidebar-right-closed .wrapper .page-sidebar {
  width: 50px;
  *left: auto;
  *right: 0;
  float: right;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar .user-panel {
  padding: 8px 5px;
  text-align: center;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar .user-panel .image {
  float: none !important;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar .user-panel .image img {
  width: 35px;
  height: 35px;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar .user-panel .info {
  display: none;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li {
  position: relative;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a {
  position: relative;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .sidebar-text {
  display: none;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .badge {
  position: absolute;
  top: 3px;
  left: 7px;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .label {
  position: absolute;
  top: 3px;
  left: -15px;
  z-index: 100;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > ul.nav-second-level {
  display: none;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li.sidebar-title {
  display: none;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text {
  display: block;
  position: absolute;
  top: 0;
  right: 50px;
  left: auto;
  padding: 12px 15px;
  margin-right: 0;
  background-color: #4e8ef7;
  color: #ffffff;
  width: 180px;
  z-index: 10;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text:after {
  right: auto;
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-left-color: #4e8ef7;
  border-width: 8px;
  margin-top: -8px;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level {
  display: block;
  position: absolute;
  top: 40px;
  right: 50px;
  left: auto;
  width: 180px;
  z-index: 10;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-right-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > ul.nav-third-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-right-closed .wrapper .content {
  margin-left: 0;
  margin-right: 50px;
}
/* End Sidebar Right Closed */
/* Begin Sidebar Right Closed */
.page-sidebar-right-fixed-closed .header .logo {
  width: 50px;
  float: right;
}
.page-sidebar-right-fixed-closed .header .logo a.logo-text {
  display: none;
}
.page-sidebar-right-fixed-closed .header .navbar {
  margin-right: 50px;
  margin-left: 0;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar {
  width: 50px;
  position: fixed;
  left: auto;
  right: 0;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar .user-panel {
  padding: 8px 5px;
  text-align: center;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar .user-panel .image {
  float: none !important;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar .user-panel .image img {
  width: 35px;
  height: 35px;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar .user-panel .info {
  display: none;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li {
  position: relative;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a {
  position: relative;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .sidebar-text {
  display: none;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .badge {
  position: absolute;
  top: 3px;
  left: 7px;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > a .label {
  position: absolute;
  top: 3px;
  left: -15px;
  z-index: 100;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li > ul.nav-second-level {
  display: none;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li.sidebar-title {
  display: none;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text {
  display: block;
  position: absolute;
  top: 0;
  right: 50px;
  left: auto;
  padding: 12px 15px;
  margin-right: 0;
  background-color: #4e8ef7;
  color: #ffffff;
  width: 180px;
  z-index: 10;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > a .sidebar-text:after {
  right: auto;
  left: 100%;
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-left-color: #4e8ef7;
  border-width: 8px;
  margin-top: -8px;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level {
  display: block;
  position: absolute;
  top: 40px;
  right: 50px;
  left: auto;
  width: 180px;
  z-index: 10;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-right-fixed-closed .wrapper .page-sidebar .sidebar ul.sidebar-menu > li:hover > ul.nav-second-level > li > ul.nav-third-level > li > a {
  padding-left: 15px;
  padding-right: 15px;
}
.page-sidebar-right-fixed-closed .wrapper .content {
  margin-left: 0;
  margin-right: 50px;
}
/* End Sidebar Right Fixed Closed */
/* Begin Sidebar Horizontal */
.page-horizontal-sidebar #horizontal-sidebar {
  background-color: #4e8ef7;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li.active > a {
  background-color: #FFFFFF;
  color: #666666;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li.open > a {
  background-color: #FFFFFF;
  color: #666666;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li > a {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  min-width: 100px;
  color: #f9f9f9;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li > a i {
  display: block;
  margin-right: 0;
  margin-bottom: 5px;
  font-size: 20px;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li > a .badge {
  margin-left: 0;
  vertical-align: middle;
  position: absolute;
  top: 10px;
  right: 15px;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li > a:hover {
  background-color: #FFFFFF;
  color: #666666;
}
.page-horizontal-sidebar #horizontal-sidebar > ul > li ul li > a {
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* End Sidebar Horizontal */
/* Begin Page Quick Sidebar Wrapper */
.page-quick-sidebar-wrapper {
  background-color: #302b2d;
  color: #a5a5a5;
  overflow: hidden;
  z-index: 10;
}
.page-quick-sidebar-wrapper .page-quick-sidebar-content {
  position: relative;
}
/* Begin Page Quick Sidebar Wrapper */
/* Begin Layout Page Quick Sidebar Push */
.page-quick-sidebar-push .page-wrapper {
  -webkit-transition: margin-left 0.2s;
  -o-transition: margin-left 0.2s;
  transition: margin-left 0.2s;
}
.page-quick-sidebar-push .page-quick-sidebar-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -250px;
  width: 250px;
  -webkit-transition: right 0.2s;
  -o-transition: right 0.2s;
  transition: right 0.2s;
}
.page-quick-sidebar-push.page-header-fixed .page-wrapper .header {
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}
.page-quick-sidebar-push-open.page-header-fixed .page-wrapper .header {
  right: 250px;
  left: -250px;
}
.page-quick-sidebar-push-open .page-wrapper {
  margin-left: -250px;
}
.page-quick-sidebar-push-open .page-quick-sidebar-wrapper {
  right: 0;
}
/* Begin Layout Page Quick Sidebar Push */
/* Begin Layout Page Quick Sidebar Push Inside Content */
.page-quick-sidebar-content-push .page-wrapper .wrapper {
  float: left;
  width: 100%;
  -webkit-transition: margin-left 0.2s;
  -o-transition: margin-left 0.2s;
  transition: margin-left 0.2s;
}
.page-quick-sidebar-content-push .page-wrapper .page-quick-sidebar-wrapper {
  position: fixed;
  top: 50px;
  bottom: 0;
  right: -250px;
  width: 250px;
  -webkit-transition: right 0.2s;
  -o-transition: right 0.2s;
  transition: right 0.2s;
}
.page-quick-sidebar-content-push-open .page-wrapper .wrapper {
  margin-left: -250px;
}
.page-quick-sidebar-content-push-open .page-wrapper .page-quick-sidebar-wrapper {
  right: 0;
}
/* End Layout Page Quick Sidebar Push Inside Content */
/* Begin Layout Page Quick Sidebar Over Inside Content */
.page-quick-sidebar-content-over .page-wrapper .wrapper {
  float: left;
  width: 100%;
}
.page-quick-sidebar-content-over .page-wrapper .page-quick-sidebar-wrapper {
  position: fixed;
  top: 50px;
  bottom: 0;
  right: -250px;
  width: 250px;
  -webkit-transition: right 0.2s;
  -o-transition: right 0.2s;
  transition: right 0.2s;
}
.page-quick-sidebar-content-over-open .page-wrapper .page-quick-sidebar-wrapper {
  right: 0;
}
/* End Layout Page Quick Sidebar Over Inside Content */
/* Begin Layout Boxed */
.page-layout-boxed .page-wrapper {
  float: none;
}
/* End Layout Boxed */
/* Begin Layout Full Width */
.page-layout-full-width .page-wrapper .header .logo {
  background-color: #fff;
}
.page-layout-full-width .page-wrapper .header .logo a.logo-text {
  color: #68b828;
}
.page-layout-full-width .page-wrapper .header .sidebar-toggle {
  display: none;
}
.page-layout-full-width .page-wrapper .wrapper .page-sidebar {
  display: none;
}
.page-layout-full-width .page-wrapper .wrapper .content {
  margin: 0;
}
.page-layout-full-width .page-wrapper .wrapper .content .content-header {
  display: none;
}
/* End Layout Full Width */
/* Begin Admin Setting */
#admin-setting .admin-setting-content ul.admin-setting-list > li {
  padding: 15px;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li:nth-child(even) {
  background-color: #393235;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li {
  width: 30px;
  height: 30px;
  margin: 0 5px;
  cursor: pointer;
  border: 1px solid #888888;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li.active {
  border: 2px solid #f9f9f9;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li.dark {
  background-color: #2B2628;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li.blue {
  background-color: #385578;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li.purple {
  background-color: #584F8D;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li.grey {
  background-color: #385578;
}
#admin-setting .admin-setting-content ul.admin-setting-list > li > ul.theme-option > li.light {
  background-color: #FFFFFF;
}
/* End Admin Setting */
/* Begin Layout Responsive */
@media (max-width: 480px) {
  .header .logo {
    width: 100% !important;
    background-color: #100e0f;
  }
  .header .navbar {
    margin-top: 50px;
    margin-left: 0 !important;
    width: 100%;
  }
  .header .navbar .navbar-right .navbar-nav {
    margin: 0;
  }
  .header .navbar .navbar-right .navbar-nav > li {
    float: left;
  }
  .header .navbar .navbar-right .navbar-nav > li > a {
    float: left;
  }
  /* Begin Sidebar Off Canvas */
  .row-offcanvas {
    position: relative;
    -webkit-transition: all 0.25s ease-out;
    -o-transition: all 0.25s ease-out;
    transition: all 0.25s ease-out;
  }
  .row-offcanvas-right {
    right: 0;
  }
  .row-offcanvas-left {
    left: 0;
  }
  .row-offcanvas-right .sidebar-offcanvas {
    right: -70%;
  }
  .row-offcanvas-left .sidebar-offcanvas {
    left: -70%;
  }
  .row-offcanvas-right.active {
    right: 70%;
  }
  .row-offcanvas-left.active {
    left: 70%;
  }
  .sidebar-offcanvas {
    position: absolute;
    top: 0;
    width: 70%;
  }
  /* End Sidebar Off Canvas */
  body .page-wrapper .wrapper .page-sidebar {
    position: absolute !important;
  }
  body .page-wrapper .wrapper .content {
    margin-left: 0;
  }
}
/* End Layout Responsive */


text:
@interface RDMStudentRootViewController () <RDMLinkReceivedNotificationViewControllerDelegate>

@property (nonatomic, strong) RDMStudentDataController *dataController;
@property (nonatomic, strong) id pushNotificationProcessedObserver;

@property (nonatomic, strong) UIView *notificationViewContainer;
@property (nonatomic, strong) RDMLinkRecievedNotificationViewController *notificationViewController;
@property (nonatomic, strong) RDMStudentLink *linkNotificationIsShowFor;
@property (nonatomic, assign) BOOL showingNotificationView;
@end

@implementation RDMStudentRootViewController {
}

-(id) initWithCoder:(NSCoder *)aDecoder {

    self = [super initWithCoder:aDecoder];
    if (self) {
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.showingNotificationView = NO;

	// Do any additional setup after loading the view.
    self.dataController = [RDMStudentDataController sharedInstance];

    if (RDM_IS_IOS7_BASED_ON_VIEW(self.view))
    {
        // method exists
        [self.view setTintColor:[UIColor whiteColor]];

    }

    [[UINavigationBar appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName : [UIColor whiteColor]}];

    self.pushNotificationProcessedObserver = [[NSNotificationCenter defaultCenter] addObserverForName:RDMDidProcessPushNotificationPayload
                                                                                object:nil
                                                                                queue:nil
                                                                                usingBlock:^(NSNotification *note) {

                                                                                BOOL showImmediately = [note.userInfo[@"showImmediately"] boolValue];
                                                                                RDMStudentLink *link = note.userInfo[@"link"];

                                                                                if (showImmediately) {
                                                                                NSLog(@"Show Immediately");
                                                                                [RDMOpenLinkHandler openLink:link];

                                                                                } else {

                                                                                [self showLinkReceivedNotificationForLink:link];
                                                                                }

                                                                                }];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

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

-(void) awakeFromNib {

    [super awakeFromNib];

    RDMStudentMenuViewController *menuVC = [self.storyboard instantiateViewControllerWithIdentifier:@"RDMStudentMenuViewControllerID"];
    menuVC.dataController = [RDMStudentDataController sharedInstance];

    UINavigationController *navVC = (UINavigationController*)[self.storyboard instantiateViewControllerWithIdentifier:@"RDMRegisterDeviceViewControllerID"];
    RDMRegisterDeviceViewController *registerDeviceVC = (RDMRegisterDeviceViewController*)navVC.topViewController;
    registerDeviceVC.dataController = [RDMStudentDataController sharedInstance];

    self.menuViewController = menuVC;
    self.centerViewController = navVC;

}

-(void) viewWillLayoutSubviews {

    [super viewWillLayoutSubviews];

}

#define notificationHeight 131.0
#define notificationWidthIpad 480.0

-(void) showLinkReceivedNotificationForLink:(RDMStudentLink*)link {

    self.linkNotificationIsShowFor = link;

    if (!self.notificationViewContainer) {

        CGFloat widthToShow = CGRectGetWidth(self.view.bounds);
        if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
            widthToShow = notificationWidthIpad;
        }

        CGFloat heightToShow = notificationHeight;
        if (RDM_IS_IOS7_BASED_ON_VIEW(self.view)) {
            //For Status Bar
            heightToShow += 20.0;
        }

        CGFloat xValue = CGRectGetWidth(self.view.bounds)/2.0 - widthToShow/2.0;
        self.notificationViewContainer = [[UIView alloc] initWithFrame:CGRectMake(xValue, -heightToShow, widthToShow, heightToShow)];
        self.notificationViewContainer.backgroundColor = [UIColor clearColor];
        UIBezierPath* newShadowPath = [UIBezierPath bezierPathWithRect:self.notificationViewContainer.bounds];
        self.notificationViewContainer.layer.masksToBounds = NO;
        self.notificationViewContainer.layer.shadowRadius = 2.0;
        self.notificationViewContainer.layer.shadowOpacity = 0.75;
        self.notificationViewContainer.layer.shadowColor = [[UIColor blackColor] CGColor];
        self.notificationViewContainer.layer.shadowOffset = CGSizeZero;
        self.notificationViewContainer.layer.shadowPath = [newShadowPath CGPath];
        self.notificationViewContainer.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin;
        [self.view addSubview:self.notificationViewContainer];

        RDMLinkRecievedNotificationViewController *vc = (RDMLinkRecievedNotificationViewController*)[self.storyboard instantiateViewControllerWithIdentifier:@"RDMLinkRecievedNotificationViewControllerID"];
        self.notificationViewController = vc;
        self.notificationViewController.delegate = self;
        [self addChildViewController:vc];
        vc.view.frame = self.notificationViewContainer.bounds;
        [self.notificationViewContainer addSubview:vc.view];
    }

    [UIView animateWithDuration:.33
                          delay:0
                        options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionBeginFromCurrentState
                     animations:^{
                         self.notificationViewContainer.frame = CGRectMake(CGRectGetMinX(self.notificationViewContainer.frame), 0, CGRectGetWidth(self.notificationViewContainer.bounds), CGRectGetHeight(self.notificationViewContainer.bounds));
                     }
                     completion:^(BOOL finished) {
                         [self.notificationViewController didMoveToParentViewController:self];
                     }];

}

-(void) linkReceivedViewDidPressDismiss:(RDMLinkRecievedNotificationViewController *)vc {

    self.linkNotificationIsShowFor = nil;
    [self.notificationViewController willMoveToParentViewController:nil];

    [UIView animateWithDuration:.33
                          delay:0
                        options:UIViewAnimationOptionCurveEaseInOut
                     animations:^{

                         self.notificationViewContainer.frame = CGRectMake(CGRectGetMinX(self.notificationViewContainer.frame), -CGRectGetHeight(self.notificationViewContainer.bounds), CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.notificationViewContainer.bounds));

                     }
                     completion:^(BOOL finished) {

                         if (finished) {
                             [self.notificationViewController removeFromParentViewController];
                             [self.notificationViewContainer removeFromSuperview];
                             self.notificationViewContainer = nil;
                             self.notificationViewController = nil;
                         }

                     }];

}

-(void) linkReceivedViewDidPressVisit:(RDMLinkRecievedNotificationViewController *)vc {

    self.showingNotificationView = NO;
    [RDMOpenLinkHandler openLink:self.linkNotificationIsShowFor];
    self.linkNotificationIsShowFor = nil;
    [self.notificationViewController willMoveToParentViewController:nil];

    [UIView animateWithDuration:.33
                          delay:0
                        options:UIViewAnimationOptionCurveEaseInOut
                     animations:^{

                         self.notificationViewContainer.frame = CGRectMake(CGRectGetMinX(self.notificationViewContainer.frame), -CGRectGetHeight(self.notificationViewContainer.bounds), CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.notificationViewContainer.bounds));

                     }
                     completion:^(BOOL finished) {
                         if (finished) {
                             [self.notificationViewController removeFromParentViewController];
                             [self.notificationViewContainer removeFromSuperview];
                             self.notificationViewContainer = nil;
                             self.notificationViewController = nil;
                         }
                     }];

}

@end


text:
namespace Algorithms.Test
{
    using System;
    using System.Collections.Generic;
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class LinearSearchTest
    {
        [TestMethod]
        public void TestOnEmptyCollection()
        {
            var collection = new SortableCollection<int>();

            var searchedNumber = 22;
            var expected = FindFirst(collection.Items, searchedNumber);
            var actual = collection.LinearSearch(searchedNumber);

            Assert.AreEqual<int>(expected, actual);
        }

        [TestMethod]
        public void TestSuccessAtBegining()
        {
            var collection = new SortableCollection<int>(new[] { 22, 11, 101, 33, 0, 101 });

            var searchedNumber = 22;
            var expected = FindFirst(collection.Items, searchedNumber);
            var actual = collection.LinearSearch(searchedNumber);

            Assert.AreEqual<int>(expected, actual);
        }

        [TestMethod]
        public void TestSuccessAtEnd()
        {
            var collection = new SortableCollection<int>(new[] { 22, 11, 101, 33, 0, 101 });

            var searchedNumber = 101;
            var expected = FindFirst(collection.Items, searchedNumber);
            var actual = collection.LinearSearch(searchedNumber);

            Assert.AreEqual<int>(expected, actual);
        }

        [TestMethod]
        public void TestSuccessAtMiddle()
        {
            var collection = new SortableCollection<int>(new[] { 1, 2, 3 });

            var searchedNumber = 2;
            var expected = FindFirst(collection.Items, searchedNumber);
            var actual = collection.LinearSearch(searchedNumber);

            Assert.AreEqual<int>(expected, actual);
        }

        [TestMethod]
        public void TestOnOneElement()
        {
            var collection = new SortableCollection<int>(new[] { 1 });

            var searchedNumber = 1;
            var expected = FindFirst(collection.Items, searchedNumber);
            var actual = collection.LinearSearch(searchedNumber);

            Assert.AreEqual<int>(expected, actual);
        }

        [TestMethod]
        public void TestOnMissingElement()
        {
            var collection = new SortableCollection<int>(new[] { 1, 2, 3 });

            var searchedNumber = 4;
            var expected = FindFirst(collection.Items, searchedNumber);
            var actual = collection.LinearSearch(searchedNumber);

            Assert.AreEqual<int>(expected, actual);
        }

        private static int FindFirst<T>(IList<T> collection, T item) where T : IComparable<T>
        {
            for (int index = 0; index < collection.Count; index++)
            {
                if (collection[index].CompareTo(item) == 0)
                {
                    return index;
                }
            }

            return -1;
        }
    }
}


text:
require "dp_scraper/version"
require "watir-webdriver"

module DpScraper
	class DpScraper

		attr_reader :browser

		def initialize(url:)
			@url = :url || "http://www.dianping.com/search/category/1/10/g110"
			@browser = Watir::Browser.new :firefox

			@browser.goto @url
		end

		def crawl

		end

		def next_page

		end

	end
end

# watir extensions
require 'watir/element_locator'

# lib
require 'dp_scraper/models'
require 'dp_scraper/pages'


text:
package com.netease.exam.controller;

import com.netease.exam.dao.BlogDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

@Controller
@RequestMapping(value = "/test")
public class PostBlog {

    @Autowired
    private BlogDAO blogDAO;

    public void setBlogDAO(BlogDAO blogDAO) {
        this.blogDAO = blogDAO;
    }

    @RequestMapping("/postblog")
    public void doPostBlog(@RequestParam("blogTitle") String blogTitle,
                           @RequestParam("blogContent") String blogContent,
                           HttpServletResponse response) throws Exception {
        PrintWriter writer = response.getWriter();

        if (blogTitle.length() > 20 || blogContent.length() > 100) {
            System.out.println(blogTitle.length() + ": " + blogContent.length());
            response.sendError(HttpServletResponse.SC_BAD_REQUEST);

        } else {

            blogDAO.insertBlog(blogTitle, blogContent);
            response.setStatus(HttpServletResponse.SC_OK);
            writer.write("blogTitle: " + blogTitle);
            writer.write("\nblogContent: " + blogContent);
            writer.write("\nHTTP Status 200");
        }

    }
}


text:
"""Customize generated code here.

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

import asyncio
from typing import Any, Callable, IO, Coroutine, List, Optional, Union, cast

from azure.core.exceptions import ResourceNotFoundError
from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod

from azure.confidentialledger.aio._operations._operations import (
    ConfidentialLedgerClientOperationsMixin as GeneratedOperationsMixin,
)
from azure.confidentialledger.aio._operations._operations import ClsType, JSON
from azure.confidentialledger._operations._patch import BaseStatePollingMethod

__all__: List[str] = [
    "ConfidentialLedgerClientOperationsMixin"
]  # Add all objects you want publicly available to users at this package level

def patch_sdk():
    """Do not remove from this file.

    `patch_sdk` is a last resort escape hatch that allows you to do customizations
    you can't accomplish using the techniques described in
    https://aka.ms/azsdk/python/dpcodegen/python/customize
    """

class AsyncStatePollingMethod(BaseStatePollingMethod, AsyncPollingMethod):
    """Polling method for methods returning responses containing a 'state' field; the polling
    completes when 'state' becomes a desired value.
    """

    def __init__(
        self,
        operation: Callable[[], Coroutine[Any, Any, JSON]],
        desired_state: str,
        polling_interval_s: float,
        retry_not_found: bool,
    ):
        super().__init__(operation, desired_state, polling_interval_s, retry_not_found)

    async def run(self) -> None:
        try:
            while not self.finished():
                try:
                    response = await self._operation()
                    self._evaluate_response(response)
                except ResourceNotFoundError:
                    # We'll allow one instance of resource not found to account for replication
                    # delay.
                    if not self._retry_not_found or self._received_not_found_exception:
                        raise

                    self._received_not_found_exception = True

                if not self.finished():
                    await asyncio.sleep(self._polling_interval_s)
        except Exception:
            self._status = "failed"
            raise

class ConfidentialLedgerClientOperationsMixin(GeneratedOperationsMixin):
    async def begin_get_ledger_entry(
        self, transaction_id: str, *, collection_id: Optional[str] = None, **kwargs: Any
    ) -> AsyncLROPoller[JSON]:
        """Returns a poller to fetch the ledger entry at the specified transaction id.

        A collection id may optionally be specified to indicate the collection from which to fetch
        the value.

        :param transaction_id: Identifies a write transaction. Required.
        :type transaction_id: str
        :keyword collection_id: The collection id. Default value is None.
        :paramtype collection_id: str
        :return: An instance of LROPoller that returns a JSON object for the ledger entry.
        :rtype: ~azure.core.polling.LROPoller[JSON]
        :raises ~azure.core.exceptions.HttpResponseError:
        """
        polling = kwargs.pop("polling", True)  # type: Union[bool, AsyncPollingMethod]
        lro_delay = kwargs.pop("polling_interval", 0.5)

        async def operation() -> JSON:
            return await super(ConfidentialLedgerClientOperationsMixin, self).get_ledger_entry(
                transaction_id, collection_id=collection_id, **kwargs
            )

        initial_response = await operation()

        if polling is True:
            polling_method = cast(AsyncPollingMethod, AsyncStatePollingMethod(operation, "Ready", lro_delay, False))
        elif polling is False:
            polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
        else:
            polling_method = polling

        return AsyncLROPoller(self._client, initial_response, None, polling_method)

    async def begin_get_receipt(self, transaction_id: str, **kwargs: Any) -> AsyncLROPoller[JSON]:
        """Returns a poller for getting a receipt certifying ledger contents at a particular
        transaction id.

        :param transaction_id: Identifies a write transaction. Required.
        :type transaction_id: str
        :return: An instance of LROPoller that returns a JSON object for the receipt.
        :rtype: ~azure.core.polling.LROPoller[JSON]
        :raises ~azure.core.exceptions.HttpResponseError:
        """
        polling = kwargs.pop("polling", True)  # type: Union[bool, AsyncPollingMethod]
        lro_delay = kwargs.pop("polling_interval", 0.5)

        async def operation() -> JSON:
            return await super(ConfidentialLedgerClientOperationsMixin, self).get_receipt(
                transaction_id=transaction_id, **kwargs
            )

        initial_response = await operation()

        if polling is True:
            polling_method = cast(AsyncPollingMethod, AsyncStatePollingMethod(operation, "Ready", lro_delay, False))
        elif polling is False:
            polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
        else:
            polling_method = polling

        return AsyncLROPoller(self._client, initial_response, None, polling_method)

    async def begin_create_ledger_entry(
        self,
        entry: Union[JSON, IO],
        *,
        collection_id: Optional[str] = None,
        **kwargs: Any,
    ) -> AsyncLROPoller[JSON]:
        """Writes a ledger entry and returns a poller to wait for it to be durably committed. The
        poller returns the result for the initial call to create the ledger entry.

        A collection id may optionally be specified.

        :param entry: Ledger entry.
        :type entry: Union[JSON, IO]
        :keyword collection_id: The collection id. Default value is None.
        :paramtype collection_id: str
        :return: An instance of LROPoller that returns a JSON object
        :rtype: ~azure.core.polling.LROPoller[JSON]
        :raises: ~azure.core.exceptions.HttpResponseError
        """

        # Pop arguments that are unexpected in the pipeline.
        polling = kwargs.pop("polling", True)  # type: Union[bool, AsyncPollingMethod]
        lro_delay = kwargs.pop("polling_interval", 0.5)

        # Pop the custom deserializer, if any, so we know the format of the response and can
        # retrieve the transactionId. Serialize the response later.
        cls = kwargs.pop("cls", None)  # type: ClsType[JSON]
        kwargs["cls"] = lambda pipeline_response, json_response, headers: (
            pipeline_response,
            {
                **json_response,
                "transactionId": headers["x-ms-ccf-transaction-id"],
            },
            headers,
        )

        post_pipeline_response, post_result, post_headers = await self.create_ledger_entry(
            entry, collection_id=collection_id, **kwargs
        )

        # Delete the cls because it should only apply to the create_ledger_entry response, not the
        # wait_for_commit call.
        del kwargs["cls"]

        transaction_id = post_result["transactionId"]  # type: ignore

        kwargs["polling"] = polling
        kwargs["polling_interval"] = lro_delay

        if cls:
            kwargs["_create_ledger_entry_response"] = cls(
                post_pipeline_response, cast(JSON, post_result), post_headers  # type: ignore
            )
        else:
            kwargs["_create_ledger_entry_response"] = post_result

        return await self.begin_wait_for_commit(transaction_id, **kwargs)

    async def begin_wait_for_commit(
        self,
        transaction_id,  # type: str
        **kwargs,  # type: Any
    ) -> AsyncLROPoller[JSON]:
        """Creates a poller that queries the state of the specified transaction until it is
        Committed, a state that indicates the transaction is durably stored in the Confidential
        Ledger.

        :param transaction_id: Identifies a write transaction. Required.
        :type transaction_id: str
        :return: An instance of LROPoller returning a JSON object describing the transaction status.
        :rtype: ~azure.core.polling.LROPoller[JSON]
        :raises ~azure.core.exceptions.HttpResponseError:
        """
        polling = kwargs.pop("polling", True)  # type: Union[bool, AsyncPollingMethod]
        lro_delay = kwargs.pop("polling_interval", 0.5)

        # If this poller was called from begin_create_ledger_entry, we should return the
        # create_ledger_entry response, not the transaction status.
        post_result = kwargs.pop("_create_ledger_entry_response", None)
        deserialization_callback = lambda x: x if post_result is None else post_result

        async def operation() -> JSON:
            return await super(ConfidentialLedgerClientOperationsMixin, self).get_transaction_status(
                transaction_id=transaction_id, **kwargs
            )

        initial_response = await operation()

        if polling is True:
            polling_method = cast(
                AsyncPollingMethod,
                AsyncStatePollingMethod(operation, "Committed", lro_delay, True),
            )
        elif polling is False:
            polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
        else:
            polling_method = polling

        return AsyncLROPoller(self._client, initial_response, deserialization_callback, polling_method)

    async def create_ledger_entry(
        self,
        entry: Union[JSON, IO],
        *,
        collection_id: Optional[str] = None,
        **kwargs: Any,
    ) -> JSON:
        """Writes a ledger entry.

        The result is the expected JSON response with an additional field
        'transactionId' which represents the transaction identifier for this write operation.

        A collection id may optionally be specified.

        :param entry: Ledger entry.
        :type entry: Union[JSON, IO]
        :keyword collection_id: The collection id. Default value is None.
        :paramtype collection_id: str
        :return: JSON object
        :rtype: JSON
        :raises: ~azure.core.exceptions.HttpResponseError

        Example:
            .. code-block:: python

                # JSON input template you can fill out and use as your body input.
                entry = {
                    "collectionId": {
                        "collectionId": "str"  # Required.
                    },
                    "contents": "str",  # Required. Contents of the ledger entry.
                    "transactionId": "str"  # Optional. A unique identifier for the state of the
                      ledger. If returned as part of a LedgerEntry, it indicates the state from which
                      the entry was read.
                }
        """

        kwargs["cls"] = kwargs.get(
            "cls",
            lambda _, json_response, headers: {
                **json_response,
                "transactionId": headers["x-ms-ccf-transaction-id"],
            },
        )
        return await super().create_ledger_entry(entry, collection_id=collection_id, **kwargs)


text:
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Ruby on Rails API</title>
</head>
<frameset cols="300,*" frameborder="1" border="1" bordercolor="#999999" framespacing="1">
    <frame src="panel/index.html" title="Search" name="panel" />
    <frame src="files/__/_rvm/gems/ruby-2_2_0/gems/actionmailer-4_1_8/README_rdoc.html" name="docwin" />
</frameset>
</html>


text:
.. _index:

===================================
Welcome to Thrifty's documentation!
===================================

Everything you need to know about Thrifty, all in one place.

Getting started
===============

* Try the :ref:`README <readme>` first.

* Help with Thrift itself can be found at the `Apache Thrift`_ incubator site.

.. _`Apache Thrift`: http://incubator.apache.org/thrift/

Contents:

.. toctree::
   :maxdepth: 2

   readme

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`


text:
from typing import TYPE_CHECKING
from opentrons.protocols.execution.execute_json_v3 import (
    _blowout, _pick_up_tip, _drop_tip, _aspirate, _dispense, _touch_tip,
    _air_gap)
from opentrons.protocols.execution.execute_json_v4 import _engage_magnet, \
    _disengage_magnet, _temperature_module_set_temp, \
    _temperature_module_deactivate, \
    _temperature_module_await_temp, \
    _thermocycler_close_lid, \
    _thermocycler_open_lid, \
    _thermocycler_deactivate_block, \
    _thermocycler_deactivate_lid, \
    _thermocycler_set_block_temperature, \
    _thermocycler_set_lid_temperature, \
    _thermocycler_run_profile
from opentrons.protocols.execution.execute_json_v5 import _move_to_well

from opentrons.protocol_api.module_contexts import ThermocyclerContext

from opentrons_shared_data.protocol.constants import (
    JsonPipetteCommand, JsonMagneticModuleCommand,
    JsonTemperatureModuleCommand, JsonThermocyclerCommand
)

if TYPE_CHECKING:
    from opentrons.protocols.execution.dev_types import (
        PipetteDispatch, JsonV4MagneticModuleDispatch,
        JsonV4TemperatureModuleDispatch,
        JsonV4ThermocyclerDispatch
    )

pipette_command_map: 'PipetteDispatch' = {
    JsonPipetteCommand.blowout.value: _blowout,
    JsonPipetteCommand.pickUpTip.value: _pick_up_tip,
    JsonPipetteCommand.dropTip.value: _drop_tip,
    JsonPipetteCommand.aspirate.value: _aspirate,
    JsonPipetteCommand.dispense.value: _dispense,
    JsonPipetteCommand.touchTip.value: _touch_tip,
    JsonPipetteCommand.airGap.value: _air_gap,
    JsonPipetteCommand.moveToWell.value: _move_to_well
}

magnetic_module_command_map: 'JsonV4MagneticModuleDispatch' = {
    JsonMagneticModuleCommand.magneticModuleEngageMagnet.value: _engage_magnet,
    JsonMagneticModuleCommand.magneticModuleDisengageMagnet.value:
    _disengage_magnet,
}

temperature_module_command_map: 'JsonV4TemperatureModuleDispatch' = {
    JsonTemperatureModuleCommand.temperatureModuleSetTargetTemperature.value:
        _temperature_module_set_temp,
    JsonTemperatureModuleCommand.temperatureModuleDeactivate.value:
        _temperature_module_deactivate,
    JsonTemperatureModuleCommand.temperatureModuleAwaitTemperature.value:
        _temperature_module_await_temp
}

def tc_do_nothing(module: ThermocyclerContext, params) -> None:
    pass

thermocycler_module_command_map: 'JsonV4ThermocyclerDispatch' = {
    JsonThermocyclerCommand.thermocyclerCloseLid.value:
    _thermocycler_close_lid,
    JsonThermocyclerCommand.thermocyclerOpenLid.value: _thermocycler_open_lid,
    JsonThermocyclerCommand.thermocyclerDeactivateBlock.value:
    _thermocycler_deactivate_block,
    JsonThermocyclerCommand.thermocyclerDeactivateLid.value:
    _thermocycler_deactivate_lid,
    JsonThermocyclerCommand.thermocyclerSetTargetBlockTemperature.value:
    _thermocycler_set_block_temperature,
    JsonThermocyclerCommand.thermocyclerSetTargetLidTemperature.value:
    _thermocycler_set_lid_temperature,
    JsonThermocyclerCommand.thermocyclerRunProfile.value:
    _thermocycler_run_profile,
    # NOTE: the thermocyclerAwaitX commands are expected to always
    # follow a corresponding SetX command, which is implemented as
    # blocking. Then nothing needs to be done for awaitX commands.
    JsonThermocyclerCommand.thermocyclerAwaitBlockTemperature.value:
    tc_do_nothing,
    JsonThermocyclerCommand.thermocyclerAwaitLidTemperature.value:
    tc_do_nothing,
    JsonThermocyclerCommand.thermocyclerAwaitProfileComplete.value:
    tc_do_nothing,
}


text: An NLP approach to help cloud manufacturing providers provision their capabilities.


text:
package bean;

/**
 * Created by cxk on 2016/5/4.
 */
public class MySecurityAddtoLoveBean {
    public String userId;
    public String type;
    public String typeId;
    public String sign;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
}


text:
int
PMS_Flo::encode (char *packet, int &packet_length)
{
  if (Options::get_opt (Options::DEBUGGING) != 0)
    ACE_DEBUG ((LM_DEBUG,
                "in PMS_Flo::encode"));

  Protocol_Record *prp;
  char *buf_ptr = packet;

  ACE_OS::sprintf (buf_ptr,
                   "Users   %d",
                   this->get_total_users ());
  buf_ptr += ACE_OS::strlen (buf_ptr) + 1;

  // We only send back info on friends that we actually see logged in.

  for (;
       (prp = this->get_next_friend ()) != 0;
       *buf_ptr++ = '\t')
    buf_ptr = this->handle_protocol_entries (ACE_OS::strecpy (buf_ptr,
                                                              prp->get_login ()),
                                             prp->get_drwho_list ());
  *buf_ptr++ = '\n';
  packet_length = buf_ptr - packet;

  if (Options::get_opt (Options::DEBUGGING) != 0)
    {
      ACE_DEBUG ((LM_DEBUG,
                  "packet_length = %d\n",
                  packet_length));
      ACE_OS::write (ACE_STDERR, packet, packet_length);
      ACE_DEBUG ((LM_DEBUG,
                  "\n"));
    }

  return 1;
}

// This function takes a packet received from the client and calls the
// appropriate Protocol_Manager routine to build the local table of
// friends.

int
PMS_Flo::decode (char *packet, int &packet_length)
{
  if (Options::get_opt (Options::DEBUGGING) != 0)
    ACE_DEBUG ((LM_DEBUG,
                "in PMS_Flo::decode, packet_length = %d\n",
                packet_length));

  ACE_NEW_RETURN (this->ss,
                  BS_Server (packet),
                  -1);
  return 1;
}

PMS_Flo::PMS_Flo (void)
{
}