text:
/** @file Defines the StreamWriter class which writes data to
 *  a binary stream with a well-defined endianness. */
#pragma once
#ifndef AI_STREAMWRITER_H_INCLUDED
#define AI_STREAMWRITER_H_INCLUDED

#ifdef __GNUC__
#   pragma GCC system_header
#endif

#include <assimp/ByteSwapper.h>
#include <assimp/IOStream.hpp>

#include <memory>
#include <vector>

namespace Assimp {

// --------------------------------------------------------------------------------------------
/** Wrapper class around IOStream to allow for consistent writing of binary data in both
 *  little and big endian format. Don't attempt to instance the template directly. Use
 *  StreamWriterLE to write to a little-endian stream and StreamWriterBE to write to a
 *  BE stream. Alternatively, there is StreamWriterAny if the endianness of the output
 *  stream is to be determined at runtime.
 */
// --------------------------------------------------------------------------------------------
template <bool SwapEndianess = false, bool RuntimeSwitch = false>
class StreamWriter
{
    enum {
        INITIAL_CAPACITY = 1024
    };

public:

    // ---------------------------------------------------------------------
    /** Construction from a given stream with a well-defined endianness.
     *
     *  The StreamReader holds a permanent strong reference to the
     *  stream, which is released upon destruction.
     *  @param stream Input stream. The stream is not re-seeked and writing
          continues at the current position of the stream cursor.
     *  @param le If @c RuntimeSwitch is true: specifies whether the
     *    stream is in little endian byte order. Otherwise the
     *    endianness information is defined by the @c SwapEndianess
     *    template parameter and this parameter is meaningless.  */
    StreamWriter(std::shared_ptr<IOStream> stream, bool le = false)
        : stream(stream)
        , le(le)
        , cursor()
    {
        ai_assert(stream);
        buffer.reserve(INITIAL_CAPACITY);
    }

    // ---------------------------------------------------------------------
    StreamWriter(IOStream* stream, bool le = false)
        : stream(std::shared_ptr<IOStream>(stream))
        , le(le)
        , cursor()
    {
        ai_assert(stream);
        buffer.reserve(INITIAL_CAPACITY);
    }

    // ---------------------------------------------------------------------
    ~StreamWriter() {
        stream->Write(buffer.data(), 1, buffer.size());
        stream->Flush();
    }

public:

    // ---------------------------------------------------------------------
    /** Flush the contents of the internal buffer, and the output IOStream */
    void Flush()
    {
        stream->Write(buffer.data(), 1, buffer.size());
        stream->Flush();
        buffer.clear();
        cursor = 0;
    }

    // ---------------------------------------------------------------------
    /** Seek to the given offset / origin in the output IOStream.
     *
     *  Flushes the internal buffer and the output IOStream prior to seeking. */
    aiReturn Seek(size_t pOffset, aiOrigin pOrigin=aiOrigin_SET)
    {
        Flush();
        return stream->Seek(pOffset, pOrigin);
    }

    // ---------------------------------------------------------------------
    /** Tell the current position in the output IOStream.
     *
     *  First flushes the internal buffer and the output IOStream. */
    size_t Tell()
    {
        Flush();
        return stream->Tell();
    }

public:

    // ---------------------------------------------------------------------
    /** Write a float to the stream  */
    void PutF4(float f)
    {
        Put(f);
    }

    // ---------------------------------------------------------------------
    /** Write a double to the stream  */
    void PutF8(double d)    {
        Put(d);
    }

    // ---------------------------------------------------------------------
    /** Write a signed 16 bit integer to the stream */
    void PutI2(int16_t n)   {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write a signed 8 bit integer to the stream */
    void PutI1(int8_t n)    {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write an signed 32 bit integer to the stream */
    void PutI4(int32_t n)   {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write a signed 64 bit integer to the stream */
    void PutI8(int64_t n)   {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write a unsigned 16 bit integer to the stream */
    void PutU2(uint16_t n)  {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write a unsigned 8 bit integer to the stream */
    void PutU1(uint8_t n)   {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write an unsigned 32 bit integer to the stream */
    void PutU4(uint32_t n)  {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write a unsigned 64 bit integer to the stream */
    void PutU8(uint64_t n)  {
        Put(n);
    }

    // ---------------------------------------------------------------------
    /** Write a single character to the stream */
    void PutChar(char c)    {
        Put(c);
    }

    // ---------------------------------------------------------------------
    /** Write an aiString to the stream */
    void PutString(const aiString& s)
    {
        // as Put(T f) below
        if (cursor + s.length >= buffer.size()) {
            buffer.resize(cursor + s.length);
        }
        void* dest = &buffer[cursor];
        ::memcpy(dest, s.C_Str(), s.length);
        cursor += s.length;
    }

    // ---------------------------------------------------------------------
    /** Write a std::string to the stream */
    void PutString(const std::string& s)
    {
        // as Put(T f) below
        if (cursor + s.size() >= buffer.size()) {
            buffer.resize(cursor + s.size());
        }
        void* dest = &buffer[cursor];
        ::memcpy(dest, s.c_str(), s.size());
        cursor += s.size();
    }

public:

    // ---------------------------------------------------------------------
    /** overload operator<< and allow chaining of MM ops. */
    template <typename T>
    StreamWriter& operator << (T f) {
        Put(f);
        return *this;
    }

    // ---------------------------------------------------------------------
    std::size_t GetCurrentPos() const {
        return cursor;
    }

    // ---------------------------------------------------------------------
    void SetCurrentPos(std::size_t new_cursor) {
        cursor = new_cursor;
    }

    // ---------------------------------------------------------------------
    /** Generic write method. ByteSwap::Swap(T*) *must* be defined */
    template <typename T>
    void Put(T f)   {
        Intern :: Getter<SwapEndianess,T,RuntimeSwitch>() (&f, le);

        if (cursor + sizeof(T) >= buffer.size()) {
            buffer.resize(cursor + sizeof(T));
        }

        void* dest = &buffer[cursor];

        // reinterpret_cast + assignment breaks strict aliasing rules
        // and generally causes trouble on platforms such as ARM that
        // do not silently ignore alignment faults.
        ::memcpy(dest, &f, sizeof(T));
        cursor += sizeof(T);
    }

private:

    std::shared_ptr<IOStream> stream;
    bool le;

    std::vector<uint8_t> buffer;
    std::size_t cursor;
};

// --------------------------------------------------------------------------------------------
// `static` StreamWriter. Their byte order is fixed and they might be a little bit faster.
#ifdef AI_BUILD_BIG_ENDIAN
    typedef StreamWriter<true>  StreamWriterLE;
    typedef StreamWriter<false> StreamWriterBE;
#else
    typedef StreamWriter<true>  StreamWriterBE;
    typedef StreamWriter<false> StreamWriterLE;
#endif

// `dynamic` StreamWriter. The byte order of the input data is specified in the
// c'tor. This involves runtime branching and might be a little bit slower.
typedef StreamWriter<true,true> StreamWriterAny;

} // end namespace Assimp

#endif // !! AI_STREAMWriter_H_INCLUDED


text:
#ifndef _ASM_PAGE_OFFSET_H
#define _ASM_PAGE_OFFSET_H

#define PAGE_OFFSET_RAW CONFIG_KERNEL_RAM_BASE_ADDRESS

#endif

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace COG.LibNoise.Operator
{
	/// <summary>
	/// Provides a noise module that outputs the larger of the two output values from two
	/// source modules. [OPERATOR]
	/// </summary>
	public class Max : ModuleBase
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of Max.
		/// </summary>
		public Max()
			: base(2)
		{
		}

		/// <summary>
		/// Initializes a new instance of Max.
		/// </summary>
		/// <param name="lhs">The left hand input module.</param>
		/// <param name="rhs">The right hand input module.</param>
		public Max(ModuleBase lhs, ModuleBase rhs)
			: base(2)
		{
			this.m_modules[0] = lhs;
			this.m_modules[1] = rhs;
		}

		#endregion

		#region ModuleBase Members

		/// <summary>
		/// Returns the output value for the given input coordinates.
		/// </summary>
		/// <param name="x">The input coordinate on the x-axis.</param>
		/// <param name="y">The input coordinate on the y-axis.</param>
		/// <param name="z">The input coordinate on the z-axis.</param>
		/// <returns>The resulting output value.</returns>
		public override double GetValue(double x, double y, double z)
		{
			System.Diagnostics.Debug.Assert(this.m_modules[0] != null);
			System.Diagnostics.Debug.Assert(this.m_modules[1] != null);
			double a = this.m_modules[0].GetValue(x, y, z);
			double b = this.m_modules[1].GetValue(x, y, z);
			return Math.Max(a, b);
		}

		#endregion
	}
}


text:
    <meta http-equiv="refresh" content="2;url=https://ayasin.github.io/resume" />
    <title>Page Moved</title>

    Currently only my resume is hosted here. Click here to view my resume if you aren't automatically redirected.


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Movieflix Project-slidebar</title>

    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/Movieflix.css">
    <link rel="stylesheet" type="text/css" href="">

    <link href="css/simple-sidebar.css" rel="stylesheet">

<form class="navbar-form navbar-right" role="search">

                     <input type="text" class="form-control" placeholder="Search" name="q">

                         <button class="btn btn-default" type="submit"></button>

             </form>

                    Dashboard

                    Categories

                    TV Series

                    Forums

                    About

                    Services

                    Contact

                    Toggle Menu

Avengers

 Actors": "Robert Downey Jr., Chris Evans, Mark Ruffalo, Chris Hemsworth", "Released": "04 May 2012".

Captain America:Civil War

 Actors": "Chris Evans / Robert Downey Jr. / Scarlett Johansson / Sebastian Stan / Anthony Mackie / Don Cheadle / Jeremy Renner / Chadwick Boseman", "Released": "06 May 2016".

The Guardians of The Galaxy

 "Actors": "Chris Pratt, James Gunn, Zoe Saldana, Dave Bautista, More" , "Released":  "01 August 2014",.

Intersteller

 "Actors": "Ellen Burstyn, Matthew McConaughey, Mackenzie Foy, John Lithgow", "Released":  "07 November 2014",.

Gods Of Egypt

 Actors": "Brenton Thwaites / John Samaha / Courtney Eaton / Nikolaj Coster-Waldau / Paula Arundell / Alia Seror-O'Neill / Emily Wheaton / Elodie Yung", "Released": "02 May 2016".

Avengers : Age of Ultron

 Actors": "Robert Downey Jr. / Chris Hemsworth / Mark Ruffalo / Chris Evans / Scarlett Johansson / Jeremy Renner / James Spader / Samuel L. Jackson / Don Cheadle", "Released": "01 May 2015".

Game Of Thrones TV Series

 "Actors": " Emilia Clarke, Kit Harington, Maisie Williams, Lena Headey, More","Released":  "17 April 2011",.

Iron Man 3

 "Actors": "  Robert Downey Jr., Gwyneth Paltrow, Ben Kingsley, More","Released":  "03 May 2013",.

Flash TV Series

 Actors": "Grant Gustin / Candice Patton / Danielle Panabaker / Rick Cosnett / Carlos Valdes / Tom Cavanagh / Jesse L. Martin / Patrick Sabongui", "Released": "May 2014".

THe Dark Night Rises

 "Actors": "Christian Bale, Gary Oldman, Tom Hardy, Joseph Gordon-Levitt",, "Released": "20 July 2012".

The Matrix

 "Actors": "Keanu Reeves, Laurence Fishburne, Carrie-Anne Moss, Hugo Weaving", , "Released":  "31 Mar 1999",.

Despicable Me 2

 "Actors": "  Steve Carell, Kristen Wiig, Miranda Cosgrove, Pierre Coffin, More","Released":  "03 July 2013",.

Egen solutions for Front End Web Developer

@2016

Created by: Shitanshu Sarode


text:
package com.babylove.www.spring.ioc.demo13.dao;

public interface JsrDao {

	public void save();
}


text:
pref('toolkit.defaultChromeURI', 'chrome://jscoverageexample/content/main.xul');

pref("browser.dom.window.dump.enabled", true);
pref("javascript.options.showInConsole", true);
pref("javascript.options.strict", true);
pref("nglayout.debug.disable_xul_cache", true);
pref("nglayout.debug.disable_xul_fastload", true);


text:
////////////////////////////////////////////////////////////////////////////////
//settingsparser.cs
//Created on: 2015-8-21, 18:21
//
//Project VoxelEngine
//Copyright C bajsko 2015. All rights Reserved.
////////////////////////////////////////////////////////////////////////////////

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace VoxelEngine.Basic
{

    /// <summary>
    /// Parser for a .vxl file.
    /// </summary>
    public static class SettingsParser
    {
        private const int DEFAULT_WINDOW_WIDTH = 1280;
        private const int DEFAULT_WINDOW_HEIGHT = 800;
        private const bool DEFAULT_USE_FRUSTUM = true;
        private const bool DEFAULT_USE_SMOOTH_LIGHTING = false;
        private const bool DEFAULT_USE_DYNAMIC_SHADOWS = false;

        /// <summary>
        /// Tries to parse a .vxl file. If it fails it will return one with default values.
        /// </summary>
        /// <param name="filename">path to file</param>
        /// <returns>Setting hopefully filled with custom content, or default.</returns>
        public static Settings Parse(string filename)
        {
            Settings setting = new Settings();

            try
            {
                FileStream stream = File.OpenRead(filename);

                using(StreamReader reader = new StreamReader(stream))
                {
                    string line;
                    while((line = reader.ReadLine()) != null)
                    {
                        if (line.StartsWith("//") || line.StartsWith("\n")) continue;

                        char[] separator = { ':' };
                        string[] raw = line.Split(separator, 2);

                        string data = raw[0];
                        string value = raw[1];

                        if(data == "width")
                        {
                            setting.WindowWidth = ValueToInt(value);
                        }

                        else if(data == "height")
                        {
                            setting.WindowHeight = ValueToInt(value);
                        }

                        else if(data == "use_frustum")
                        {
                            setting.UseFrustum = ValueToBool(value);
                        }

                        else if(data == "use_smooth_lighting")
                        {
                            setting.UseSmoothLighting = ValueToBool(value);
                        }

                        else if(data == "use_dynamic_shadows")
                        {
                            setting.UseDynamicShadows = ValueToBool(value);
                        }
                    }
                }

            } catch (Exception e)
            {
                return DefaultSettings();
            }

            return setting;
        }

        /// <summary>
        /// Creates a basic setting struct with default variables.
        /// </summary>
        /// <returns>Well, above text.</returns>
        private static Settings DefaultSettings()
        {
            Settings settings = new Settings();
            settings.WindowWidth = DEFAULT_WINDOW_WIDTH;
            settings.WindowHeight = DEFAULT_WINDOW_HEIGHT;
            settings.UseFrustum = DEFAULT_USE_FRUSTUM;
            settings.UseSmoothLighting = DEFAULT_USE_SMOOTH_LIGHTING;
            settings.UseDynamicShadows = DEFAULT_USE_DYNAMIC_SHADOWS;

            return settings;
        }

        private static int ValueToInt(string toConvert)
        {
            return Convert.ToInt32(toConvert, 10);
        }

        private static bool ValueToBool(string toConvert)
        {
            if (toConvert == "true")
                return true;
            else if (toConvert == "false")
                return false;
            else
                return false;
        }
    }
}


text:
require 'spec_helper'

RSpec.describe Hsquare::Client do
  describe Hsquare::Client::Admin do
    describe '#admin_key=' do
      let(:admin_key) { 'admin-key' }

      before { Hsquare::Client::Admin.admin_key = nil }

      it { expect { Hsquare::Client::Admin.admin_key = admin_key }.to change { Hsquare::Client::Admin.default_options } }
      it { expect { Hsquare::Client::Admin.admin_key = admin_key }.not_to change { Hsquare::Client.default_options } }
    end
  end
end


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.encuestame</groupId>
        <artifactId>encuestame</artifactId>
        <version>1.5.3-SNAPSHOT</version>
    </parent>
    <artifactId>encuestame-business</artifactId>
    <version>1.5.3-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>Encuestame Business</name>
    <build>
        <filters>
            <filter>../env/${env}.properties</filter>
        </filters>
        <plugins>
            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-jar-plugin</artifactId>
               <version>${maven-jar.plugin}</version>
               <executions>
                 <execution>
                   <goals>
                       <goal>test-jar</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>
        </plugins>
        <resources>
            <resource>
              <directory>src/main/resources/</directory>
              <includes>
                <include>spring-test/*.*</include>
                <include>org/**/*.*</include>
                <include>*.xml</include>
                <include>properties-test/*.*</include>
              </includes>
              <filtering>true</filtering>
            </resource>
        </resources>
    </build>
    <dependencies>
        <!--<dependency>-->
            <!--<groupId>org.encuestame</groupId>-->
            <!--<artifactId>enme-dao</artifactId>-->
        <!--</dependency>-->
        <!--<dependency>-->
            <!--<groupId>org.encuestame</groupId>-->
            <!--<artifactId>enme-model</artifactId>-->
        <!--</dependency>-->
        <dependency>
            <groupId>org.encuestame</groupId>
            <artifactId>enme-dao</artifactId>
            <scope>test</scope>
            <classifier>tests</classifier>
        </dependency>
        <!--<dependency>-->
            <!--<groupId>org.encuestame</groupId>-->
            <!--<artifactId>encuestame-utils</artifactId>-->
        <!--</dependency>-->
        <!--<dependency> <!– reuse src/test/java code from encuestame-core! –>-->
            <!--<groupId>org.encuestame</groupId>-->
            <!--<artifactId>encuestame-utils</artifactId>-->
            <!--<scope>test</scope>-->
            <!--<classifier>tests</classifier>-->
        <!--</dependency>-->
        <dependency>
            <groupId>org.encuestame</groupId>
            <artifactId>encuestame-core</artifactId>
        </dependency>
        <dependency> <!-- reuse src/test/java code from encuestame-core! -->
            <groupId>org.encuestame</groupId>
            <artifactId>encuestame-core</artifactId>
            <scope>test</scope>
            <classifier>tests</classifier>
        </dependency>
        <dependency>
            <groupId>org.encuestame</groupId>
            <artifactId>encuestame-social</artifactId>
        </dependency>
        <dependency> <!-- reuse src/test/java code from encuestame-core! -->
            <groupId>org.encuestame</groupId>
            <artifactId>encuestame-social</artifactId>
            <scope>test</scope>
            <classifier>tests</classifier>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-collections</groupId>
            <artifactId>commons-collections</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
        </dependency>
        <dependency>
            <groupId>c3p0</groupId>
            <artifactId>c3p0</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>jsr250-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-commons-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-search</artifactId>
        </dependency>
        <dependency>
            <groupId>jaxen</groupId>
            <artifactId>jaxen</artifactId>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.persistence</groupId>
            <artifactId>persistence-api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
        </dependency>
        <dependency>
            <groupId>taglibs</groupId>
            <artifactId>standard</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>${servlet-api-artifact}</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jasypt</groupId>
            <artifactId>jasypt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jdom</groupId>
            <artifactId>jdom</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.twitter4j</groupId>
            <artifactId>twitter4j-core</artifactId>
        </dependency>
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-digester</groupId>
            <artifactId>commons-digester</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
        </dependency>
        <dependency>
            <groupId>cglib</groupId>
            <artifactId>cglib-nodep</artifactId>
        </dependency>
        <dependency>
            <groupId>org.antlr</groupId>
            <artifactId>antlr</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity</artifactId>
        </dependency>
        <dependency>
            <groupId>rome</groupId>
            <artifactId>rome</artifactId>
        </dependency>
        <dependency>
            <groupId>rome</groupId>
            <artifactId>rome-fetcher</artifactId>
        </dependency>
        <dependency>
            <groupId>org.opensymphony.quartz</groupId>
            <artifactId>quartz</artifactId>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
        <!-- Spring Framework Dependencies -->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-jdbc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
        </dependency>
        <!-- Spring Integration -->
        <dependency>
            <groupId>org.springframework.integration</groupId>
            <artifactId>spring-integration-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.integration</groupId>
            <artifactId>spring-integration-http</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.integration</groupId>
            <artifactId>spring-integration-mail</artifactId>
        </dependency>
        <!-- Spring Security -->
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-ldap</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-openid</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-taglibs</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security</groupId>
            <artifactId>spring-security-config</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.security.oauth</groupId>
            <artifactId>spring-security-oauth</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.webflow</groupId>
            <artifactId>spring-js</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-expression</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-aspects</artifactId>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>org.scribe</groupId>
            <artifactId>scribe</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.mobile</groupId>
            <artifactId>spring-mobile-device</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-scratchpad</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.poi</groupId>
            <artifactId>poi-ooxml</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.pdfbox</groupId>
            <artifactId>pdfbox</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.lucene</groupId>
            <artifactId>lucene-highlighter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.lucene</groupId>
            <artifactId>lucene-fast-vector-highlighter</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.lucene</groupId>
            <artifactId>lucene-spellchecker</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>net.sf.opencsv</groupId>
            <artifactId>opencsv</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-messaging</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
    </dependencies>
</project>


text:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// This file changes may cause incorrect behavior and if
// The code is regenerated, these changes will be lost.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Runtime.Serialization;
using ProtoBuf;
using ZyGames.Framework.Common;
using ZyGames.Framework.Collection;
using ZyGames.Framework.Model;
using ZyGames.Tianjiexing.Model.Config;
using ZyGames.Framework.Cache.Generic;

namespace ZyGames.Tianjiexing.Model
{
    /// <summary>
    /// ���ջ���Ʊ�
    /// </summary>
    [Serializable, ProtoContract, EntityTable(DbConfig.Data, "FestivalRestrain", DbConfig.PeriodTime, DbConfig.PersonalName)]
    public class FestivalRestrain : BaseEntity
    {

        public FestivalRestrain()
            : base(AccessLevel.ReadWrite)
        {
            this.UserExtend = new CacheList<RestrainExtend>();
        }
        //protected override void BindChangeEvent()
        //{
        //    UserExtend.BindParentChangeEvent(this);
        //}

        #region auto-generated Property
        private String _UserID;
        /// <summary>
        ///
        /// </summary>
        [ProtoMember(1)]
        [EntityField("UserID", IsKey = true)]
        public String UserID
        {
            get
            {
                return _UserID;
            }
            set
            {
                SetChange("UserID", value);
            }
        }
        private Int32 _FestivalID;
        /// <summary>
        ///
        /// </summary>
        [ProtoMember(2)]
        [EntityField("FestivalID", IsKey = true)]
        public Int32 FestivalID
        {
            get
            {
                return _FestivalID;
            }
            set
            {
                SetChange("FestivalID", value);
            }
        }
        private Int32 _RestrainNum;
        /// <summary>
        ///
        /// </summary>
        [ProtoMember(3)]
        [EntityField("RestrainNum")]
        public Int32 RestrainNum
        {
            get
            {
                return _RestrainNum;
            }
            set
            {
                SetChange("RestrainNum", value);
            }
        }
        private DateTime _RefreashDate;
        /// <summary>
        ///
        /// </summary>
        [ProtoMember(4)]
        [EntityField("RefreashDate")]
        public DateTime RefreashDate
        {
            get
            {
                return _RefreashDate;
            }
            set
            {
                SetChange("RefreashDate", value);
            }
        }
        private CacheList<RestrainExtend> _UserExtend;
        /// <summary>
        ///
        /// </summary>
        [ProtoMember(5)]
        [EntityField("UserExtend", IsJsonSerialize = true)]
        public CacheList<RestrainExtend> UserExtend
        {
            get
            {
                return _UserExtend;
            }
            set
            {
                SetChange("UserExtend", value);
            }
        }

        private bool _IsReceive;
        /// <summary>
        /// �Ƿ���ȡ
        /// </summary>
        [ProtoMember(6)]
        [EntityField("IsReceive")]
        public bool IsReceive
        {
            get
            {
                return _IsReceive;
            }
            set
            {
                SetChange("IsReceive", value);
            }
        }

        protected override object this[string index]
        {
            get
            {
                #region
                switch (index)
                {
                    case "UserID": return UserID;
                    case "FestivalID": return FestivalID;
                    case "RestrainNum": return RestrainNum;
                    case "RefreashDate": return RefreashDate;
                    case "UserExtend": return UserExtend;
                    case "IsReceive": return IsReceive;
                    default: throw new ArgumentException(string.Format("FestivalRestrain index[{0}] isn't exist.", index));
                }
                #endregion
            }
            set
            {
                #region
                switch (index)
                {
                    case "UserID":
                        _UserID = value.ToNotNullString();
                        break;
                    case "FestivalID":
                        _FestivalID = value.ToInt();
                        break;
                    case "RestrainNum":
                        _RestrainNum = value.ToInt();
                        break;
                    case "RefreashDate":
                        _RefreashDate = value.ToDateTime();
                        break;
                    case "UserExtend":
                        _UserExtend = ConvertCustomField<CacheList<RestrainExtend>>(value, index);
                        break;
                    case "IsReceive":
                        _IsReceive = value.ToBool();
                        break;
                    default: throw new ArgumentException(string.Format("FestivalRestrain index[{0}] isn't exist.", index));
                }
                #endregion
            }
        }

        #endregion

        protected override int GetIdentityId()
        {
            //allow modify return value
            return UserID.ToInt();
        }
    }
}


text:
package org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts;

import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.MarginBorder;
import org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.CreationEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.DragDropEditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
import org.eclipse.gmf.runtime.notation.View;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.AbstractMediatorCompartmentEditPart;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.custom.editpolicy.FeedbackIndicateDragDropEditPolicy;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.policies.MediatorFlowMediatorFlowCompartment15CanonicalEditPolicy;
import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.policies.MediatorFlowMediatorFlowCompartment15ItemSemanticEditPolicy;

/**
 * @generated NOT
 */
public class MediatorFlowMediatorFlowCompartment15EditPart extends AbstractMediatorCompartmentEditPart {

    /**
     * @generated
     */
    public static final int VISUAL_ID = 7038;

    /**
     * @generated
     */
    public MediatorFlowMediatorFlowCompartment15EditPart(View view) {
        super(view);
    }

    /**
     * @generated NOT
     */
    public String getCompartmentName() {
        // return Messages.MediatorFlowMediatorFlowCompartment15EditPart_title;
        return "Target";
    }

    public IFigure createFigure() {
        ResizableCompartmentFigure result = (ResizableCompartmentFigure) super.createFigure();
        result.setTitleVisibility(false);
        // Override default border.
        result.setBorder(new MarginBorder(0, 0, 0, 0));
        result.setToolTip((String) null);
        return result;
    }

    /**
     * @generated NOT
     */
    protected void createDefaultEditPolicies() {
        super.createDefaultEditPolicies();
        installEditPolicy(EditPolicyRoles.SEMANTIC_ROLE,
                new MediatorFlowMediatorFlowCompartment15ItemSemanticEditPolicy());
        installEditPolicy(EditPolicyRoles.CREATION_ROLE, new CreationEditPolicy());
        installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new DragDropEditPolicy());
        installEditPolicy(EditPolicyRoles.DRAG_DROP_ROLE, new FeedbackIndicateDragDropEditPolicy());
        installEditPolicy(EditPolicyRoles.CANONICAL_ROLE,
                new MediatorFlowMediatorFlowCompartment15CanonicalEditPolicy());
        removeEditPolicy(org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles.CONNECTION_HANDLES_ROLE);

    }

    public boolean isSelectable() {
        // TODO This or using ResizableEditpolicy?
        return false;
    }

    /**
     * @generated
     */
    protected void setRatio(Double ratio) {
        if (getFigure().getParent().getLayoutManager() instanceof ConstrainedToolbarLayout) {
            super.setRatio(ratio);
        }
    }

}


text:
{% load i18n %}

{% trans "Instance VNC Console" %}

{% if vnc_url %}

{% blocktrans %}If VNC console is not responding to keyboard input: click the grey status bar below.{% endblocktrans %} {% trans "Click here to show only VNC" %}

{% else %}

{% blocktrans %}VNC console is currently unavailabe. Please try again later.{% endblocktrans %}
{% trans "Reload" %}

{% endif %}


text:
<?xml version="1.0" encoding="UTF-8" ?>
    <InterchangeStudentEnrollment xsi:schemaLocation="http://ed-fi.org/0100 ../../sli/common/domain/src/main/resources/edfiXsd/Interchange-StudentEnrollment.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://ed-fi.org/0100">

        <StudentSchoolAssociation>
            <StudentReference>
                <StudentIdentity>
                    <StudentUniqueStateId>530425896</StudentUniqueStateId>
                </StudentIdentity>
            </StudentReference>
            <SchoolReference>
                <EducationalOrgIdentity>
                    <StateOrganizationId>South Daybreak Elementary</StateOrganizationId>
                </EducationalOrgIdentity>
            </SchoolReference>
            <EntryDate>2012-01-01</EntryDate>
            <EntryGradeLevel>Eighth grade</EntryGradeLevel>
			<ClassOf>2011-2012</ClassOf>
        </StudentSchoolAssociation>

    </InterchangeStudentEnrollment>


text:
function p {
	#Note - Must not use symlinked folders like ~/../.., must be full location /users/someone/work/ etc
	#TODO : Append trailing slash if missing, and auto convert symlinked folders (hint -L)
	while read line; do
		project_file="${line}${1}";
		if [ -d $project_file ]; then
			cd $project_file;
			break;
		fi
	done < ~/.bash/completion_scripts/project_completion_roots
}

#System commands
alias cls='tput clear'
alias flushdns='dscacheutil -flushcache'
alias reload="source ~/.bash_profile"
alias edit_hostfile="$EDITOR /private/etc/hosts"
alias current_time='echo $(date +%H:%M:%S)'
alias please='sudo $(fc -ln -1)' # sudo last command

#User commands
alias rsync_qnap="/users/tom/development/scripts/backup/rsync_backup.sh"
alias killall_ruby="ps aux | grep ruby | grep -v grep | awk '{print $2}' | xargs kill"

#Editor
alias m=$EDITOR

# SSH Key removal
alias remove_ssh_host="sed -i'' -e '$1 d' ~/.ssh/known_hosts"

#alias otp generation for 1password via yubikey
alias 1p="ykman oath code 1p"


text:
require 'integration/spec_helper'
require 'json'

describe server(:proxy) do
  describe http('http://app.example.com') do
    it "sends GET request with Host header" do
      expect(response.body).to include('app')
    end
  end

  describe http('http://static.example.com') do
    it "sends GET request with Host header" do
      expect(response.body).to include('static')
    end
  end

  describe http('http://static.example.com', headers: {"Accept-Encoding" => "gzip"}) do
    it "gets response compressed by gzip" do
      expect(response.headers['content-encoding']).to eq('gzip')
    end
  end

  describe http('http://static.example.com', headers: {"Accept-Encoding" => "gzip"}, inflate_gzip: true) do
    it "gets response inflated by gzip" do
      expect(response.headers['content-encoding']).to be_nil
      expect(response.body).to eq("This is static site.\n")
    end
  end

  describe http('http://static.example.com/auth') do
    it "sends GET request without basic auth" do
      expect(response.status).to eq 401
    end
  end

  describe http('http://static.example.com/auth', basic_auth: ['dummy', 'dummy']) do
    it "sends GET request with basic auth" do
      expect(response.status).to eq 200
      expect(response.body).to include('auth')
    end
  end

  describe http('http://static.example.com/redirect') do
    it "doesn't follow redirects" do
      expect(response.status).to eq 302
    end
  end

  describe http('http://static.example.com/redirect', follow_redirects: true) do
    it "follows redirects" do
      expect(response.status).to eq 200
      expect(response.body).to eq("This is static site.\n")
    end
  end

  describe http('https://static.example.com/redirect', follow_redirects: true, ssl: {verify: false}) do
    it "follows redirects" do
      expect(response.status).to eq 200
      expect(response.body).to eq("This is static site.\n")
    end
  end
end

describe server(:app) do
  let(:body_as_json) { JSON.parse(response.body) }

  describe http('http://app.example.com') do
    it "sends GET request" do
      expect(response.body).to include('app')
    end
  end

  describe http('http://app.example.com/path/to/resource', params: {'foo' => 'bar'}, headers: {'USER' => 'VALUE'}) do
    it "sends GET request with params" do
      expect(body_as_json['method']).to eq('GET')
      expect(body_as_json['path']).to eq('/path/to/resource')
      expect(body_as_json['params']).to eq({"foo" => "bar"})
      expect(body_as_json['headers']['USER']).not_to be_empty
      expect(body_as_json['headers']['USER']).to eq('VALUE')
    end
  end

  describe http('http://app.example.com', method: :post, params: {'foo' => 'bar'}, headers: {'USER' => 'VALUE'}) do
    it "sends POST request with params" do
      expect(body_as_json['method']).to eq('POST')
      expect(body_as_json['params']).to eq({"foo" => "bar"})
      expect(body_as_json['headers']['USER']).not_to be_empty
      expect(body_as_json['headers']['USER']).to eq('VALUE')
    end
  end

  describe http('http://app.example.com', method: :post, body: {'foo' => 'bar'}, headers: {'USER' => 'VALUE'}) do
    it "sends POST request with body entity" do
      expect(body_as_json['method']).to eq('POST')
      expect(body_as_json['body']).to eq("foo=bar")
      expect(body_as_json['headers']['USER']).not_to be_empty
      expect(body_as_json['headers']['USER']).to eq('VALUE')
    end
  end

  describe http('http://app.example.com', method: :post, body: {'foo' => 'bar'}.to_json, headers: {'USER' => 'VALUE'}) do
    it "sends POST request with body entity as JSON format" do
      expect(body_as_json['method']).to eq('POST')
      expect(body_as_json['body']).to eq({"foo" => "bar"}.to_json)
      expect(body_as_json['headers']['USER']).not_to be_empty
      expect(body_as_json['headers']['USER']).to eq('VALUE')
    end
  end

  describe http('/path/to/resource') do
    it "sends GET request with scheme and host" do
      expect(body_as_json['headers']['HOST']).to eq('example.com')
    end
  end
end

describe server(:example_com) do
  describe http('https://example.com') do
    it "is example domain" do
      expect(response.body).to include('Example Domain')
    end
  end
end