text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
             http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
             http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">

    <mvc:annotation-driven />
    <mvc:resources mapping="/resources/**" location="/resources/" />

    <context:component-scan base-package="by.itransition.dpm.controller" />

    <mvc:interceptors>
        <bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor">
            <property name="paramName" value="language" />
        </bean>
        <bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor">
            <property name="paramName" value="theme" />
        </bean>
    </mvc:interceptors>

    <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
        <property name="basename" value="classpath:messages" />
        <property name="defaultEncoding" value="UTF-8" />
    </bean>

    <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver" p:cookieName="localeResolver" p:cookieMaxAge="2147483647">
        <property name="defaultLocale" value="en" />
    </bean>

    <bean class="org.springframework.ui.context.support.ResourceBundleThemeSource" id="themeSource" p:basenamePrefix="theme-" />

    <bean class="org.springframework.web.servlet.theme.CookieThemeResolver" id="themeResolver" p:cookieName="themeResolver" p:cookieMaxAge="2147483647">
        <property name="defaultThemeName" value="light"/>
    </bean>

    <bean class="org.springframework.web.servlet.view.UrlBasedViewResolver" id="tilesViewResolver">
        <property name="viewClass" value="org.springframework.web.servlet.view.tiles3.TilesView"/>
    </bean>

    <bean class="org.springframework.web.servlet.view.tiles3.TilesConfigurer" id="tilesConfigurer">
        <property name="definitions">
            <list>
                <value>/WEB-INF/tiles.xml</value>
            </list>
        </property>
    </bean>

</beans>


text:
package com.amazonaws.services.simpleworkflow.model.transform;

import java.util.Map;
import java.util.List;

import com.amazonaws.AmazonClientException;
import com.amazonaws.services.simpleworkflow.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.BinaryUtils;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.IdempotentUtils;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.protocol.json.*;

/**
 * TaskListMarshaller
 */
public class TaskListJsonMarshaller {

    /**
     * Marshall the given parameter object, and output to a SdkJsonGenerator
     */
    public void marshall(TaskList taskList,
            StructuredJsonGenerator jsonGenerator) {

        if (taskList == null) {
            throw new AmazonClientException(
                    "Invalid argument passed to marshall(...)");
        }

        try {
            jsonGenerator.writeStartObject();

            if (taskList.getName() != null) {
                jsonGenerator.writeFieldName("name").writeValue(
                        taskList.getName());
            }

            jsonGenerator.writeEndObject();
        } catch (Throwable t) {
            throw new AmazonClientException(
                    "Unable to marshall request to JSON: " + t.getMessage(), t);
        }
    }

    private static TaskListJsonMarshaller instance;

    public static TaskListJsonMarshaller getInstance() {
        if (instance == null)
            instance = new TaskListJsonMarshaller();
        return instance;
    }

}

redpajama_set_name: RedPajamaGithub


text:
( function( root, factory ) {
    "use strict";
    // Set up appropriately for the environment.
    // Start with AMD.
    /* istanbul ignore next */
    if ( typeof define === 'function' && define.amd ) {
        define(
            function() {
                root.ExoSuit = root.ExoSuit || {};
                root.ExoSuit.Mixins = root.ExoSuit.Mixins || {};
                return ( root.ExoSuit.Mixins.CollectionEventsMixin = factory( root, {} ) );
            }
        );
    // Next for Node.js or CommonJS.
    } else if ( typeof exports !== 'undefined' ) {
        module.exports = factory( root, exports );
    // Finally, as a browser global.
    } else {
        root.ExoSuit = root.ExoSuit || {};
        root.ExoSuit.Mixins = root.ExoSuit.Mixins || {};
        root.ExoSuit.Mixins.CollectionEventsMixin = factory( root, {} );
    }
}( this, function( root, CollectionEventsMixin ) {
    "use strict";
    CollectionEventsMixin = function() {
        var oldInitialize = this.initialize,
            oldDelegateEvents = this.delegateEvents,
            oldUndelegateEvents = this.undelegateEvents;

        this.initialize = function( options ) {
            options = options || {};

            if ( options.collectionEvents ) {
                this.collectionEvents = options.collectionEvents;
                // Backbone 1.2.0 stopped calling delegateEvents after initialize so need to bindCollectionEvents now
                this.bindCollectionEvents();
            }

            if ( oldInitialize ) {
                oldInitialize.apply( this, arguments );
            }
        };

        this.delegateEvents = function( events ) {
            oldDelegateEvents.call( this, arguments );
            this.bindCollectionEvents();
            return this;
        };

        this.undelegateEvents = function( events ) {
            oldUndelegateEvents.call( this, arguments );
            this.unbindCollectionEvents();
            return this;
        };

        this.bindCollectionEvents = function() {
            if ( !this.collection || !this.collectionEvents ) {
                return;
            }

            for ( var collectionEvent in this.collectionEvents ) {
                var callback;
                if ( typeof this.collectionEvents[ collectionEvent ] === 'string' && typeof this[ this.collectionEvents[ collectionEvent ] ] === 'function' ) {
                    callback = this[ this.collectionEvents[ collectionEvent ] ];
                }
                if ( typeof this.collectionEvents[ collectionEvent ] === 'function' ) {
                    callback = this.collectionEvents[ collectionEvent ];
                }
                if ( callback ) {
                    this.listenTo( this.collection, collectionEvent, callback );
                }
            }
        };

        this.unbindCollectionEvents = function() {
            if ( !this.collection || !this.collectionEvents ) {
                return;
            }

            for ( var collectionEvent in this.collectionEvents ) {
                var callback;
                if ( typeof this.collectionEvents[ collectionEvent ] === 'string' && typeof this[ this.collectionEvents[ collectionEvent ] ] === 'function' ) {
                    callback = this[ this.collectionEvents[ collectionEvent ] ];
                }
                if ( typeof this.collectionEvents[ collectionEvent ] === 'function' ) {
                    callback = this.collectionEvents[ collectionEvent ];
                }
                if ( callback ) {
                    this.stopListening( this.collection, collectionEvent, callback );
                }
            }
        };
    };

    return CollectionEventsMixin;
} ));


text:
var should = require("should");
var request = require("supertest");
var fs = require("fs");

var Configuration = require("../lib/configuration.js");
var config=new Configuration();

var req = request("http://localhost:"+config.Web.port);

var testserver=null;

describe('test web server',function() {

    beforeEach(function(done) {
        var count=0;
        var testget=function() {
            req.get('/').end(function(err,res) {
               if(err) {
                   console.log(err);

                   if(++count<5)
                    setTimeout(testget,1000); //wait 1 second before next attempt
                    else
                        done();
                }
                else done();
                count.should.be.lessThan(5);
            });
        }
        var testws = function() {
            var ws1 = new WebSocket('ws://localhost:'+config.WebSocket.port+config.WebSocket.path);
            ws1.on('open',function() {
                console.log('ws connected');
                ws1.close();
                done();
            });
            ws1.on('error',function(err) {
                count.should.be.lessThan(5);
                testws();
            });
        }
        testget();
    });

     it('test_inexistent_route',function(done) {
         req.post('/').send(JSON.stringify({data:'a'})).expect(404,done);
     });

     it('call without token',function(done) {
        req.post('/data/d1').send(JSON.stringify({data:'a'})).expect(401,done);
     });

     it('call with invalid token',function(done) {
        req.post('/data/d2').send(JSON.stringify({auth_token:config.Web.auth_token+'_add',data:'a'})).expect(401,done);
     });

     it('call with alid token',function(done) {
        req.post('/data/d2').send(JSON.stringify({auth_token:config.Web.auth_token,data:'a'})).expect(204,done);
     });

    it('call with invalid data',function(done) {
        req.post('/data/d2').send("not a json").expect(400,done);
     });

});


text:
<?php

interface Twig_NodeVisitorInterface
{
  public function enterNode(Twig_Node $node, Twig_Environment $env);

  public function leaveNode(Twig_Node $node, Twig_Environment $env);
}


text:
<TITLE
>Introduction</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.74b"><LINK
REL="HOME"
TITLE="The Hugs 98 User's Guide"
HREF="users-guide.html"><LINK
REL="PREVIOUS"
TITLE="The Hugs 98 License"
HREF="license.html"><LINK
REL="NEXT"
TITLE="Using Hugs"
HREF="using-hugs.html">

The Hugs 98 User's Guide

Prev		Next

Chapter 1. Introduction

In September 1991, Mark Jones released a functional programming system called
Gofer, which provided a compact, portable implementation
of a Haskell-like language.
The system also included experimental type system extensions,
many of which later became part of Haskell.
On Valentine's Day 1995, Mark released
Hugs (Haskell User's Gofer System),
a derivative of Gofer with greater Haskell compliance.
Hugs versions are named after the version of Haskell they support;
Hugs 98 was released in January 1999.
Mark gave up the maintainership of Hugs in January 2000.

Hugs 98 still aims to be a fairly lightweight, portable implementation,
and now adheres closely to Haskell 98.
It also supports several extensions shared with other Haskell implementations:

Hugs supports standardized extensions (addenda) to Haskell 98,
for interfacing to foreign languages and structuring the module space.

With the appropriate options (see Section 3.1.1),
it is also possible to turn on a number of language extensions,
most of which are also supported by the
Glasgow Haskell Compiler (GHC),
though some are specific to Hugs.

Hugs comes with a large collection of libraries,
also shared with other Haskell implementations,
and described in separate documentation.

Though these features make Hugs highly compatible with other implementations,
it is primarily intended as interpreter and programming environment
for developing Haskell programs.
If your application involves large programs or speed is critical,
you may strike Hugs's limitations, and may wish to try a Haskell compiler.

1.1. Other sources of information

1.1.1. Other documentation

The Hugs 98 User Manual

This was the definitive reference for earlier versions of Hugs,
though parts of it are now out-of-date.
Much of it remains relevant, particularly Section 7 on Hugs extensions,
and it should be consulted in several areas that this Guide does not cover well.
The manual is available in several formats:
HTML,
PDF,
gzipped Postscript,
gzipped tar-ed html,
dvi,
WinHelp(zipped) and
HTMLHelp(win32 help format).

Haskell 98 Language and Libraries: the Revised Report

The definitive reference for the Haskell 98 language and standard libraries,
published by Cambridge University Press, and also available
online.

Haskell Core Libraries

A collection of libraries shared by Haskell implementations, including Hugs.

comp.lang.functional FAQ

General information about functional programming.

More information about Haskell may be found on the Haskell home page
http://www.haskell.org/
and the Hugs home page
http://www.haskell.org/hugs/.

1.1.2. Mailing lists

There are a number of mailing lists where people discuss Hugs and Haskell,
all with archives of past postings:

hugs-users:

This is the place for general discussion about using Hugs.

hugs-bugs:

Use this list for reporting bugs.
This is more likely to be effective than direct mail to the authors
or maintainers of Hugs.
We do read this mailing list – but so do many other people,
who might be able to give you more appropriate or timely advice than us!
Before reporting a bug, check the list of known deviations from Haskell 98
(see Section 4.1).

cvs-hugs:

Discussion of the development of Hugs takes place on this list.
This list also receives commit messages from the
Hugs CVS repository.

haskell-cafe:

An informal list for chatting about Haskell.
This is an ideal place for beginners to get help with Haskell,
but Hugs-specific questions would be better directed at the Hugs lists.

haskell:

A lower-volume list for more technical discussion of Haskell.
Please do not post beginner questions or Hugs-specific questions to this list.

There are several other Haskell-related mailing lists served by
<TT
CLASS="LITERAL"
>www.haskell.org</TT
>.
See <TT
CLASS="LITERAL"
>http://www.haskell.org/mailman/listinfo/</TT
>
for the full list.

Some Haskell-related discussion also takes place in the Usenet newsgroup
<TT
CLASS="LITERAL"
>comp.lang.functional</TT
>.

Prev	Home	Next

The Hugs 98 License	 	Using Hugs


text:
var resources = {
	get: function(){
		var json = null;
		$.ajax({
		    'async': false,
		    'global': false,
		    'url': 'resources.json',
		    'dataType': "json",
		    'success': function (data) {
		        json = data;
		    }
		});
		return json;
	},
	render: function(json) {
		var links = $('#links');
		json.forEach(function(data) {
			links.append('
' + data.title + '
');
		});
	}
};

jQuery(function($){
	var json = resources.get();
	resources.render(json);
});


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

-->
<resources>
    <string name="fam_cd_overflow">Lainnya</string>
    <string name="fam_cd_back">Kembali</string>
</resources>


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Indicates whether the file was deleted from the storage account. */
public final class DeleteStatus extends ExpandableStringEnum<DeleteStatus> {
    /** Static value Deleted for DeleteStatus. */
    public static final DeleteStatus DELETED = fromString("Deleted");

    /** Static value NotDeleted for DeleteStatus. */
    public static final DeleteStatus NOT_DELETED = fromString("NotDeleted");

    /** Static value Unspecified for DeleteStatus. */
    public static final DeleteStatus UNSPECIFIED = fromString("Unspecified");

    /**
     * Creates or finds a DeleteStatus from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding DeleteStatus.
     */
    @JsonCreator
    public static DeleteStatus fromString(String name) {
        return fromString(name, DeleteStatus.class);
    }

    /**
     * Gets known DeleteStatus values.
     *
     * @return known DeleteStatus values.
     */
    public static Collection<DeleteStatus> values() {
        return values(DeleteStatus.class);
    }
}


text:
"use strict";
import React, { PropTypes } from 'react';
import DocumentTitle from 'react-document-title';

//import {} from 'react-stormpath';

export default class DressagePage extends React.Component {
    static contextTypes = {
    user: React.PropTypes.object
  };

  render() {
    return (

          Welcome
          { this.context.user ? ' ' + this.context.user.givenName : null }!

            Welcome to the Dressage Page

    );
  }
}


text:
<!DOCTYPE HTML>

	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		  content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,gprs-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />

	<link href="{$responseAdmin}/css/H-ui.min.css" rel="stylesheet"
		  type="text/css" />
	<link href="{$responseAdmin}/css/H-ui.admin.css" rel="stylesheet"
		  type="text/css" />
	<link href="{$responseAdmin}/lib/icheck/icheck.css" rel="stylesheet"
		  type="text/css" />
	<link href="{$responseAdmin}/lib/Hui-iconfont/1.0.1/iconfont.css"
		  rel="stylesheet" type="text/css" />

	<title>添加签到信息</title>

	<form action="" method="post" class="form form-horizontal" id="form-menu-add">
		<input type="hidden" name="Id" value="{$info['Id']}" id="">

			*标题图片

				<input type="text"  class="input-text GetNum"  datatype="*"  value="{$info['Title']}" placeholder=""
					   name="Title"  nullmsg="">

			*简述图片(1)

				<input type="text"  class="input-text GetNum" datatype="*"   value="{$info['DescribeBomb']}" placeholder=""
					   name="DescribeBomb"  nullmsg="">

			*简述图片(2)

				<input type="text"  class="input-text GetNum" datatype="*"   value="{$info['DescribeGold']}" placeholder=""
					   name="DescribeGold"  nullmsg="">

			*核弹图片

				<input type="text"    class="input-text GetNum" datatype="*"  value="{$info['Bomb']}" placeholder=""
					   name="Bomb"  nullmsg="">

			*礼包

							<select  class="select Id" name = "GoodsID"  datatype="*" placeholder = ""  nullmsg="" >
								 <option value="0">请选择礼包</option>
								<volist name = "CatGoodsAll" id="val">
									<option   <if condition = "$val['Id'] eq $info['GoodsID']"> selected = "true" </if>   value="{$val['Id']}">{$val['Name']}</option>
								</volist>
                            </select>

			备注信息:

				<textarea id="url" name="Remark" style="width: 100%"  cols="50" rows="5" >{$info['Remark']}</textarea>

				<input class="btn btn-primary radius" type="submit" name="submit" value="  提交  ">

	</form>

<literal>

</literal>