text:
package com.facebook.swift.codec;

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

@ThriftStruct
public final class OneOfEverything
{
    @ThriftField(1)
    public boolean aBoolean;
    @ThriftField(2)
    public byte aByte;
    @ThriftField(3)
    public short aShort;
    @ThriftField(4)
    public int aInt;
    @ThriftField(5)
    public long aLong;
    @ThriftField(6)
    public double aDouble;
    @ThriftField(7)
    public String aString;
    @ThriftField(8)
    public BonkField aStruct;
    @ThriftField(9)
    public Fruit aEnum;
    @ThriftField(10)
    public Letter aCustomEnum;

    @ThriftField(11)
    public Set<Boolean> aBooleanSet;
    @ThriftField(12)
    public Set<Byte> aByteSet;
    @ThriftField(13)
    public Set<Short> aShortSet;
    @ThriftField(14)
    public Set<Integer> aIntegerSet;
    @ThriftField(15)
    public Set<Long> aLongSet;
    @ThriftField(16)
    public Set<Double> aDoubleSet;
    @ThriftField(17)
    public Set<String> aStringSet;
    @ThriftField(18)
    public Set<BonkField> aStructSet;
    @ThriftField(19)
    public Set<Fruit> aEnumSet;
    @ThriftField(20)
    public Set<Letter> aCustomEnumSet;

    @ThriftField(21)
    public List<Boolean> aBooleanList;
    @ThriftField(22)
    public List<Byte> aByteList;
    @ThriftField(23)
    public List<Short> aShortList;
    @ThriftField(24)
    public List<Integer> aIntegerList;
    @ThriftField(25)
    public List<Long> aLongList;
    @ThriftField(26)
    public List<Double> aDoubleList;
    @ThriftField(27)
    public List<String> aStringList;
    @ThriftField(28)
    public List<BonkField> aStructList;
    @ThriftField(29)
    public List<Fruit> aEnumList;
    @ThriftField(30)
    public List<Letter> aCustomEnumList;

    @ThriftField(31)
    public Map<String, Boolean> aBooleanValueMap;
    @ThriftField(32)
    public Map<String, Byte> aByteValueMap;
    @ThriftField(33)
    public Map<String, Short> aShortValueMap;
    @ThriftField(34)
    public Map<String, Integer> aIntegerValueMap;
    @ThriftField(35)
    public Map<String, Long> aLongValueMap;
    @ThriftField(36)
    public Map<String, Double> aDoubleValueMap;
    @ThriftField(37)
    public Map<String, String> aStringValueMap;
    @ThriftField(38)
    public Map<String, BonkField> aStructValueMap;
    @ThriftField(39)
    public Map<String, Fruit> aEnumValueMap;
    @ThriftField(40)
    public Map<String, Letter> aCustomEnumValueMap;

    @ThriftField(41)
    public Map<Boolean, String> aBooleanKeyMap;
    @ThriftField(42)
    public Map<Byte, String> aByteKeyMap;
    @ThriftField(43)
    public Map<Short, String> aShortKeyMap;
    @ThriftField(44)
    public Map<Integer, String> aIntegerKeyMap;
    @ThriftField(45)
    public Map<Long, String> aLongKeyMap;
    @ThriftField(46)
    public Map<Double, String> aDoubleKeyMap;
    @ThriftField(47)
    public Map<String, String> aStringKeyMap;
    @ThriftField(48)
    public Map<BonkField, String> aStructKeyMap;
    @ThriftField(49)
    public Map<Fruit, String> aEnumKeyMap;
    @ThriftField(50)
    public Map<Letter, String> aCustomEnumKeyMap;

    @ThriftField(60)
    public UnionField aUnion;
    @ThriftField(61)
    public Set<UnionField> aUnionSet;
    @ThriftField(62)
    public List<UnionField> aUnionList;
    @ThriftField(63)
    public Map<UnionField, String> aUnionKeyMap;
    @ThriftField(64)
    public Map<String, UnionField> aUnionValueMap;

    @ThriftField(100)
    public Set<List<Map<String, BonkField>>> aSetOfListsOfMaps;
    @ThriftField(101)
    public Map<List<String>, Set<BonkField>> aMapOfListToSet;

    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        final OneOfEverything that = (OneOfEverything) o;

        if (aBoolean != that.aBoolean) {
            return false;
        }
        if (aByte != that.aByte) {
            return false;
        }
        if (Double.compare(that.aDouble, aDouble) != 0) {
            return false;
        }
        if (aInt != that.aInt) {
            return false;
        }
        if (aLong != that.aLong) {
            return false;
        }
        if (aShort != that.aShort) {
            return false;
        }
        if (aBooleanKeyMap != null ? !aBooleanKeyMap.equals(that.aBooleanKeyMap) : that.aBooleanKeyMap != null) {
            return false;
        }
        if (aBooleanList != null ? !aBooleanList.equals(that.aBooleanList) : that.aBooleanList != null) {
            return false;
        }
        if (aBooleanSet != null ? !aBooleanSet.equals(that.aBooleanSet) : that.aBooleanSet != null) {
            return false;
        }
        if (aBooleanValueMap != null ? !aBooleanValueMap.equals(that.aBooleanValueMap) : that.aBooleanValueMap != null) {
            return false;
        }
        if (aByteKeyMap != null ? !aByteKeyMap.equals(that.aByteKeyMap) : that.aByteKeyMap != null) {
            return false;
        }
        if (aByteList != null ? !aByteList.equals(that.aByteList) : that.aByteList != null) {
            return false;
        }
        if (aByteSet != null ? !aByteSet.equals(that.aByteSet) : that.aByteSet != null) {
            return false;
        }
        if (aByteValueMap != null ? !aByteValueMap.equals(that.aByteValueMap) : that.aByteValueMap != null) {
            return false;
        }
        if (aCustomEnum != that.aCustomEnum) {
            return false;
        }
        if (aCustomEnumKeyMap != null ? !aCustomEnumKeyMap.equals(that.aCustomEnumKeyMap) : that.aCustomEnumKeyMap != null) {
            return false;
        }
        if (aCustomEnumList != null ? !aCustomEnumList.equals(that.aCustomEnumList) : that.aCustomEnumList != null) {
            return false;
        }
        if (aCustomEnumSet != null ? !aCustomEnumSet.equals(that.aCustomEnumSet) : that.aCustomEnumSet != null) {
            return false;
        }
        if (aCustomEnumValueMap != null ? !aCustomEnumValueMap.equals(that.aCustomEnumValueMap) : that.aCustomEnumValueMap != null) {
            return false;
        }
        if (aDoubleKeyMap != null ? !aDoubleKeyMap.equals(that.aDoubleKeyMap) : that.aDoubleKeyMap != null) {
            return false;
        }
        if (aDoubleList != null ? !aDoubleList.equals(that.aDoubleList) : that.aDoubleList != null) {
            return false;
        }
        if (aDoubleSet != null ? !aDoubleSet.equals(that.aDoubleSet) : that.aDoubleSet != null) {
            return false;
        }
        if (aDoubleValueMap != null ? !aDoubleValueMap.equals(that.aDoubleValueMap) : that.aDoubleValueMap != null) {
            return false;
        }
        if (aEnum != that.aEnum) {
            return false;
        }
        if (aEnumKeyMap != null ? !aEnumKeyMap.equals(that.aEnumKeyMap) : that.aEnumKeyMap != null) {
            return false;
        }
        if (aEnumList != null ? !aEnumList.equals(that.aEnumList) : that.aEnumList != null) {
            return false;
        }
        if (aEnumSet != null ? !aEnumSet.equals(that.aEnumSet) : that.aEnumSet != null) {
            return false;
        }
        if (aEnumValueMap != null ? !aEnumValueMap.equals(that.aEnumValueMap) : that.aEnumValueMap != null) {
            return false;
        }
        if (aIntegerKeyMap != null ? !aIntegerKeyMap.equals(that.aIntegerKeyMap) : that.aIntegerKeyMap != null) {
            return false;
        }
        if (aIntegerList != null ? !aIntegerList.equals(that.aIntegerList) : that.aIntegerList != null) {
            return false;
        }
        if (aIntegerSet != null ? !aIntegerSet.equals(that.aIntegerSet) : that.aIntegerSet != null) {
            return false;
        }
        if (aIntegerValueMap != null ? !aIntegerValueMap.equals(that.aIntegerValueMap) : that.aIntegerValueMap != null) {
            return false;
        }
        if (aLongKeyMap != null ? !aLongKeyMap.equals(that.aLongKeyMap) : that.aLongKeyMap != null) {
            return false;
        }
        if (aLongList != null ? !aLongList.equals(that.aLongList) : that.aLongList != null) {
            return false;
        }
        if (aLongSet != null ? !aLongSet.equals(that.aLongSet) : that.aLongSet != null) {
            return false;
        }
        if (aLongValueMap != null ? !aLongValueMap.equals(that.aLongValueMap) : that.aLongValueMap != null) {
            return false;
        }
        if (aMapOfListToSet != null ? !aMapOfListToSet.equals(that.aMapOfListToSet) : that.aMapOfListToSet != null) {
            return false;
        }
        if (aSetOfListsOfMaps != null ? !aSetOfListsOfMaps.equals(that.aSetOfListsOfMaps) : that.aSetOfListsOfMaps != null) {
            return false;
        }
        if (aShortKeyMap != null ? !aShortKeyMap.equals(that.aShortKeyMap) : that.aShortKeyMap != null) {
            return false;
        }
        if (aShortList != null ? !aShortList.equals(that.aShortList) : that.aShortList != null) {
            return false;
        }
        if (aShortSet != null ? !aShortSet.equals(that.aShortSet) : that.aShortSet != null) {
            return false;
        }
        if (aShortValueMap != null ? !aShortValueMap.equals(that.aShortValueMap) : that.aShortValueMap != null) {
            return false;
        }
        if (aString != null ? !aString.equals(that.aString) : that.aString != null) {
            return false;
        }
        if (aStringKeyMap != null ? !aStringKeyMap.equals(that.aStringKeyMap) : that.aStringKeyMap != null) {
            return false;
        }
        if (aStringList != null ? !aStringList.equals(that.aStringList) : that.aStringList != null) {
            return false;
        }
        if (aStringSet != null ? !aStringSet.equals(that.aStringSet) : that.aStringSet != null) {
            return false;
        }
        if (aStringValueMap != null ? !aStringValueMap.equals(that.aStringValueMap) : that.aStringValueMap != null) {
            return false;
        }
        if (aStruct != null ? !aStruct.equals(that.aStruct) : that.aStruct != null) {
            return false;
        }
        if (aStructKeyMap != null ? !aStructKeyMap.equals(that.aStructKeyMap) : that.aStructKeyMap != null) {
            return false;
        }
        if (aStructList != null ? !aStructList.equals(that.aStructList) : that.aStructList != null) {
            return false;
        }
        if (aStructSet != null ? !aStructSet.equals(that.aStructSet) : that.aStructSet != null) {
            return false;
        }
        if (aStructValueMap != null ? !aStructValueMap.equals(that.aStructValueMap) : that.aStructValueMap != null) {
            return false;
        }

        if (aUnion != null ? !aUnion.equals(that.aUnion) : that.aUnion != null) {
            return false;
        }
        if (aUnionKeyMap != null ? !aUnionKeyMap.equals(that.aUnionKeyMap) : that.aUnionKeyMap != null) {
            return false;
        }
        if (aUnionList != null ? !aUnionList.equals(that.aUnionList) : that.aUnionList != null) {
            return false;
        }
        if (aUnionSet != null ? !aUnionSet.equals(that.aUnionSet) : that.aUnionSet != null) {
            return false;
        }
        if (aUnionValueMap != null ? !aUnionValueMap.equals(that.aUnionValueMap) : that.aUnionValueMap != null) {
            return false;
        }

        return true;
    }

    @Override
    public int hashCode()
    {
        int result;
        long temp;
        result = (aBoolean ? 1 : 0);
        result = 31 * result + (int) aByte;
        result = 31 * result + (int) aShort;
        result = 31 * result + aInt;
        result = 31 * result + (int) (aLong ^ (aLong >>> 32));
        temp = aDouble != +0.0d ? Double.doubleToLongBits(aDouble) : 0L;
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        result = 31 * result + (aString != null ? aString.hashCode() : 0);
        result = 31 * result + (aStruct != null ? aStruct.hashCode() : 0);
        result = 31 * result + (aEnum != null ? aEnum.hashCode() : 0);
        result = 31 * result + (aCustomEnum != null ? aCustomEnum.hashCode() : 0);
        result = 31 * result + (aBooleanSet != null ? aBooleanSet.hashCode() : 0);
        result = 31 * result + (aByteSet != null ? aByteSet.hashCode() : 0);
        result = 31 * result + (aShortSet != null ? aShortSet.hashCode() : 0);
        result = 31 * result + (aIntegerSet != null ? aIntegerSet.hashCode() : 0);
        result = 31 * result + (aLongSet != null ? aLongSet.hashCode() : 0);
        result = 31 * result + (aDoubleSet != null ? aDoubleSet.hashCode() : 0);
        result = 31 * result + (aStringSet != null ? aStringSet.hashCode() : 0);
        result = 31 * result + (aStructSet != null ? aStructSet.hashCode() : 0);
        result = 31 * result + (aEnumSet != null ? aEnumSet.hashCode() : 0);
        result = 31 * result + (aCustomEnumSet != null ? aCustomEnumSet.hashCode() : 0);
        result = 31 * result + (aBooleanList != null ? aBooleanList.hashCode() : 0);
        result = 31 * result + (aByteList != null ? aByteList.hashCode() : 0);
        result = 31 * result + (aShortList != null ? aShortList.hashCode() : 0);
        result = 31 * result + (aIntegerList != null ? aIntegerList.hashCode() : 0);
        result = 31 * result + (aLongList != null ? aLongList.hashCode() : 0);
        result = 31 * result + (aDoubleList != null ? aDoubleList.hashCode() : 0);
        result = 31 * result + (aStringList != null ? aStringList.hashCode() : 0);
        result = 31 * result + (aStructList != null ? aStructList.hashCode() : 0);
        result = 31 * result + (aEnumList != null ? aEnumList.hashCode() : 0);
        result = 31 * result + (aCustomEnumList != null ? aCustomEnumList.hashCode() : 0);
        result = 31 * result + (aBooleanValueMap != null ? aBooleanValueMap.hashCode() : 0);
        result = 31 * result + (aByteValueMap != null ? aByteValueMap.hashCode() : 0);
        result = 31 * result + (aShortValueMap != null ? aShortValueMap.hashCode() : 0);
        result = 31 * result + (aIntegerValueMap != null ? aIntegerValueMap.hashCode() : 0);
        result = 31 * result + (aLongValueMap != null ? aLongValueMap.hashCode() : 0);
        result = 31 * result + (aDoubleValueMap != null ? aDoubleValueMap.hashCode() : 0);
        result = 31 * result + (aStringValueMap != null ? aStringValueMap.hashCode() : 0);
        result = 31 * result + (aStructValueMap != null ? aStructValueMap.hashCode() : 0);
        result = 31 * result + (aEnumValueMap != null ? aEnumValueMap.hashCode() : 0);
        result = 31 * result + (aCustomEnumValueMap != null ? aCustomEnumValueMap.hashCode() : 0);
        result = 31 * result + (aBooleanKeyMap != null ? aBooleanKeyMap.hashCode() : 0);
        result = 31 * result + (aByteKeyMap != null ? aByteKeyMap.hashCode() : 0);
        result = 31 * result + (aShortKeyMap != null ? aShortKeyMap.hashCode() : 0);
        result = 31 * result + (aIntegerKeyMap != null ? aIntegerKeyMap.hashCode() : 0);
        result = 31 * result + (aLongKeyMap != null ? aLongKeyMap.hashCode() : 0);
        result = 31 * result + (aDoubleKeyMap != null ? aDoubleKeyMap.hashCode() : 0);
        result = 31 * result + (aStringKeyMap != null ? aStringKeyMap.hashCode() : 0);
        result = 31 * result + (aStructKeyMap != null ? aStructKeyMap.hashCode() : 0);
        result = 31 * result + (aEnumKeyMap != null ? aEnumKeyMap.hashCode() : 0);
        result = 31 * result + (aCustomEnumKeyMap != null ? aCustomEnumKeyMap.hashCode() : 0);
        result = 31 * result + (aSetOfListsOfMaps != null ? aSetOfListsOfMaps.hashCode() : 0);
        result = 31 * result + (aMapOfListToSet != null ? aMapOfListToSet.hashCode() : 0);

        result = 31 * result + (aUnion != null ? aUnion.hashCode() : 0);
        result = 31 * result + (aUnionList != null ? aUnionList.hashCode() : 0);
        result = 31 * result + (aUnionSet != null ? aUnionSet.hashCode() : 0);
        result = 31 * result + (aUnionKeyMap != null ? aUnionKeyMap.hashCode() : 0);
        result = 31 * result + (aUnionValueMap != null ? aUnionValueMap.hashCode() : 0);
        return result;
    }

    @Override
    public String toString()
    {
        final StringBuilder sb = new StringBuilder();
        sb.append("OneOfEverything");
        sb.append("{aBoolean=").append(aBoolean);
        sb.append(", aByte=").append(aByte);
        sb.append(", aShort=").append(aShort);
        sb.append(", aInt=").append(aInt);
        sb.append(", aLong=").append(aLong);
        sb.append(", aDouble=").append(aDouble);
        sb.append(", aString='").append(aString).append('\'');
        sb.append(", aStruct=").append(aStruct);
        sb.append(", aEnum=").append(aEnum);
        sb.append(", aCustomEnum=").append(aCustomEnum);
        sb.append(", aBooleanSet=").append(aBooleanSet);
        sb.append(", aByteSet=").append(aByteSet);
        sb.append(", aShortSet=").append(aShortSet);
        sb.append(", aIntegerSet=").append(aIntegerSet);
        sb.append(", aLongSet=").append(aLongSet);
        sb.append(", aDoubleSet=").append(aDoubleSet);
        sb.append(", aStringSet=").append(aStringSet);
        sb.append(", aStructSet=").append(aStructSet);
        sb.append(", aEnumSet=").append(aEnumSet);
        sb.append(", aCustomEnumSet=").append(aCustomEnumSet);
        sb.append(", aBooleanList=").append(aBooleanList);
        sb.append(", aByteList=").append(aByteList);
        sb.append(", aShortList=").append(aShortList);
        sb.append(", aIntegerList=").append(aIntegerList);
        sb.append(", aLongList=").append(aLongList);
        sb.append(", aDoubleList=").append(aDoubleList);
        sb.append(", aStringList=").append(aStringList);
        sb.append(", aStructList=").append(aStructList);
        sb.append(", aEnumList=").append(aEnumList);
        sb.append(", aCustomEnumList=").append(aCustomEnumList);
        sb.append(", aBooleanValueMap=").append(aBooleanValueMap);
        sb.append(", aByteValueMap=").append(aByteValueMap);
        sb.append(", aShortValueMap=").append(aShortValueMap);
        sb.append(", aIntegerValueMap=").append(aIntegerValueMap);
        sb.append(", aLongValueMap=").append(aLongValueMap);
        sb.append(", aDoubleValueMap=").append(aDoubleValueMap);
        sb.append(", aStringValueMap=").append(aStringValueMap);
        sb.append(", aStructValueMap=").append(aStructValueMap);
        sb.append(", aEnumValueMap=").append(aEnumValueMap);
        sb.append(", aCustomEnumValueMap=").append(aCustomEnumValueMap);
        sb.append(", aBooleanKeyMap=").append(aBooleanKeyMap);
        sb.append(", aByteKeyMap=").append(aByteKeyMap);
        sb.append(", aShortKeyMap=").append(aShortKeyMap);
        sb.append(", aIntegerKeyMap=").append(aIntegerKeyMap);
        sb.append(", aLongKeyMap=").append(aLongKeyMap);
        sb.append(", aDoubleKeyMap=").append(aDoubleKeyMap);
        sb.append(", aStringKeyMap=").append(aStringKeyMap);
        sb.append(", aStructKeyMap=").append(aStructKeyMap);
        sb.append(", aEnumKeyMap=").append(aEnumKeyMap);
        sb.append(", aCustomEnumKeyMap=").append(aCustomEnumKeyMap);
        sb.append(", aSetOfListsOfMaps=").append(aSetOfListsOfMaps);
        sb.append(", aMapOfListToSet=").append(aMapOfListToSet);
        sb.append(", aUnion=").append(aUnion);
        sb.append(", aUnionSet=").append(aUnionSet);
        sb.append(", aUnionList=").append(aUnionList);
        sb.append(", aUnionKeyMap=").append(aUnionKeyMap);
        sb.append(", aUnionValueMap=").append(aUnionValueMap);

        sb.append('}');
        return sb.toString();
    }
}


text:
<?php
	header("Content-type:text/html;charset=utf-8");
    require_once('dbconst.php');
    if (file_get_contents("php://input") != null) {
        $str = file_get_contents("php://input");
    }
    $arr = json_decode($str);
    $conn=mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME)or die("database connection error");
    $username=mysqli_real_escape_string($conn,trim($arr->username));
    if ($username=="")
        die("nothing to search");
    $search_friend="SELECT * FROM user WHERE username IN
    (SELECT username2 FROM friend WHERE username1 = '$username' AND confirmed=true)";
    $rst=mysqli_query($conn,$search_friend) or die("database query error");
    $ret=array();
    while ($row=mysqli_fetch_array($rst)) {
    	$ret[] = array('username' => $row['username'], 'highscore' => $row['highscore'],
    		'speed_highscore' => $row['speed_highscore'], 'online' => $row['online'],
    		'last_login_time' => $row['last_login_time']);
    }
    echo json_encode(array('friendList' => $ret));
?>

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Main\ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * EventUserNotification
 */
class EventUserNotification
{
    /**
     * @var \Main\ApiBundle\Entity\Notification
     */
    private $notification;

    /**
     * @var \Main\ApiBundle\Entity\Event
     */
    private $event;

    /**
     * @var \Main\ApiBundle\Entity\User
     */
    private $user;

    /**
     * Set notification
     *
     * @param \Main\ApiBundle\Entity\Notification $notification
     * @return EventUserNotification
     */
    public function setNotification(\Main\ApiBundle\Entity\Notification $notification)
    {
        $this->notification = $notification;

        return $this;
    }

    /**
     * Get notification
     *
     * @return \Main\ApiBundle\Entity\Notification
     */
    public function getNotification()
    {
        return $this->notification;
    }

    /**
     * Set event
     *
     * @param \Main\ApiBundle\Entity\Event $event
     * @return EventUserNotification
     */
    public function setEvent(\Main\ApiBundle\Entity\Event $event)
    {
        $this->event = $event;

        return $this;
    }

    /**
     * Get event
     *
     * @return \Main\ApiBundle\Entity\Event
     */
    public function getEvent()
    {
        return $this->event;
    }

    /**
     * Set user
     *
     * @param \Main\ApiBundle\Entity\User $user
     * @return EventUserNotification
     */
    public function setUser(\Main\ApiBundle\Entity\User $user)
    {
        $this->user = $user;

        return $this;
    }

    /**
     * Get user
     *
     * @return \Main\ApiBundle\Entity\User
     */
    public function getUser()
    {
        return $this->user;
    }
}


text:
package com.ibm.smartnurse.crawler;

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.ibm.smartnurse.crawler.conf.ConfManagerUtil;

public class CrawlerManage {

	private static JsonArray sourceArray = null;
	private static JsonArray InterfaceArray = null;
	public static CrawlerManage INSTANCE = new CrawlerManage();
	private CrawlerManage(){
		sourceArray =  ConfManagerUtil.loadFromFile("sources", null);
		InterfaceArray =  ConfManagerUtil.loadFromFile("interface", null);
	}
	public JsonArray getSourceArray()
	{
		return sourceArray;
	}
	public JsonArray getInterfaceArray()
	{
		return InterfaceArray;
	}
	public void crawler()
	{
		for (JsonElement je : InterfaceArray)
		{
			try {
				Crawler.INSTANCE.crawlerInfo(je.getAsJsonObject());
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}


text:
{% extends 'mobile/base.html' %}

{% set title = _('Support Forum') %}
{% set headline = title %}

{% set styles = ('mobile-products',) %}

{% block content %}

    {% for product in products %}

          {{ _('{product} Support Forum')|fe(product=pgettext('DB: products.Product.title', product.title)) }}
          {{ pgettext('DB: products.Product.description', product.description) }}

    {% endfor %}

        {{ _('{product} Support Forum')|fe(product=_('All Products')) }}
        {{ _('Browse the questions for all the products together in one list.') }}

{% endblock %}


text:
Main Message

<?= validation_errors(); ?>

<?= form_open('Pages/update_main_message'); ?>

<?= form_textarea('message', $last_message); ?>

<?= form_submit('login_submit', 'Submit'); ?>

<?= form_close(); ?>


text:
package edu.agh.tunev.world;

import java.awt.geom.Point2D;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.text.ParseException;
import java.util.EnumMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.NavigableMap;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.Vector;
import java.util.concurrent.ConcurrentSkipListMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import edu.agh.tunev.world.World.ProgressCallback;

final class FDSDataSource extends AbstractDataSource {

	@Override
	double getDuration() {
		return duration;
	}

	@Override
	Point2D.Double getDimension() {
		return dimension;
	}

	@Override
	Vector<Exit> getExits() {
		return exits;
	}

	@Override
	Vector<Obstacle> getObstacles() {
		return obstacles;
	}

	@Override
	Vector<FireSource> getFireSources() {
		return fireSources;
	}

	@Override
	Physics getPhysicsAt(double t, Point2D.Double p) {
		Entry<Double, Vector<Vector<Physics>>> entry;

		// get entry with its t greatest but <= @param t
		entry = physics.floorEntry(t);

		// if there's no such entry, return the first entry
		if (entry == null) {
			entry = physics.firstEntry();
			if (entry == null) // or there's no physics data at all
				return new Physics();
		}

		return getPhysicsInGrid(entry.getValue(), p);
	}

	@Override
	Point2D.Double getPhysicsGranularity() {
		return d;
	}

	@Override
	void readData(File from, ProgressCallback callback) {
		if (dataFolder != null)
			throw new IllegalArgumentException(
					"FDSDataSource.readData already called on this FDSDataSource");

		dataFolder = from;

		callback.update(progressDone, progressTotal, "Scanning file names...");
		parseFilenames();
		progressDone++;

		callback.update(progressDone, progressTotal,
				"Parsing file: tunnel.fds...");
		try {
			parseInputFile();
		} catch (FileNotFoundException | ParseException e) {
			callback.update(-1, -1, "Error: " + e.getMessage());
			return;
		}
		progressDone++;

		parseDataFiles(callback);
		//TODO:validation!
		addValidationObstacles();
	}

	private NavigableMap<Double, Vector<Vector<Physics>>> physics;
	private int progressDone = 0, progressTotal = 2;
	private double duration = 0;
	private Point2D.Double dimension;
	private Point2D.Double offset;
	private Point2D.Double d;
	private File dataFolder, inputFile;
	private SortedMap<Integer, Map<Physics.Type, File>> dataFiles;
	private Vector<Obstacle> obstacles = new Vector<Obstacle>();
	private Vector<Exit> exits = new Vector<Exit>();
	private Vector<FireSource> fireSources = new Vector<FireSource>();

	/**
	 * Reads {@link #dataFolder} and if there are any matching file names,
	 * saves the data in {@link #inputFile} and {@link @dataFiles}.
	 */
	private void parseFilenames() {
		Map<Physics.Type, Pattern> patterns = new EnumMap<Physics.Type, Pattern>(
				Physics.Type.class);

		patterns.put(Physics.Type.TEMPERATURE, Pattern.compile(
				"^temp_(\\d+)-(\\d+)\\.csv$", Pattern.CASE_INSENSITIVE));

		patterns.put(Physics.Type.CO, Pattern.compile(
				"^co_(\\d+)-(\\d+)\\.csv$", Pattern.CASE_INSENSITIVE));

		Pattern patternInput = Pattern.compile("^tunnel\\.fds$",
				Pattern.CASE_INSENSITIVE);

		Matcher matcher;

		dataFiles = new TreeMap<Integer, Map<Physics.Type, File>>();

		FILES_LOOP: for (File file : dataFolder.listFiles())
			if (file.isFile()) {
				for (Physics.Type key : patterns.keySet()) {
					matcher = patterns.get(key).matcher(file.getName());
					if (matcher.find()) {
						int t = Integer.parseInt(matcher.group(1));

						Map<Physics.Type, File> files = dataFiles.get(t);
						if (files == null) {
							files = new EnumMap<Physics.Type, File>(
									Physics.Type.class);
							dataFiles.put(t, files);
						}

						files.put(key, file);
						progressTotal++;

						continue FILES_LOOP;
					}
				}

				if (inputFile == null
						&& patternInput.matcher(file.getName()).matches()) {
					inputFile = file;
					continue FILES_LOOP;
				}
			}
	}

	/**
	 * Reads input data from FDS file.
	 *
	 * Remember: x is tunnel's width, y is height. Coords in the file
	 * are often in x,y,z or x,x1,y,y1,z,z1 form.
	 *
	 * @throws FileNotFoundException
	 * @throws ParseException
	 */
	private void parseInputFile() throws FileNotFoundException, ParseException {
		if (inputFile == null)
			throw new FileNotFoundException(dataFolder.getPath()
					+ ": no .fds input file found inside");

		// regular expression of a Double
		String d = "[^,\\s/]+";

		boolean gotDimensions = false;
		Pattern patternDimensions = Pattern.compile("^&MESH\\s+IJK\\s*=\\s*("
				+ d + ")\\s*,\\s*(" + d + ")\\s*,\\s*" + d
				+ ",\\s*XB\\s*=\\s*(" + d + ")\\s*,\\s*(" + d + ")\\s*,\\s*("
				+ d + ")\\s*,\\s*(" + d + ")\\s*,\\s*" + d + "\\s*,\\s*" + d);

		Pattern patternObstacle = Pattern.compile("^&OBST\\s+XB\\s*=\\s*(" + d
				+ ")\\s*,\\s*(" + d + ")\\s*,\\s*(" + d + ")\\s*,\\s*(" + d
				+ ")\\s*,\\s*" + d + "\\s*,\\s*" + d);

		Pattern patternExit = Pattern.compile("^&HOLE\\s+XB\\s*=\\s*(" + d
				+ ")\\s*,\\s*(" + d + ")\\s*,\\s*(" + d + ")\\s*,\\s*(" + d
				+ ")\\s*,\\s*" + d + "\\s*,\\s*" + d);

		boolean gotDuration = false;
		Pattern patternDuration = Pattern
				.compile("^&TIME\\s+T_END=(" + d + ")");
		Matcher matcher;

		String line;
		BufferedReader br = new BufferedReader(new FileReader(inputFile));
		try {
			while ((line = br.readLine()) != null) {
				// dimensions
				if (!gotDimensions) {
					matcher = patternDimensions.matcher(line);
					if (matcher.find()) {
						long numCellsX = Long.parseLong(matcher.group(1));
						long numCellsY = Long.parseLong(matcher.group(2));

						offset = new Point2D.Double(Double.parseDouble(matcher
								.group(3)),
								Double.parseDouble(matcher.group(5)));
						dimension = new Point2D.Double(
								Double.parseDouble(matcher.group(4)) - offset.x,
								Double.parseDouble(matcher.group(6)) - offset.y);

						this.d = new Point2D.Double(dimension.x / numCellsX,
								dimension.y / numCellsY);

						gotDimensions = true;
						continue;
					}
				}

				// duration
				if (!gotDuration) {
					matcher = patternDuration.matcher(line);
					if (matcher.find()) {
						duration = Double.parseDouble(matcher.group(1));
						gotDuration = true;
						continue;
					}
				}

				// obstacle
				matcher = patternObstacle.matcher(line);
				if (matcher.find()) {
					if (!gotDimensions)
						throw new RuntimeException("&OBST before &MESH!");

					if (line.contains("PERMIT_HOLE=.TRUE."))
						continue;

					final boolean isFireSource = line.contains("fire");

					Obstacle obst = new Obstacle(new Point2D.Double(
							Double.parseDouble(matcher.group(1)) - offset.x,
							Double.parseDouble(matcher.group(3)) - offset.y),
							new Point2D.Double(Double.parseDouble(matcher
									.group(2)) - offset.x, Double
									.parseDouble(matcher.group(4)) - offset.y),
							isFireSource);

					obstacles.add(obst);

					if (isFireSource)
						fireSources.add(new FireSource(
								(obst.p1.x + obst.p2.x) / 2,
								(obst.p1.y + obst.p2.y) / 2));

					continue;
				}

				// exit
				matcher = patternExit.matcher(line);
				if (matcher.find()) {
					if (!gotDimensions)
						throw new RuntimeException("&HOLE before &MESH!");

					exits.add(new Exit(new Point2D.Double(Double
							.parseDouble(matcher.group(1)) - offset.x, Double
							.parseDouble(matcher.group(3)) - offset.y),
							new Point2D.Double(Double.parseDouble(matcher
									.group(2)) - offset.x, Double
									.parseDouble(matcher.group(4)) - offset.y)));
					continue;
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} finally {
			if (br != null)
				try {
					br.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			if (!gotDimensions)
				throw new ParseException(inputFile.getPath()
						+ ": no mesh dimensions declared", 0);
			if (!gotDuration)
				throw new ParseException(inputFile.getPath()
						+ ": no simulation duration declared", 0);
		}

		if (dimension.x > dimension.y) { // horizontal tunnel
			exits.add(new Exit(new Point2D.Double(0, 0), new Point2D.Double(0,
					dimension.y)));
			exits.add(new Exit(new Point2D.Double(dimension.x, 0),
					new Point2D.Double(dimension.y, dimension.y)));
		} else { // pionowy tunel
			exits.add(new Exit(new Point2D.Double(0, 0), new Point2D.Double(
					dimension.x, 0)));
			exits.add(new Exit(new Point2D.Double(0, dimension.y),
					new Point2D.Double(dimension.x, dimension.y)));
		}
	}

	private Physics getPhysicsInGrid(Vector<Vector<Physics>> grid,
			Point2D.Double p) {
		// always return *some* value, for all (x,y):

		int row = (int) Math.round(Math.floor(p.y / d.y));
		row = Math.max(row, 0);
		row = Math.min(row, grid.size() - 1);

		int col = (int) Math.round(Math.floor(p.x / d.x));
		col = Math.max(col, 0);
		col = Math.min(col, grid.get(0).size() - 1);

		return grid.get(row).get(col);
	}

	private void parseDataFiles(World.ProgressCallback callback) {
		physics = new ConcurrentSkipListMap<Double, Vector<Vector<Physics>>>();

		long numRows = Math.round(Math.floor(dimension.y / d.y)) + 1;
		long numCols = Math.round(Math.floor(dimension.x / d.x)) + 1;

		for (Entry<Integer, Map<Physics.Type, File>> e1 : dataFiles.entrySet()) {
			double t = e1.getKey();
			Vector<Vector<Physics>> grid = new Vector<Vector<Physics>>();

			for (long i = 0; i < numRows; i++) {
				Vector<Physics> row = new Vector<Physics>();
				for (long j = 0; j < numCols; j++)
					row.add(new Physics());
				grid.add(row);
			}

			for (Entry<Physics.Type, File> e2 : e1.getValue().entrySet()) {
				callback.update(progressDone, progressTotal,
						"Parsing data file: " + e2.getValue().getName() + "...");

				String line;
				long lineNum = 0;
				BufferedReader br;
				try {
					br = new BufferedReader(new FileReader(e2.getValue()));
				} catch (FileNotFoundException e) {
					callback.update(-1, -1, e.toString());
					return;
				}
				try {
					// read header
					br.readLine();
					br.readLine();
					lineNum += 2;

					// read data
					while ((line = br.readLine()) != null) {
						lineNum++;
						String[] v = line.trim().split("\\s*,\\s*");

						if (v.length != 3) {
							callback.update(-1, -1, e2.getValue().getPath()
									+ ":" + lineNum + ": invalid format");
							return;
						}

						getPhysicsInGrid(
								grid,
								new Point2D.Double(Double.parseDouble(v[0]),
										Double.parseDouble(v[1]))).set(
								e2.getKey(), Double.parseDouble(v[2]));
					}

					progressDone++;
				} catch (IOException e) {
					callback.update(-1, -1, e.toString());
					return;
				} finally {
					if (br != null)
						try {
							br.close();
						} catch (IOException e) {
							e.printStackTrace();
						}
				}
			}

			physics.put(t, grid);
		}

		callback.update(progressDone, progressTotal, "Ready.");
	}

	//TODO:validation!
	private void addValidationObstacles(){
		obstacles = new Vector<Obstacle>();

		Point2D.Double ob1p1 = new Point2D.Double(0.0, 0.0);
		Point2D.Double ob1p2 = new Point2D.Double(dimension.x/2-0.5, 10.0);
		obstacles.add(new Obstacle(ob1p1, ob1p2, false));

		Point2D.Double ob2p1 = new Point2D.Double(dimension.x/2+0.5, 0.0);
		Point2D.Double ob2p2 = new Point2D.Double(dimension.x, 10.0);
		obstacles.add(new Obstacle(ob2p1, ob2p2, false));
	}
}


text:
.navbar {
	background-color: {{ theme.top_bar_color }};
	background-repeat: repeat-x;
	background-image: none;
	border: none;
	border-bottom: 1px solid {{ get_shade(theme.top_bar_color, 10) }};
	padding-top: 15px;
	padding-bottom: 15px;
}

.navbar .navbar-text,
.navbar .navbar-brand,
.navbar .navbar-link,
.navbar .nav > li > a {
	color: {{ theme.top_bar_text_color }};
	text-shadow: none;
}

/* navbar links */
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus,
.navbar .navbar-brand:active,
.navbar .nav .active > a,
.navbar .nav .active > a:hover,
.navbar .nav .active > a:focus,
.navbar .nav .active > a:active,
.navbar .navbar-link:hover,
.navbar .navbar-link:focus,
.navbar .navbar-link:active,
.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus,
.navbar .nav > li > a:active,
.navbar .nav > .open > a,
.navbar .nav > .open > a:hover,
.navbar .nav > .open > a:focus,
.navbar .nav > .open > a:active {
	color: {{ get_shade(theme.top_bar_text_color, 15) }};
	background-color: transparent;
    -webkit-box-shadow: none;
       -moz-box-shadow: none;
            box-shadow: none;
}

.navbar-fixed-top,
.navbar-static-top {
  -webkit-box-shadow: none;
     -moz-box-shadow: none;
          box-shadow: none;

}

.navbar-toggle {
	margin-top: 18px;
	margin-bottom: 18px;
}

.navbar-collapse {
	border-radius: 0px;
}

/* navbar brand */
.navbar-brand {
	padding-right: 30px;
	max-width: 80%;
	min-height: 20px;
	height: auto;
}

@media (max-width: 767px) {
	.navbar .toggle-sidebar {
		padding: 10px 15px;
	}
}

@media (min-width: 768px) {
	.navbar-brand {
		max-width: 300px;
	}
}

/* navbar dropdowns */
.navbar .dropdown.logged-in .avatar {
	margin: 0px;
}

.nav .dropdown.logged-in .full-name {
	line-height: 22px;
}

.nav .dropdown-menu > li > a {
	padding: 14px;
}

.nav .dropdown-menu {
	min-width: 200px;
	padding: 0px;
	font-size: 85%;
	border-radius: 0px 0px 4px 4px;
}

.nav .dropdown-menu .divider {
	margin: 0px;
}


text:
package com.java110.dto.reportCustomComponentFooter;

import com.java110.dto.PageDto;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName FloorDto
 * @Description 底部统计数据层封装
 * @Author wuxw
 * @Date 2019/4/24 8:52
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
public class ReportCustomComponentFooterDto extends PageDto implements Serializable {

    private String footerId;
private String componentId;
private String javaScript;
private String name;
private String remark;
private String queryModel;
private String componentSql;

    private Date createTime;

    private String statusCd = "0";

    public String getFooterId() {
        return footerId;
    }
public void setFooterId(String footerId) {
        this.footerId = footerId;
    }
public String getComponentId() {
        return componentId;
    }
public void setComponentId(String componentId) {
        this.componentId = componentId;
    }
public String getJavaScript() {
        return javaScript;
    }
public void setJavaScript(String javaScript) {
        this.javaScript = javaScript;
    }
public String getName() {
        return name;
    }
public void setName(String name) {
        this.name = name;
    }
public String getRemark() {
        return remark;
    }
public void setRemark(String remark) {
        this.remark = remark;
    }
public String getQueryModel() {
        return queryModel;
    }
public void setQueryModel(String queryModel) {
        this.queryModel = queryModel;
    }
public String getComponentSql() {
        return componentSql;
    }
public void setComponentSql(String componentSql) {
        this.componentSql = componentSql;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getStatusCd() {
        return statusCd;
    }

    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
}


text:
require([
  'jquery',
  'mobile',
  'Controllers/ControllerProduct'
  ],
  function($, mobile, ControllerProduct){

    console.log('`main` OK');
    /*var mobile = jquery_mobile;
    /* Delegate Event: home */

    //$(document).on('change', '#home', function(){
      console.log('`#home` OK');
      if(window.sessionStorage.length >= 1){
        console.log('SessionStorage OK ' + window.sessionStorage.length >= 1);
        $('body').pagecontainer('change','#home');
        ControllerProduct.getListProducts('content-home', 'products-list');
      } else {
        console.log('change page');
        $('body').pagecontainer('change','#options');
      }
    //});
});