text:
#include "imagetool.h"
#include <compiler.h>
#include <image.h>
#include "gpheader.h"

static uint8_t gpimage_header[GPIMAGE_HDR_SIZE];

/* to be in keystone gpimage */
static int gpimage_check_image_types(uint8_t type)
{
	if (type == IH_TYPE_GPIMAGE)
		return EXIT_SUCCESS;
	return EXIT_FAILURE;
}

static int gpimage_verify_header(unsigned char *ptr, int image_size,
			struct image_tool_params *params)
{
	struct gp_header *gph = (struct gp_header *)ptr;

	return gph_verify_header(gph, 1);
}

static void gpimage_print_header(const void *ptr)
{
	const struct gp_header *gph = (struct gp_header *)ptr;

	gph_print_header(gph, 1);
}

static void gpimage_set_header(void *ptr, struct stat *sbuf, int ifd,
				struct image_tool_params *params)
{
	struct gp_header *gph = (struct gp_header *)ptr;

	gph_set_header(gph, sbuf->st_size - GPIMAGE_HDR_SIZE, params->addr, 1);
}

/*
 * gpimage parameters
 */
U_BOOT_IMAGE_TYPE(
	gpimage,
	"TI KeyStone GP Image support",
	GPIMAGE_HDR_SIZE,
	(void *)&gpimage_header,
	gpimage_check_params,
	gpimage_verify_header,
	gpimage_print_header,
	gpimage_set_header,
	NULL,
	gpimage_check_image_types,
	NULL,
	NULL
);


text:
using browser_sync::sessions::SyncSessionSnapshot;
namespace sync_api {

DebugInfoEventListener::DebugInfoEventListener()
    : events_dropped_(false),
      cryptographer_has_pending_keys_(false),
      cryptographer_ready_(false) {
}

DebugInfoEventListener::~DebugInfoEventListener() {
}

void DebugInfoEventListener::OnSyncCycleCompleted(
    const SyncSessionSnapshot& snapshot) {
  sync_pb::DebugEventInfo event_info;
  sync_pb::SyncCycleCompletedEventInfo* sync_completed_event_info =
      event_info.mutable_sync_cycle_completed_event_info();

  sync_completed_event_info->set_num_encryption_conflicts(
      snapshot.num_encryption_conflicts());
  sync_completed_event_info->set_num_hierarchy_conflicts(
      snapshot.num_hierarchy_conflicts());
  sync_completed_event_info->set_num_simple_conflicts(
      snapshot.num_simple_conflicts());
  sync_completed_event_info->set_num_server_conflicts(
      snapshot.num_server_conflicts());

  sync_completed_event_info->set_num_updates_downloaded(
      snapshot.syncer_status().num_updates_downloaded_total);
  sync_completed_event_info->set_num_reflected_updates_downloaded(
      snapshot.syncer_status().num_reflected_updates_downloaded_total);
  sync_completed_event_info->mutable_caller_info()->set_source(
      snapshot.source().updates_source);
  sync_completed_event_info->mutable_caller_info()->set_notifications_enabled(
      snapshot.notifications_enabled());

  AddEventToQueue(event_info);
}

void DebugInfoEventListener::OnInitializationComplete(
    const browser_sync::WeakHandle<browser_sync::JsBackend>& js_backend,
    bool success) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::INITIALIZATION_COMPLETE);
}

void DebugInfoEventListener::OnConnectionStatusChange(
    sync_api::ConnectionStatus status) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::CONNECTION_STATUS_CHANGE);
}

void DebugInfoEventListener::OnPassphraseRequired(
    sync_api::PassphraseRequiredReason reason,
    const sync_pb::EncryptedData& pending_keys) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::PASSPHRASE_REQUIRED);
}

void DebugInfoEventListener::OnPassphraseAccepted() {
  CreateAndAddEvent(sync_pb::DebugEventInfo::PASSPHRASE_ACCEPTED);
}

void DebugInfoEventListener::OnBootstrapTokenUpdated(
    const std::string& bootstrap_token) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::BOOTSTRAP_TOKEN_UPDATED);
}

void DebugInfoEventListener::OnStopSyncingPermanently() {
  CreateAndAddEvent(sync_pb::DebugEventInfo::STOP_SYNCING_PERMANENTLY);
}

void DebugInfoEventListener::OnUpdatedToken(const std::string& token) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::UPDATED_TOKEN);
}

void DebugInfoEventListener::OnClearServerDataFailed() {
  // This command is not implemented on the client side.
  NOTREACHED();
}

void DebugInfoEventListener::OnClearServerDataSucceeded() {
  // This command is not implemented on the client side.
  NOTREACHED();
}

void DebugInfoEventListener::OnEncryptedTypesChanged(
    syncable::ModelTypeSet encrypted_types,
    bool encrypt_everything) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::ENCRYPTED_TYPES_CHANGED);
}

void DebugInfoEventListener::OnEncryptionComplete() {
  CreateAndAddEvent(sync_pb::DebugEventInfo::ENCRYPTION_COMPLETE);
}

void DebugInfoEventListener::OnActionableError(
    const browser_sync::SyncProtocolError& sync_error) {
  CreateAndAddEvent(sync_pb::DebugEventInfo::ACTIONABLE_ERROR);
}

void DebugInfoEventListener::SetCrytographerHasPendingKeys(bool pending_keys) {
  cryptographer_has_pending_keys_ = pending_keys;
}

void DebugInfoEventListener::SetCryptographerReady(bool ready) {
  cryptographer_ready_ = ready;
}

void DebugInfoEventListener::OnNudgeFromDatatype(
    syncable::ModelType datatype) {
  sync_pb::DebugEventInfo event_info;
  event_info.set_nudging_datatype(
      syncable::GetSpecificsFieldNumberFromModelType(datatype));
  AddEventToQueue(event_info);
}

void DebugInfoEventListener::OnIncomingNotification(
     const syncable::ModelTypePayloadMap& type_payloads) {
  sync_pb::DebugEventInfo event_info;
  syncable::ModelTypeSet types = ModelTypePayloadMapToEnumSet(type_payloads);

  for (syncable::ModelTypeSet::Iterator it = types.First();
       it.Good(); it.Inc()) {
    event_info.add_datatypes_notified_from_server(
        syncable::GetSpecificsFieldNumberFromModelType(it.Get()));
  }

  AddEventToQueue(event_info);
}

void DebugInfoEventListener::GetAndClearDebugInfo(
    sync_pb::DebugInfo* debug_info) {
  DCHECK(events_.size() <= sync_api::kMaxEntries);
  while (!events_.empty()) {
    sync_pb::DebugEventInfo* event_info = debug_info->add_events();
    const sync_pb::DebugEventInfo& debug_event_info = events_.front();
    event_info->CopyFrom(debug_event_info);
    events_.pop();
  }

  debug_info->set_events_dropped(events_dropped_);
  debug_info->set_cryptographer_ready(cryptographer_ready_);
  debug_info->set_cryptographer_has_pending_keys(
      cryptographer_has_pending_keys_);

  events_dropped_ = false;
}

void DebugInfoEventListener::CreateAndAddEvent(
    sync_pb::DebugEventInfo::EventType type) {
  sync_pb::DebugEventInfo event_info;
  event_info.set_type(type);
  AddEventToQueue(event_info);
}

void DebugInfoEventListener::AddEventToQueue(
  const sync_pb::DebugEventInfo& event_info) {
  if (events_.size() >= sync_api::kMaxEntries) {
    DVLOG(1) << "DebugInfoEventListener::AddEventToQueue Dropping an old event "
             << "because of full queue";

    events_.pop();
    events_dropped_ = true;
  }
  events_.push(event_info);
}
}  // namespace sync_api

redpajama_set_name: RedPajamaGithub


text:
#ifndef PHYSICS_SYSTEM_HPP
#define PHYSICS_SYSTEM_HPP

#include "Core/System.hpp"
#include "Core/ComponentManager.hpp"
#include "Components/PhysicsComponent.hpp"

namespace dm {

class PhysicsSystem : public System {
   public:
    PhysicsSystem() {}
    ~PhysicsSystem() {}

    void render(const GameState&);
    void update(GameState&);
};

dm_internal_register_type(PhysicsSystem)

} /* namespace dm */

#endif


text:
const _ = require('lodash'),
    Promise = require('bluebird'),
    url = require('url'),
    debug = require('ghost-ignition').debug('services:routing:helpers:post-lookup'),
    routeMatch = require('path-match')(),
    api = require('../../../api');

function postLookup(postUrl, routerOptions) {
    debug(postUrl);

    const targetPath = url.parse(postUrl).path,
        permalinks = routerOptions.permalinks;

    let isEditURL = false;

    // CASE: e.g. /:slug/ -> { slug: 'value' }
    const matchFunc = routeMatch(permalinks);
    const params = matchFunc(targetPath);

    debug(params);

    // CASE 1: no matches, resolve
    // CASE 2: params can be empty e.g. permalink is /featured/:options(edit)?/ and path is /featured/
    if (params === false || !Object.keys(params).length) {
        return Promise.resolve();
    }

    // CASE: redirect if url contains `/edit/` at the end
    if (params.options && params.options.toLowerCase() === 'edit') {
        isEditURL = true;
    }

    /**
     * Query database to find post.
     *
     * @deprecated: `author`, will be removed in Ghost 3.0
     */
    return api.posts.read(_.extend(_.pick(params, 'slug', 'id'), {include: 'author,authors,tags'}))
        .then(function then(result) {
            const post = result.posts[0];

            if (!post) {
                return Promise.resolve();
            }

            return {
                post: post,
                isEditURL: isEditURL,
                isUnknownOption: isEditURL ? false : !!params.options
            };
        });
}

module.exports = postLookup;


text:
define([
	"intern!bdd",
	"intern/chai!expect",
	"decor/Observable",
	"../ObservablePath",
	"../BindingSourceList"
], function (bdd, expect, Observable, ObservablePath, BindingSourceList) {
	/* jshint withstmt: true */
	/* global describe, afterEach, it */
	with (bdd) {
		describe("Test liaison/BindingSourceList", function () {
			var handles = [],
				pseudoError = new Error("Error thrown on purpose. This error does not mean bad result of test case.");
			afterEach(function () {
				for (var handle = null; (handle = handles.shift());) {
					handle.remove();
				}
			});
			it("Non-observer in BindingSourceList", function () {
				var thrown;
				try {
					new BindingSourceList(["foo"]).observe(function () {});
				} catch (e) {
					thrown = true;
				}
				expect(thrown).to.be.true;
			});
			it("Simple observation", function () {
				var dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"}),
					list = new BindingSourceList([
						new ObservablePath(observable, "foo"),
						new ObservablePath(observable, "bar"),
						new ObservablePath(observable, "baz")
					]),
					callbacks = [
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar1", "Baz1"]);
							expect(oldValue).to.deep.equal(["Foo0", "Bar0", "Baz0"]);
						})
					];
				list.observe(function () {}).remove();
				handles.push(list.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				})));
				observable.set("foo", "Foo1");
				observable.set("bar", "Bar1");
				observable.set("baz", "Baz1");
			});
			it("Simple observabation with formatter", function () {
				var dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"}),
					callbacks = [
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.equal("Foo1,Bar1,Baz1");
							expect(oldValue).to.equal("Foo0,Bar0,Baz0");
						})
					];
				handles.push(new BindingSourceList([
					new ObservablePath(observable, "foo"),
					new ObservablePath(observable, "bar"),
					new ObservablePath(observable, "baz")
				], function (values) {
					return values.join(",");
				}).observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				})));
				observable.set("foo", "Foo1");
				observable.set("bar", "Bar1");
				observable.set("baz", "Baz1");
			});
			it("Simple observabation with formatter and parser, setting value to binding", function () {
				var binding,
					dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"}),
					callbacks = [
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.equal("Foo1,Bar1,Baz1");
							expect(oldValue).to.equal("Foo0,Bar0,Baz0");
						})
					];
				handles.push(binding = new BindingSourceList([
					new ObservablePath(observable, "foo"),
					new ObservablePath(observable, "bar"),
					new ObservablePath(observable, "baz")
				], function (values) {
					return values.join(",");
				}, function (values) {
					return values.split(",");
				}));
				binding.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				}));
				binding.setTo("Foo1,Bar1,Baz1");
			});
			it("An observer changing a value that is observed. Such observer should be defined after BindingSourceList.observe()", function () {
				var dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"}),
					path0 = new ObservablePath(observable, "foo"),
					path1 = new ObservablePath(observable, "bar"),
					path2 = new ObservablePath(observable, "baz"),
					source = new BindingSourceList([path0, path1, path2]),
					callbacks = [
						dfd.rejectOnError(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar0", "Baz0"]);
							expect(oldValue).to.deep.equal(["Foo0", "Bar0", "Baz0"]);
						}),
						dfd.rejectOnError(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar1", "Baz0"]);
							expect(oldValue).to.deep.equal(["Foo1", "Bar0", "Baz0"]);
						}),
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar1", "Baz1"]);
							expect(oldValue).to.deep.equal(["Foo1", "Bar1", "Baz0"]);
						})
					];
				handles.push(source.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				})));
				path0.observe(dfd.rejectOnError(function () {
					observable.set("bar", "Bar1");
				}));
				path1.observe(dfd.rejectOnError(function () {
					observable.set("baz", "Baz1");
				}));
				observable.set("foo", "Foo1");
			});
			it("An observer changing a value that is observed."
				+ " Such observer is defined before BindingSourceList.observe()."
				+ " newValue should keep fresh value, oldValue should reflect change records in last run-loop", function () {
				var dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"}),
					path0 = new ObservablePath(observable, "foo"),
					path1 = new ObservablePath(observable, "bar"),
					path2 = new ObservablePath(observable, "baz"),
					source = new BindingSourceList([path0, path1, path2]),
					callbacks = [
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar1", "Baz1"]);
							expect(oldValue).to.deep.equal(["Foo0", "Bar0", "Baz0"]);
						})
					];
				handles.push(path0.observe(dfd.rejectOnError(function () {
					observable.set("bar", "Bar1");
				})));
				handles.push(path1.observe(dfd.rejectOnError(function () {
					observable.set("baz", "Baz1");
				})));
				handles.push(source.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				})));
				observable.set("foo", "Foo1");
			});
			it("Setting value to BindingSourceList", function () {
				var dfd = this.async(1000),
					count = 0,
					observablePath0 = new ObservablePath(new Observable({foo: "Foo0"}), "foo"),
					observablePath1 = new ObservablePath(new Observable({bar: "Bar0"}), "bar"),
					observablePath2 = new ObservablePath(new Observable({baz: "Baz0"}), "baz"),
					list = new BindingSourceList([observablePath0, observablePath1, observablePath2]),
					callbacks = [
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar1", "Baz1"]);
							expect(oldValue).to.deep.equal(["Foo0", "Bar0", "Baz0"]);
						})
					];
				handles.push(observablePath0, observablePath1, observablePath2, list);
				list.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				}));
				list.setValue(["Foo1", "Bar1", "Baz1"]);
			});
			it("Exception in formatter/parser", function () {
				var binding,
					dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"}),
					callbacks = [
						dfd.callback(function (newValue, oldValue) {
							expect(newValue).to.deep.equal(["Foo1", "Bar1", "Baz1"]);
							expect(oldValue).to.deep.equal(["Foo0", "Bar0", "Baz0"]);
						})
					];
				handles.push(binding = new BindingSourceList([
					new ObservablePath(observable, "foo"),
					new ObservablePath(observable, "bar"),
					new ObservablePath(observable, "baz")
				], function () {
					throw pseudoError;
				}, function () {
					throw pseudoError;
				}));
				binding.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				}));
				binding.setTo(["Foo1", "Bar1", "Baz1"]);
			});
			it("Synchronous change delivery", function () {
				var list, deliveredBoth, finishedMicrotask,
					dfd = this.async(1000),
					count = 0,
					observable = new Observable({foo: "Foo0", bar: "Bar0"}),
					callbacks = [
						dfd.rejectOnError(function (newValue, oldValue) {
							expect(finishedMicrotask).not.to.be.true;
							expect(newValue).to.deep.equal(["Foo1", "Bar0"]);
							expect(oldValue).to.deep.equal(["Foo0", "Bar0"]);
						}),
						dfd.callback(function (newValue, oldValue) {
							expect(finishedMicrotask).not.to.be.true;
							expect(newValue).to.deep.equal(["Foo1", "Bar1"]);
							expect(oldValue).to.deep.equal(["Foo1", "Bar0"]);
							deliveredBoth = true;
						})
					];
				handles.push(list = new BindingSourceList([new ObservablePath(observable, "foo"), new ObservablePath(observable, "bar")]));
				list.observe(dfd.rejectOnError(function (newValue, oldValue) {
					callbacks[count++](newValue, oldValue);
				}));
				observable.set("foo", "Foo1");
				list.deliver();
				observable.set("bar", "Bar1");
				list.deliver();
				finishedMicrotask = true;
			});
			it("Discarding change", function () {
				var list,
					dfd = this.async(1000),
					observable = new Observable({foo: "Foo0"});
				handles.push(list = new BindingSourceList([new ObservablePath(observable, "foo")]));
				list.observe(dfd.rejectOnError(function () {
					throw new Error("Observer callback should never be called for changes being discarded.");
				}));
				observable.set("foo", "Foo1");
				expect(list.discardChanges()).to.deep.equal(["Foo1"]);
				dfd.resolve(1);
			});
			it("Round-trip of formatter/parser", function () {
				var formatter = function () {},
					parser = function () {},
					list = new BindingSourceList([new ObservablePath({}, "foo")], formatter, parser);
				expect(list.formatter).to.equal(formatter);
				expect(list.parser).to.equal(parser);
			});
			it("Cleaning up observe() handle", function () {
				var list,
					dfd = this.async(1000),
					observable = new Observable({foo: "Foo0", bar: "Bar0", baz: "Baz0"});
				handles.push(list = new BindingSourceList([
					new ObservablePath(observable, "foo"),
					new ObservablePath(observable, "bar"),
					new ObservablePath(observable, "baz")
				]));
				var h = list.observe(dfd.rejectOnError(function () {
					throw new Error("Observer callback should never be called after removal.");
				}));
				observable.set("foo", "Foo1");
				h.remove();
				list.deliver();
				observable.set("foo", "Foo2");
				setTimeout(dfd.callback(function () {}), 100);
			});
			it("Remove immediately after creation", function () {
				new BindingSourceList([]).remove();
			});
			// TODO(asudoh): Add test for observing BindingSourceList that has been removed already
		});
	}
});


text:
API
===

Module contents
---------------

.. automodule:: segno
    :member-order: bysource
    :members:

High level QR Code factories
----------------------------

.. automodule:: segno.helpers
    :members:


text:
package com.nexmo.client.voice.ncco;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

import java.util.HashMap;
import java.util.Map;

public enum RecordingFormat {
    MP3, WAV, OGG, UNKNOWN;

    private static final Map<String, RecordingFormat> RECORDING_FORMAT_INDEX = new HashMap<>();

    static {
        for (RecordingFormat recordingFormat : RecordingFormat.values()) {
            RECORDING_FORMAT_INDEX.put(recordingFormat.name(), recordingFormat);
        }
    }

    @JsonValue
    @Override
    public String toString() {
        return name().toLowerCase();
    }

    @JsonCreator
    public static RecordingFormat fromString(String name) {
        RecordingFormat foundRecordingFormat = RECORDING_FORMAT_INDEX.get(name.toUpperCase());
        return (foundRecordingFormat != null) ? foundRecordingFormat : UNKNOWN;
    }
}


text:
from twisted.words.protocols import irc
from txircd.modbase import Command

class TimeCommand(Command):
    def onUse(self, user, data):
        user.sendMessage(irc.RPL_TIME, self.ircd.name, ":{}".format(now()))

    def processParams(self, user, params):
        if user.registered > 0:
            user.sendMessage(irc.ERR_NOTREGISTERED, "TIME", ":You are not registered")
            return {}
        return {
            "user": user
        }

class Spawner(object):
    def __init__(self, ircd):
        self.ircd = ircd

    def spawn(self):
        return {
            "commands": {
                "TIME": TimeCommand()
            }
        }


text:
from extension import ManagementComponent

class DummyModule(ManagementComponent):

	@staticmethod
	def getSubject():
		return 'TheDummyModule'


text:
layout: post
title: Line Follower Robot
date: February 01, 2013
author: Argha kamal Sahoo
---

Line Follower Robot is a very basic project which almost every tech lover student has been done in their student life.Still I will mention this
in my project list because I have done the whole project without doing any workshop and without anyone's help.when others waste their money
doing the workshop held by Robotics of India.I also add some extra features so  that the robot can get more perfection to follow any line.


text:
module Activities
  class CommentObserver < Activities::Logger
    observe :comment

    logs_activity do |log|
      log.edited :if => [:body_changed?, {:not => :new_record?}]
      log.approved :if => [:approved_changed?, :approved?]
      log.unapproved :if => [:approved_changed?, :unapproved?]
    end

    def collect_activity_attributes(record)
      attrs = record.send(:clone_attributes)
      attrs = attrs.slice 'commentable_id', 'body', 'author_name', 'author_email', 'author_url'
      type = record.commentable.has_attribute?('type') ? record.commentable['type'] : record.commentable_type
      attrs.update('commentable_type' => type, 'commentable_title' => record.commentable.title)
    end

    def initialize_activity(record)
      returning super do |activity|
        activity.site = record.commentable.site
        activity.section = record.commentable.section
        activity.author = record.author
      end
    end
  end
end


text:
'use strict';

/**
 * Render the main applicaion page
 */

var _ = require('lodash'),
	path = require('path'),
	mongoose = require('mongoose'),
	Recipes = mongoose.model('Recipes'),
	errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller'));

exports.renderIndex = function(req, res) {
	res.render('modules/core/server/views/index', {
		user: req.user || null
	});
};

/**
 * Render the server error page
 */
exports.renderServerError = function(req, res) {
	res.status(500).render('modules/core/server/views/500', {
		error: 'Oops! Something went wrong...'
	});
};

/**
 * Render the server not found page
 */
exports.renderNotFound = function(req, res) {
	res.status(404).render('modules/core/server/views/404', {
		url: req.originalUrl
	});
};

exports.recipelist = function(req, res){
	Recipes.find().sort('-created').populate('user', 'displayName').exec(function(err, recipes) {
		if (err) {
			return res.status(400).send({
				message: errorHandler.getErrorMessage(err)
			});
		} else {
			res.json(recipes);
		}
	});
};


text:
> March, 2016: If you're on an old version of Jekyll Now and run into a) build warnings or b) syntax highlighting issues caused by [Jekyll 3 and GitHub Pages updates](https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0), just :sparkles:[update your _config.yml](https://github.com/barryclark/jekyll-now/pull/445/files):sparkles: and you'll be set!

# Jekyll Now

**Jekyll** is a static site generator that's perfect for GitHub hosted blogs ([Jekyll Repository](https://github.com/jekyll/jekyll))

**Jekyll Now** makes it easier to create your Jekyll blog, by eliminating a lot of the up front setup.

- You don't need to touch the command line
- You don't need to install/configure ruby, rvm/rbenv, ruby gems :relaxed:
- You don't need to install runtime dependencies like markdown processors, Pygments, etc
- If you're on Windows, this will make setting up Jekyll a lot easier
- It's easy to try out, you can just delete your forked repository if you don't like it

In a few minutes you'll be set up with a minimal, responsive blog like the one below giving you more time to spend on writing epic blog posts!

![Jekyll Now Theme Screenshot](/images/jekyll-now-theme-screenshot.jpg "Jekyll Now Theme Screenshot")

## Quick Start

### Step 1) Fork Jekyll Now to your User Repository

Fork this repo, then rename the repository to yourgithubusername.github.io.

Your Jekyll blog will often be viewable immediately at <https://yourgithubusername.github.io> (if it's not, you can often force it to build by completing step 2)

![Step 1](/images/step1.gif "Step 1")

### Step 2) Customize and view your site

Enter your site name, description, avatar and many other options by editing the _config.yml file. You can easily turn on Google Analytics tracking, Disqus commenting and social icons here too.

Making a change to _config.yml (or any file in your repository) will force GitHub Pages to rebuild your site with jekyll. Your rebuilt site will be viewable a few seconds later at <https://yourgithubusername.github.io> - if not, give it ten minutes as GitHub suggests and it'll appear soon

> There are 3 different ways that you can make changes to your blog's files:

> 1. Edit files within your new username.github.io repository in the browser at GitHub.com (shown below).
> 2. Use a third party GitHub content editor, like [Prose by Development Seed](http://prose.io). It's optimized for use with Jekyll making markdown editing, writing drafts, and uploading images really easy.
> 3. Clone down your repository and make updates locally, then push them to your GitHub repository.

![_config.yml](/images/config.png "_config.yml")

### Step 3) Publish your first blog post

Edit `/_posts/2014-3-3-Hello-World.md` to publish your first blog post. This [Markdown Cheatsheet](http://www.jekyllnow.com/Markdown-Style-Guide/) might come in handy.

![First Post](/images/first-post.png "First Post")

> You can add additional posts in the browser on GitHub.com too! Just hit the + icon in `/_posts/` to create new content. Just make sure to include the [front-matter](http://jekyllrb.com/docs/frontmatter/) block at the top of each new blog post and make sure the post's filename is in this format: year-month-day-title.md

## Local Development

1. Install Jekyll and plug-ins in one fell swoop. `gem install github-pages` This mirrors the plug-ins used by GitHub Pages on your local machine including Jekyll, Sass, etc.
2. Clone down your fork `git clone https://github.com/yourusername/yourusername.github.io.git`
3. Serve the site and watch for markup/sass changes `jekyll serve`
4. View your website at http://127.0.0.1:4000/
5. Commit any changes and push everything to the master branch of your GitHub user repository. GitHub Pages will then rebuild and serve your website.

## Moar!

I've created a more detailed walkthrough, [**Build A Blog With Jekyll And GitHub Pages**](http://www.smashingmagazine.com/2014/08/01/build-blog-jekyll-github-pages/) over at the Smashing Magazine website. Check it out if you'd like a more detailed walkthrough and some background on Jekyll. :metal:

It covers:

- A more detailed walkthrough of setting up your Jekyll blog
- Common issues that you might encounter while using Jekyll
- Importing from Wordpress, using your own domain name, and blogging in your favorite editor
- Theming in Jekyll, with Liquid templating examples
- A quick look at Jekyll 2.0's new features, including Sass/Coffeescript support and Collections

## Jekyll Now Features

✓ Command-line free _fork-first workflow_, using GitHub.com to create, customize and post to your blog
✓ Fully responsive and mobile optimized base theme (**[Theme Demo](http://jekyllnow.com)**)
✓ Sass/Coffeescript support using Jekyll 2.0
✓ Free hosting on your GitHub Pages user site
✓ Markdown blogging
✓ Syntax highlighting
✓ Disqus commenting
✓ Google Analytics integration
✓ SVG social icons for your footer
✓ 3 http requests, including your avatar

✘ No installing dependencies
✘ No need to set up local development
✘ No configuring plugins
✘ No need to spend time on theming
✘ More time to code other things ... wait ✓!

## Questions?

[Open an Issue](https://github.com/barryclark/jekyll-now/issues/new) and let's chat!

## Other forkable themes

You can use the [Quick Start](https://github.com/barryclark/jekyll-now#quick-start) workflow with other themes that are set up to be forked too! Here are some of my favorites:

- [Hyde](https://github.com/poole/hyde) by MDO
- [Lanyon](https://github.com/poole/lanyon) by MDO
- [mojombo.github.io](https://github.com/mojombo/mojombo.github.io) by Tom Preston-Werner
- [Left](https://github.com/holman/left) by Zach Holman
- [Minimal Mistakes](https://github.com/mmistakes/minimal-mistakes) by Michael Rose
- [Skinny Bones](https://github.com/mmistakes/skinny-bones-jekyll) by Michael Rose

## Credits

- [Jekyll](https://github.com/jekyll/jekyll) - Thanks to its creators, contributors and maintainers.
- [SVG icons](https://github.com/neilorangepeel/Free-Social-Icons) - Thanks, Neil Orange Peel. They're beautiful.
- [Solarized Light Pygments](https://gist.github.com/edwardhotchkiss/2005058) - Thanks, Edward.
- [Joel Glovier](http://joelglovier.com/writing/) - Great Jekyll articles. I used Joel's feed.xml in this repository.
- [David Furnes](https://github.com/dfurnes), [Jon Uy](https://github.com/jonuy), [Luke Patton](https://github.com/lkpttn) - Thanks for the design/code reviews.
- [Bart Kiers](https://github.com/bkiers), [Florian Simon](https://github.com/vermluh), [Henry Stanley](https://github.com/henryaj), [Hun Jae Lee](https://github.com/hunjaelee), [Javier Cejudo](https://github.com/javiercejudo), [Peter Etelej](https://github.com/etelej), [Ben Abbott](https://github.com/jaminscript), [Ray Nicholus](https://github.com/rnicholus), [Erin Grand](https://github.com/eringrand), [Léo Colombaro](https://github.com/LeoColomb), [Dean Attali](https://github.com/daattali), [Clayton Errington](https://github.com/cjerrington), [Colton Fitzgerald](https://github.com/coltonfitzgerald), [Trace Mayer](https://github.com/sunnankar) - Thanks for your [fantastic contributions](https://github.com/barryclark/jekyll-now/commits/master) to the project!

## Contributing

Issues and Pull Requests are greatly appreciated. If you've never contributed to an open source project before I'm more than happy to walk you through how to create a pull request.

You can start by [opening an issue](https://github.com/barryclark/jekyll-now/issues/new) describing the problem that you're looking to resolve and we'll go from there.

I want to keep Jekyll Now as minimal as possible. Every line of code should be one that's useful to 90% of the people using it. Please bear that in mind when submitting feature requests. If it's not something that most people will use, it probably won't get merged. :guardsman:


text:
<?php

namespace Zephir\Optimizers\FunctionCall;

use Zephir\Call;
use Zephir\CompilationContext;
use Zephir\CompilerException;
use Zephir\CompiledExpression;
use Zephir\Optimizers\OptimizerAbstract;

/**
 * ExitOptimizer
 *
 * Optimizes calls to 'exit' using internal function
 */
class ExitOptimizer extends OptimizerAbstract
{

    /**
     * @param array $expression
     * @param Call $call
     * @param CompilationContext $context
     * @return bool|CompiledExpression|mixed
     * @throws CompilerException
     */
    public function optimize(array $expression, Call $call, CompilationContext $context)
    {
        if (isset($expression['parameters']) && count($expression['parameters']) > 1) {
            return false;
        }

        $context->headersManager->add('kernel/exit');
        if (!isset($expression['parameters'])) {
            $context->codePrinter->output('zephir_exit_empty();');
        } else {
            $resolvedParams = $call->getReadOnlyResolvedParams($expression['parameters'], $context, $expression);
            $context->codePrinter->output('zephir_exit(' . $resolvedParams[0] .');');
        }
        $context->codePrinter->output('ZEPHIR_MM_RESTORE();');
        return new CompiledExpression('void ', '', $expression);

    }
}


text:
var gulp = require('gulp');
var sass = require('gulp-sass');

var babelify = require('babelify');
var browserify = require('browserify');
var source = require('vinyl-source-stream');

var jsxDir = './client/jsx';

var port = process.env.PORT || 8080;

// Define paths for all source files here
var paths = {
    client: ['./client/jsx/*.jsx', './client/**/*.js'],
    sass: ['./scss/*.*'],

    server: './server.js',
    serverIgnore: ['./gulpfile.js', './scss', './pug', './public', './build',
        './app/jsx', './app/common/ajax-functions.js'],

    tags: ['./client/**/*', './server/**/*', './pug/**/*', './scss/**/*']

};

gulp.task('build-js', function() {
    return browserify({entries: jsxDir + '/app.jsx',
        extensions: ['.jsx'], debug: true})
        .transform(babelify)
        .bundle()
        .pipe(source('./bundle.js'))
        .pipe(gulp.dest('build'));
});

gulp.task('build-test', function() {
    return browserify({entries:
        ['./client/common/ajax-functions.js', 'test/ajaxFunctionsTest.js'],
        extensions: ['.js'], debug: true})
        .transform(babelify)
        .bundle()
        .pipe(source('./bundleTests.js'))
        .pipe(gulp.dest('build'));
});

gulp.task('build-sass', function() {
	return gulp.src('./scss/*.scss')
    .pipe(sass().on('error', sass.logError))
    .pipe(gulp.dest('./build'));

});

var buildTasks = ['build-js', 'build-sass'];

gulp.task('build', buildTasks, function() {
    console.log('Building the application.');
});

//--------------
// DEV-section
//--------------

if (process.env.NODE_ENV !== 'production') {

var nodemon = require('gulp-nodemon');
var ctags = require('gulp-ctags');

gulp.task('tags', function() {
  return gulp.src(paths.tags)
    .pipe(ctags({name: 'tags'}))
    .pipe(gulp.dest('./'));
});

/* Task for starting/restarting server on any changes.*/
gulp.task('serve', function(cb) {
    var called = false;
    nodemon({
        script: paths.server,
        ext: '.js',
        ignore: paths.serverIgnore,
        env: {
            NODE_ENV: process.env.NODE_ENV || 'development',
            DEBUG: process.env.DEBUG || 0,
            PORT: port
        }
    })
    .on('start', function() {
        if (!called) {
            console.log('Server started on port ' + port);
            called = true;
            cb();
        }
    })
    .on('restart', function(files) {
        if (files) {
            console.log('Nodemon will restart due to changes in: ', files);
        }
    });
});

var watchDependents = [
  'build-js',
  'tags',
  'build-sass'
];

gulp.task('watch-cli', watchDependents, function() {
    gulp.watch(paths.client, ['build-js']);
    gulp.watch(paths.sass, ['build-sass']);
    gulp.watch(paths.tags, ['tags']);
});

gulp.task('watch', ['watch-cli', 'serve'], function() {
    gulp.watch(paths.server, ['serve']);
});

gulp.task('default', ['watch']);

}


text:
function param(id)
{
	return window.location.search.split("?" + id + "=")[1];
}
function paramset(id)
{
	return (param(id) != null)
}


text:
layout: page
title: Inspired Red Aerospace Executive Retreat
date: 2016-05-24
author: Harold Roberts
tags: weekly links, java
status: published
summary: Aliquam dapibus malesuada ultrices. Mauris.
banner: images/banner/leisure-05.jpg
booking:
  startDate: 03/23/2018
  endDate: 03/24/2018
  ctyhocn: WBUCOHX
  groupCode: IRAER
published: true
---
Aenean sed consequat sapien. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nulla eu justo in est lobortis hendrerit. Aenean ut dolor urna. Pellentesque porta sollicitudin massa, nec suscipit tellus sodales eu. Suspendisse gravida tortor at ullamcorper tincidunt. Praesent iaculis non elit id rutrum. Curabitur condimentum mattis justo, quis viverra leo fringilla ut. Fusce vel ante dapibus, consequat lorem quis, laoreet sem. Nulla facilisi.

* Duis rhoncus eros in sollicitudin sodales
* Ut non enim vitae lorem eleifend accumsan quis nec sem
* Pellentesque eu sapien id dolor pretium volutpat
* Cras imperdiet enim in imperdiet maximus.

Nullam cursus sapien ac velit egestas volutpat vel a velit. Quisque tincidunt eleifend dui sit amet efficitur. Praesent varius vel orci ac vestibulum. Phasellus sodales lectus et diam fermentum, a feugiat erat elementum. Maecenas eget ligula ornare, hendrerit nulla vehicula, fermentum ante. Curabitur bibendum purus sapien, at rhoncus lorem porta vitae. In eget eros tempor, vulputate urna eu, ultrices nibh. Praesent nec velit vulputate, bibendum felis vel, hendrerit massa. Aenean sagittis ipsum vitae metus consequat, ac maximus est semper. Integer nec interdum eros. Vivamus suscipit urna at velit viverra pharetra. Aliquam erat volutpat. Proin eget venenatis risus.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque sollicitudin posuere mattis. Vestibulum at luctus dui. Donec sodales pulvinar purus, et suscipit nisi varius condimentum. Nullam suscipit commodo turpis, ut rutrum mauris convallis a. Curabitur condimentum, nisl at eleifend fermentum, velit dui accumsan purus, sed rutrum erat neque sed velit. Vivamus commodo risus ac enim faucibus, eu porta purus viverra. Nunc maximus ipsum ac felis placerat, a blandit nunc mollis. Mauris molestie lorem sed euismod pellentesque. Vestibulum cursus finibus ex, quis interdum leo facilisis non.


text:
Install
============
Hiisi is dependent on **numpy** and **h5py** packages. If you have these dependencies already
installed you can simply run ``pip install hiisi``.

Installing the dependencies and the package

.. code-block:: bash

    $ install pip
    $ pip install numpy
    $ pip install Cython
    $ pip install h5py
    $ pip install hiisi


text:
package gseproject.robot;

public class RobotAgentSettings {
}


text:
import addComment from "./addComment"
import deleteComment from "./deleteComment"
import editComment from "./editComment"
import getList from "./getList"
import getRecentForContacts from "./getRecentForContacts"

export addComment from "./addComment"
export deleteComment from "./deleteComment"
export editComment from "./editComment"
export getList from "./getList"
export getRecentForContacts from "./getRecentForContacts"

export default {
  addComment,
  deleteComment,
  editComment,
  getList,
  getRecentForContacts
}


text:
import unittest

from bridge import upb

class TestModel(unittest.TestCase):
    def test_upb_id(self):
        real_id = upb.upb_id_to_real_id(1, 85)
        self.assertEquals(real_id, '1.85')

    def test_real_id(self):
        net, dest = upb.real_id_to_upb_id('1.85')
        self.assertEquals(net, 1)
        self.assertEquals(dest, 85)


text:
import React, {Component} from 'react';
import {
    View,
	StyleSheet,
    Navigator,
	TouchableOpacity,
	Text,
	DatePickerAndroid,
	TimePickerAndroid,
	ScrollView,
	ToastAndroid,
	TouchableHighlight,
	Modal,
	CameraRoll,
	Animated,
	TextInput,
	ActivityIndicator,
	ActionSheetIOS,
	BackAndroid,
	Dimensions,
	Image
} from 'react-native';
import SelectPoeple from './SelectPoeple';
import Icon from 'react-native-vector-icons/Ionicons';
var dataImpor = [];
let aa=[];
var images = [];
var BUTTONS = [
  '保存到相册',
  '取消',
];
var DESTRUCTIVE_INDEX = 0;
var CANCEL_INDEX = 1;
export default class Attendancem extends Component {

    constructor(props) {
        super(props);
		this._pressButton = this._pressButton.bind(this);
		BackAndroid.addEventListener('hardwareBackPress', this._pressButton);
        this.state = {
            datas:{},
            datasx:{},
			Status:'',
			statu:false,
			statur:false,
			stat:'暂无',
			infos:'',
			product:[],
			poepledata:{},
			modalshow:false,
			modalshows:false,
			modalpoeple:false,
			zidan:[],
			zidan_id:'',
			tj:'提交',
			tp:false,
			tjstatus:true,
			textaera:'',
			textaeras:'',
			bcimg:'',
			historydata:[],
			imgs:[],
			imgsx:[],
			loaded:false,
			loadedst:false,
			url:'',
		};
    }

	componentDidMount() {
	  this.timer = setTimeout(
		  () => { this.fetchDataa(data.data.domain + this.props.data.checkInfo.detail_url+ '&access_token=' + data.data.token);
                  this.fetchDatab(data.data.domain + this.props.data.checkInfo.check_history_url+ '&access_token=' + data.data.token);
		                   },800);
	  aa=[];
	}

    componentWillUnmount() {

	  this.timer && clearTimeout(this.timer);
	  this.timerx && clearTimeout(this.timerx);
	   BackAndroid.removeEventListener('hardwareBackPress', this._pressButton);
	}

	toQueryString(obj) {
		return obj ? Object.keys(obj).sort().map(function (key) {
			var val = obj[key];
			if (Array.isArray(val)) {
				return val.sort().map(function (val2) {
					return encodeURIComponent(key) + '=' + encodeURIComponent(val2);
				}).join('&');
			}

			return encodeURIComponent(key) + '=' + encodeURIComponent(val);
		}).join('&') : '';
	}
	fetchDataa(url) {
		var that=this;
		fetch(url, {
				  method: 'POST',
				  headers: {
					'Content-Type': 'application/x-www-form-urlencoded',
				  },
				  body: this.toQueryString({
					'id': this.props.data.con_id,
					'notify_id': this.props.data.id,
				  })
				})
				.then(function (response) {
                    return response.json();
				})
				.then(function (result) {

					that.setState({
						loaded:true,
						loadedst:true,
						datas: result.data,
						datasx:result,
					});

				})
				.catch((error) => {
					that.setState({
						   loaded:true,
						   statu:true,
						   infos:'加载失败'
					   })
					that.timerx = setTimeout(() => {
					  that.setState({
						 statu:false,
					})
				  },1000)

				  });

	}

	fetchDatab(url) {
		var that=this;
		fetch(url, {
				  method: 'POST',
				  headers: {
					'Content-Type': 'application/x-www-form-urlencoded',
				  },
				  body: this.toQueryString({
					'id': this.props.data.con_id,
					'notify_id': this.props.data.id,
				  })
				})
				.then(function (response) {
                    return response.json();
				})
				.then(function (result) {

					 that.setState({
						historydata: result.data.slice(0,-1),
					});
					var aa=[];

					if(result.data != null){
					result.data.forEach((img, i) => {
						key={i}
						var IMG =  {uri:data.data.domain.slice(0,-6)+ img.img.slice(1)}
						aa.push(IMG)
						that.setState({
							imgsx: aa,
						});
					})
				   }

				})

	}

    _pressButton() {
		dataImpor = [];
        var { navigator } = this.props;

        if(navigator) {
            //很熟悉吧,入栈出栈~ 把当前的页面pop掉,这里就返回到了上一个页面了
            navigator.pop();
			return true;
        }
		return false;
    }

    _lxr(visible){
		 this.setState({modalshow: visible,url:''});
	}

	_xz(url){
		 this.setState({modalshow: true,url:url});
	}

	_lxrs(visible){
		 this.setState({modalshows: visible,poepledata:{},});
	}

	_xzs(visible){
		 this.setState({modalshows: visible,});
	}

	_lmodalpoeple(visible){
		 this.setState({modalpoeple: visible,modalshows: true});

	}

	_xmodalpoeple(visible){
		 this.setState({modalpoeple: visible,modalshows: false});

	}

    _select(data){

		this.setState({
			modalpoeple: false,
			modalshows: true,
			poepledata:data,
			});

	}

    _delets(){
    	this.setState({
			poepledata:{},
			});
    }

    tijiao(){
    	var that=this;
    	this.setState({
			tj:'正在提交...',
			tjstatus:false,
			});
		fetch(this.state.url, {
				  method: 'POST',
				  headers: {
					'Content-Type': 'application/x-www-form-urlencoded',
				  },
				  body: this.toQueryString({
					'id': this.props.data.con_id,
					'reply_text': this.state.textaera,
					'next_uid':0,
				  })
				})
				.then(function (response) {
                    return response.json();
				})
				.then(function (result) {

					 that.setState({
						modalshow:false,
						tj:'提交',
						tjstatus:true,
						loadedst:false,
						statu:true,
						infos:'审批成功'
					});
					that.timerx = setTimeout(() => {
					  that.setState({
						 statu:false,
					})
				  },1000);
				if(that.props.getUser) {
					let user = true;
					that.props.getUser(user);
				}
				that.fetchDatab(data.data.domain + that.props.data.checkInfo.check_history_url+ '&access_token=' + data.data.token);

				})
				.catch((error) => {
					that.setState({

						   tjstatus:true,
						   statu:true,
						   tj:'提交',
						   infos:'审批失败'
					   })
					that.timerx = setTimeout(() => {
					  that.setState({
						 statu:false,
					})
				  },1000)

				  });

    }

    tijiaos(){
    	var that=this;
    	if(JSON.stringify(this.state.poepledata) == "{}"){

    		this.setState({
						statur:true,
						infos:'请选择审批人'
					});
					 this.timerx = setTimeout(() => {
						  this.setState({
							 statur:false,
						})
					  },1500)

    	}else{
    	this.setState({
			tj:'正在提交...',
			tjstatus:false,
			});
		fetch(data.data.domain + this.props.data.checkInfo.next_check_url + '&access_token=' + data.data.token, {
				  method: 'POST',
				  headers: {
					'Content-Type': 'application/x-www-form-urlencoded',
				  },
				  body: this.toQueryString({
					'id': this.props.data.con_id,
					'reply_text': this.state.textaeras,
					'next_uid':this.state.poepledata.uid,
				  })
				})
				.then(function (response) {
                    return response.json();
				})
				.then(function (result) {

					 if(result.status == -2){
					 	that.setState({
							tj:'提交',
							tjstatus:true,
							statur:true,
							infos:'此人没有审核权限'
						});
						that.timerx = setTimeout(() => {
							  that.setState({
								 statur:false,
							})
						  },1000)
					 }else{
						 that.setState({
						 	modalshows:false,
							tj:'提交',
							tjstatus:true,
							poepledata:{},
							statu:true,
							loadedst:false,
							infos:'审批成功'
						});
						if(that.props.getUser) {
							let user = true;
							that.props.getUser(user);
						}
						that.fetchDatab(data.data.domain + that.props.data.checkInfo.check_history_url+ '&access_token=' + data.data.token);
					}
					 that.timerx = setTimeout(() => {
					  that.setState({
						 statu:false,
					})
				  },1000)

				})
				.catch((error) => {
					that.setState({

						   tjstatus:true,
						   statu:true,
						   tj:'提交',
						   infos:'审批失败'
					   })
					that.timerx = setTimeout(() => {
					  that.setState({
						 statu:false,
					})
				  },1000)

				  });
    }
}

tup(img){

	var ims={url:img.uri};
	images=[];
	images.push(ims)
    this.setState({tp:true,bcimg:img.uri})

}

showActionSheet() {
	var that=this;
    ActionSheetIOS.showActionSheetWithOptions({
      options: BUTTONS,
      cancelButtonIndex: CANCEL_INDEX,
    },
    (buttonIndex) => {
      if(buttonIndex == 0){
          CameraRoll.saveToCameraRoll(this.state.bcimg);
          that.setState({
          	statu:true,
			infos:'保存成功'
          })
          that.timerx = setTimeout(() => {
					  that.setState({
						 statu:false,
					})
				  },1000)
      }else{

      }
    });
  }

    render() {
    return (
	   <View style={{flex:1,flexDirection:'column',backgroundColor:'#fff'}}>
                <View style={styles.card}>
				  <View style={{flex:1,justifyContent:'center'}}>
							 <TouchableOpacity onPress={this._pressButton.bind(this)}>
								  <View style={{justifyContent:'flex-start',flexDirection:'row',alignItems:'center',}}>
								        <Image source={require('./imgs/back.png')} style={{width: 25, height: 25,marginLeft:5,}} />
										<Text style={{color:'white',fontSize:16,marginLeft:-5,}} allowFontScaling={false} adjustsFontSizeToFit={false}>返回</Text>
								  </View>
							</TouchableOpacity>
				  </View>
				  <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>
							<View style={{justifyContent:'center',flexDirection:'row',alignItems:'center'}}>
										<Text style={{color:'white',fontSize:16}} allowFontScaling={false} adjustsFontSizeToFit={false}>审批</Text>
							</View>
				  </View>
				  <View style={{flex:1,justifyContent:'center'}}>
							 <TouchableOpacity>
								  <View style={{justifyContent:'flex-end',flexDirection:'row',alignItems:'center'}}>

								  </View>
							</TouchableOpacity>
				  </View>
				</View>
				{!this.state.loaded ? <View style={{justifyContent: 'center',alignItems: 'center',flex:1,flexDirection:'column',backgroundColor:'#ececec'}}>
					<View style={styles.loading}>
						<ActivityIndicator color="white"/>
						<Text style={styles.loadingTitle}allowFontScaling={false} adjustsFontSizeToFit={false}>加载中……</Text>
					</View>
			    </View> : <ScrollView style={{flex:1,flexDirection:'column',backgroundColor:'#ececec'}}>
				     <View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,marginTop:0}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>操作人</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
								<Text allowFontScaling={false} adjustsFontSizeToFit={false} style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}}>
									{this.props.data.from_name}
								</Text>
							</View>
						</View>
					</View>
					<View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>来自</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    {this.props.data.app_name ? <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.props.data.app_name}
								</Text> : <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.stat}
								</Text>
								}
							</View>
						</View>
					</View>
					<View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>创建日期</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.props.data.stime}
								</Text>
							</View>
						</View>
					</View>
					<View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,marginTop:15,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>申请人</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.name}
								</Text>
							</View>
						</View>
					</View>

					<View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>类型</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.jilu_cate}
								</Text>
							</View>
						</View>
					</View>

                    <View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>请假类型</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.qj_cate}
								</Text>
							</View>
						</View>
					</View>

                    <View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>是否使用年假</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.qj_year}
								</Text>
							</View>
						</View>
					</View>

                    <View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>申请时间</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.creat_time}
								</Text>
							</View>
						</View>
					</View>

					<View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>开始时间</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.to_time}
								</Text>
							</View>
						</View>
					</View>
					<View style={{flexDirection:'row',height:50,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>结束时间</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,height:50,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.go_time}
								</Text>
							</View>
						</View>
					</View>

				   <View style={{flexDirection:'row',paddingTop:18,paddingBottom:18,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>预计时长</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.to_time_hour}
								</Text>
							</View>
						</View>
					</View>

					<View style={{flexDirection:'row',paddingTop:18,paddingBottom:18,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>当前状态</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datasx.audit_status}
								</Text>
							</View>
						</View>
					</View>

					<View  style={{flexDirection:'row',paddingTop:18,paddingBottom:18,backgroundColor:'#fff',alignItems:'center',justifyContent:'center',borderBottomWidth:1,borderColor:'#dcdcdc',paddingLeft:10,}}>
					    <Text style={{fontSize:14,color:'#666',}} allowFontScaling={false} adjustsFontSizeToFit={false}>原因</Text>
						<View  style={{flex:1,marginLeft:15,flexDirection:'row',alignItems:'center',paddingRight:10,}}>

							<View style={{flex:1,}}>
							    <Text style={{fontSize:14,textAlign:'right',paddingRight:15, alignItems:'center'}} allowFontScaling={false} adjustsFontSizeToFit={false}>
									{this.state.datas.reason}
								</Text>
							</View>
						</View>
					</View>

                   <View style={{marginTop:15,backgroundColor:'#fff',}}>
                        {this.state.historydata.length > 0 ? <View style={{paddingLeft:10,paddingRight:10,paddingTop:7,paddingBottom:7,borderBottomWidth:1,borderColor:'#ececec',flexDirection:'row',justifyContent:'space-between'}}>
                              <Text style={{fontSize:14}} allowFontScaling={false} adjustsFontSizeToFit={false}> 评论</Text>
                              <Text style={{fontSize:14}} allowFontScaling={false} adjustsFontSizeToFit={false}>共有{this.state.historydata.length}条评论</Text>
                           </View> : null}
					    {this.state.historydata.length > 0 ? this.state.historydata.map((data,i) => {
							return  <View key={i} style={{flexDirection:'row',paddingTop:15,paddingLeft:15,}}>
								<View style={{width: 40, height: 40,borderRadius:20,backgroundColor:'#718DC1',alignItems:'center', justifyContent:'center'}}>
								   <Image source={this.state.imgsx[i]} style={{width: 40, height: 40,borderRadius:20,}} />
								</View>
								<View style={{flexDirection:'column',marginLeft:15,flex:1, borderBottomWidth:1,borderColor:'#ececec',paddingBottom:15,paddingRight:15,}}>
								   <View style={{flexDirection:'row',alignItems:'center', justifyContent:'space-between'}}>
									  <Text allowFontScaling={false} adjustsFontSizeToFit={false}>{data.apply_name}</Text>
									  <Text allowFontScaling={false} adjustsFontSizeToFit={false}>{data.inserttime}</Text>
								   </View>
								   <Text style={{color:'#aaa',fontSize:14,flexWrap:'wrap',flex:1,paddingTop:5,}} allowFontScaling={false} adjustsFontSizeToFit={false}>{data.reply_text}
								   </Text>
								</View>
							  </View>
						}) : null}

					</View>

				</ScrollView>}
				{this.state.loadedst ? <View style={{height:50,flexDirection:'row',justifyContent:'space-around',alignItems:'center',borderTopWidth:0.5,borderColor:'#ccc'}}>
				 <TouchableOpacity onPress={this._xz.bind(this,data.data.domain + this.props.data.checkInfo.check_url + '&access_token=' + data.data.token)} style={{flex:1,}}>
				  <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>
                   <Text style={{fontSize:16,color:'#4385f4'}}  allowFontScaling={false} adjustsFontSizeToFit={false}>审核通过</Text>
                  </View>
                 </TouchableOpacity>
                 <View style={{width:1,height:17,backgroundColor:'#4385f4'}}></View>
                 <TouchableOpacity  style={{flex:1,}} onPress={this._xz.bind(this,data.data.domain + this.props.data.checkInfo.reject_url + '&access_token=' + data.data.token)}>
                  <View style={{alignItems:'center',justifyContent:'center'}}>
                   <Text style={{fontSize:16,color:'#4385f4'}} allowFontScaling={false} adjustsFontSizeToFit={false}>驳回</Text>
                  </View>
                  </TouchableOpacity>
                  <View style={{width:1,height:17,backgroundColor:'#4385f4'}}></View>
                  <TouchableOpacity  style={{flex:1,paddingRight:10,paddingLeft:10}} onPress={this._xzs.bind(this,true)}>
                  <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>
                   <Text style={{fontSize:16,color:'#4385f4'}} allowFontScaling={false} adjustsFontSizeToFit={false}>提交下一步</Text>
                  </View>
                  </TouchableOpacity>
				</View> : null}
				<View>
					   <Modal
					      animationType={"slide"}
						  transparent={false}
						  visible={this.state.modalshow}
						  onRequestClose={() => {console.log("Modal has been closed.")}}
					   >
					      <View style={styles.card}>
					          <TouchableOpacity onPress={this._lxr.bind(this,false)} style={{flex:1}}>
								  <View style={{flex:1,justifyContent:'center'}}>

											  <View style={{justifyContent:'flex-start',flexDirection:'row',alignItems:'center',}}>
													<Text style={{color:'white',fontSize:16,paddingLeft:10,}} allowFontScaling={false} adjustsFontSizeToFit={false}>取消</Text>
											  </View>

								  </View>
							  </TouchableOpacity>
							  <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>

										  <Text style={{color:'white',fontSize:16}} allowFontScaling={false} adjustsFontSizeToFit={false}>审批</Text>

							  </View>
							  <View style={{flex:1,justifyContent:'center',alignItems:'flex-end',}}>

							  </View>
							</View>
							<ScrollView style={{flex:1,backgroundColor:'#ececec'}}>
							   <View style={{padding:10,backgroundColor:'#fff'}}>
							        <TextInput
									  onChangeText={(textaera) => this.setState({textaera})}
									  multiline={true}
									  numberOfLines={5}
									  placeholderTextColor={'#ccc'}
									  style={{ color:'#666',fontSize:14,textAlignVertical:'top',height:170,}}
									  placeholder='不说点什么...'
									  underlineColorAndroid={'transparent'}
									/>
							  </View>
							  {this.state.tjstatus ? <TouchableHighlight onPress={this.tijiao.bind(this)} underlayColor="rgba(82, 132, 216,0.7)" style={{marginLeft:10,marginRight:10,marginTop:40, borderWidth:1,borderColor:'#ececec',borderRadius:5,paddingTop:10,paddingBottom:10, justifyContent:'center',alignItems:'center',backgroundColor:'#4385f4'}}>
					            <View style={{borderRadius:5, justifyContent:'center',alignItems:'center',}}>
					                <Text style={{fontSize:18, color:'#fff'}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.tj}</Text>
					            </View>
					          </TouchableHighlight> : <TouchableHighlight  style={{marginLeft:10,marginRight:10,marginTop:40, borderWidth:1,borderColor:'#ececec',borderRadius:5,paddingTop:10,paddingBottom:10, justifyContent:'center',alignItems:'center',backgroundColor:'#4385f4'}}>
					            <View style={{borderRadius:5, justifyContent:'center',alignItems:'center',}}>
					                <Text style={{fontSize:18, color:'#fff'}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.tj}</Text>
					            </View>
					          </TouchableHighlight>}

							</ScrollView>
							{this.state.statu ? <Animated.View style={{ padding:10,width:200,backgroundColor:'rgba(23, 22, 22, 0.7)',justifyContent:'flex-start',alignItems:'center',position:'absolute',top:(Dimensions.get('window').height-150)/2,left:(Dimensions.get('window').width-200)/2,}}>
							  <Icon name="ios-close-outline" color="#fff"size={36}  />
							  <Text style={{fontSize:16,color:'#fff',marginTop:20,}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.infos}</Text>
				            </Animated.View> : null}
					   </Modal>
					</View>

					<View>
					   <Modal
					      animationType={"slide"}
						  transparent={false}
						  visible={this.state.modalshows}
						  onRequestClose={() => {console.log("Modal has been closed.")}}
					   >
					      <View style={styles.card}>
					          <TouchableOpacity onPress={this._lxrs.bind(this,false)} style={{flex:1}}>
								  <View style={{flex:1,justifyContent:'center'}}>

											  <View style={{justifyContent:'flex-start',flexDirection:'row',alignItems:'center',}}>
													<Text style={{color:'white',fontSize:16,paddingLeft:10,}} allowFontScaling={false} adjustsFontSizeToFit={false}>取消</Text>
											  </View>

								  </View>
							  </TouchableOpacity>
							  <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>

										  <Text style={{color:'white',fontSize:16}} allowFontScaling={false} adjustsFontSizeToFit={false}>审批</Text>

							  </View>
							  <View style={{flex:1,justifyContent:'center',alignItems:'flex-end',}}>

							  </View>
							</View>
							<ScrollView style={{flex:1,backgroundColor:'#ececec'}}>
							   <View style={{padding:10,backgroundColor:'#fff'}}>
							        <TextInput
									  onChangeText={(textaeras) => this.setState({textaeras})}
									  multiline={true}
									  numberOfLines={5}
									  placeholderTextColor={'#ccc'}
									  style={{ color:'#666',fontSize:14,textAlignVertical:'top',height:170,}}
									  placeholder='不说点什么...'
									  underlineColorAndroid={'transparent'}
									/>
							  </View>
							  <View style={{backgroundColor:'#fff',marginTop:15,flexDirection:'column',paddingLeft:10,paddingTop:10,paddingBottom:10,}}>
                                 <View style={{flexDirection:'row',alignItems:'center'}}>
                                   <Text style={{fontSize:16}} allowFontScaling={false} adjustsFontSizeToFit={false}>审批人</Text>
                                   <Text style={{fontSize:12,color:'#bbb',marginLeft:5}} allowFontScaling={false} adjustsFontSizeToFit={false}>(点击姓名可删除)</Text>
                                 </View>
                                 <View style={{marginTop:15,flexDirection:'row',alignItems:'center',}}>
                                     {this.state.poepledata.name ? <TouchableOpacity onPress={this._delets.bind(this)} activeOpacity={1}><View style={{backgroundColor:'#60a9e8',paddingBottom:8,paddingTop:8,paddingLeft:10,paddingRight:10,marginRight:10,borderRadius:3}}>
                                        <Text style={{color:'#fff'}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.poepledata.name}</Text>
                                     </View></TouchableOpacity> : null}
                                    <TouchableOpacity style={{width:46,height:46,marginTop:5,alignItems:'center',justifyContent:'center'}} onPress={this._xmodalpoeple.bind(this,true)}>

                                      <Icon name="ios-add-circle-outline" color="#ccc"size={46}  />

                                    </TouchableOpacity>
                                 </View>
							  </View>
							  {this.state.tjstatus ? <TouchableHighlight onPress={this.tijiaos.bind(this)}  underlayColor="rgba(82, 132, 216,0.7)" style={{marginLeft:10,marginRight:10,marginTop:40, borderWidth:1,borderColor:'#ececec',borderRadius:5,paddingTop:10,paddingBottom:10, justifyContent:'center',alignItems:'center',backgroundColor:'#4385f4'}}>
					            <View style={{borderRadius:5, justifyContent:'center',alignItems:'center',}}>
					                <Text style={{fontSize:18, color:'#fff'}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.tj}</Text>
					            </View>
					          </TouchableHighlight> : <TouchableHighlight  style={{marginLeft:10,marginRight:10,marginTop:40, borderWidth:1,borderColor:'#ececec',borderRadius:5,paddingTop:10,paddingBottom:10, justifyContent:'center',alignItems:'center',backgroundColor:'#4385f4'}}>
					            <View style={{borderRadius:5, justifyContent:'center',alignItems:'center',}}>
					                <Text style={{fontSize:18, color:'#fff'}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.tj}</Text>
					            </View>
					          </TouchableHighlight>}

							</ScrollView>
							{this.state.statur ? <Animated.View style={{ padding:10,width:200,backgroundColor:'rgba(23, 22, 22, 0.7)',justifyContent:'flex-start',alignItems:'center',position:'absolute',top:(Dimensions.get('window').height-150)/2,left:(Dimensions.get('window').width-200)/2,}}>
							  <Icon name="ios-close-outline" color="#fff"size={36}  />
							  <Text style={{fontSize:16,color:'#fff',marginTop:20,}}allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.infos}</Text>
				            </Animated.View> : null}
					   </Modal>

					</View>

					<View>
					   <Modal
					      animationType={"slide"}
						  transparent={false}
						  visible={this.state.modalpoeple}
						  onRequestClose={() => {console.log("Modal has been closed.")}}
					   >
					      <View style={styles.card}>
					          <TouchableOpacity onPress={this._lmodalpoeple.bind(this,false)} style={{flex:1}}>
								  <View style={{flex:1,justifyContent:'center'}}>

											  <View style={{justifyContent:'flex-start',flexDirection:'row',alignItems:'center',}}>
													<Text style={{color:'white',fontSize:16,paddingLeft:10,}} allowFontScaling={false} adjustsFontSizeToFit={false}>取消</Text>
											  </View>

								  </View>
							  </TouchableOpacity>
							  <View style={{flex:1,alignItems:'center',justifyContent:'center'}}>

										  <Text style={{color:'white',fontSize:16}} allowFontScaling={false} adjustsFontSizeToFit={false}>选择审批人</Text>

							  </View>
							  <View style={{flex:1,justifyContent:'center',alignItems:'flex-end',}}>

							  </View>
							</View>
							<View style={{flex:1}}>
                               <SelectPoeple _select={this._select.bind(this)}/>
							</View>
					   </Modal>
					</View>
					{this.state.statu ? <Animated.View style={{ padding:10,width:200,backgroundColor:'rgba(23, 22, 22, 0.7)',justifyContent:'flex-start',alignItems:'center',position:'absolute',top:(Dimensions.get('window').height-150)/2,left:(Dimensions.get('window').width-200)/2,}}>
					  <Icon name="ios-close-outline" color="#fff"size={36}  />
					  <Text style={{fontSize:16,color:'#fff',marginTop:20,}} allowFontScaling={false} adjustsFontSizeToFit={false}>{this.state.infos}</Text>
		            </Animated.View> : null}
	  </View>

    );
    }
}
const styles = StyleSheet.create({
  tabView: {
    flex: 1,
    flexDirection: 'column',
	backgroundColor:'#fafafa',
  },
  card: {
    height:45,
	backgroundColor:'#4385f4',
	flexDirection:'row'
  },
  default: {
    height: 37,
    borderWidth: 0,
    borderColor: 'rgba(0,0,0,0.55)',
    flex: 1,
    fontSize: 13,

  },
  loading: {
        backgroundColor: 'gray',
        height: 80,
        width: 100,
        borderRadius: 10,
        justifyContent: 'center',
        alignItems: 'center',

    },

    loadingTitle: {
        marginTop: 10,
        fontSize: 14,
        color: 'white'
    },
});


text:
from unittest import mock
from aiorm.tests.testing import TestCase
from aiorm.tests.fixtures import sample

class ColumnTestCase(TestCase):

    def test_column_all_args(self):
        from aiorm import orm
        type = mock.Mock()

        col = orm.Column('name', lambda: type,
                         immutable=True,
                         nullable=True,
                         unique=True,
                         default='x',
                         foo='bar'
                         )
        self.assertEqual(col.name, 'name')
        self.assertEqual(col.type, type)
        self.assertEqual(col.type.foo, 'bar')
        self.assertIsNone(col.model)
        self.assertTrue(col.immutable)
        self.assertTrue(col.nullable)
        self.assertTrue(col.unique)
        self.assertEqual(col.default_value, 'x')

    def test_column_simple(self):
        from aiorm import orm
        col = orm.Column(lambda: 'type')
        self.assertIsNone(col.model)
        self.assertIsNone(col.name)
        self.assertEqual(col.type, 'type')
        self.assertFalse(col.immutable)
        self.assertFalse(col.nullable)
        self.assertFalse(col.unique)
        self.assertIsNone(col.default_value)

    def test_colum_model(self):
        from aiorm import orm

        class Test:
            field = orm.Column(mock.Mock)

        self.assertEqual(Test.field.model, Test)

        test = Test()
        test.field = 'val'

        self.assertEqual(Test.field._get_model(test), 'val')
        self.assertEqual(test.field, 'val')

    def test_equal(self):
        from aiorm import orm
        from aiorm.orm.query import operators

        class Test:
            field = orm.Column(mock.Mock)

        self.assertIsInstance(Test.field == 1, operators.equal)
        self.assertIsInstance(Test.field > 1, operators.greater_than)
        self.assertIsInstance(Test.field >= 1, operators.greater_than_or_equal)
        self.assertIsInstance(Test.field < 1, operators.less_than)
        self.assertIsInstance(Test.field <= 1, operators.less_than_or_equal)

    def test_render_sql(self):
        from aiorm import orm

        class Test:
            field = orm.Column(mock.Mock)

        visitor = mock.Mock()
        Test.field.render_sql(visitor)
        visitor.render_column.assert_called_with(Test.field)

    def test_immutable_field(self):
        from aiorm import orm
        from aiorm.orm.declaration.columns import ImmutableFieldUpdateError

        class Test:
            field = orm.Column(mock.Mock, immutable=True)

        test = Test()
        test.field = 1
        with self.assertRaises(ImmutableFieldUpdateError):
            test.field = 2

class PrimaryKeyTestCase(TestCase):

    def test_primary_key_composed(self):
        from aiorm import orm

        class Test:
            field1 = orm.PrimaryKey(mock.Mock)
            field2 = orm.PrimaryKey(mock.Mock)
            field3 = orm.Column(mock.Mock)

        self.assertTrue(Test.field1.immutable)
        self.assertTrue(Test.field2.immutable)

    def test_render_sql(self):
        from aiorm import orm

        class Test:
            field = orm.PrimaryKey(mock.Mock)

        visitor = mock.Mock()
        Test.field.render_sql(visitor)
        visitor.render_primary_key.assert_called_with(Test.field)

class ForeignKeyTestCase(TestCase):

    def test_render_sql(self):
        from aiorm import orm

        class Test:
            field1 = orm.PrimaryKey(mock.Mock)

        class Test2:
            field2 = orm.ForeignKey(Test.field1)

        visitor = mock.Mock()
        Test2.field2.render_sql(visitor)
        visitor.render_foreign_key.assert_called_once_with(Test2.field2)

class SchemaTestCase(TestCase):
    """ tests that require that __meta__ is set """

    _fixtures = [sample.SampleFixture]

    def test_meta(self):
        user = sample.User(id=1)
        meta = sample.User.__meta__
        self.assertEqual(sorted(meta.keys()),
                         ['alias', 'attributes', 'collation', 'columns',
                          'database', 'foreign_keys', 'pkv', 'primary_key',
                          'tablename'])
        self.assertEqual(meta['database'], 'sample')
        self.assertEqual(meta['tablename'], 'user')
        self.assertEqual(meta['collation'], 'en_US.UTF8')
        self.assertEqual(sorted(meta['columns']),
                         ['created_at', 'email', 'firstname', 'id', 'lang',
                         'lastname', 'login', 'password'])
        self.assertEqual(meta['primary_key'], {'id': sample.User.id})
        self.assertEqual(meta['pkv'](user), {'id': 1})
        self.assertEqual(meta['foreign_keys'], {})

        meta = sample.UserGroup.__meta__
        self.assertEqual(meta['foreign_keys'],
                         {'group_id': sample.UserGroup.group_id,
                          'user_id': sample.UserGroup.user_id})
        self.assertEqual(meta['primary_key'],
                         {'group_id': sample.UserGroup.group_id,
                          'user_id': sample.UserGroup.user_id})


text:
#ifndef QMITKFILEREADERWRITEROPTIONSWIDGET_H
#define QMITKFILEREADERWRITEROPTIONSWIDGET_H

#include <QCheckBox>
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QLabel>
#include <QLineEdit>
#include <QSpinBox>
#include <QWidget>

#include <usAny.h>

struct QmitkAnyAdapter
{
  QmitkAnyAdapter(const std::string &name) : m_Name(name) {}
  virtual ~QmitkAnyAdapter() {}
  virtual us::Any GetAny() const = 0;
  std::string GetName() const { return m_Name; }
private:
  std::string m_Name;
};

class QmitkAnyStringWidget : public QLineEdit, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyStringWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyVectorWidget : public QComboBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyVectorWidget(const std::string &name,
                       const us::Any &any,
                       const QString &defaultValue,
                       QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyBoolWidget : public QCheckBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyBoolWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyShortWidget : public QSpinBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyShortWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyUShortWidget : public QSpinBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyUShortWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyIntWidget : public QSpinBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyIntWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyUIntWidget : public QSpinBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyUIntWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyFloatWidget : public QDoubleSpinBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyFloatWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkAnyDoubleWidget : public QDoubleSpinBox, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkAnyDoubleWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkInvalidAnyWidget : public QLabel, public QmitkAnyAdapter
{
  Q_OBJECT

public:
  QmitkInvalidAnyWidget(const std::string &name, const us::Any &any, QWidget *parent = nullptr);
  us::Any GetAny() const override;
};

class QmitkFileReaderWriterOptionsWidget : public QWidget
{
  Q_OBJECT

public:
  typedef std::map<std::string, us::Any> Options;

  QmitkFileReaderWriterOptionsWidget(const Options &options, QWidget *parent = nullptr);

  Options GetOptions() const;

private:
  Q_DISABLE_COPY(QmitkFileReaderWriterOptionsWidget)
};

#endif // QMITKFILEREADERWRITEROPTIONSWIDGET_H


text:
using System;
using FluentAssertions;
using Machine.Specifications;
using SkyFilter.Azure.Contracts;
using SkyFilter.Azure.Tables;

namespace SkyFilter.Azure.Tests.WhereGreaterThanOrEqual
{
    [Subject(typeof(GenerateTableFilter), "WhereGreaterThanOrEqual")]
    internal class When_I_generate_a_filter_where_a_guid_partition_key_is_greater_than_or_equal_to_the_empty_guid
    {
        private static string _expectedFilter;
        private static IAzureTableFilter _result;

        private Establish ctx = () => _expectedFilter = "PartitionKey ge guid'00000000-0000-0000-0000-000000000000'";

        private Because of = () => _result = GenerateTableFilter.WhereGreaterThanOrEqual("PartitionKey", Guid.Empty);

        private It should_return_the_expected_filter = () => _result.AsFilterCondition.Should().Be(_expectedFilter);
    }
}


text:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
	version="3.0">

	<display-name>cdi-sync</display-name>

	<filter>
		<filter-name>cdi-sync</filter-name>
		<filter-class>org.apache.wicket.protocol.ws.javax.JavaxWebSocketFilter</filter-class>
		<init-param>
			<param-name>applicationClassName</param-name>
			<param-value>quickstart.MyApplication</param-value>
		</init-param>
	</filter>

	<filter-mapping>
		<filter-name>cdi-sync</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<context-param>
		<param-name>configuration</param-name>
		<param-value>development</param-value>
	</context-param>

	<!--
	<ejb-local-ref>
		<ejb-ref-name>ejb/workflow</ejb-ref-name>
		<ejb-ref-type>Session</ejb-ref-type>
		<local></local>
	</ejb-local-ref>
	-->

</web-app>