text:
<?php

use humhub\compat\CActiveForm;
use humhub\compat\CHtml;
use humhub\models\Setting;
use yii\helpers\Url;
?>
<?php $this->beginContent('@admin/views/setting/_advancedLayout.php') ?>

<?php $form = CActiveForm::begin(); ?>

<?php echo $form->errorSummary($model); ?>

    <?php echo $form->labelEx($model, 'imageMagickPath'); ?>
    <?php echo $form->textField($model, 'imageMagickPath', array('class' => 'form-control', 'readonly' => Setting::IsFixed('imageMagickPath', 'file'))); ?>

<?php echo Yii::t('AdminModule.views_setting_file', 'Current Image Libary: {currentImageLibary}', array('{currentImageLibary}' => $currentImageLibary)); ?>

    <?php echo $form->labelEx($model, 'maxFileSize'); ?>
    <?php echo $form->textField($model, 'maxFileSize', array('class' => 'form-control', 'readonly' => Setting::IsFixed('maxFileSize', 'file'))); ?>

<?php echo Yii::t('AdminModule.views_setting_file', 'PHP reported a maximum of {maxUploadSize} MB', array('{maxUploadSize}' => $maxUploadSize)); ?>

            <?php echo $form->checkBox($model, 'useXSendfile', array('disabled' => Setting::IsFixed('useXSendfile', 'file'))); ?>
            <?php echo $model->getAttributeLabel('useXSendfile'); ?>

    <?php echo $form->labelEx($model, 'maxPreviewImageWidth'); ?>
    <?php echo $form->textField($model, 'maxPreviewImageWidth', array('class' => 'form-control', 'readonly' => Setting::IsFixed('maxPreviewImageWidth', 'file'))); ?>

<?php echo Yii::t('AdminModule.views_setting_file', 'If not set, width will default to 200px.') ?>

    <?php echo $form->labelEx($model, 'maxPreviewImageHeight'); ?>
    <?php echo $form->textField($model, 'maxPreviewImageHeight', array('class' => 'form-control', 'readonly' => Setting::IsFixed('maxPreviewImageHeight', 'file'))); ?>

<?php echo Yii::t('AdminModule.views_setting_file', 'If not set, height will default to 200px.') ?>

            <?php echo $form->checkBox($model, 'hideImageFileInfo', array('disabled' => Setting::IsFixed('hideImageFileInfo', 'file'))); ?>
            <?php echo $model->getAttributeLabel('hideImageFileInfo'); ?>

    <?php echo $form->labelEx($model, 'allowedExtensions'); ?>
    <?php echo $form->textField($model, 'allowedExtensions', array('class' => 'form-control')); ?>

<?php echo Yii::t('AdminModule.views_setting_file', 'Comma separated list. Leave empty to allow all.'); ?>

    <?php echo $form->labelEx($model, 'showFilesWidgetBlacklist'); ?>
    <?php echo $form->textField($model, 'showFilesWidgetBlacklist', array('class' => 'form-control')); ?>

<?php echo Yii::t('AdminModule.views_setting_file', 'Comma separated list. Leave empty to show file list for all objects on wall.') ?>

<?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_file', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => "")); ?>

<?php echo \humhub\widgets\DataSaved::widget(); ?>
<?php CActiveForm::end(); ?>

<?php $this->endContent(); ?>


text:
SoapUI-Util
=====================
[![Build Status](https://secure.travis-ci.org/sandwichclub/soapui-util.png?branch=master)](http://travis-ci.org/sandwichclub/soapui-util)
[![Coverage Status](https://coveralls.io/repos/sandwichclub/soapui-util/badge.png)](https://coveralls.io/r/sandwichclub/soapui-util)

 * https://github.com/sandwichclub/soapui-util
 * Use soapui assertions in ruby!
 * Leverage soapui's powerful assertion methods in ruby to validate soap messages against the wsdl

To use this gem, the following environment variables must be set:

    `JAVA_HOME: <java home directory>              #example: /opt/jdk1.7.0_04
    LD_LIBRARY_PATH: <java home directory>/lib     #example: /opt/jdk1.7.0_04/lib`

To validate against a WSDL stored in a file pass in: 'file:<path to file>'

TODO:
=====================
  * [done] fix java unit tests wsdlMessageValidatorTest
  * wsdlMessageValidator.java, line 146: fix parsing out body tag from message to be more friendly
  * fix: NameError: uninitialized constant MessageValidator::WsdlMessageValidatorFaultException,
    which occurs when the soap xml is malformed
  * validate soap faults as well
  * add ability to disable soapui lib logging (console log messages and log files)
    * added 'soapui-log4j.xml' to root to control log4j, still some console info logging left
      * ref: http://sourceforge.net/p/soapui/feature-requests/239/?page=0
      * ref: http://forum.soapui.org/viewtopic.php?t=7052
  * add missing license files
  * add travis.yml support
  * clean up gemspec
  * setting JAVA_HOME, read from config.yml?
    * easy fix: add support for java_home to watirmark configuration?
  * add more tests to spec
    * find wsdl variations here: https://github.com/savonrb/savon/tree/master/spec/fixtures/wsdl
  * reduce javalib dependencies
  * create rake task to build gem

redpajama_set_name: RedPajamaGithub


text:
var config = {};

// Set your configuration options below.

// Examples:
// config.language = 'pl';
// config.skin = 'jquery-mobile';

CKFinder.define( config );
$baseUrl = 'upload/';//上传的文件所在的根目录

$baseDir='E:/xampp/htdocs/blog/upload/';//根目录所在的绝对地址


text:
module Test.Macro where

import Test.Hspec

import Test.Core

runMacroTests :: IO ()
runMacroTests = hspec $ do
    letTest
    andTest
    orTest
    letStarTest

letTest :: Spec
letTest = do
    describe "let" $ do
        it "works" $ do
            testScheme "(let ((x 1) (y 2)) (+ x y))" `shouldReturn` ["3"]

andTest :: Spec
andTest = do
    describe "and" $ do
        it "works" $ do
            testScheme "(and 1 2 3 4)" `shouldReturn` ["4"]
            testScheme "(and #f 1 2)" `shouldReturn` ["#f"]
            testScheme "(and 1 2 3 #f)" `shouldReturn` ["#f"]

orTest :: Spec
orTest = do
    describe "or" $ do
        it "works" $ do
            testScheme "(or #f #f #f)" `shouldReturn` ["#f"]
            testScheme "(or #f #f 1 2 3)" `shouldReturn` ["1"]

letStarTest :: Spec
letStarTest = do
    describe "let*" $ do
        it "works" $ do
            testScheme "(let* ((x 1) (y x)) (+ x y))" `shouldReturn` ["2"]


text:
#include "session.h"
#include "fiber.h"
#include "memory.h"

#include "assoc.h"
#include "trigger.h"
#include "random.h"
#include "user.h"

static struct mh_i32ptr_t *session_registry;

struct mempool session_pool;

RLIST_HEAD(session_on_connect);
RLIST_HEAD(session_on_disconnect);
RLIST_HEAD(session_on_auth);

static inline  uint32_t
sid_max()
{
	static uint32_t sid_max = 0;
	/* Return the next sid rolling over the reserved value of 0. */
	while (++sid_max == 0)
		;
	return sid_max;
}

static void
session_on_stop(struct trigger *trigger, void * /* event */)
{
	/*
	 * Remove on_stop trigger from the fiber, otherwise the
	 * fiber will attempt to destroy the trigger eventually,
	 * after the trigger and its memory is long gone.
	 */
	trigger_clear(trigger);
	struct session *session = (struct session *)
		fiber_get_key(fiber(), FIBER_KEY_SESSION);
	/* Destroy the session */
	session_destroy(session);
}

struct session *
session_create(int fd)
{
	struct session *session = (struct session *)
		mempool_alloc_xc(&session_pool);
	session->id = sid_max();
	session->fd =  fd;
	session->sync = 0;
	/* For on_connect triggers. */
	credentials_init(&session->credentials, guest_user);
	if (fd >= 0)
		random_bytes(session->salt, SESSION_SEED_SIZE);
	struct mh_i32ptr_node_t node;
	node.key = session->id;
	node.val = session;

	mh_int_t k = mh_i32ptr_put(session_registry, &node, NULL, NULL);

	if (k == mh_end(session_registry)) {
		mempool_free(&session_pool, session);
		tnt_raise(OutOfMemory, 0, "session hash", "new session");
	}
	return session;
}

struct session *
session_create_on_demand()
{
	/* Create session on demand */
	struct session *s = session_create(-1);
	s->fiber_on_stop = {
		RLIST_LINK_INITIALIZER, session_on_stop, NULL, NULL
	};
	/* Add a trigger to destroy session on fiber stop */
	trigger_add(&fiber()->on_stop, &s->fiber_on_stop);
	credentials_init(&s->credentials, admin_user);
	fiber_set_session(fiber(), s);
	fiber_set_user(fiber(), &s->credentials);
	return s;
}

/**
 * To quickly switch to admin user when executing
 * on_connect/on_disconnect triggers in iproto.
 */
struct credentials admin_credentials;

void
session_run_on_disconnect_triggers(struct session *session)
{
	struct fiber *fiber = fiber();
	/* For triggers. */
	fiber_set_session(fiber, session);
	fiber_set_user(fiber, &admin_credentials);
	try {
		trigger_run(&session_on_disconnect, NULL);
	} catch (Exception *e) {
		e->log();
	}
	session_storage_cleanup(session->id);
}

void
session_run_on_connect_triggers(struct session *session)
{
	/* Run on_connect with admin credentals */
	struct fiber *fiber = fiber();
	fiber_set_session(fiber, session);
	fiber_set_user(fiber, &admin_credentials);
	trigger_run(&session_on_connect, NULL);
	/* Set session user to guest, until it is authenticated. */
}

void
session_run_on_auth_triggers(const char *user_name)
{
	trigger_run(&session_on_auth, (void *)user_name);
}

void
session_destroy(struct session *session)
{
	struct mh_i32ptr_node_t node = { session->id, NULL };
	mh_i32ptr_remove(session_registry, &node, NULL);
	mempool_free(&session_pool, session);
}

struct session *
session_find(uint32_t sid)
{
	mh_int_t k = mh_i32ptr_find(session_registry, sid, NULL);
	if (k == mh_end(session_registry))
		return NULL;
	return (struct session *)
		mh_i32ptr_node(session_registry, k)->val;
}

void
session_init()
{
	session_registry = mh_i32ptr_new();
	if (session_registry == NULL)
		panic("out of memory");
	mempool_create(&session_pool, &cord()->slabc, sizeof(struct session));
	credentials_init(&admin_credentials, admin_user);
	/**
	 * When session_init() is called, admin user access is not
	 * loaded yet (is 0), force global access.
	 */
	admin_credentials.universal_access = PRIV_ALL;
}

void
session_free()
{
	if (session_registry)
		mh_i32ptr_delete(session_registry);
}


text:
#ifndef ANDROID_BUFFER_ALLOCATOR_H
#define ANDROID_BUFFER_ALLOCATOR_H

#include <stdint.h>

#include <memory>
#include <string>

#include <cutils/native_handle.h>

#include <ui/PixelFormat.h>

#include <utils/Errors.h>
#include <utils/KeyedVector.h>
#include <utils/Mutex.h>
#include <utils/Singleton.h>

namespace android {

class GrallocAllocator;
class GraphicBufferMapper;

class ANDROID_API_UI GraphicBufferAllocator : public Singleton<GraphicBufferAllocator>
{
public:
    static inline GraphicBufferAllocator& get() { return getInstance(); }

    status_t allocate(uint32_t w, uint32_t h, PixelFormat format,
            uint32_t layerCount, uint64_t usage,
            buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId,
            std::string requestorName);

    status_t free(buffer_handle_t handle);

    size_t getTotalSize() const;

    void dump(std::string& res) const;
    static void dumpToSystemLog();

protected:
    struct alloc_rec_t {
        uint32_t width;
        uint32_t height;
        uint32_t stride;
        PixelFormat format;
        uint32_t layerCount;
        uint64_t usage;
        size_t size;
        std::string requestorName;
    };

    static Mutex sLock;
    static KeyedVector<buffer_handle_t, alloc_rec_t> sAllocList;

    friend class Singleton<GraphicBufferAllocator>;
    GraphicBufferAllocator();
    ~GraphicBufferAllocator();

    GraphicBufferMapper& mMapper;
    std::unique_ptr<const GrallocAllocator> mAllocator;
};

// ---------------------------------------------------------------------------
}; // namespace android

#endif // ANDROID_BUFFER_ALLOCATOR_H


text:
<?xml version="1.0" encoding="UTF-8"?>
<cibet xmlns="http://www.logitags.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.logitags.com ../../main/resources/cibet-config_1.4.xsd"
	name="cibet-config-owner">

	<actuator name="OWNERCHECK">
		<properties>
			<ownerAnnotation>com.logitags.cibet.actuator.owner.Owner</ownerAnnotation>
		</properties>
	</actuator>

	<actuator name="OWNERCHECK-EX">
		<class>com.logitags.cibet.actuator.owner.OwnerCheckActuator</class>
		<properties>
			<throwWrongOwnerException>true</throwWrongOwnerException>
		</properties>
	</actuator>

	<actuator name="OWNERCHECK-CB">
		<class>com.logitags.cibet.actuator.owner.OwnerCheckActuator</class>
		<properties>
			<ownerCheckCallback>com.cibethelper.MyOwnerCheckCallback</ownerCheckCallback>
		</properties>
	</actuator>

	<setpoint id="OC1">
		<controls>
			<tenant>
				<include>Ralf</include>
			</tenant>
			<event>
				<include>PERSIST</include>
			</event>
		</controls>
		<actuator name="OWNERCHECK" />
	</setpoint>

	<setpoint id="OC2">
		<controls>
			<tenant>
				<include>Werner</include>
			</tenant>
			<event>
				<include>PERSIST</include>
			</event>
			<target>
				<include>com.cibethelper.entities.owner.Company</include>
				<include>com.cibethelper.entities.owner.Merchant</include>
				<include>com.cibethelper.entities.owner.Merchant2</include>
				<include>com.cibethelper.entities.owner.Product</include>
				<include>com.cibethelper.entities.owner.Product2</include>
				<include>select a from Company a</include>
			</target>
		</controls>
		<actuator name="OWNERCHECK-EX" />
	</setpoint>

	<setpoint id="OC3">
		<controls>
			<tenant>
				<include>Heinz</include>
			</tenant>
			<event>
				<include>PERSIST</include>
			</event>
		</controls>
		<actuator name="OWNERCHECK-CB" />
	</setpoint>

</cibet>