text:
//
//  UIImage+BNUtils.h
//  Copyright (c) 2016 Bambora ( http://bambora.com/ )
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.

#import <UIKit/UIKit.h>

@interface UIImage (BNUtils)

/**
 *  A helper method for loading an image from a specific bundle-
 *
 *  @param name   `NSString` representing the name of the image.
 *  @param bundle `NSBundle` contaning the image.
 *
 *  @return `UIImage` loaded
 */
+ (UIImage *)loadImageWithName:(NSString *)name
                    fromBundle:(NSBundle *)bundle;

@end

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html>
{% load staticfiles %}

    <title>{% block title %}My amazing site{% endblock %}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet" media="screen">

    <link href="{% static "css/justified-nav.css" %}" rel="stylesheet">
    <link href="{% static "css/signin.css" %}" rel="stylesheet">

          {% block menu %}

                  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    Toggle navigation

                  </button>

Home

New Blog Post

About

                    {% if user.is_authenticated %}

Logout

                    {% else %}

Login

                    {% endif %}

          {% endblock %}

          {% block content %}{% endblock %}

© Bloggato 2013 - source code available on GitHub


text:
<?php

class Google_Service_YouTube_ChannelStatus extends Google_Model
{
  public $isLinked;
  public $longUploadsStatus;
  public $privacyStatus;

  public function setIsLinked($isLinked)
  {
    $this->isLinked = $isLinked;
  }
  public function getIsLinked()
  {
    return $this->isLinked;
  }
  public function setLongUploadsStatus($longUploadsStatus)
  {
    $this->longUploadsStatus = $longUploadsStatus;
  }
  public function getLongUploadsStatus()
  {
    return $this->longUploadsStatus;
  }
  public function setPrivacyStatus($privacyStatus)
  {
    $this->privacyStatus = $privacyStatus;
  }
  public function getPrivacyStatus()
  {
    return $this->privacyStatus;
  }
}


text:
<?php

namespace instantjay\salesmatephp\Entity;

use instantjay\salesmatephp\Exception\InvalidFormatException;
use instantjay\salesmatephp\SalesmateConnection;
use instantjay\salesmatephp\SalesmateResponse;

class Deal extends SalesmateEntity
{
    public function __construct($data = [])
    {
        $this->path = '/deals';

        parent::__construct($data);

        $this->availableProperties = [
            'id',
            'title',
            'primaryContact',
            'primaryCompany',
            'owner',
            'estimatedCloseDate',
            'dealValue',
            'currency',
            'pipeline',
            'stage',
            'source',
            'priority',
            'status',
            'description',
            'tags',
            'followers'
        ];
    }

    /**
     * @param SalesmateConnection $salesmateConnection
     * @param string $httpMethod
     * @return SalesmateResponse
     */
    public function commit($salesmateConnection, $httpMethod = null) : SalesmateResponse
    {
        return parent::commit($salesmateConnection, $httpMethod);
    }

    /**
     * @param $title string
     */
    public function setTitle($title)
    {
        $this->data['title'] = $title;
    }

    /**
     * @param $ownerId int
     */
    public function setOwner($ownerId)
    {
        $this->data['owner'] = $ownerId;
    }

    /**
     * @return string
     */
    public function getDescription()
    {
        return $this->data['description'];
    }

    /**
     * @param string $description
     */
    public function setDescription($description)
    {
        $this->data['description'] = $description;
    }

    /**
     * @param $primaryContactId int
     */
    public function setPrimaryContact($primaryContactId)
    {
        $this->data['primaryContact'] = $primaryContactId;
    }

    /**
     * @param string $userId
     */
    public function addFollowerUser($userId)
    {
        $this->data['followers'][]['userId'] = $userId;
    }

    /**
     * @param string $contactId
     */
    public function addFollowerContact($contactId)
    {
        $this->data['followers'][]['contactId'] = $contactId;
    }

    /**
     * @return string
     */
    public function getId()
    {
        return $this->data['id'];
    }

    /**
     * @return string
     */
    public function getTitle()
    {
        return $this->data['title'];
    }

    /**
     * @return string
     */
    public function getPrimaryContact()
    {
        return $this->data['primaryContact'];
    }

    /**
     * @return string
     */
    public function getPrimaryCompany()
    {
        return $this->data['primaryCompany'];
    }

    /**
     * @return string
     */
    public function getOwner()
    {
        return $this->data['owner'];
    }

    /**
     * @return string
     */
    public function getEstimatedCloseDate()
    {
        return $this->data['estimatedCloseDate'];
    }

    /**
     * @param string $closeDate
     */
    public function setEstimatedCloseDate($closeDate)
    {
        $this->data['estimatedCloseDage'] = $closeDate;
    }

    /**
     * @return string
     */
    public function getDealValue()
    {
        return $this->data['dealValue'];
    }

    /**
     * @param string $value
     */
    public function setDealValue($value)
    {
        $this->data['dealValue'] = $value;
    }

    /**
     * @return string
     */
    public function getCurrency()
    {
        return $this->data['currency'];
    }

    /**
     * @param string $currencyCode
     */
    public function setCurrency($currencyCode)
    {
        $this->data['currency'] = $currencyCode;
    }

    /**
     * @return string
     */
    public function getPipeline()
    {
        return $this->data['pipeline'];
    }

    /**
     * @param string $pipeline
     */
    public function setPipeline($pipeline)
    {
        $this->data['pipeline'] = $pipeline;
    }

    /**
     * @return string
     */
    public function getStage()
    {
        return $this->data['stage'];
    }

    /**
     * @param $stage
     */
    public function setStage($stage)
    {
        $this->data['stage'] = $stage;
    }

    public function getSource()
    {
        return $this->data['source'];
    }

    /**
     * @return string
     */
    public function getPriority()
    {
        return $this->data['priority'];
    }

    /**
     * @return string
     */
    public function getStatus()
    {
        return $this->data['status'];
    }

    /**
     * @param $status string Open, Won or Lost
     * @throws InvalidFormatException
     */
    public function setStatus($status)
    {
        if (!in_array($status, ['Open', 'Won', "Lost"])) {
            throw new InvalidFormatException('Deal status must be Open, Won or Lost according to Salesmate API spec.');
        }

        $this->data['status'] = $status;
    }

    /**
     * @return string
     */
    public function getTags()
    {
        return $this->data['tags'];
    }

    /**
     * @return string
     */
    public function getFollowers()
    {
        return $this->data['followers'];
    }
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>类 cn.changhong.chcare.core.webapi.server.CHCareWebApiProvider.WebApiServerType的使用</title>
<meta name="date" content="2014-11-26">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">

您的浏览器已禁用 JavaScript。

概览

程序包

类

使用

树

已过时

索引

帮助

上一个

下一个

框架

无框架

所有类

类 cn.changhong.chcare.core.webapi.server.CHCareWebApiProvider.WebApiServerType
的使用

使用CHCareWebApiProvider.WebApiServerType的程序包

程序包
说明

cn.changhong.chcare.core.webapi.server

cn.changhong.chcare.core.webapi.server中CHCareWebApiProvider.WebApiServerType的使用

返回CHCareWebApiProvider.WebApiServerType的cn.changhong.chcare.core.webapi.server中的方法

限定符和类型
方法和说明

static CHCareWebApiProvider.WebApiServerType
CHCareWebApiProvider.WebApiServerType.valueOf(java.lang.String name)

返回带有指定名称的该类型的枚举常量。

static CHCareWebApiProvider.WebApiServerType[]
CHCareWebApiProvider.WebApiServerType.values()

按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。

参数类型为CHCareWebApiProvider.WebApiServerType的cn.changhong.chcare.core.webapi.server中的方法

限定符和类型
方法和说明

IService
CHCareWebApiProvider.getDefaultWebApiService(CHCareWebApiProvider.WebApiServerType type)

概览

程序包

类

使用

树

已过时

索引

帮助

上一个

下一个

框架

无框架

所有类


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.munif.bereja.entidades;

import br.com.munif.util.SuperEntidade;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.envers.Audited;

/**
 *
 * @author munif
 */
@Audited
@Entity
public class Producao extends SuperEntidade {

    @Temporal(TemporalType.TIMESTAMP)
    private Date quando;

    private String historico;

    private Integer quantidade;

    @ManyToOne
    private Receita receita;

    @OneToMany(mappedBy = "producao")
    private List<Qualificacao> qualificacoes;

    public Producao() {
        quando=new Date();
    }

    public List<Qualificacao> getQualificacoes() {
        return qualificacoes;
    }

    public void setQualificacoes(List<Qualificacao> qualificacoes) {
        this.qualificacoes = qualificacoes;
    }

    public Receita getReceita() {
        return receita;
    }

    public void setReceita(Receita receita) {
        this.receita = receita;
    }

    public Date getQuando() {
        return quando;
    }

    public void setQuando(Date quando) {
        this.quando = quando;
    }

    public String getHistorico() {
        return historico;
    }

    public void setHistorico(String historico) {
        this.historico = historico;
    }

    public Integer getQuantidade() {
        return quantidade;
    }

    public void setQuantidade(Integer quantidade) {
        this.quantidade = quantidade;
    }

}


text:
FROM jupyter/minimal-kernel

USER root

# Java 8
RUN echo "deb http://http.debian.net/debian jessie-backports main" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y -t jessie-backports install openjdk-8-jdk
RUN update-java-alternatives -s java-1.8.0-openjdk-amd64

# Spark dependencies
ENV APACHE_SPARK_VERSION 2.0.0
RUN apt-get update && apt-get install -yq --no-install-recommends wget

RUN apt-get -y update && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

#echo "439fe7793e0725492d3d36448adcd1db38f438dd1392bffd556b58bb9a3a2601 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz" | sha256sum -c - && \
#echo "8bbc9eb51f802798c92e99fd823c5386c83c279d4ba9fed304ed749294f57d27 *spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz" | sha256sum -c - && \
RUN cd /tmp && \
        wget -q http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz && \
        tar xzf spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz -C /usr/local && \
        rm spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7.tgz
RUN cd /usr/local && ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop2.7 spark

# apache toree
#ENV TOREE_VERSION 0.1.0.dev8
#RUN pip install toree===${TOREE_VERSION}
#RUN jupyter toree install
COPY incubator-toree/dist/toree /toree

#Eclair JS
ENV ECLAIRJS_VERSION 0.9

#RUN wget -q http://repo2.maven.org/maven2/org/eclairjs/eclairjs-nashorn/${ECLAIRJS_VERSION}/eclairjs-nashorn-${ECLAIRJS_VERSION}-jar-with-dependencies.jar && \
RUN wget -q https://oss.sonatype.org/service/local/repositories/releases/content/org/eclairjs/eclairjs-nashorn/${ECLAIRJS_VERSION}/eclairjs-nashorn-${ECLAIRJS_VERSION}-jar-with-dependencies.jar && \
    mkdir -p /opt/nashorn/lib && \
    mv eclairjs-nashorn-${ECLAIRJS_VERSION}-jar-with-dependencies.jar /opt/nashorn/lib/eclairjs.jar

#kernel.json
COPY kernel.json /usr/local/share/jupyter/kernels/eclair/

# data for examples
COPY examples/ /tmp/

CMD ["jupyter", "notebook", "--no-browser", "--NotebookApp.ip=0.0.0.0"]


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="fb_app_name">Отзывы</string>
    <string name="action_settings">Настройки</string>
    <string name="action_about">О программе</string>
    <string name="setting_userid">ID</string>
    <string name="setting_input_userid">Введите ID пользователя</string>
    <string name="fb_setting_name">Ник</string>
    <string name="fb_setting_input_name">Введите ваше имя или псевдоним</string>
    <string name="setting_email">E-mail</string>
    <string name="setting_input_email">Введите e-mail</string>
    <string name="setting_phone">Телефон</string>
    <string name="setting_input_phone">Введите телефон</string>
    <string name="setting_main_mode">Режим работы</string>
    <string name="show_app_list">Показать список приложений</string>
    <string name="show_bug_type">Показать тип отзыва</string>
    <string name="sure">OK</string>
    <string name="app_settings_desp">Этот инструмент предназначен для сбора отзывов от пользователей устройств Lenovo. Пожалуйста, заполните форму опроса, чтобы помочь нам быстро решить вашу проблему. Спасибо.</string>
    <string name="choose_main_mode">Выберите режим работы с приложением</string>
    <string name="can_update">Обновляемое</string>
    <string name="most_new">Установлена последняя версия</string>
    <string name="can_download">Необходимо обновление</string>
    <string name="fresh">Обновить</string>
    <string name="can_update_tip">Установленная версия устарела. Необходимо обновление (%d)</string>
    <string name="most_new_tip">Установленная версия совпадает с версией на сервере (%d)</string>
    <string name="can_download_tip">Приложение не установлено. Доступно скачивание (%d)</string>
    <string name="update_success">Успешно обновлено!</string>
    <string name="update_fail">Не удалось обновить из-за проблем с сетью или потому, что сервер в настоящее время недоступен. Пожалуйста, повторите попытку позже</string>
    <string name="loading_app">Загрузка списка последних версий приложений…</string>
    <string name="getting_data">Извлечение данных. Подождите…</string>
    <string name="freshing">Обновление…</string>
    <string name="application_name">Название</string>
    <string name="version_name">Версия</string>
    <string name="version_code">Номер</string>
    <string name="pkgname">Имя пакета</string>
    <string name="udpate_time">Время обновления</string>
    <string name="feedback_time">Время отзыва</string>
    <string name="feedback">Отзыв</string>
    <string name="my_feedback">Мои отзывы</string>
    <string name="all_feedback">Все отзывы</string>
    <string name="fb_upload_log">Добавить журнал</string>
    <string name="upload_pic">Добавить изображение:</string>
    <string name="turn_on_real_log">Создание журнала в реальном времени (позволяет эффективно обнаружить проблему)</string>
    <string name="turn_on">Вкл.</string>
    <string name="turn_off">Откл.</string>
    <string name="noti_logger_on">Создание журнала в реальном времени включено</string>
    <string name="noti_logger_title">Запуск создания журнала в реальном времени…</string>
    <string name="noti_logger_off">Создание журнала в реальном времени отключено</string>
    <string name="anonymous">Аноним</string>
    <string name="me">Я</string>
    <string name="tip">Информация</string>
    <string name="more">Еще…</string>
    <string name="fb_reply_hint">Введите текст ответа</string>
    <string name="send">Отпр.</string>
    <string name="feedback_question">Вопросы отзыва</string>
    <string name="hardware_version">Аппаратная версия</string>
    <string name="software_version">Программная версия</string>
    <string name="phone_model">Модель устройства</string>
    <string name="fname">Автор</string>
    <string name="fphone">Телефон автора</string>
    <string name="femail">E-mail автора</string>
    <string name="feedback_type">Тип отзыва</string>
    <string name="fb_submit">Отправить</string>
    <string name="fb_submiting">Отправка…</string>
    <string name="fb_submit_ok">Отправлено</string>
    <string name="fb_submit_fail">Отправка не удалась. Проверьте параметры сети</string>
    <string name="submit_empty">Форма отзыва не может быть пустой. Пожалуйста, заполните форму</string>
    <string name="def_submit_content">Нет</string>
    <string name="restart_due_read_log_permission">Инициирована команда READ_LOGS. Нажмите OK для перезапуска</string>
    <string name="log_service_is_running">Запущен сервис поиска проблем в реальном времени. Отключите его</string>
    <string name="real_log_path_empty">У вас нет журналов реального времени</string>
    <string name="refreshing">Обновление…</string>
    <string name="refreshing_warnning">Идет обновление. Пожалуйста, подождите</string>
    <string name="bug_data_lose">Данные потеряны</string>
    <string name="bug_exception">Аварийный выход</string>
    <string name="bug_not_call">Не удается вызвать</string>
    <string name="bug_not_net">Нет доступа к Интернет</string>
    <string name="bug_power_much">Большое потребление энергии</string>
    <string name="bug_reboot">Авто-перезагрузка</string>
    <string name="bug_other_error">Другая ошибка</string>
    <string name="bug_suggest">Отправить предложения Lenovo</string>
    <string name="bug_real">Поймать ошибку в реальном времени</string>
    <string name="feedback_empty">Информация об отзыве отсутствует</string>
    <string name="feedback_new">(новый)</string>
    <string name="app_empty">У вас нет установленных приложений рекомендованных Lenovo</string>
    <string name="other_app">Другие приложения</string>
    <string name="menu_bug_type">Показать тип отзыва</string>
    <string name="menu_app">Показать список приложений</string>
    <string name="all_feedback_first_show">Вы можете использовать значок в правом верхнем углу для выбора отображения \"Тип обратной связи\" или \"Список приложений\"</string>
    <string name="username">Пользователь</string>
    <string name="itcode">ITCode</string>
    <string name="input_itcode">Введите ITCode</string>
    <string name="password">Пароль</string>
    <string name="login">Войти</string>
    <string name="anonymous_login">Анонимный вход</string>
    <string name="account_hint">Введите имя пользователя</string>
    <string name="password_hint">Введите пароль</string>
    <string name="user_or_password_wrong">Неверное имя пользователя или пароль. Пожалуйста, попробуйте еще раз</string>
    <string name="login_fail">Ошибка входа</string>
    <string name="user_or_password_empty">Имя пользователя или пароль не могут быть пустыми</string>
    <string name="logining">Вход…</string>
    <string name="login_for_itcode">Пользователь ITCode</string>
    <string name="login_for_lenovoid">Пользователь LenovoID</string>
    <string name="exchange_show">Переключить формат отображения списка</string>
    <string name="logined">Вы вошли</string>
    <string name="logout">Выйти</string>
    <string name="logout_tip">Вы вошли в систему под учетной записью \"%s\". Хотите выйти?</string>
    <string name="logout_exchange">Вы вошли в систему под учетной записью \"%s\". Хотите сменить аккаунт или выйти?</string>
    <string name="cancel">Отмена</string>
    <string name="itcode_login">Войти под ITCode</string>
    <string name="lenovoid_login">Войти под LenovoID</string>
    <string name="exchange_account">Сменить аккаунт</string>
    <string name="account_empty">Очистить аккаунт</string>
    <string name="password_empty">Очистить пароль</string>
    <string name="login_select_fail_tip">Ошибка входа! Проверьте сеть или попробуйте другой метод входа</string>
    <string name="login_for_itcode_desp">Войти под ITCode</string>
    <string name="login_for_itcode_desp2">"Пользователи с аккаунтами ITCode и Lenovo являются пользователями t3.
Пароль шифруется с целью обеспечения безопасной передачи. Можете не беспокоиться о его сохранности"</string>
    <string name="login_for_lenovoid_desp">Войти под LenovoID</string>
    <string name="login_for_anonymous_desp">Войти анонимно</string>
    <string name="fd_up_switch_account_tips">Напоминание: После входа в приложение, вы можете переключать аккаунты в меню и получать другие версии приложений</string>
    <string name="input_reply">Введите ответ</string>
    <string name="itcode_login_tip">Войти в качестве сотрудника Lenovo</string>
    <string name="lenovoid_login_tip">Войти в качестве пользователя</string>
    <string name="anonymous_login_tip">Войти не авторизуясь</string>
    <string name="itcode_user">ITCode пользователь</string>
    <string name="lenovoid_user">LenovoID пользователь</string>
    <string name="anonymous_user">Анонимный пользователь</string>
    <string name="anonymous_not_login">Аноним, пожалуйста, войдите</string>
    <string name="favouted">Вы уже одобрили этот отзыв</string>
    <string name="net_close">Нет соединения. Устраните эту проблему</string>
    <string name="xlistview_header_hint_normal">Потяните вниз, чтобы обновить</string>
    <string name="xlistview_header_hint_ready">Отпустите, чтобы обновить</string>
    <string name="xlistview_header_hint_loading">Загрузка…</string>
    <string name="xlistview_footer_hint_normal">Просмотреть еще</string>
    <string name="xlistview_footer_hint_ready">Отпустите, чтобы загрузить еще</string>
    <string name="xlistview_footer_hint_nomore">Данные загружены</string>
    <string name="favout">Одобрить (%s)</string>
    <string name="fb_not_login">Пожалуйста, войдите</string>
    <string name="fb_has_login">Остановитесь! Вы уже вошли. Что вы хотите сделать?</string>
    <string name="fb_has_login_suffix">Вход выполнен</string>
    <string name="fb_add_big_log">Добавить журнал вручную</string>
    <string name="fb_not_install_file_brower">Пожалуйста, установите Проводник Lenovo</string>
    <string name="fb_has_favout">Одобрено (%s)</string>
    <string name="logout_exchange2">Вы уже вошли в систему под учетной записью \"%s\". Хотите выйти?</string>
    <string name="fb_my_feedback_update">%d на ваш отзывы есть ответы. Нажмите для просмотра</string>
    <string name="fb_from">Общий с %s</string>
    <string name="fb_setting_tip">"Если вы что-то упустили, пройдя по ссылке \"Информация об аккаунтах\" вы сможете изменить информацию по желанию.
Спасибо за содействие в улучшении качества нашего продукта!"</string>
    <string name="fb_account_info">Информация об аккаунтах</string>
    <string name="fb_version_type">Версия</string>
    <string name="fb_pull_load">Потяните вниз, чтобы загрузить</string>
    <string name="fb_release_load">Отпустите, чтобы загрузить больше комментариев</string>
    <string name="fb_loading">Загрузка комментариев…</string>
    <string name="fb_no_reply">Нет новых комментариев</string>
    <string name="fb_official">Служащий Lenovo</string>
    <string name="fb_not_allow_official">Не верно введено имя служащего Lenovo. Введите заново</string>
    <string name="fb_switch_account">Сменить аккаунт</string>
    <string name="fb_input_feedback_jar">Пожалуйста, введите отзыв</string>
    <string name="fb_error_phone">Неверный номер телефона. Введите заново</string>
    <string name="fb_error_email">Неверный адрес e-mail. Введите заново</string>
    <string name="fb_commit_datausage">Использование данных:</string>
    <string name="bug_uninstalled_app">Удаленные приложения</string>
    <string name="fb_same_photo">Вы уже добавили это изображение. Пожалуйста, выберите новое</string>
    <string name="fb_error_texttolong">Достигнут предел допустимого количества знаков</string>
</resources>


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package sup.desk.to;

/**
 *
 * @author Derick
 */
public class Categoria {
    private int id;
    private String descricao;

    public Categoria(int id, String descricao) {
        this.id = id;
        this.descricao = descricao;
    }

    public Categoria(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    @Override
    public String toString() {
        return "Categoria{" + "id=" + id + ", descricao=" + descricao + '}';
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.rao.loveyou">

    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.READ_LOGS"/>

    <uses-permission android:name="android.permission.READ_CONTACTS"/>
    <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>

    <uses-permission android:name="android.permission.CAMERA"/>

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <!-- 添加必要的权限 -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.GET_TASKS"/>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>

    <!-- 个推SDK权限配置开始 -->
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <!-- 支持iBeancon 需要蓝牙权限 -->
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <!-- 支持个推3.0 电子围栏功能 -->
    <!-- 浮动通知权限 -->
    <!-- 自定义权限 -->
    <uses-permission android:name="getui.permission.GetuiService.${applicationId}" />

    <permission
        android:name="getui.permission.GetuiService.${applicationId}"
        android:protectionLevel="normal" >
    </permission>

    <!--<uses-permission android:name="paul.permission.normal"/>-->

    <application
        android:name=".app.App"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <!-- -**************ShareSDK的activity**start************************ -->
        <activity
            android:name="com.mob.tools.MobUIShell"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"
            android:windowSoftInputMode="stateHidden|adjustResize">
            <intent-filter>
                <data android:scheme="tencent100371282"/>

                <action android:name="android.intent.action.VIEW"/>

                <category android:name="android.intent.category.BROWSABLE"/>
                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>

            <!-- 调用新浪原生SDK,需要注册的回调activity -->
            <intent-filter>
                <action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY"/>

                <category android:name="android.intent.category.DEFAULT"/>
            </intent-filter>
        </activity>
        <!-- 填写您从Mob开发者后台中得到的Appkey和AppSecret -->
        <meta-data
            android:name="Mob-AppKey"
            android:value="20e225679182e"/>
        <meta-data
            android:name="Mob-AppSecret"
            android:value="3e56a472fabfc0171ec3954d1dbea8ed"/>

        <activity
            android:name=".wxapi.WXEntryActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:exported="true"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"/>

        <!-- -**************ShareSDK的activity**end************************ -->

        <!--7.0相机权限声明-->
        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="com.rao.love.fileprovider"
            android:grantUriPermissions="true"
            android:exported="false">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>

        <!--个推配置自定义服务-->
        <service
            android:name=".libraary.getui.GeTuiService"
            android:exported="true"
            android:label="PushService"
            android:process=":pushservice">
        </service>
        <service android:name=".libraary.getui.GetTuiIntentService">

        </service>

        <!-- 个推SDK配置开始 -->
        <!-- 配置的第三方参数属性 -->
        <meta-data
            android:name="PUSH_APPID"
            android:value="${GETUI_APP_ID}" />
        <meta-data
            android:name="PUSH_APPKEY"
            android:value="${GETUI_APP_KEY}" />
        <meta-data
            android:name="PUSH_APPSECRET"
            android:value="${GETUI_APP_SECRET}" />

        <!-- 配置SDK核心服务 -->
        <service
            android:name="com.igexin.sdk.PushService"
            android:exported="true"
            android:label="NotificationCenter"
            android:process=":pushservice">
            <intent-filter>
                <action android:name="com.igexin.sdk.action.service.message"/>
            </intent-filter>
        </service>

        <receiver android:name="com.igexin.sdk.PushReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
                <action android:name="android.intent.action.USER_PRESENT" />
                <action android:name="com.igexin.sdk.action.refreshls" />
                <!-- 以下三项为可选的action声明,可大大提高service存活率和消息到达速度 -->
                <action android:name="android.intent.action.MEDIA_MOUNTED" />
                <action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
                <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" />
            </intent-filter>
        </receiver>

        <activity
            android:name="com.igexin.sdk.PushActivity"
            android:excludeFromRecents="true"
            android:exported="false"
            android:process=":pushservice"
            android:taskAffinity="com.igexin.sdk.PushActivityTask"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" >
        </activity>

        <activity
            android:name="com.igexin.sdk.GActivity"
            android:excludeFromRecents="true"
            android:exported="true"
            android:process=":pushservice"
            android:taskAffinity="com.igexin.sdk.PushActivityTask"
            android:theme="@android:style/Theme.Translucent.NoTitleBar"/>

        <!-- 个推SDK配置结束 -->

        <!-- 项目自带的Activity -->
        <activity
            android:name=".ui.activity.SpalshActivity"
            android:theme="@style/SpalshTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".ui.activity.LoginActivity"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustUnspecified|stateHidden">
        </activity>
        <activity
            android:name=".ui.activity.HomeActivity"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustUnspecified|stateHidden">
        </activity>
        <activity
            android:name=".ui.activity.guild.GuildActivity"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustUnspecified|stateHidden">
        </activity>
        <activity
            android:name=".ui.activity.RegisterActivity"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustUnspecified|stateHidden">
        </activity>
        <activity
            android:name=".ui.activity.FuLiActivity"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustUnspecified|stateHidden">
        </activity>
        <activity
            android:name=".ui.activity.WebViewActivity"
            android:launchMode="singleTask"
            android:screenOrientation="portrait"
            android:windowSoftInputMode="adjustUnspecified|stateHidden">
        </activity>

    </application>

</manifest>


text:
#ifndef BABYLON_ANIMATIONS_EASING_QUADRATIC_EASE_H
#define BABYLON_ANIMATIONS_EASING_QUADRATIC_EASE_H

#include <memory>

#include <babylon/animations/easing/easing_function.h>
#include <babylon/babylon_api.h>

namespace BABYLON {

class QuadraticEase;
using QuadraticEasePtr = std::shared_ptr<QuadraticEase>;

/**
 * @brief Easing function with a power of 2 shape (see link below).
 * @see https://easings.net/#easeInQuad
 * @see https://doc.babylonjs.com/babylon101/animations#easing-functions
 */
class BABYLON_SHARED_EXPORT QuadraticEase : public EasingFunction {

public:
  template <typename... Ts>
  static QuadraticEasePtr New(Ts&&... args)
  {
    return std::shared_ptr<QuadraticEase>(new QuadraticEase(std::forward<Ts>(args)...));
  }
  ~QuadraticEase() override; // = default

  /**
   * @brief Hidden
   */
  [[nodiscard]] float easeInCore(float gradient) const override;

protected:
  QuadraticEase() = default;

}; // end of class QuadraticEase

} // end of namespace BABYLON

#endif // end of BABYLON_ANIMATIONS_EASING_QUADRATIC_EASE_H


text:
package com.pft.core.domain;

public class ValueProbability {

    private int days;
    private int probabilityPercentage;

    public ValueProbability(int days, int probabilityPercentage) {
        this.days = days;
        this.probabilityPercentage = probabilityPercentage;
    }

    public int getDays() {
        return days;
    }

    public int getProbabilityPercentage() {
        return probabilityPercentage;
    }

    @Override
    public String toString() {
        return "ValueProbability{" +
                "days=" + days +
                ", probabilityPercentage=" + probabilityPercentage +
                '}';
    }
}


text:
'use strict';

try {
  const isValidUTF8 = require('utf-8-validate');

  module.exports = typeof isValidUTF8 === 'object'
    ? isValidUTF8.Validation.isValidUTF8  // utf-8-validate@<3.0.0
    : isValidUTF8;
} catch (e) {
  module.exports = require('./Validation.fallback');
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="20d27fe7-f1b9-4d09-be83-0a1ccbef13ba" name="Default" comment="Refactoring, added user list and "user (dis)connected" notifies">
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/SocketController.php" afterPath="$PROJECT_DIR$/src/SocketController.php" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
    </list>
    <ignored path="chatserver.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path=".idea/dataSources.local.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="DaemonCodeAnalyzer">
    <disable_hints />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="chatserver" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="run.php" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/run.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-1.25" vertical-offset="0" max-vertical-offset="315">
              <caret line="2" column="19" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ChatController.php" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/ChatController.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-6.9166665" vertical-offset="959" max-vertical-offset="1830">
              <caret line="80" column="9" selection-start-line="80" selection-start-column="9" selection-end-line="80" selection-end-column="9" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/README.md">
          <provider editor-type-id="MarkdownPreviewEditor">
            <state />
          </provider>
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-8.0" vertical-offset="0" max-vertical-offset="555">
              <caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="SocketController.php" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/src/SocketController.php">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.67164177" vertical-offset="1155" max-vertical-offset="2085">
              <caret line="116" column="72" selection-start-line="116" selection-start-column="72" selection-end-line="116" selection-end-column="72" />
              <folding>
                <element signature="e#6#86#0#PHP" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
    <option name="PUSH_TAGS">
      <GitPushTagMode />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/src/ServerInterface.php" />
        <option value="$PROJECT_DIR$/src/Server.php" />
        <option value="$PROJECT_DIR$/src/ConnectionInterface.php" />
        <option value="$PROJECT_DIR$/src/ConnectionException.php" />
        <option value="$PROJECT_DIR$/src/Connection.php" />
        <option value="$PROJECT_DIR$/src/SocketServer.php" />
        <option value="$PROJECT_DIR$/src/test.php" />
        <option value="$PROJECT_DIR$/src/run.php" />
        <option value="$PROJECT_DIR$/src/SocketController.php" />
        <option value="$PROJECT_DIR$/README.md" />
        <option value="$PROJECT_DIR$/src/ChatController.php" />
      </list>
    </option>
  </component>
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
  <component name="ProjectFrameBounds">
    <option name="y" value="23" />
    <option name="width" value="1920" />
    <option name="height" value="992" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes>
      <pane id="Scope" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="chatserver" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="chatserver" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="chatserver" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="chatserver" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="chatserver" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="FullScreen" value="false" />
    <property name="LayoutCode.rearrangeEntriesPHP" value="true" />
    <property name="recentsLimit" value="5" />
    <property name="ChangesBrowser.SHOW_FLATTEN" value="true" />
  </component>
  <component name="RunManager">
    <configuration default="true" type="PHPUnitRunConfigurationType" factoryName="PHPUnit">
      <TestRunner />
      <method />
    </configuration>
    <configuration default="true" type="PhpRemoteDebugRunConfigurationType" factoryName="PHP Remote Debug">
      <method />
    </configuration>
    <configuration default="true" type="PhpHttpRequestRunConfigurationType" factoryName="PHP HTTP Request">
      <method />
    </configuration>
    <configuration default="true" type="PhpLocalRunConfigurationType" factoryName="PHP Console">
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="PhpBehatConfigurationType" factoryName="Behat">
      <BehatRunner />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-options />
      <gulpfile />
      <tasks />
      <pass-parent-envs>true</pass-parent-envs>
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="PhpUnitRemoteRunConfigurationType" factoryName="PHPUnit on Server" server_id="67df3a35-69f6-4f76-b438-abf46757fd23" server_name="gamescollection">
      <method />
    </configuration>
    <list size="0" />
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="20d27fe7-f1b9-4d09-be83-0a1ccbef13ba" name="Default" comment="" />
      <created>1422964928469</created>
      <option name="number" value="Default" />
      <updated>1422964928469</updated>
    </task>
    <task id="LOCAL-00001" summary="Checking if a message has a 'newline' char and moved most code from run.php to ChatController">
      <created>1423245454302</created>
      <option name="number" value="00001" />
      <option name="project" value="LOCAL" />
      <updated>1423245454302</updated>
    </task>
    <task id="LOCAL-00002" summary="Refactoring, added user list and "user (dis)connected" notifies">
      <created>1423300678160</created>
      <option name="number" value="00002" />
      <option name="project" value="LOCAL" />
      <updated>1423300678160</updated>
    </task>
    <option name="localTasksCounter" value="3" />
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="23" width="1920" height="992" extended-state="6" />
    <editor active="true" />
    <layout>
      <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="true" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32719395" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32936078" sideWeight="0.5" order="12" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="10" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3997833" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <option name="myTodoPanelSettings">
      <TodoPanelSettings />
    </option>
    <MESSAGE value="Checking if a message has a 'newline' char and moved most code from run.php to ChatController" />
    <MESSAGE value="Refactoring, added user list and "user (dis)connected" notifies" />
    <option name="LAST_COMMIT_MESSAGE" value="Refactoring, added user list and "user (dis)connected" notifies" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/src/run.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="315">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ChatController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="555" max-vertical-offset="1470">
          <caret line="70" column="0" selection-start-line="70" selection-start-column="0" selection-end-line="70" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/SocketController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="900" max-vertical-offset="2160">
          <caret line="95" column="5" selection-start-line="95" selection-start-column="5" selection-end-line="95" selection-end-column="5" />
          <folding>
            <element signature="e#6#86#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/run.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="645">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ChatController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="104" max-vertical-offset="1020">
          <caret line="65" column="5" selection-start-line="65" selection-start-column="5" selection-end-line="65" selection-end-column="5" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/SocketController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="1169" max-vertical-offset="2040">
          <caret line="114" column="33" selection-start-line="114" selection-start-column="33" selection-end-line="114" selection-end-column="33" />
          <folding>
            <element signature="e#6#86#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/run.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="675">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ChatController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="465" max-vertical-offset="1020">
          <caret line="36" column="25" selection-start-line="36" selection-start-column="25" selection-end-line="36" selection-end-column="25" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/SocketController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="1305" max-vertical-offset="2160">
          <caret line="87" column="58" selection-start-line="87" selection-start-column="58" selection-end-line="87" selection-end-column="58" />
          <folding>
            <element signature="e#6#86#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/README.md">
      <provider editor-type-id="MarkdownPreviewEditor">
        <state />
      </provider>
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="100">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/run.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.25" vertical-offset="0" max-vertical-offset="315">
          <caret line="2" column="19" selection-start-line="2" selection-start-column="19" selection-end-line="2" selection-end-column="19" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/ChatController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-6.9166665" vertical-offset="959" max-vertical-offset="1830">
          <caret line="80" column="9" selection-start-line="80" selection-start-column="9" selection-end-line="80" selection-end-column="9" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/README.md">
      <provider editor-type-id="MarkdownPreviewEditor">
        <state />
      </provider>
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-8.0" vertical-offset="0" max-vertical-offset="555">
          <caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/SocketController.php">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.67164177" vertical-offset="1155" max-vertical-offset="2085">
          <caret line="116" column="72" selection-start-line="116" selection-start-column="72" selection-end-line="116" selection-end-column="72" />
          <folding>
            <element signature="e#6#86#0#PHP" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
import { MdDialogRef } from '@angular/material';
import { Component } from '@angular/core';

@Component({
    selector: 'alert-dialog',
    styleUrls: [
      './dialog.component.css'
    ],
    template: `
    <md-toolbar color="accent">
      <button md-icon-button (click)="dialogRef.close(true)">
        <md-icon>close</md-icon>
      </button>
    </md-toolbar>

        <md-icon>{{ icon }}</md-icon>
        {{ message }}

        <button md-raised-button color="accent" (click)="dialogRef.close(true)"> OK </button>

    `,
})
export class AlertDialog {

    public icon: string;
    public message: string;

    constructor(public dialogRef: MdDialogRef<AlertDialog>) {

    }
}


text:
"""
This file is part of pyCMBS.
(c) 2012- Alexander Loew
For COPYING and LICENSE details, please refer to the LICENSE file
"""

import os
from pycmbs.data import Data
from cdo import Cdo
import numpy as np
import warnings

def get_data_pool_directory():
    """
    get data pool directory for /pool/SEP
    """
    current_dir = os.getcwd() + os.sep

    if 'SEP' in os.environ.keys():
        data_pool_directory = os.environ['SEP']

        # test if the data pool directory variable
        # contains multiple pathes
        found = False
        if os.sep == '/':  # linux
            if ':' in data_pool_directory:
                for d in data_pool_directory.split(':'):
                    if os.path.exists(d) and not found:
                        found = True
                        data_pool_directory = d
                if not found:
                    raise ValueError('The data pool directory variable \
                           SEP does not contain a valid pathname!')
        else:
            raise ValueError('Currently this routine is only tested \
                            for Linux!')
    else:
        data_pool_directory = '/pool/SEP/'

    if not os.path.exists(data_pool_directory):
        warnings.warn('Data pool directory %s not found, \
                using current directory: %s' % (data_pool_directory, current_dir), Warning)
        data_pool_directory = current_dir

    return data_pool_directory

def get_temporary_directory():
    """
    returns temporary directory

    Returns
    -------
    r : str
    """
    if 'CDOTEMPDIR' in os.environ.keys():
        tempdir = os.environ['CDOTEMPDIR']
    else:
        tempdir = '.' + os.sep
    if tempdir[-1] != os.sep:
        tempdir += os.sep
    return tempdir

def get_generic_landseamask(shift_lon, mask_antarctica=True,
                            area='land', interpolation_method='remapnn',
                            target_grid='t63grid', force=False):
    """
    get generic land/sea mask. The routine uses the CDO command 'topo'
    to generate a 0.5 degree land/sea mask and remaps this
    using nearest neighbor
    to the target grid

    NOTE: using inconsistent land/sea masks between datasets can
    result in considerable biases. Note also that
    the application of l/s mask is dependent on the spatial resolution

    This routine implements a VERY simple approach, but assuming
    that all areas >0 m height are land and the rest is ocean.

    Parameters
    ----------
    shift_lon : bool
        specifies if longitudes shall be shifted
    interpolation_method : str
        specifies the interpolation method
        that shall be used for remapping the 0.5degree data
        to the target grid. This can be any of ['remapnn','remapcon',
        'remapbil']
    target_grid : str
        specifies target grid to interpolate to as
        similar to CDO remap functions. This can be either a string or
        a filename which includes valid geometry information
    force : bool
        force calculation (removes previous file) = slower

    area : str
        ['land','ocean']. When 'land', then the mask returned
        is True on land pixels, for ocean it is vice versa.
        in any other case, you get a valid field everywhere
        (globally)

    mask_antarctica : bool
        mask antarctica; if True, then the mask is
        FALSE over Antarctice (<60S)

    Returns
    -------
    returns a Data object
    """

    print ('WARNING: Automatic generation of land/sea mask. \
            Ensure that this is what you want!')

    cdo = Cdo()

    #/// construct output filename.
    #If a filename was given for the grid, replace path separators ///
    target_grid1 = target_grid.replace(os.sep, '_')
    outputfile = get_temporary_directory() + 'land_sea_fractions_' \
        + interpolation_method + '_' + target_grid1 + '.nc'

    print 'outfile: ', outputfile
    print 'cmd: ', '-remapnn,' + target_grid + ' -topo'

    #/// interpolate data to grid using CDO ///
    cdo.monmean(options='-f nc', output=outputfile,
                input='-remapnn,' + target_grid + ' -topo', force=force)

    #/// generate L/S mask from topography (land = height > 0.
    ls_mask = Data(outputfile, 'topo', read=True,
                   label='generic land-sea mask',
                   lat_name='lat', lon_name='lon',
                   shift_lon=shift_lon)
    print('Land/sea mask can be found on file: %s' % outputfile)

    if area == 'land':
        msk = ls_mask.data > 0.  # gives land
    elif area == 'ocean':
        msk = ls_mask.data <= 0.
    else:
        msk = np.ones(ls_mask.data.shape).astype('bool')
    ls_mask.data[~msk] = 0.
    ls_mask.data[msk] = 1.
    ls_mask.data = ls_mask.data.astype('bool')

    #/// mask Antarctica if desired ///
    if mask_antarctica:
        ls_mask.data[ls_mask.lat < -60.] = False

    # ensure that also the mask attribute is set properly
    ls_mask._apply_mask(~msk)

    return ls_mask

def get_T63_landseamask(shift_lon, mask_antarctica=True, area='land'):
    """
    get JSBACH T63 land sea mask
    the LS mask is read from the JSBACH init file

    area : str
        ['land','ocean']: When 'land', then the mask returned
        is True on land pixels, for ocean it is vice versa.
        In any other case, you get a valid field everywhere (globally)

    mask_antarctica : bool
        if True, then the mask is FALSE over Antarctica (<60S)
    """
    ls_file = get_data_pool_directory() \
        + 'data_sources/LSMASK/jsbach_T63_GR15_4tiles_1992.nc'
    ls_mask = Data(ls_file, 'slm', read=True, label='T63 land-sea mask',
                   lat_name='lat', lon_name='lon', shift_lon=shift_lon)
    if area == 'land':
        msk = ls_mask.data > 0.
    elif area == 'ocean':
        msk = ls_mask.data == 0.
    else:
        msk = np.ones(ls_mask.data.shape).astype('bool')

    ls_mask.data[~msk] = 0.
    ls_mask.data[msk] = 1.
    ls_mask.data = ls_mask.data.astype('bool')
    if mask_antarctica:
        ls_mask.data[ls_mask.lat < -60.] = False

    # ensure that also the mask attribute is set properly
    ls_mask._apply_mask(~msk)

    return ls_mask


text:
<?PHP

/**
 * Index of $_SESSION array that saves all information regarding statefull objects
 */
define('OB_STATEFUL_DATA_SESSION_INDEX', 'ob_stateful_data');
define('OB_TRANSIENT_DATA_SESSION_INDEX', 'ob_transient_data');

/**
 * SessionContext class is Session management class that has additional methods
 * to save/get session variables of metadata based stateful objects
 * through their GetSessionVars|SetSessionVars interfaces
 *
 * @package   openbiz.bin
 * @author    Rocky Swen <rocky@phpopenbiz.org>
 * @copyright Copyright (c) 2005-2009, Rocky Swen
 * @access    public
 */
class SessionContext
{
    protected $_lastAccessTime;
    protected $_timeOut = false;
    protected $_sessObjArr = null;
    protected $_statefulSessObjArr = null;
    protected $_viewHistory = null;
    protected $_prevViewObjNames = array();

    /**
     * Constructor of SessionContext, init session and set session file path
     *
     * @return void
     **/
    function __construct()
    {
        // get session save handler MC or DB
        if (defined("SESSION_HANDLER") && SESSION_HANDLER != "" && defined('USE_CUSTOM_SESSION_HANDLER') && USE_CUSTOM_SESSION_HANDLER ==true) {
            include_once SESSION_HANDLER.".php";
        }
        else {
        	if(!file_exists(SESSION_PATH)){
        		@mkdir(SESSION_PATH,0777,true);
        	}
            // default is file session
            if (defined('SESSION_PATH') && is_writable(SESSION_PATH))
                session_save_path(SESSION_PATH);
            // we cannot write in the session save path; aborting
            if(!is_writable(session_save_path()))
                trigger_error("Unable to write in the session save path [".session_save_path()."]", E_USER_ERROR);
        }

        ini_set('session.gc_probability', 1);   // force gc
        ini_set('session.gc_divisor', 100);
        if (defined('TIMEOUT') && TIMEOUT > 0)
            ini_set("session.gc_maxlifetime", TIMEOUT);
        else
            ini_set("session.gc_maxlifetime", 21600); // 6 hours

        if (!defined('CLI') || CLI == 0) {
            if(isset($_REQUEST['cubi_sess_id'])){
                session_id($_REQUEST['cubi_sess_id']);
            }
            session_start();
        }
        // record access time
        $curTime = time();
        if (isset($_SESSION["LastAccessTime"]))
            $this->_lastAccessTime = $_SESSION["LastAccessTime"];
        else
            $this->_lastAccessTime = $curTime;
        $_SESSION["LastAccessTime"] =$curTime;

        // see if timeout
        $this->_timeOut = false;
        if ((TIMEOUT > 0) && (($curTime - $this->_lastAccessTime) > TIMEOUT))
            $this->_timeOut = true;
    }

    /**
     * Set single session variable
     *
     * @param string $varName
     * @param mixed $value
     * @return void
     **/
    public function setVar($varName, $value)
    {
        $_SESSION[$varName] = $value;
    }

    public function mergeVar($varName, $value)
    {
        $var = $_SESSION[$varName];
        if(is_array($var)){
        	foreach($value as $key=>$value){
        		$var[$key]=$value;
        	}
        	$_SESSION[$varName] = $var;
        }else{
        	$_SESSION[$varName] = $value;
        }
    }
    /**
     * Get single session variable
     *
     * @param string $varName name of session variable
     * @return string
     **/
    public function getVar($varName)
    {
        if (!isset($_SESSION[$varName]))
            return "";
        return $_SESSION[$varName];
    }

    /**
     * Clear/Unset single session variable
     * NOTE: NYU - not yet used
     *
     * @param string $varName
     * @return void
     **/
    public function clearVar($varName)
    {
        unset($_SESSION[$varName]);
    }

    /**
     * Is variable exist in the session
     *
     * @param string $varName variable name that checked
     * @return boolean TRUE if the var exists in the session, otherwise FALSE
     **/
    public function varExists($varName)
    {
        $exists =  (array_key_exists($varName, $_SESSION)) ? TRUE : FALSE;
        return $exists;
    }

    public function getNamespace()
    {
        $view = BizSystem::instance()->getCurrentViewName();
        if ($view)
            $namespace = $view;
        else
            $namespace = 'DEFAULT_NS';
        return $namespace;
    }

    /**
     * Set single session variable of a stateful object
     *
     * @param string $objName - object name
     * @param string $varName - vaiable name
     * @param mixed $value - reference of the value (in/out)
     * @param boolean $stateful - is stateful?
     * @return void
     **/
    public function setObjVar($objName, $varName, &$value, $stateful=false )
    {
    	if(preg_match('/\./si',$objName)){
        	$objName = $this->getNamespace().'#'.$objName;
    	}
        if (!$stateful)
            $this->_sessObjArr[$objName][$varName] = $value;
        else
            $this->_statefulSessObjArr[$objName][$varName] = $value;
    }

    /**
     * Clean Object
     *
     * @param string $objName object name
     * @param boolean $stateful
     * @return void
     */
    public function cleanObj($objName, $stateful=false)
    {
    	if(preg_match('/\./si',$objName)){
        	$objName = $this->getNamespace().'#'.$objName;
    	}
        if (!$stateful)
            unset($this->_sessObjArr[$objName]);
        else
            unset($this->_statefulSessObjArr[$objName]);
    }

    /**
     * Get single session variable of a stateful object
     *
     * @param string $objName - object name
     * @param string $varName - vaiable name
     * @param mixed $value - reference of the value (in/out)
     * @param boolean $stateful - is stateful?
     * @return void
     */
    public function getObjVar($objName, $varName, &$value, $stateful=false)
    {
    	if(preg_match('/\./si',$objName)){
        	$objName = $this->getNamespace().'#'.$objName;
    	}
        if (!$stateful)
        {
            if (!$this->_sessObjArr)
                return;
            if (isset($this->_sessObjArr[$objName][$varName]))
                $value = $this->_sessObjArr[$objName][$varName];
        }
        else
        {
            if (!$this->_statefulSessObjArr)
                return;
            if (isset($this->_statefulSessObjArr[$objName][$varName]))
                $value = $this->_statefulSessObjArr[$objName][$varName];
        }
    }

    /**
     * Save session variables of all stateful objects into sessionid_obj file
     *
     * @return void
     **/
    public function saveSessionObjects()
    {
        // loop all objects (bizview, bizform, bizdataobj) collect their session vars
        $allobjs = BizSystem::objectFactory()->getAllObjects();
        foreach ($allobjs as $obj)
        {
            if (method_exists($obj, "SetSessionVars"))
            {
                //after calling $obj->setSessionVars SessObjArr and StatefulSessObjArr are filled
                $obj->setSessionVars($this);
            }
            // if previous view's object is used in current view, don't discard its session data
            if (isset($obj->m_Name) && key_exists($obj->m_Name, $this->_prevViewObjNames)) {
                unset($this->_prevViewObjNames[$obj->m_Name]);
                BizSystem::log(LOG_ERR, "SESSION", "unset ".$obj->m_Name);
            }
        }

        // discard useless previous view's session objects
        //foreach($this->_prevViewObjNames as $objName=>$tmp)
        //    unset($this->_sessObjArr[$objName]);

        $this->_sessObjArr["ViewHist"] = $this->_viewHistory;

        $this->setVar(OB_TRANSIENT_DATA_SESSION_INDEX, $this->_sessObjArr);
        $this->setVar(OB_STATEFUL_DATA_SESSION_INDEX, $this->_statefulSessObjArr);
    }

    /**
     * Retrieve/Get session variables of all stateful objects from sessionid_obj file
     *
     * @return void
     **/
    public function retrieveSessionObjects()
    {
        $this->_sessObjArr = $this->getVar(OB_TRANSIENT_DATA_SESSION_INDEX);
        $this->_statefulSessObjArr = $this->getVar(OB_STATEFUL_DATA_SESSION_INDEX);

        if (!is_array($this->_sessObjArr))
            $this->_sessObjArr = array();
        if (!is_array($this->_statefulSessObjArr))
            $this->_statefulSessObjArr = array();

        $this->_viewHistory = array_key_exists('ViewHist', $this->_sessObjArr)
            ? $this->_sessObjArr["ViewHist"]
            : NULL;
        return TRUE;
    }

    /**
     * Clear session variables of all stateful objects
     *
     * @param boolean $keepObjects
     * @return void
     */
    public function clearSessionObjects($keepObjects = false)
    {
        if ($keepObjects == false)
        {
            unset($this->_sessObjArr);
            $this->_sessObjArr = array();
        }
        else // add previous view's session object names in to a map
        {
            if (isset($this->_sessObjArr))
            {
                foreach($this->_sessObjArr as $objName=>$sessobj)
                {
                    //echo "save sess $objName <br/>";
                    $this->_prevViewObjNames[$objName] = 1;
                }
            }
        }
    }

    /**
     * Save a JSON array in session
     *
     * @param string $jsonValue
     * @param string $jsonName
     * @return void
     **/
    public function saveJSONArray($jsonValue, $jsonName = NULL)
    {
        $jsonArray = json_decode($jsonValue);

        if((bool)$jsonName)
        { //If I want save all array in session I send the name of the array in session
            $this->setVar($jsonName, $jsonArray);
        }
        else
        {//I save each value in session
            foreach($jsonArray as $varName=>$value)
            {
                $this->setVar($varName, $value);
            }
        }
    }

    /**
     * Get view history data of given BizForm/EasyForm from saved in session file
     *
     * @param string $formName - name of BizForm/EasyForm
     * @return array - view history data represented by an associated array
     **/
    public function getViewHistory($formName)
    {
        $view = BizSystem::instance()->getCurrentViewName();
        $view_form = $formName; //$view."_".$formname;
        return $this->_viewHistory[$view_form];
    }

    /**
     * Set view history data of given bizform into session file
     *
     * @param string $formName - name of bizform
     * @param array $historyInfo - view history data represented by an associated array
     * @return void
     **/
    public function setViewHistory($formName, $historyInfo)
    {
        $view = BizSystem::instance()->getCurrentViewName();
        $view_form = $formName; //$view."_".$formname;
        if (!$historyInfo)
            unset($this->_viewHistory[$view_form]);
        else
            $this->_viewHistory[$view_form] = $historyInfo;
    }

    /**
     * Destroy/free all session data of the current session
     *
     * @return void
     **/
    public function destroy()
    {
        unset($this->_viewHistory);
        unset($this->_sessObjArr);
        unset($this->_statefulSessObjArr);

        session_destroy();
    }

    /**
     * Check if user logged in or not
     * NOTE: NYU - not yet used
     *
     * @return boolean
     */
    public function isUserValid()
    {
        if (CHECKUSER == "N")
            return true;
        if ($this->getVar("UserId") != "")
            return true;
        else
            return false;
    }

    /**
     * Check if current session is timeout
     *
     * @return boolean
     **/
    public function isTimeout()
    {
        return $this->_timeOut;
    }
}

?>


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.security.keyvault.certificates.implementation;

import com.azure.core.http.rest.Page;
import com.azure.core.util.IterableStream;
import com.azure.security.keyvault.certificates.models.IssuerProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * A page of Issuer {@link IssuerProperties} resources and a link to get the next page of
 * resources, if any.
 */
public final class IssuerPropertiesPage implements Page<IssuerProperties> {

    /**
     * The link to the next page.
     */
    @JsonProperty("nextLink")
    private String continuationToken;

    /**
     * The list of items.
     */
    @JsonProperty("value")
    private List<IssuerProperties> items;

    /**
     * Gets the link to the next page. Or {@code null} if there are no more resources to fetch.
     *
     * @return The link to the next page.
     */
    @Override
    public String getContinuationToken() {
        return this.continuationToken;
    }

    /**
     * Gets the iterable stream of {@link IssuerProperties issuers} on this page.
     *
     * @return The iterable stream of items in {@link List}.
     */
    @Override
    public IterableStream<IssuerProperties> getElements() {
        return IterableStream.of(items);
    }
}


text:
namespace Client.Logic.Stories
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using PMU.Core;
    using Client.Logic.Stories.Segments;

    class Segment
    {
        ListPair<string, string> parameters;

        public Segment() {
            parameters = new ListPair<string, string>();
        }

        #region Properties

        public Enums.StoryAction Action {
            get;
            set;
        }

        public ListPair<string, string> Parameters {
            get { return parameters; }
        }

        public void AddParameter(string paramID, string value) {
            parameters.Add(paramID, value);
        }

        public ISegment ToSpecific() {
            ISegment specific = null;
            switch (Action) {
                case Enums.StoryAction.Say:
                    specific = new SaySegment();
                    break;
                case Enums.StoryAction.AskQuestion:
                    specific = new AskQuestionSegment();
                    break;
                case Enums.StoryAction.HideBackground:
                    specific = new HideBackgroundSegment();
                    break;
                case Enums.StoryAction.HideImage:
                    specific = new HideImageSegment();
                    break;
                case Enums.StoryAction.MapVisibility:
                    specific = new MapVisibilitySegment();
                    break;
                case Enums.StoryAction.Padlock:
                    specific = new PadlockSegment();
                    break;
                case Enums.StoryAction.Pause:
                    specific = new PauseSegment();
                    break;
                case Enums.StoryAction.PlayerPadlock:
                    specific = new PlayerPadlockSegment();
                    break;
                case Enums.StoryAction.PlayMusic:
                    specific = new PlayMusicSegment();
                    break;
                case Enums.StoryAction.ShowBackground:
                    specific = new ShowBackgroundSegment();
                    break;
                case Enums.StoryAction.ShowImage:
                    specific = new ShowImageSegment();
                    break;
                case Enums.StoryAction.StopMusic:
                    specific = new StopMusicSegment();
                    break;
                case Enums.StoryAction.Warp:
                    specific = new WarpSegment();
                    break;
                case Enums.StoryAction.CreateFNPC:
                    specific = new CreateFNPCSegment();
                    break;
                case Enums.StoryAction.MoveFNPC:
                    specific = new MoveFNPCSegment();
                    break;
                case Enums.StoryAction.WarpFNPC:
                    specific = new WarpFNPCSegment();
                    break;
                case Enums.StoryAction.ChangeFNPCDir:
                    specific = new ChangeFNPCDirectionSegment();
                    break;
                case Enums.StoryAction.DeleteFNPC:
                    specific = new DeleteFNPCSegment();
                    break;
                case Enums.StoryAction.RunScript:
                    specific = new RunScriptSegment();
                    break;
                case Enums.StoryAction.HidePlayers:
                    specific = new HidePlayersSegment();
                    break;
                case Enums.StoryAction.ShowPlayers:
                    specific = new ShowPlayersSegment();
                    break;
                case Enums.StoryAction.GoToSegment:
                    specific = new GoToSegmentSegment();
                    break;
                case Enums.StoryAction.MovePlayer:
                    specific = new MovePlayerSegment();
                    break;
                case Enums.StoryAction.ChangePlayerDir:
                    specific = new ChangePlayerDirectionSegment();
                    break;
            }
            if (specific != null) {
                specific.LoadFromSegmentData(parameters);
            }
            return specific;

        }

        #endregion Properties
    }
}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Contribution a l'etude des Dermatomycoses humaines tropicales de l'Afrique Equatoriale francaise, Strasbourg 39 (1935)

#### Original name
Epidermophyton sartoryi Weiss {?}

### Remarks
null


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Uses of Class kariminf.faris.philosophical.QuantSubstance</title>
<meta name="date" content="2017-02-26">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes

Uses of Class
kariminf.faris.philosophical.QuantSubstance

Packages that use QuantSubstance

Package
Description

kariminf.faris.knowledge

kariminf.faris.philosophical

kariminf.faris.process

kariminf.faris.process.ston

kariminf.faris.tools

Uses of QuantSubstance in kariminf.faris.knowledge

Fields in kariminf.faris.knowledge declared as QuantSubstance

Modifier and Type
Field and Description

private QuantSubstance
Mind.owner

Methods in kariminf.faris.knowledge with parameters of type QuantSubstance

Modifier and Type
Method and Description

Mind
Mind.addOpinion(Mind.MentalState ms,
          QuantSubstance other)

boolean
Mind.hasOwner(QuantSubstance agent)

Constructors in kariminf.faris.knowledge with parameters of type QuantSubstance

Constructor and Description

Mind(java.lang.String name,
    QuantSubstance owner)

Opinion(java.lang.String superMindName,
       QuantSubstance otherMindOwner)

Uses of QuantSubstance in kariminf.faris.philosophical

Fields in kariminf.faris.philosophical declared as QuantSubstance

Modifier and Type
Field and Description

private QuantSubstance
Relative.owner

QuantSubstance
Relative.RelativeWrapper.owner

QuantSubstance
QuantSubstance.QSubstanceWrapper.qsubstance

private QuantSubstance
Relative.relSubstance

QuantSubstance
Relative.RelativeWrapper.relSubstance

Fields in kariminf.faris.philosophical with type parameters of type QuantSubstance

Modifier and Type
Field and Description

private java.util.HashMap<QuantSubstance,java.util.HashSet<Action>>
Attitude.owners

private java.util.ArrayList<QuantSubstance>
Place.places

java.util.ArrayList<QuantSubstance>
Place.PlaceWrapper.places

private java.util.ArrayList<QuantSubstance>
Time.times

java.util.ArrayList<QuantSubstance>
Time.TimeWrapper.times

Methods in kariminf.faris.philosophical that return QuantSubstance

Modifier and Type
Method and Description

QuantSubstance
Relative.getOwnerSubstance()

QuantSubstance
Relative.getRelative()

static QuantSubstance
QuantSubstance.withNewSubstance(QuantSubstance orig,
                Substance newSubs)

Creates the same QuantSubstance with a different Substance

Methods in kariminf.faris.philosophical that return types with arguments of type QuantSubstance

Modifier and Type
Method and Description

java.util.ArrayList<java.util.ArrayList<QuantSubstance>>
Action.getAgents()

private java.util.ArrayList<java.util.ArrayList<QuantSubstance>>
Action.getDisjunctions(java.util.Set<ConjunctedSubstances> disjunctions)

java.util.ArrayList<java.util.ArrayList<QuantSubstance>>
Action.getThemes()

Methods in kariminf.faris.philosophical with parameters of type QuantSubstance

Modifier and Type
Method and Description

void
Attitude.addAttitudeOwner(QuantSubstance player,
                Action inAction)

void
Place.addLocation(QuantSubstance loc)

void
Time.addTimeSubstance(QuantSubstance quantSubstance)

static void
Relative.affectRelative(QuantSubstance owner,
              QuantSubstance relative)

Creates a Relative OF.

static void
Relative.affectRelative(Relative.RelativeType type,
              Adjective relation,
              Action owner,
              QuantSubstance relative)

Creates a relative and affect it to the owner

boolean
State.affectState(Action action,
           QuantSubstance owner,
           java.util.List<java.util.List<QuantSubstance>> relatives,
           kariminf.sentrep.univ.types.Relation.Relative affectionType)

static Relative
Relative.getNew(Relative.RelativeType type,
      Adjective relation,
      QuantSubstance owner,
      QuantSubstance relative)

Comparison relative: He is taller than me

boolean
Action.hasAgent(QuantSubstance agent)

boolean
Action.hasTheme(QuantSubstance agent)

static QuantSubstance
QuantSubstance.withNewSubstance(QuantSubstance orig,
                Substance newSubs)

Creates the same QuantSubstance with a different Substance

Method parameters in kariminf.faris.philosophical with type arguments of type QuantSubstance

Modifier and Type
Method and Description

void
Action.addConjunctObjects(java.util.List<QuantSubstance> conjunctions2)

Adds substances that are separated by the word "and".

void
Action.addConjunctSubjects(java.util.List<QuantSubstance> conjunctions2)

Adds substances that are separated by the word "and".

boolean
State.affectState(Action action,
           QuantSubstance owner,
           java.util.List<java.util.List<QuantSubstance>> relatives,
           kariminf.sentrep.univ.types.Relation.Relative affectionType)

Constructors in kariminf.faris.philosophical with parameters of type QuantSubstance

Constructor and Description

QSubstanceWrapper(QuantSubstance qsub)

Relative(Relative.RelativeType type,
        Adjective relation,
        QuantSubstance relSubstance)

Uses of QuantSubstance in kariminf.faris.process

Fields in kariminf.faris.process declared as QuantSubstance

Modifier and Type
Field and Description

private QuantSubstance
Generator.currentSubstance

Fields in kariminf.faris.process with type parameters of type QuantSubstance

Modifier and Type
Field and Description

private java.util.ArrayDeque<QuantSubstance>
Generator.currentMinds

private java.util.HashMap<QuantSubstance,java.lang.Integer>
Generator.qsubstanceIDs

Methods in kariminf.faris.process with parameters of type QuantSubstance

Modifier and Type
Method and Description

void
Generator.endMindProcessing(QuantSubstance s)

void
Generator.processMind(QuantSubstance s)

This is called by Mind to process the caller's mind

Uses of QuantSubstance in kariminf.faris.process.ston

Fields in kariminf.faris.process.ston declared as QuantSubstance

Modifier and Type
Field and Description

private QuantSubstance
FarisParse.currentPlayer

Fields in kariminf.faris.process.ston with type parameters of type QuantSubstance

Modifier and Type
Field and Description

private java.util.HashMap<java.lang.String,QuantSubstance>
FarisParse._players

Methods in kariminf.faris.process.ston that return types with arguments of type QuantSubstance

Modifier and Type
Method and Description

private java.util.List<QuantSubstance>
FarisParse.getSubstances(java.util.List<java.lang.String> IDs)

Methods in kariminf.faris.process.ston with parameters of type QuantSubstance

Modifier and Type
Method and Description

private Mind
FarisParse.addNewMind(QuantSubstance agent)

Adds a new mind of the substance if it doesn't exist

Uses of QuantSubstance in kariminf.faris.tools

Methods in kariminf.faris.tools that return types with arguments of type QuantSubstance

Modifier and Type
Method and Description

java.util.ArrayList<QuantSubstance>
ConjunctedSubstances.getSubstances()

Skip navigation links

Overview

Package

Class

Use

Tree

Deprecated

Index

Help

Prev

Next

Frames

No Frames

All Classes


text:
import os, string, sys, time, re, math, fileinput, glob, shutil, codecs
import threading, platform

#adb pull all /data/app/*.apk
#
#

# Copyright (C) 2017 Roy Chen
#
# 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.

# increment this whenever we make important changes to this script
VERSION = (0, 1)

#--------------------------------------------------------------------------------------------------
#

#--------------------------------------------------------------------------------------------------
def get_tmp_out() :
	ret = os.getenv('OUT_TMP')
	if ( None != ret ):
		return ret
	if ( 'Windows' in platform.system() ):
		ret = str("d:/out_tmp")
	else :
		ret = "~/out_tmp"
	return ret

def now() :
	return str( time.strftime( '%Y%m%d-%H%M%S' , time.localtime() ) )

def rm_make_dirs(g_out_dir) :
	if os.path.exists(g_out_dir):
		shutil.rmtree(g_out_dir)
	os.makedirs(g_out_dir)

def run_cmd(cmd):
#	print("run: " + cmd)
	os.system(cmd)
	#os.popen(cmd)

#--------------------------------------------------------------------------------------------------
def start_thread(func):
	#print("start_thread: " + arg1)
	th = threading.Thread(target = func, )
	th.start()
	return th

def start_thread_arg1(func, arg1):
	#print("start_thread: " + cmd)
	th = threading.Thread(target = func, args = (arg1,))
	th.start()
	return th
#--------------------------------------------------------------------------------------------------

#--------------------------------------------------------------------------------------------------
def pull_apk_by_thpool(out_dir, apk_file):
	thpool = []

	input_file = out_dir + "/" + apk_file
	if os.access(input_file, os.R_OK) == 0:
		print("no file: " + input_file + "\n")
		return
	fp = codecs.open(input_file, 'r', "'utf-8'")
	lines = fp.readlines()
	fp.close()

	thread_count = 0
	thread_sum = 7

	for line in lines:
		line = line.strip()
		if (len(line) < len("package:/")):
			continue
		print ("line: " + line)
#package:/data/app/com.banshenghuo.mobile-1/base.apk=com.banshenghuo.mobile
		words = line.split(":")
#		print (words)
		line = words[1]
		words = line.split("=")
		data_app = words[0]
		out_app = words[1] + ".apk"
#		print (data_app)
#		print (out_app)
#		continue
#adb pull /data/app/com.amazon.kindle-1/base.apk  D:\w\s\o_out/backup-apk/20170503-150734//com.amazon.kindle.apk
		arg1 = "adb pull " + data_app  + "  " +  out_dir + "/" + out_app
		print( "arg1: " + arg1 )
		thpool.append( start_thread_arg1(run_cmd, arg1) )
		thread_count += 1
		print ("thread_count:%d" % (thread_count) )
		if (thread_count >= thread_sum):
		        for th in thpool:
        			th.join()
			print ("wait all thread join ...")
			thread_count = 0

	for th in thpool:
		th.join()

	return

#--------------------------------------------------------------------------------------------------
def main(argv):
	run_cmd("adb wait-for-devices" )
	run_cmd("adb root")
	run_cmd("adb wait-for-devices" )

	out_class = "backup-apk/"
	out_dir = 	get_tmp_out() +  "/" + out_class + now() +  "/"
	print( "out_dir: " + out_dir )
	rm_make_dirs( out_dir )

	apk_file = "apk_file.txt"

#	run_cmd("adb shell pm list packages -f -3 > " + out_dir + "/" + apk_file)
	run_cmd("adb shell cmd package list packages -f > " + out_dir + "/" + apk_file)

	pull_apk_by_thpool(out_dir, apk_file)

	return

if __name__ == '__main__':
  main(sys.argv)


text:
import 'core-js/stable';
import 'core-js/features/typed-array/uint16-array';

import React from 'react';
import ReactRailsUJS from 'react_ujs';

import {Root, setupI18n} from 'pageflow-scrolled/frontend';

ReactRailsUJS.getConstructor = function() {
  // Normally this function receives the name of a component, but we
  // only need to render one type of component.
  return ServerRenderedRoot;
};

function ServerRenderedRoot({seed}) {
  setupI18n(seed.i18n);

  return (
    <Root seed={seed} />
  );
}


text:
layout: post
title:  "Grid Unique Paths"
subtitle: "InterviewBit-Math"
date:   2016-07-03 08:43:59
author: Gaurav Pande
categories: Programming
cover: "/assets/interviewbit.jpg"
tag: Interviewbit
---

**Question**:
A robot is located at the top-left corner of an A x B grid (marked 'Start' in the diagram below).

<img src="{{ site.baseurl }}/assets/3eaivQ5.png" title="grid" class="grid">

The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).

How many possible unique paths are there?

Note: A and B will be such that the resulting answer fits in a 32 bit signed integer.

Example :

Input : A = 2, B = 2
Output : 2

2 possible routes : (0, 0) -> (0, 1) -> (1, 1)
              OR  : (0, 0) -> (1, 0) -> (1, 1)

**Solution**:

This is one of the very good question. There are two methods to do this question:

Method1-*Dyanamic Programming*

 * If the matrix is 1Xn ot mX1, than the number of unique path will be 1.
 * There are only 2 directions you can go. Either go down or go right.
 * So you divide the problem in subproblems. if you are at a[m,n] and you go one down, than you are to find
   unique paths from a[m-1,n]. Or if you go one right than you will have to find unique paths from a[m,n-1].
 * Run this recursively.

Method2- *Using Combinations*.

 * If you are 0,0 and you have to reach m,n in a matrix of order of m,n.
 * You have to go n-1 steps right and m-1 steps down, that is sure. However it depends first you go 2 steps right than 2 down
   and than remaining n-3 steps right and m-3 steps down.
 * So total number of paths will be m+n-2.
 * How many ways you can choose n-1 paths from m+n-2. It will be C(m+n-2,n-1).
 * Remaining paths: (m+n-2)-(n-1)=m-1.
 * from these m-1 paths, no of ways you can choose m-1 paths is C(m-1,m-1) = 1.
 * Hence total unique paths will be C(m+n-2,n-1) OR C(m+n-2,m-1).

Method1(DP)

```Language-java

public class Solution {
	public int uniquePaths(int a, int b) {
	    if(a==1||b==1)
	    return 1;

	    return uniquePaths(a-1,b)+ uniquePaths(a,b-1);
	}
}

```

Method2(Using Combination)

```Language-java

public Solution {
 public int uniquePaths(int a, int b) {
        if(a==1||b==1)
        return 1;
        else{
            BigInteger x = fact(a+b-2);
            BigInteger y= fact(a-1);
            BigInteger z= fact(b-1);
            return  (x.divide(y.multiply(z))).intValue();
        }

    }
    public static BigInteger fact(int num) {
        BigInteger fact = BigInteger.valueOf(1);
        for (int i = 1; i <= num; i++)
            fact = fact.multiply(BigInteger.valueOf(i));
        return fact;
   }
}

```


text:
package com.opensymphony.xwork2;

/**
 */
public class VoidResult implements Result {

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        return o instanceof VoidResult;
    }

    public void execute(ActionInvocation invocation) throws Exception {
    }

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