text:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.jeecg.modules.demo.test.mapper.JeecgDemoMapper">

	<!-- 根据用户名查询 -->
	<select id="getDemoByName" resultType="org.jeecg.modules.demo.test.entity.JeecgDemo">
		select * from  demo  where name = #{name}
	</select>

	<!-- 根据权限sql查询数据集 -->
	<select id="queryListWithPermission" parameterType="Object" resultType="org.jeecg.modules.demo.test.entity.JeecgDemo">
		select * from demo where 1=1 ${permissionSql}
	</select>

	<!-- 查询所有符合前缀且有效字段 -->
	<select id="queryAllAuth" resultType="java.lang.String">
        select perms from sys_permission
        where perms
        like concat(concat('%',#{permsPrefix}),'%')
        and del_flag=0
        and status='1'
    </select>

	<!-- 查询用户已授权字段 -->
	<select id="queryUserAuth" resultType="java.lang.String">
        select DISTINCT perms from sys_user_role sur,
        sys_role_permission srp,
        sys_permission sp
        where sur.role_id = srp.role_id
        and sp.id = srp.permission_id
        and sur.user_id = #{userId}
        and sp.perms like concat(concat('%',#{permsPrefix}),'%')
    </select>
</mapper>


text:
<?php
/**
 * log5php is a PHP port of the log4j java logging package.
 *
 *
This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).

 *
Design, strategies and part of the methods documentation are developed by log4j team
 * (Ceki G�lc� as log4j project founder and
 * {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).

 *
 *
PHP port, extensions and modifications by VxR. All rights reserved.

 * For more information, please see {@link http://www.vxr.it/log4php/}.

 *
 *
This software is published under the terms of the LGPL License
 * a copy of which has been included with this distribution in the LICENSE file.

 *
 * @package external_Log5PHP
 */

/**
 * @ignore
 */

/**
 * Represents an individual logger (e.g. the root logger, MyClassLogger, etc)
 *
 * @version $Revision: 26050 $
 * @package external_Log5PHP
 * @see Logger
 */
class Log5PHP_Logger {

    /**
     * Additivity is set to true by default, that is children inherit the
     * appenders of their ancestors by default.
     * @var boolean
     */
    protected $additive       = true;

    /**
     * @var string fully qualified class name
     */
    protected $fqcn           = 'Log5PHP_Logger';

    /**
     * @var Log5PHP_Level The assigned level of this category.
     */
    protected $level          = null;

    /**
     * @var string name of this category.
     */
    protected $name           = '';

    /**
     * @var Logger The parent of this category.
     */
    protected $parent         = null;

    /**
     * @var Log5PHP_LoggerRepository the object repository
     */
    protected $repository     = null;

    /**
     * @var array collection of appenders [name] => [appender]
     * @see Log5PHP_Appender_Appendable
     */
    protected $appenders      = array();

/* --------------------------------------------------------------------------*/
/* --------------------------------------------------------------------------*/
/* --------------------------------------------------------------------------*/

    /**
     * Constructor.
     *
     * @param  string  $name  Category name
     */
    function __construct($name)
    {
        $this->name = $name;
    }

    /**
     * Add a new Appender to the list of appenders of this Category instance.
     *
     * @param Log5PHP_Appender_Appendable $newAppender
     */
    function addAppender($newAppender)
    {
        $appenderName = $newAppender->getName();
        $this->appenders[$appenderName] = $newAppender;
    }

    /**
     * If assertion parameter is false, then logs msg as an error statement.
     *
     * @param bool $assertion
     * @param string $msg message to log
     */
    function assertLog($assertion = true, $msg = '')
    {
        if ($assertion == false) {
            $this->error($msg);
        }
    }

    /**
     * Call the appenders in the hierarchy starting at this.
     *
     * @param Log5PHP_LogEvent $event
     */
    function callAppenders($event)
    {
        foreach ($this->appenders as $appenderName => $appender) {
            $appender->doAppend($event);
        }

        if ($this->parent != null and $this->getAdditivity()) {
            $this->parent->callAppenders($event);
        }
    }

    /**
     * Log a message object with the DEBUG level including the caller.
     *
     * @param mixed $message message
     * @param mixed $caller caller object or caller string id
     */
    function debug($message, $caller = null)
    {
        $debugLevel = Log5PHP_Level::getLevelDebug();
        $this->logIfEnabled($debugLevel, $message, $caller);
    }

    /**
     * Log a message object with the INFO Level.
     *
     * @param mixed $message message
     * @param mixed $caller caller object or caller string id
     */
    function info($message, $caller = null)
    {
        $infoLevel = Log5PHP_Level::getLevelInfo();
        $this->logIfEnabled($infoLevel, $message, $caller);
    }

    /**
     * Log a message with the WARN level.
     *
     * @param mixed $message message
     * @param mixed $caller caller object or caller string id
     */
    function warn($message, $caller = null)
    {
        $warnLevel = Log5PHP_Level::getLevelWarn();
        $this->logIfEnabled($warnLevel, $message, $caller);
    }

    /**
     * Log a message object with the ERROR level including the caller.
     *
     * @param mixed $message message
     * @param mixed $caller caller object or caller string id
     */
    function error($message, $caller = null)
    {
        $errorLevel = Log5PHP_Level::getLevelError();
        $this->logIfEnabled($errorLevel, $message, $caller);
    }

    /**
     * Log a message object with the FATAL level including the caller.
     *
     * @param mixed $message message
     * @param mixed $caller caller object or caller string id
     */
    function fatal($message, $caller = null)
    {
        $fatalLevel = Log5PHP_Level::getLevelFatal();
        $this->logIfEnabled($fatalLevel, $message, $caller);
    }

    /**
     * This generic form is intended to be used by wrappers.
     *
     * @param Log5PHP_Level $priority a valid level
     * @param mixed $message message
     * @param mixed $caller caller object or caller string id
     */
    private function logIfEnabled($priority, $message, $caller = null)
    {
        if ($this->repository->isDisabled($priority))
        {
            return;
        }
        if ($priority->isGreaterOrEqual($this->getEffectiveLevel()))
        {
            $this->forcedLog($this->fqcn, $caller, $priority, $message);
        }
    }

    /**
     * This method creates a new logging event and logs the event without further checks.
     *
     * It should not be called directly. Use {@link info()}, {@link debug()}, {@link warn()},
     * {@link error()} and {@link fatal()} wrappers.
     *
     * @param string $fqcn Fully Qualified Class Name of the Logger
     * @param mixed $caller caller object or caller string id
     * @param Log5PHP_Level $level log level
     * @param mixed $message message
     * @see Log5PHP_LogEvent
     */
    private function forcedLog($fqcn, $caller, Log5PHP_Level $level, $message)
    {
        // $fqcn = is_object($caller) ? get_class($caller) : (string)$caller;
        $this->callAppenders(new Log5PHP_LogEvent($fqcn, $this, $level, $message));
    }

    /**
     * Get the additivity flag for this Category instance.
     * @return boolean
     */
    function getAdditivity()
    {
        return $this->additive;
    }

    /**
     * Get the appenders contained in this category as an array.
     * @return array collection of appenders
     */
    function getAllAppenders()
    {
        $buf = array();
        foreach($this->appenders as $appender)
        {
            $buf[] = $appender;
        }
        return $buf;
    }

    /**
     * Look for the appender named as name.
     * @return Log5PHP_Appender_Appendable
     */
    function getAppender($name)
    {
        return $this->appenders[$name];
    }

    /**
     * Starting from this category, search the category hierarchy for a non-null
     * level and return it. If none can be found, return the ALL level.
     * @see Log5PHP_Level
     * @return Log5PHP_Level
     */
    function getEffectiveLevel()
    {
        for($c = $this; $c != null; $c = $c->parent)
        {
            if($c->getLevel() !== null)
                return $c->getLevel();
        }

        return Log5PHP_Level::getLevelAll();
    }

    /**
     * Returns the assigned Level, if any, for this Category.
     * @return Log5PHP_Level or null
     */
    function getLevel()
    {
        return $this->level;
    }

    /**
     * Return the the repository where this Category is attached.
     * @return Log5PHP_LoggerRepository
     */
    function getLoggerRepository()
    {
        return $this->repository;
    }

    /**
     * Return the category name.
     * @return string
     */
    function getName()
    {
        return $this->name;
    }

    /**
     * Returns the parent of this category.
     * @return Logger
     */
    function getParent()
    {
        return $this->parent;
    }

    /**
     * Is the appender passed as parameter attached to this category?
     *
     * @param Log5PHP_Appender_Appendable $appender
     */
    function isAttached($appender)
    {
        return in_array($appender->getName(), array_keys($this->appenders));
    }

    /**
     * Check whether this category is enabled for the DEBUG Level.
     * @return boolean
     */
    function isDebugEnabled()
    {
        $debugLevel = Log5PHP_Level::getLevelDebug();
        return $this->isEnabledFor($debugLevel);
    }

    /**
     * Check whether this category is enabled for the info Level.
     * @return boolean
     * @see Log5PHP_Level
     */
    function isInfoEnabled()
    {
        $infoLevel = Log5PHP_Level::getLevelInfo();
        return $this->isEnabledFor($infoLevel);
    }

    /**
     * Check whether this category is enabled for a given Level passed as parameter.
     *
     * @param Log5PHP_Level level
     * @return boolean
     */
    function isEnabledFor(Log5PHP_Level $level)
    {
        if ($this->repository->isDisabled($level)) {
            return false;
        }
        return (bool)($level->isGreaterOrEqual($this->getEffectiveLevel()));
    }

    /**
     * Remove all previously added appenders from this Category instance.
     */
    function removeAllAppenders()
    {
        foreach($this->appenders as $appender)
        {
            $this->removeAppender($appender);
        }
    }

    /**
     * Remove the appender passed as parameter form the list of appenders.
     *
     * @param Log5PHP_Appender_Appendable $appender a {@link
     * Log5PHP_Appender_Appendable} object
     */
    function removeAppender(Log5PHP_Appender_Appendable $appender)
    {
        $appender->close();
        unset($this->appenders[$appender->getName()]);
    }

    /**
     * Set the additivity flag for this Category instance.
     *
     * @param boolean $additive
     */
    function setAdditivity($additive)
    {
        $this->additive = (bool)$additive;
    }

    /**
     * Only the Hiearchy class can set the hiearchy of a
     * category.
     *
     * @param Log5PHP_LoggerRepository $repository
     */
    function setRepository($repository)
    {
        $this->repository = $repository;
    }

    /**
     * Set the level of this logger.
     *
     * @param mixed $level a level string or a level costant
     */
    function setLevel($level)
    {
        $this->level = $level;
    }

    /**
     * Set the parent of this Logger.
     *
     * @param Log5PHP_Logger $parent
     */
    function setParent(Log5PHP_Logger $parent)
    {
        $this->parent = $parent;
    }

}

redpajama_set_name: RedPajamaGithub


text:
package org.swingeasy.list.renderer;

import java.awt.Component;
import java.awt.Graphics;

import javax.swing.DefaultListCellRenderer;
import javax.swing.JComponent;
import javax.swing.JList;

import org.swingeasy.EComponentI;
import org.swingeasy.EComponentRenderer;

/**
 * @author Jurgen
 */
public class EListCellRenderer<T> extends DefaultListCellRenderer.UIResource implements EComponentI {
	private static final long serialVersionUID = -4058183204571727427L;

	protected EComponentRenderer backgroundRenderer;

	public EComponentRenderer getBackgroundRenderer() {
		return this.backgroundRenderer;
	}

	/**
	 * @see javax.swing.DefaultListCellRenderer#getListCellRendererComponent(javax.swing.JList, java.lang.Object, int, boolean, boolean)
	 */
	@SuppressWarnings("unchecked")
	@Override
	final public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
		return this.render(list, (T) value, index, isSelected, cellHasFocus);
	}

	/**
	 * @see javax.swing.JComponent#paintComponent(java.awt.Graphics)
	 */
	@Override
	protected void paintComponent(Graphics g) {
		this.renderBackground(this, g);
		super.paintComponent(g);
	}

	protected Component render(JList<?> list, T value, int index, boolean isSelected, boolean cellHasFocus) {
		return this.super_getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
	}

	protected void renderBackground(JComponent c, Graphics g) {
		if (this.backgroundRenderer != null) {
			this.backgroundRenderer.render(c, g);
		}
	}

	public EListCellRenderer<T> setBackgroundRenderer(EComponentRenderer backgroundRenderer) {
		this.backgroundRenderer = backgroundRenderer;
		return this;
	}

	protected Component super_getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
		return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
	}
}


text:
require 'rd_test_base'
require 'condition_test'

class RDConditionTest < RDTestBase

  include ConditionTest

end


text:
package org.apache.isis.core.metamodel.facets.actions.notinservicemenu.method;

import java.lang.reflect.Method;
import java.util.Map;

import org.apache.isis.applib.events.VisibilityEvent;
import org.apache.isis.core.metamodel.adapter.ObjectAdapter;
import org.apache.isis.core.metamodel.facetapi.FacetHolder;
import org.apache.isis.core.metamodel.interactions.VisibilityContext;
import org.apache.isis.core.metamodel.facets.actions.notinservicemenu.NotInServiceMenuFacetAbstract;

/**
 * @deprecated
 */
@Deprecated
public class NotInServiceMenuFacetViaMethod extends NotInServiceMenuFacetAbstract {

    private final Method method;

    public NotInServiceMenuFacetViaMethod(final Method method, final FacetHolder holder) {
        super(holder);
        this.method = method;
    }

    @Override
    public String hides(final VisibilityContext<? extends VisibilityEvent> ic) {
        final ObjectAdapter owningAdapter = ic.getTarget();
        if (owningAdapter == null) {
            return null;
        }
        final Boolean currentlyHidden = (Boolean) ObjectAdapter.InvokeUtils.invoke(method, owningAdapter);
        return currentlyHidden.booleanValue() ? "notInServiceMenuXxx() method returning true" : null;
    }

    @Override public void appendAttributesTo(final Map<String, Object> attributeMap) {
        super.appendAttributesTo(attributeMap);
        attributeMap.put("method", method);
    }
}


text:
package pl.uj.p2.uzbrojenie;

public interface Srebrny {

}


text:
/**
 * Autogenerated by Thrift Compiler (0.9.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package org.sdnplatform.sync.thrift;

import java.util.BitSet;
import java.util.Collections;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

import org.apache.thrift.EncodingUtils;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;
import org.apache.thrift.scheme.TupleScheme;

@SuppressWarnings("all") public class HelloMessage implements org.apache.thrift.TBase<HelloMessage, HelloMessage._Fields>, java.io.Serializable, Cloneable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HelloMessage");

  private static final org.apache.thrift.protocol.TField HEADER_FIELD_DESC = new org.apache.thrift.protocol.TField("header", org.apache.thrift.protocol.TType.STRUCT, (short)1);
  private static final org.apache.thrift.protocol.TField NODE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("nodeId", org.apache.thrift.protocol.TType.I16, (short)2);
  private static final org.apache.thrift.protocol.TField AUTH_SCHEME_FIELD_DESC = new org.apache.thrift.protocol.TField("authScheme", org.apache.thrift.protocol.TType.I32, (short)3);
  private static final org.apache.thrift.protocol.TField AUTH_CHALLENGE_RESPONSE_FIELD_DESC = new org.apache.thrift.protocol.TField("authChallengeResponse", org.apache.thrift.protocol.TType.STRUCT, (short)4);

  private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
  static {
    schemes.put(StandardScheme.class, new HelloMessageStandardSchemeFactory());
    schemes.put(TupleScheme.class, new HelloMessageTupleSchemeFactory());
  }

  public AsyncMessageHeader header; // required
  public short nodeId; // optional
  /**
   *
   * @see AuthScheme
   */
  public AuthScheme authScheme; // optional
  public AuthChallengeResponse authChallengeResponse; // optional

  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
    HEADER((short)1, "header"),
    NODE_ID((short)2, "nodeId"),
    /**
     *
     * @see AuthScheme
     */
    AUTH_SCHEME((short)3, "authScheme"),
    AUTH_CHALLENGE_RESPONSE((short)4, "authChallengeResponse");

    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();

    static {
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
        byName.put(field.getFieldName(), field);
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, or null if its not found.
     */
    public static _Fields findByThriftId(int fieldId) {
      switch(fieldId) {
        case 1: // HEADER
          return HEADER;
        case 2: // NODE_ID
          return NODE_ID;
        case 3: // AUTH_SCHEME
          return AUTH_SCHEME;
        case 4: // AUTH_CHALLENGE_RESPONSE
          return AUTH_CHALLENGE_RESPONSE;
        default:
          return null;
      }
    }

    /**
     * Find the _Fields constant that matches fieldId, throwing an exception
     * if it is not found.
     */
    public static _Fields findByThriftIdOrThrow(int fieldId) {
      _Fields fields = findByThriftId(fieldId);
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
      return fields;
    }

    /**
     * Find the _Fields constant that matches name, or null if its not found.
     */
    public static _Fields findByName(String name) {
      return byName.get(name);
    }

    private final short _thriftId;
    private final String _fieldName;

    _Fields(short thriftId, String fieldName) {
      _thriftId = thriftId;
      _fieldName = fieldName;
    }

    public short getThriftFieldId() {
      return _thriftId;
    }

    public String getFieldName() {
      return _fieldName;
    }
  }

  // isset id assignments
  private static final int __NODEID_ISSET_ID = 0;
  private byte __isset_bitfield = 0;
  private _Fields optionals[] = {_Fields.NODE_ID,_Fields.AUTH_SCHEME,_Fields.AUTH_CHALLENGE_RESPONSE};
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
  static {
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
    tmpMap.put(_Fields.HEADER, new org.apache.thrift.meta_data.FieldMetaData("header", org.apache.thrift.TFieldRequirementType.REQUIRED,
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AsyncMessageHeader.class)));
    tmpMap.put(_Fields.NODE_ID, new org.apache.thrift.meta_data.FieldMetaData("nodeId", org.apache.thrift.TFieldRequirementType.OPTIONAL,
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16)));
    tmpMap.put(_Fields.AUTH_SCHEME, new org.apache.thrift.meta_data.FieldMetaData("authScheme", org.apache.thrift.TFieldRequirementType.OPTIONAL,
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AuthScheme.class)));
    tmpMap.put(_Fields.AUTH_CHALLENGE_RESPONSE, new org.apache.thrift.meta_data.FieldMetaData("authChallengeResponse", org.apache.thrift.TFieldRequirementType.OPTIONAL,
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AuthChallengeResponse.class)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HelloMessage.class, metaDataMap);
  }

  public HelloMessage() {
  }

  public HelloMessage(
    AsyncMessageHeader header)
  {
    this();
    this.header = header;
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public HelloMessage(HelloMessage other) {
    __isset_bitfield = other.__isset_bitfield;
    if (other.isSetHeader()) {
      this.header = new AsyncMessageHeader(other.header);
    }
    this.nodeId = other.nodeId;
    if (other.isSetAuthScheme()) {
      this.authScheme = other.authScheme;
    }
    if (other.isSetAuthChallengeResponse()) {
      this.authChallengeResponse = new AuthChallengeResponse(other.authChallengeResponse);
    }
  }

  public HelloMessage deepCopy() {
    return new HelloMessage(this);
  }

  @Override
  public void clear() {
    this.header = null;
    setNodeIdIsSet(false);
    this.nodeId = 0;
    this.authScheme = null;
    this.authChallengeResponse = null;
  }

  public AsyncMessageHeader getHeader() {
    return this.header;
  }

  public HelloMessage setHeader(AsyncMessageHeader header) {
    this.header = header;
    return this;
  }

  public void unsetHeader() {
    this.header = null;
  }

  /** Returns true if field header is set (has been assigned a value) and false otherwise */
  public boolean isSetHeader() {
    return this.header != null;
  }

  public void setHeaderIsSet(boolean value) {
    if (!value) {
      this.header = null;
    }
  }

  public short getNodeId() {
    return this.nodeId;
  }

  public HelloMessage setNodeId(short nodeId) {
    this.nodeId = nodeId;
    setNodeIdIsSet(true);
    return this;
  }

  public void unsetNodeId() {
    __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NODEID_ISSET_ID);
  }

  /** Returns true if field nodeId is set (has been assigned a value) and false otherwise */
  public boolean isSetNodeId() {
    return EncodingUtils.testBit(__isset_bitfield, __NODEID_ISSET_ID);
  }

  public void setNodeIdIsSet(boolean value) {
    __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NODEID_ISSET_ID, value);
  }

  /**
   *
   * @see AuthScheme
   */
  public AuthScheme getAuthScheme() {
    return this.authScheme;
  }

  /**
   *
   * @see AuthScheme
   */
  public HelloMessage setAuthScheme(AuthScheme authScheme) {
    this.authScheme = authScheme;
    return this;
  }

  public void unsetAuthScheme() {
    this.authScheme = null;
  }

  /** Returns true if field authScheme is set (has been assigned a value) and false otherwise */
  public boolean isSetAuthScheme() {
    return this.authScheme != null;
  }

  public void setAuthSchemeIsSet(boolean value) {
    if (!value) {
      this.authScheme = null;
    }
  }

  public AuthChallengeResponse getAuthChallengeResponse() {
    return this.authChallengeResponse;
  }

  public HelloMessage setAuthChallengeResponse(AuthChallengeResponse authChallengeResponse) {
    this.authChallengeResponse = authChallengeResponse;
    return this;
  }

  public void unsetAuthChallengeResponse() {
    this.authChallengeResponse = null;
  }

  /** Returns true if field authChallengeResponse is set (has been assigned a value) and false otherwise */
  public boolean isSetAuthChallengeResponse() {
    return this.authChallengeResponse != null;
  }

  public void setAuthChallengeResponseIsSet(boolean value) {
    if (!value) {
      this.authChallengeResponse = null;
    }
  }

  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
    case HEADER:
      if (value == null) {
        unsetHeader();
      } else {
        setHeader((AsyncMessageHeader)value);
      }
      break;

    case NODE_ID:
      if (value == null) {
        unsetNodeId();
      } else {
        setNodeId((Short)value);
      }
      break;

    case AUTH_SCHEME:
      if (value == null) {
        unsetAuthScheme();
      } else {
        setAuthScheme((AuthScheme)value);
      }
      break;

    case AUTH_CHALLENGE_RESPONSE:
      if (value == null) {
        unsetAuthChallengeResponse();
      } else {
        setAuthChallengeResponse((AuthChallengeResponse)value);
      }
      break;

    }
  }

  public Object getFieldValue(_Fields field) {
    switch (field) {
    case HEADER:
      return getHeader();

    case NODE_ID:
      return Short.valueOf(getNodeId());

    case AUTH_SCHEME:
      return getAuthScheme();

    case AUTH_CHALLENGE_RESPONSE:
      return getAuthChallengeResponse();

    }
    throw new IllegalStateException();
  }

  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
  public boolean isSet(_Fields field) {
    if (field == null) {
      throw new IllegalArgumentException();
    }

    switch (field) {
    case HEADER:
      return isSetHeader();
    case NODE_ID:
      return isSetNodeId();
    case AUTH_SCHEME:
      return isSetAuthScheme();
    case AUTH_CHALLENGE_RESPONSE:
      return isSetAuthChallengeResponse();
    }
    throw new IllegalStateException();
  }

  @Override
  public boolean equals(Object that) {
    if (that == null)
      return false;
    if (that instanceof HelloMessage)
      return this.equals((HelloMessage)that);
    return false;
  }

  public boolean equals(HelloMessage that) {
    if (that == null)
      return false;

    boolean this_present_header = true && this.isSetHeader();
    boolean that_present_header = true && that.isSetHeader();
    if (this_present_header || that_present_header) {
      if (!(this_present_header && that_present_header))
        return false;
      if (!this.header.equals(that.header))
        return false;
    }

    boolean this_present_nodeId = true && this.isSetNodeId();
    boolean that_present_nodeId = true && that.isSetNodeId();
    if (this_present_nodeId || that_present_nodeId) {
      if (!(this_present_nodeId && that_present_nodeId))
        return false;
      if (this.nodeId != that.nodeId)
        return false;
    }

    boolean this_present_authScheme = true && this.isSetAuthScheme();
    boolean that_present_authScheme = true && that.isSetAuthScheme();
    if (this_present_authScheme || that_present_authScheme) {
      if (!(this_present_authScheme && that_present_authScheme))
        return false;
      if (!this.authScheme.equals(that.authScheme))
        return false;
    }

    boolean this_present_authChallengeResponse = true && this.isSetAuthChallengeResponse();
    boolean that_present_authChallengeResponse = true && that.isSetAuthChallengeResponse();
    if (this_present_authChallengeResponse || that_present_authChallengeResponse) {
      if (!(this_present_authChallengeResponse && that_present_authChallengeResponse))
        return false;
      if (!this.authChallengeResponse.equals(that.authChallengeResponse))
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    return 0;
  }

  public int compareTo(HelloMessage other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    HelloMessage typedOther = (HelloMessage)other;

    lastComparison = Boolean.valueOf(isSetHeader()).compareTo(typedOther.isSetHeader());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetHeader()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.header, typedOther.header);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetNodeId()).compareTo(typedOther.isSetNodeId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetNodeId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeId, typedOther.nodeId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAuthScheme()).compareTo(typedOther.isSetAuthScheme());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAuthScheme()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authScheme, typedOther.authScheme);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAuthChallengeResponse()).compareTo(typedOther.isSetAuthChallengeResponse());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAuthChallengeResponse()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authChallengeResponse, typedOther.authChallengeResponse);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }

  public _Fields fieldForId(int fieldId) {
    return _Fields.findByThriftId(fieldId);
  }

  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
    schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
  }

  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
    schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("HelloMessage(");
    boolean first = true;

    sb.append("header:");
    if (this.header == null) {
      sb.append("null");
    } else {
      sb.append(this.header);
    }
    first = false;
    if (isSetNodeId()) {
      if (!first) sb.append(", ");
      sb.append("nodeId:");
      sb.append(this.nodeId);
      first = false;
    }
    if (isSetAuthScheme()) {
      if (!first) sb.append(", ");
      sb.append("authScheme:");
      if (this.authScheme == null) {
        sb.append("null");
      } else {
        sb.append(this.authScheme);
      }
      first = false;
    }
    if (isSetAuthChallengeResponse()) {
      if (!first) sb.append(", ");
      sb.append("authChallengeResponse:");
      if (this.authChallengeResponse == null) {
        sb.append("null");
      } else {
        sb.append(this.authChallengeResponse);
      }
      first = false;
    }
    sb.append(")");
    return sb.toString();
  }

  public void validate() throws org.apache.thrift.TException {
    // check for required fields
    if (header == null) {
      throw new org.apache.thrift.protocol.TProtocolException("Required field 'header' was not present! Struct: " + toString());
    }
    // check for sub-struct validity
    if (header != null) {
      header.validate();
    }
    if (authChallengeResponse != null) {
      authChallengeResponse.validate();
    }
  }

  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
    try {
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
    try {
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
      __isset_bitfield = 0;
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
    } catch (org.apache.thrift.TException te) {
      throw new java.io.IOException(te);
    }
  }

  private static class HelloMessageStandardSchemeFactory implements SchemeFactory {
    public HelloMessageStandardScheme getScheme() {
      return new HelloMessageStandardScheme();
    }
  }

  private static class HelloMessageStandardScheme extends StandardScheme<HelloMessage> {

    public void read(org.apache.thrift.protocol.TProtocol iprot, HelloMessage struct) throws org.apache.thrift.TException {
      org.apache.thrift.protocol.TField schemeField;
      iprot.readStructBegin();
      while (true)
      {
        schemeField = iprot.readFieldBegin();
        if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
          break;
        }
        switch (schemeField.id) {
          case 1: // HEADER
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.header = new AsyncMessageHeader();
              struct.header.read(iprot);
              struct.setHeaderIsSet(true);
            } else {
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 2: // NODE_ID
            if (schemeField.type == org.apache.thrift.protocol.TType.I16) {
              struct.nodeId = iprot.readI16();
              struct.setNodeIdIsSet(true);
            } else {
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 3: // AUTH_SCHEME
            if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
              struct.authScheme = AuthScheme.findByValue(iprot.readI32());
              struct.setAuthSchemeIsSet(true);
            } else {
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          case 4: // AUTH_CHALLENGE_RESPONSE
            if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
              struct.authChallengeResponse = new AuthChallengeResponse();
              struct.authChallengeResponse.read(iprot);
              struct.setAuthChallengeResponseIsSet(true);
            } else {
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
            }
            break;
          default:
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
        }
        iprot.readFieldEnd();
      }
      iprot.readStructEnd();

      // check for required fields of primitive type, which can't be checked in the validate method
      struct.validate();
    }

    public void write(org.apache.thrift.protocol.TProtocol oprot, HelloMessage struct) throws org.apache.thrift.TException {
      struct.validate();

      oprot.writeStructBegin(STRUCT_DESC);
      if (struct.header != null) {
        oprot.writeFieldBegin(HEADER_FIELD_DESC);
        struct.header.write(oprot);
        oprot.writeFieldEnd();
      }
      if (struct.isSetNodeId()) {
        oprot.writeFieldBegin(NODE_ID_FIELD_DESC);
        oprot.writeI16(struct.nodeId);
        oprot.writeFieldEnd();
      }
      if (struct.authScheme != null) {
        if (struct.isSetAuthScheme()) {
          oprot.writeFieldBegin(AUTH_SCHEME_FIELD_DESC);
          oprot.writeI32(struct.authScheme.getValue());
          oprot.writeFieldEnd();
        }
      }
      if (struct.authChallengeResponse != null) {
        if (struct.isSetAuthChallengeResponse()) {
          oprot.writeFieldBegin(AUTH_CHALLENGE_RESPONSE_FIELD_DESC);
          struct.authChallengeResponse.write(oprot);
          oprot.writeFieldEnd();
        }
      }
      oprot.writeFieldStop();
      oprot.writeStructEnd();
    }

  }

  private static class HelloMessageTupleSchemeFactory implements SchemeFactory {
    public HelloMessageTupleScheme getScheme() {
      return new HelloMessageTupleScheme();
    }
  }

  private static class HelloMessageTupleScheme extends TupleScheme<HelloMessage> {

    @Override
    public void write(org.apache.thrift.protocol.TProtocol prot, HelloMessage struct) throws org.apache.thrift.TException {
      TTupleProtocol oprot = (TTupleProtocol) prot;
      struct.header.write(oprot);
      BitSet optionals = new BitSet();
      if (struct.isSetNodeId()) {
        optionals.set(0);
      }
      if (struct.isSetAuthScheme()) {
        optionals.set(1);
      }
      if (struct.isSetAuthChallengeResponse()) {
        optionals.set(2);
      }
      oprot.writeBitSet(optionals, 3);
      if (struct.isSetNodeId()) {
        oprot.writeI16(struct.nodeId);
      }
      if (struct.isSetAuthScheme()) {
        oprot.writeI32(struct.authScheme.getValue());
      }
      if (struct.isSetAuthChallengeResponse()) {
        struct.authChallengeResponse.write(oprot);
      }
    }

    @Override
    public void read(org.apache.thrift.protocol.TProtocol prot, HelloMessage struct) throws org.apache.thrift.TException {
      TTupleProtocol iprot = (TTupleProtocol) prot;
      struct.header = new AsyncMessageHeader();
      struct.header.read(iprot);
      struct.setHeaderIsSet(true);
      BitSet incoming = iprot.readBitSet(3);
      if (incoming.get(0)) {
        struct.nodeId = iprot.readI16();
        struct.setNodeIdIsSet(true);
      }
      if (incoming.get(1)) {
        struct.authScheme = AuthScheme.findByValue(iprot.readI32());
        struct.setAuthSchemeIsSet(true);
      }
      if (incoming.get(2)) {
        struct.authChallengeResponse = new AuthChallengeResponse();
        struct.authChallengeResponse.read(iprot);
        struct.setAuthChallengeResponseIsSet(true);
      }
    }
  }

}


text:
package com.android.beijingwisdom.base.menu.imp;

import java.util.ArrayList;

import android.app.Activity;
import android.graphics.Color;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.android.beijingwisdom.R;
import com.android.beijingwisdom.base.BaseMenuDetailPager;
import com.android.beijingwisdom.base.BaseTabDetailPager;
import com.android.beijingwisdom.base.tab.imp.TabDetails;
import com.android.beijingwisdom.domain.NewsMenu.NewsClassify;
import com.android.beijingwisdom.domain.NewsMenu.NewsLeftMenu;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
/**
 * ÐÂÎÅÏêÇéÒ³
 * @author feng
 *
 */
public class NewsMenuDetail extends BaseMenuDetailPager {
	private static final String TAG = "NewsMenuDetail";
	private ArrayList<NewsClassify> children;
	private ArrayList<TabDetails> mtabs;

	private ViewPager vp_topics;
	public NewsMenuDetail(Activity activity, ArrayList<NewsClassify> children) {
		super(activity);
		this.children = children;
	}
	@Override
	public void initData() {
		mtabs = new ArrayList<TabDetails>();
		for (NewsClassify classify : children) {
			Log.i(TAG, classify.toString());
			BaseTabDetailPager basetabpager = new TabDetails(mActivity,classify) ;
			mtabs.add((TabDetails) basetabpager);
		}

		vp_topics.setAdapter(new NewsDetailAdapter());
	}
	@Override
	public View initView() {
		View view = View.inflate(mActivity, R.layout.pager_news_detail, null);
		vp_topics = (ViewPager) view.findViewById(R.id.vp_topics);
		return view;
	}

	class NewsDetailAdapter extends PagerAdapter{

		@Override
		public int getCount() {
			Log.i(TAG,""+mtabs.size());
			return mtabs.size();
		}

		@Override
		public boolean isViewFromObject(View view, Object object) {
			return view == object;
		}

		@Override
		public void destroyItem(ViewGroup container, int position, Object object) {
			container.removeView((View) object);
		}

		@Override
		public Object instantiateItem(ViewGroup container, int position) {
			TabDetails details = mtabs.get(position);
			Log.i(TAG, details.classify.toString());
			View view = details.mRootView;
			Log.i(TAG, "view"+view.toString());
			container.addView(view);

			return view;
		}
	}

}


text:
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.

using System;
using System.Dynamic;
using System.Globalization;

namespace Microsoft.AspNet.SignalR.Hubs
{
    internal class NullClientProxy : DynamicObject
    {
        public override bool TryGetMember(GetMemberBinder binder, out object result)
        {
            throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, Resources.Error_UsingHubInstanceNotCreatedUnsupported));
        }

        public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
        {
            throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, Resources.Error_UsingHubInstanceNotCreatedUnsupported));
        }
    }
}


text:
using System.Data;

namespace MicroOrm.Dapper.Repositories.DbContext
{
    /// <inheritdoc />
    public class DapperDbContext : IDapperDbContext
    {
        /// <summary>
        ///     DB Connection for internal use
        /// </summary>
        protected readonly IDbConnection InnerConnection;

        /// <summary>
        ///     Constructor
        /// </summary>
        protected DapperDbContext(IDbConnection connection)
        {
            InnerConnection = connection;
        }

        /// <inheritdoc />
        public virtual IDbConnection Connection
        {
            get
            {
                OpenConnection();
                return InnerConnection;
            }
        }

        /// <inheritdoc />
        public void OpenConnection()
        {
            if (InnerConnection.State != ConnectionState.Open && InnerConnection.State != ConnectionState.Connecting)
                InnerConnection.Open();
        }

        /// <inheritdoc />
        public virtual IDbTransaction BeginTransaction()
        {
            return Connection.BeginTransaction();
        }

        /// <inheritdoc />
        /// <summary>
        ///     Close DB connection
        /// </summary>
        public void Dispose()
        {
            if (InnerConnection != null && InnerConnection.State != ConnectionState.Closed)
                InnerConnection.Close();
        }
    }
}


text:
'use strict';

// MODULES //

var PINF = require( '@stdlib/constants/float64/pinf' );

// MAIN //

/**
* Tests if a double-precision floating-point numeric value is a nonnegative finite number.
*
* @param {number} x - value to test
* @returns {boolean} boolean indicating whether the value is a nonnegative finite number
*
* @example
* var bool = isNonNegativeFinite( 5.0 );
* // returns true
*
* @example
* var bool = isNonNegativeFinite( 3.14 );
* // returns true
*
* @example
* var bool = isNonNegativeFinite( 0.0 );
* // returns true
*
* @example
* var bool = isNonNegativeFinite( Infinity );
* // returns false
*
* @example
* var bool = isNonNegativeFinite( -3.14 );
* // returns false
*
* @example
* var bool = isNonNegativeFinite( NaN );
* // returns false
*/
function isNonNegativeFinite( x ) {
	return ( x >= 0.0 && x < PINF );
}

// EXPORTS //

module.exports = isNonNegativeFinite;


text:
#ifndef PHOENIX_PACKERS_RUNSCRIPT_VERSION_H
#define PHOENIX_PACKERS_RUNSCRIPT_VERSION_H

#define TOSTR_(a) L#a
#define TOSTR(a) TOSTR_(a)
#define TOSTRING(str) TOSTR(str)

#define NOW_YEAR 2015
#define TOOLS_MARJO_VERSION   1
#define TOOLS_MINJO_VERSION    0
#define TOOLS_PATCH_VERSION   0
#define TOOLS_BUILD_VERSION  100

#define VERSION_STRING   TOSTRING(TOOLS_MARJO_VERSION.TOOLS_MINJO_VERSION.TOOLS_PATCH_VERSION.TOOLS_BUILD_VERSION)
#define VERSION_WORDS  TOOLS_MARJO_VERSION,TOOLS_MINJO_VERSION,TOOLS_PATCH_VERSION,TOOLS_BUILD_VERSION

#define COPYRIGHT L"Copyright \xA9"
#define RESERVEDINFO " The Force Studio.All Rights Reserved."
#define YEARSTRING TOSTR(NOW_YEAR)

#endif


text:
package com.identity.manager.constants;

import com.identity.platform.utils.error.exception.PropertyPlaceHolderUtil;

public final class UserConstants {

	private UserConstants() {
		throw new IllegalStateException("Utility class");
	}

	public static final String V1_USER = "/v1/user";
	public static final String V2_USER = "/v2/user";

	public static final String USER = "user";

	public static final String USER_CREATED = "Successfully user information has added";
	public static final String USER_SEARCH_BY_ID = "Successfully fetched user information wrt id";
	public static final String USER_SEARCH = "Successfully fetched user information";
	public static final String USER_DELETED = "Successfully user has deleted";
	public static final String USER_DELETED_BY_ID = "Successfully user has deleted wrt id";

	public enum DESCMessage {
		USER_CREATED("user.created.text");

		private final String key;

		private DESCMessage(String key) {
			this.key = PropertyPlaceHolderUtil.getStringProperty(key);
		}

		public String key() {
			return key;
		}
	}
}


text:
package org.commcare.engine.references;

import com.google.common.collect.ImmutableMultimap;

import org.commcare.core.network.CaptivePortalRedirectException;
import org.commcare.interfaces.CommcareRequestEndpoints;
import org.commcare.network.CommcareRequestGenerator;
import org.commcare.network.HttpUtils;
import org.commcare.network.RateLimitedException;
import org.commcare.util.NetworkStatus;
import org.javarosa.core.reference.ReleasedOnTimeSupportedReference;
import org.javarosa.core.reference.Reference;
import org.javarosa.core.services.locale.Localization;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

import javax.annotation.Nullable;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLPeerUnverifiedException;

import okhttp3.Headers;
import okhttp3.ResponseBody;
import retrofit2.Response;

/**
 * @author ctsims
 */
public class JavaHttpReference implements Reference, ReleasedOnTimeSupportedReference, ParameterizedReference {

    private static final String HEADER_APP_RELEASED_ON = "x-commcarehq-appreleasedon";

    private final String uri;
    private CommcareRequestEndpoints generator;

    @Nullable
    private Headers responseHeaders;

    public JavaHttpReference(String uri, CommcareRequestGenerator generator) {
        this.uri = uri;
        this.generator = generator;
    }

    @Override
    public boolean doesBinaryExist() throws IOException {
        //For now....
        return true;
    }

    @Override
    public OutputStream getOutputStream() throws IOException {
        throw new IOException("Http references are read only!");
    }

    @Override
    public InputStream getStream() throws IOException {
        return getStream(new HashMap<>());
    }

    @Override
    public InputStream getStream(Map<String, String> params) throws IOException {
        Response<ResponseBody> response;
        try {
            response = generator.simpleGet(uri, ImmutableMultimap.of(), params);
        } catch (SSLHandshakeException | SSLPeerUnverifiedException e) {
            if(NetworkStatus.isCaptivePortal()) {
                throw new CaptivePortalRedirectException();
            }
            throw e;
        }
        if (response.isSuccessful()) {
            responseHeaders = response.headers();
            return response.body().byteStream();
        } else {
            if (response.code() == 406) {
                throw new IOException(HttpUtils.parseUserVisibleError(response));
            } else if (response.code() == 503) {
                throw new RateLimitedException();
            }
            throw new IOException(Localization.get("install.fail.error", Integer.toString(response.code())));
        }
    }

    @Override
    public String getURI() {
        return uri;
    }

    @Override
    public boolean isReadOnly() {
        return true;
    }

    @Override
    public void remove() throws IOException {
        throw new IOException("Http references are read only!");
    }

    @Override
    public String getLocalURI() {
        return uri;
    }

    //TODO: This should get changed to be set from the root, don't assume this will
    //still be here indefinitely
    public void setHttpRequestor(CommcareRequestEndpoints generator) {
        this.generator = generator;
    }

    @Override
    public long getReleasedOnTime() throws ParseException {
        long releasedOnTime = -1;
        if (responseHeaders != null) {
            String releasedOnStr = responseHeaders.get(HEADER_APP_RELEASED_ON);
            if (releasedOnStr != null) {
                releasedOnTime = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ").parse(releasedOnStr).getTime();
            }
        }
        return releasedOnTime;
    }
}


text:
class Test : public cppcmsskel::models::Users {
    private:
        const std::string adminName = "admin";
        const std::string adminEmail = "admin@example.com";
        const std::string adminPassword = "adminpassword";

    public:
        Test() : cppcmsskel::models::Users(TEST_PATH TEST_NAME ".db") {

        }

        bool test_work() {
            const int userId = add(
                adminName,
                adminPassword,
                adminEmail,
                cppcmsskel::results::User::Permission::admin
            );

            cppcmsskel::results::User user = by_id(userId);
            return user.exists() &&
                user.id == userId &&
                user.name == adminName &&
                user.permission == cppcmsskel::results::User::Permission::admin;
        }

        bool test_not_work() {
            cppcmsskel::results::User user = by_id(42);
            return user.exists();
        }
};

int main() {

    bool nothingFailed = true;
    Test model;

    CPPCMSSKEL_TEST_RESULT_WORK(
        "Try to create the tables ... " ,
        model.import_sql_file(
          SQL_PATH TEST_PATH BASIC_SQL
        ),
        nothingFailed
    );

    CPPCMSSKEL_TEST_RESULT_WORK(
        "Try to check if we can retrieve whole user by its id ... " ,
        model.test_work(),
        nothingFailed
    );

    CPPCMSSKEL_TEST_RESULT_NOT_WORK(
        "Try to check if retreiving a user with a non existing id give a non existing user ... " ,
        model.test_not_work(),
        nothingFailed
    );

    if (nothingFailed) {
        return 0;
    } else {
        return 1;
    }
}


text:
#ifndef GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_SSL_UTILS_CONFIG_H
#define GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_SSL_UTILS_CONFIG_H

#include <grpc/support/port_platform.h>

#include "src/core/lib/gprpp/global_config.h"

GPR_GLOBAL_CONFIG_DECLARE_STRING(grpc_default_ssl_roots_file_path);
GPR_GLOBAL_CONFIG_DECLARE_BOOL(grpc_not_use_system_ssl_roots);

#endif /* GRPC_CORE_LIB_SECURITY_SECURITY_CONNECTOR_SSL_UTILS_CONFIG_H \
        */


text:
<ion-header>
  <ion-navbar>
    <ion-title>
      Posts
    </ion-title>
    <button ion-button menuToggle start>
       <ion-icon name="menu"></ion-icon>
    </button>

  </ion-navbar>
</ion-header>

<ion-content padding text-wrap>

  <ion-list>
    <ion-item *ngFor="let post of posts" (click)="postSelected($event, post)">
      <ion-thumbnail item-left>
        <img *ngIf="post.featured_media != 0" src="{{post._embedded['wp:featuredmedia']['0'].source_url}}">
      </ion-thumbnail>
      <ion-card>
<!--      <div  *ngIf="post.featured_media != 0">
      </div>
      -->
        <ion-card-header>{{post.title.rendered}}</ion-card-header>
        <ion-card-content [innerHTML]="post.excerpt.rendered"></ion-card-content>
      </ion-card>
    </ion-item>
  </ion-list>
   <ion-infinite-scroll ng-if="hasMoreData" (ionInfinite)="doInfinite($event)">
      <ion-infinite-scroll-content
        loadingSpinner="bubbles"
        loadingText="Loading more data...">
      </ion-infinite-scroll-content>
    </ion-infinite-scroll>

</ion-content>


text:
CREATE DATABASE testing;
CREATE DATABASE development;


text:
package derpatiel.manafluidics.block.castingchamber;

import derpatiel.manafluidics.item.MFMoldItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.ItemStackHandler;

import javax.annotation.Nullable;

public class CastingChamberItemHandler extends ItemStackHandler{

    public static final int MOLD_SLOT=0;
    public static final int OUTPUT_SLOT=1;
    public static final int[] UPGRADE_SLOTS=new int[]{2,3,4,5};

    private final CastingChamberTileEntity tile;

    public CastingChamberItemHandler(CastingChamberTileEntity tile){
        super(6);
        this.tile=tile;
    }

    @Override
    protected void onContentsChanged(int slot) {
        super.onContentsChanged(slot);
        tile.inventoryChanged(slot);
    }

    @Override
    protected int getStackLimit(int slot, ItemStack stack)
    {
        if(slot==OUTPUT_SLOT){
            return stack.getMaxStackSize();
        }else{
            return 1;
        }
    }

    @Nullable
    public MFMoldItem getMold(){
        ItemStack stack = getStackInSlot(MOLD_SLOT);
        if(stack==null || stack.stackSize==0 || !(stack.getItem() instanceof MFMoldItem)){
            return null;
        }
        return (MFMoldItem)stack.getItem();
    }

}


text:
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.api.ads.adwords.jaxws.v201809.cm;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for CampaignTrialType.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *

 *

 * <simpleType name="CampaignTrialType">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="UNKNOWN"/>
 *     <enumeration value="BASE"/>
 *     <enumeration value="DRAFT"/>
 *     <enumeration value="TRIAL"/>
 *   </restriction>
 * </simpleType>
 *

 *
 */
@XmlType(name = "CampaignTrialType")
@XmlEnum
public enum CampaignTrialType {

    /**
     *
     *                 Invalid type. Should not be used except for detecting values that are incorrect,
     *                 or values that are not yet known to the user.
     *                 Used for return value only. An enumeration could not be processed, typically due to incompatibility with your WSDL version.
     *
     *
     */
    UNKNOWN,

    /**
     *
     *                 This is a regular campaign created by the advertiser.
     *
     *
     */
    BASE,

    /**
     *
     *                 This is a draft version of a campaign. It has some modifications from a base
     *                 campaign, but it does not serve or accrue stats.
     *
     *
     */
    DRAFT,

    /**
     *
     *                 This is a trial version of a campaign. It has some modifications from a base
     *                 campaign, and a percentage of traffic is being diverted from the BASE campaign
     *                 to this trial campaign.
     *
     *
     */
    TRIAL;

    public String value() {
        return name();
    }

    public static CampaignTrialType fromValue(String v) {
        return valueOf(v);
    }

}


text:
package info.re4k.asfc.croudia.api;

import info.re4k.asfc.croudia.CroudiaException;
import info.re4k.asfc.croudia.ResponseList;
import info.re4k.asfc.croudia.SecretMail;
import info.re4k.asfc.croudia.param.SecretPageParam;
import info.re4k.asfc.croudia.param.SecretMailNewParam;

public interface SecretMails{
	public ResponseList<SecretMail,SecretPageParam> getSecretMail(SecretPageParam p) throws CroudiaException;

	public ResponseList<SecretMail,SecretPageParam> getSentSecretMail(SecretPageParam p) throws CroudiaException;

	public SecretMail newSecretMail(SecretMailNewParam p) throws CroudiaException;

	public SecretMail destroySecretMail(long id) throws CroudiaException;

	public SecretMail showSecretMail(long id) throws CroudiaException;
}


text:
function varargout = project(varargin)
% PROJECT MATLAB code for project.fig
%      PROJECT, by itself, creates a new PROJECT or raises the existing
%      singleton*.
%
%      H = PROJECT returns the handle to a new PROJECT or the handle to
%      the existing singleton*.
%
%      PROJECT('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in PROJECT.M with the given input arguments.
%
%      PROJECT('Property','Value',...) creates a new PROJECT or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before project_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to project_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help project

% Last Modified by GUIDE v2.5 10-Dec-2015 09:35:17

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @project_OpeningFcn, ...
                   'gui_OutputFcn',  @project_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before project is made visible.
function project_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to project (see VARARGIN)

% Choose default command line output for project
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes project wait for user response (see UIRESUME)
% uiwait(handles.figure1);

Fs = 80000; % default Fs
wind_length = 1024; % default window length
ndft = 4096; % default fft points

set(handles.fs_text, 'String', num2str(Fs));
set(handles.fs_slider, 'Value', Fs/100000);
set(handles.wind_length, 'String', num2str(wind_length));
set(handles.ndft, 'String', num2str(ndft));
set(handles.win1, 'Value', 1);

axes(handles.axes10);
handles.axes10=plot(0,0);
axes(handles.axes2);
handles.axes2=plot(0,0);
axes(handles.axes3);
handles.axes3=plot(0,0);

data = guidata(hObject);
data.control = 0;
guidata(hObject, data);

% --- Outputs from this function are returned to the command line.
function varargout = project_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;

% --- Executes during object creation, after setting all properties.
function fs_slider_CreateFcn(hObject, eventdata, handles)
% hObject    handle to fs_slider (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end

% --- Executes during object creation, after setting all properties.
function wind_length_CreateFcn(hObject, eventdata, handles)
% hObject    handle to wind_length (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

% --- Executes during object creation, after setting all properties.
function ndft_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ndft (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%
% CALLBACK FUNCTIONS

% --- Executes on button press in mic.
function mic_Callback(hObject, eventdata, handles)
% hObject    handle to mic (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

Fs = str2num(get(handles.fs_text, 'String'));

data = guidata(hObject);
data.sdata = read_mic(Fs, 5);
data.control = 1;
guidata(hObject, data);

draw_spactrogram(data.sdata, handles);

% --- Executes on button press in playmic.
function playmic_Callback(hObject, eventdata, handles)
% hObject    handle to playmic (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

Fs = str2num(get(handles.fs_text, 'String'));
data = guidata(hObject);
sound(data.sdata, Fs) %Play the sound

% --- Executes on button press in play_mp3.
function play_mp3_Callback(hObject, eventdata, handles)
% hObject    handle to play_mp3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

[sdata Fs] = read_mp3('Applause.mp3');
Fs = str2num(get(handles.fs_text, 'String'));
sound(sdata, Fs); %% PLay the sound

% --- Executes on slider movement.
function fs_slider_Callback(hObject, eventdata, handles)
% hObject    handle to fs_slider (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'Value') returns position of slider
%        get(hObject,'Min') and get(hObject,'Max') to determine range of slider

Fs = round(get(hObject,'Value'),3)*100000;
if(Fs < 1000)
    Fs = 1000;
    set(hObject, 'Value', Fs/100000);
end
set(handles.fs_text, 'String', num2str(Fs));

data = guidata(hObject);

if(data.control == 1)
    draw_spactrogram(data.sdata, handles);
end

% --- Executes on button press in stop.
function stop_Callback(hObject, eventdata, handles)
% hObject    handle to stop (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

clear sound;

function wind_length_Callback(hObject, eventdata, handles)
% hObject    handle to wind_length (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of wind_length as text
%        str2double(get(hObject,'String')) returns contents of wind_length as a double

data = guidata(hObject);

if(data.control == 1)
    draw_spactrogram(data.sdata, handles);
end

function ndft_Callback(hObject, eventdata, handles)
% hObject    handle to ndft (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of ndft as text
%        str2double(get(hObject,'String')) returns contents of ndft as a double

data = guidata(hObject);

if(data.control == 1)
    draw_spactrogram(data.sdata, handles);
end

% --- Executes when selected object is changed in win_buttongroup.
function win_buttongroup_SelectionChangedFcn(hObject, eventdata, handles)
% hObject    handle to the selected object in win_buttongroup
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

data = guidata(hObject);

if(data.control == 1)
    draw_spactrogram(data.sdata, handles);
end


text:
#ifndef SELFPORTRAIT_CONFIG_H
#define SELFPORTRAIT_CONFIG_H

#include "variant.h"
#include <vector>
#ifdef USE_STD_VECTOR
#include <vector>
typedef ::std::vector<VariantValue> ArgArray;
#else
#include "SmallArray.h"
typedef SmallArray<VariantValue> ArgArray;
#endif
#endif /* SELFPORTRAIT_CONFIG_H */


text:
require 'rspec'
require 'rspec/core'
require 'fileutils'
require 'dotenv'
# require 'vcr'
# require 'webmock'

require_relative '../lib/gmail-rb'

Dotenv.load(File.expand_path("../.env",  __FILE__))

# VCR.configure do |c|
#   c.cassette_library_dir = 'fixtures/vcr_cassettes'
#   c.hook_into :webmock # or :fakeweb
# end


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Microsphaera alni var. yamadai E.S. Salmon

### Remarks
null


text:
package com._112.forgedev.common.blocks;

import com._112.forgedev.ModInfo;
import com._112.forgedev.common.tileentities.TileEntityBase;
import com._112.forgedev.common.util.*;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.DefaultStateMapper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.ArrayList;
import java.util.List;

import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.client.renderer.block.statemap.DefaultStateMapper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumBlockRenderType;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.ArrayList;
import java.util.List;

public abstract class BlockBase extends Block implements IBlockRenderer {
    protected boolean isInventory = false;
    protected String resourcePath = "";
    protected String internalName = "";

    protected BlockBase(Material material, String resourcePath) {
        super(material);
        setHardness(2.2F);
        setResistance(5.0F);
        setHarvestLevel("pickaxe", 0);
        this.resourcePath = resourcePath;
    }

    public String getInternalName() {
        return internalName;
    }

    public void setInternalName(String internalName) {
        this.internalName = internalName;
    }

    @Override
    public String getUnlocalizedName() {
        String blockName = getUnwrappedUnlocalizedName(super.getUnlocalizedName());

        return String.format("tile.%s.%s", ModInfo.MOD_ID, blockName);
    }

    private String getUnwrappedUnlocalizedName(String unlocalizedName) {
        return unlocalizedName.substring(unlocalizedName.indexOf(".") + 1);
    }

    @Override
    public EnumBlockRenderType getRenderType(IBlockState state) {
        return EnumBlockRenderType.MODEL;
    }

    @Override
    public boolean removedByPlayer(IBlockState state, World world, BlockPos pos, EntityPlayer player, boolean willHarvest) {
        return willHarvest || super.removedByPlayer(state, world, pos, player, false);
    }

    @Override
    public void harvestBlock(World worldIn, EntityPlayer player, BlockPos pos, IBlockState state, TileEntity te, ItemStack stack) {
        super.harvestBlock(worldIn, player, pos, state, te, stack);
        worldIn.setBlockToAir(pos);
    }

    @Override
    public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune) {
        TileEntityBase tileEntity = TileHelper.getTileEntity(world, pos, TileEntityBase.class);
        if (tileEntity != null && tileEntity.hasCustomName()) {
            final ItemStack itemStack = new ItemStack(this, 1, tileEntity.getBlockMetadata());
            itemStack.setStackDisplayName(tileEntity.getCustomName());

            ArrayList<ItemStack> drops = new ArrayList<ItemStack>();
            drops.add(itemStack);

            return drops;
        }
        return super.getDrops(world, pos, state, fortune);
    }

    @Override
    public boolean rotateBlock(World world, BlockPos pos, EnumFacing axis) {
        final IOrientable rotatable = this.getOrientable(world, pos);
        if (rotatable != null && rotatable.canBeRotated()) {
            if (this.hasCustomRotation()) {
                this.customRotateBlock(rotatable, axis);
                return true;
            } else {
                EnumFacing forward = rotatable.getForward();

                for (int rs = 0; rs < 4; rs++) {
                    forward = Platform.rotateAround(forward, axis);

                    if (this.isValidOrientation(world, pos, forward)) {
                        rotatable.setOrientation(forward);
                        return true;
                    }
                }
            }
        }

        return super.rotateBlock(world, pos, axis);
    }

    protected boolean hasCustomRotation() {
        return false;
    }

    protected void customRotateBlock(final IOrientable rotatable, final EnumFacing axis) {

    }

    public boolean isValidOrientation(final World world, final BlockPos pos, final EnumFacing forward) {
        return true;
    }

    public IOrientable getOrientable(final IBlockAccess world, final BlockPos pos) {
        if (this instanceof IOrientableBlock)
            return this.getOrientable(world, pos);
        return null;
    }

    @Override
    public EnumFacing[] getValidRotations(World world, BlockPos pos) {
        return new EnumFacing[0];
    }

    @SideOnly(Side.CLIENT)
    @Override
    public void registerBlockRenderer() {
        final String resourcePath = String.format("%s:%s", ModInfo.MOD_ID, this.resourcePath);

        ModelLoader.setCustomStateMapper(this, new DefaultStateMapper() {
            @Override
            protected ModelResourceLocation getModelResourceLocation(IBlockState state) {
                return new ModelResourceLocation(resourcePath, getPropertyString(state.getProperties()));
            }
        });
    }

    @SideOnly(Side.CLIENT)
    @Override
    public void registerBlockItemRenderer() {
        final String resourcePath = String.format("%s:%s", ModInfo.MOD_ID, this.resourcePath);

        List<ItemStack> subBlocks = new ArrayList<ItemStack>();
        getSubBlocks(Item.getItemFromBlock(this), null, subBlocks);

        for (ItemStack itemStack : subBlocks) {
            IBlockState blockState = this.getStateFromMeta(itemStack.getItemDamage());
            ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(this), itemStack.getItemDamage(), new ModelResourceLocation(resourcePath, Platform.getPropertyString(blockState.getProperties())));

        }
    }
}


text:
@implementation UIButton (Utility)

-(void)addDecorationWithImage:(UIImage*)image orColor:(UIColor*)color {
        [self setBackgroundColor:color];
}

@end


text:
<?php include 'application/views/inc/header.php'; ?>

Select to edit event.

    <?php
    if (!empty($search_results)) {
      ?>

        <?php
        foreach($search_results as $row) {
          ?>

              <a class="thumbnail" href="<?php echo site_url().'/admin/edit_event/'.$row->event_id ?>">
                <img src="https://success.salesforce.com/resource/1402185600000/sharedlayout/img/new-user-image-default.png" alt="<?php echo $row->event_name.'\'s Photograph' ?>" />

<?php echo "".$row->event_id.". ".$row->event_name; ?>

          <?php
        }
        ?>

      <?php
    }
    else {
      ?>

No results found.

      <?php
    }
    ?>

<?php include 'application/views/inc/footer.php'; ?>


text:
package forum.cute.bean;

import java.util.Date;

public class ReplyBean
{
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public int getTopicId()
	{
		return topicId;
	}
	public void setTopicId(int topicId)
	{
		this.topicId = topicId;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	public int getAuthor()
	{
		return author;
	}
	public void setAuthor(int author)
	{
		this.author = author;
	}
	public int getFloor()
	{
		return floor;
	}
	public void setFloor(int floor)
	{
		this.floor = floor;
	}
	public int getReplyFloor()
	{
		return replyFloor;
	}
	public void setReplyFloor(int replyFloor)
	{
		this.replyFloor = replyFloor;
	}
	public int getReplyUser()
	{
		return replyUser;
	}
	public void setReplyUser(int replyUser)
	{
		this.replyUser = replyUser;
	}
	public Date getReplyTime()
	{
		return replyTime;
	}
	public void setReplyTime(Date replyTime)
	{
		this.replyTime = replyTime;
	}

	private int id;
	private int topicId;
	private String content;
	private int author;
	private int floor;
	private int replyFloor;
	private int replyUser;
	private Date replyTime;

	public String toString()
	{
		return "{ReplyBean}id="+id+" topicId="+topicId+" author="+author+" floor="+floor+" replyFloor="+replyFloor+" replyTime="+replyTime+" content="+content;
	}

}


text:
// Copyright (c) 2017 ASMlover. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
//  * Redistributions of source code must retain the above copyright
//    notice, this list ofconditions and the following disclaimer.
//
//  * Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in
//    the documentation and/or other materialsprovided with the
//    distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <ikcp.h>
#include "KcpSessionManager.h"
#include "Utility.h"

namespace KcpNet {

KcpSessionManager::KcpSessionManager(
    boost::asio::io_service& io_service,
    const std::string& address, std::uint16_t port)
  : socket_(io_service,
      udp::endpoint(boost::asio::ip::address::from_string(address), port))
  , timer_(io_service) {
  do_read();
  do_timer();
}

void KcpSessionManager::do_read(void) {
  if (stopped_)
    return;

  socket_.async_receive_from(
      boost::asio::buffer(readbuff_, sizeof(readbuff_)), sender_ep_,
      [this](const boost::system::error_code& ec, std::size_t n) {
        if (!ec && n > 0) {
          if (is_connect_packet(readbuff_, n))
            handle_connect_packet();
          else
            handle_packet(n);
        }
        else {
          // async receive error
        }

        do_read();
      });
}

void KcpSessionManager::do_timer(void) {
  if (stopped_)
    return;

  timer_.expires_from_now(boost::posix_time::milliseconds(5));
  timer_.async_wait([this](const boost::system::error_code& ec) {
        if (!ec)
          container_.update_all(get_clock32());
        do_timer();
      });
}

void KcpSessionManager::handle_connect_packet(void) {
  auto conv = container_.gen_conv();
  auto buf = make_sendback_packet(conv);
  socket_.send_to(boost::asio::buffer(buf), sender_ep_);
}

void KcpSessionManager::handle_packet(std::size_t n) {
  auto conv = ikcp_getconv(readbuff_);
  auto s = container_.get(conv);
  if (!s)
    s = container_.new_session(shared_from_this(), conv, sender_ep_);

  if (s)
    s->input_handler(readbuff_, n, sender_ep_);
}

void KcpSessionManager::stop_all(void) {
  stopped_ = true;
  container_.stop_all();

  socket_.cancel();
  socket_.close();
  timer_.cancel();
}

void KcpSessionManager::call_message_functor(
    kcp_conv_t conv, SMessageType type, const std::string& buf) {
  if (message_fn_)
    message_fn_(conv, type, buf);
}

void KcpSessionManager::write_udp_buffer(
    const std::string& buf, const udp::endpoint& ep) {
  write_udp_buffer(buf.data(), buf.size(), ep);
}

void KcpSessionManager::write_udp_buffer(
    const char* buf, std::size_t len, const udp::endpoint& ep) {
  // use `async_send_to` replace `send_to`, does it work ?
  // FIXME: does it will use `sender_ep_` or `ep` ?
  // socket_.send_to(boost::asio::buffer(buf, len), sender_ep_);
  socket_.async_send_to(boost::asio::buffer(buf, len), ep,
      [](const boost::system::error_code& /*ec*/, std::size_t /*n*/) {});
}

}


text:
require "pathname"

# General Language Pack module
module LanguagePack

  # detects which language pack to use
  # @param [Array] first argument is a String of the build directory
  # @return [LanguagePack] the {LanguagePack} detected
  def self.detect(*args)
    Instrument.instrument 'detect' do
      Dir.chdir(args.first)

      pack = [ NoLockfile, Rails4, Rails3, Rails2, Rack, Ruby ].detect do |klass|
        klass.use?
      end

      pack ? pack.new(*args) : nil
    end
  end

end

$:.unshift File.expand_path("../../vendor", __FILE__)

require 'dotenv'
require 'instrument'
require "language_pack/ruby"
require "language_pack/rack"
require "language_pack/rails2"
require "language_pack/rails3"
require "language_pack/disable_deploys"
require "language_pack/rails4"
require "language_pack/no_lockfile"


text:
'use strict';

var utils = require('../../utils/utils');
var RelType = require('../../xlsx/rel-type');

var HyperlinksProxy = function(sheetRelsWriter) {
  this.writer = sheetRelsWriter;
};
HyperlinksProxy.prototype = {
  push: function(hyperlink) {
    this.writer.addHyperlink(hyperlink);
  }
};

var SheetRelsWriter = module.exports = function(options) {
  // in a workbook, each sheet will have a number
  this.id = options.id;

  // count of all relationships
  this.count = 0;

  // keep record of all hyperlinks
  this._hyperlinks = [];

  this._workbook = options.workbook;
};
SheetRelsWriter.prototype = {

  get stream() {
    if (!this._stream) {
      // eslint-disable-next-line no-underscore-dangle
      this._stream = this._workbook._openStream('/xl/worksheets/_rels/sheet' + this.id + '.xml.rels');
    }
    return this._stream;
  },

  get length() {
    return this._hyperlinks.length;
  },

  each: function(fn) {
    return this._hyperlinks.forEach(fn);
  },

  get hyperlinksProxy() {
    return this._hyperlinksProxy ||
      (this._hyperlinksProxy = new HyperlinksProxy(this));
  },
  addHyperlink: function(hyperlink) {
    // Write to stream
    var relationship = {
      Target: hyperlink.target,
      Type: RelType.Hyperlink,
      TargetMode: 'External'
    };
    var rId = this._writeRelationship(relationship);

    // store sheet stuff for later
    this._hyperlinks.push({
      rId: rId,
      address: hyperlink.address
    });
  },

  addMedia: function(media) {
    return this._writeRelationship(media);
  },

  commit: function() {
    if (this.count) {
      // write xml utro
      this._writeClose();
      // and close stream
      this.stream.end();
    }
  },

  // ================================================================================
  _writeOpen: function() {
    this.stream.write(
      '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' +
      '<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">');
  },
  _writeRelationship: function(relationship) {
    if (!this.count) {
      this._writeOpen();
    }

    var rId = 'rId' + ++this.count;

    if (relationship.TargetMode) {
      this.stream.write(
        '<Relationship' +
        ' Id="' + rId + '"' +
        ' Type="' + relationship.Type + '"' +
        ' Target="' + utils.xmlEncode(relationship.Target) + '"' +
        ' TargetMode="' + relationship.TargetMode + '"' +
        '/>');
    } else {
      this.stream.write(
        '<Relationship' +
        ' Id="' + rId + '"' +
        ' Type="' + relationship.Type + '"' +
        ' Target="' + relationship.Target + '"' +
        '/>');
    }

    return rId;
  },
  _writeClose: function() {
    this.stream.write('</Relationships>');
  }
};


text:
import styled from "styled-components";
import { PropTypes } from "prop-types";

// pseudo element is added to expand clickable area of 'Docs' Icon on services card
const DocsLink = styled.a`
  display: inline-block;
  justify-self: flex-end;
  margin-left: 0;
  cursor: pointer;
  pointer-events: auto;
  color: ${props => props.cardFontColor};
  transition: all 0.3s ease;
  transform: scale(1);
  will-change: transform;
  position: relative;

  &:hover,
  &:focus {
    transform: scale(1.25);
    transition: all 0.1s ease;
    color: inherit;
  }

  &:active {
    transform: scale(1.1);
  }

  &:after {
    content: "";
    display: block;
    position: absolute;
    top: -4px;
    bottom: -14px;
    left: -4px;
    right: -14px;
  }
`;

DocsLink.propTypes = {
  cardFontColor: PropTypes.string
};

export default DocsLink;