text:
'use strict';

exports.__esModule = true;

var _component = require('./component');

var _component2 = _interopRequireDefault(_component);

var _dom = require('./utils/dom.js');

var Dom = _interopRequireWildcard(_dom);

var _events = require('./utils/events.js');

var Events = _interopRequireWildcard(_events);

var _fn = require('./utils/fn.js');

var Fn = _interopRequireWildcard(_fn);

var _log = require('./utils/log.js');

var _log2 = _interopRequireDefault(_log);

var _document = require('global/document');

var _document2 = _interopRequireDefault(_document);

var _obj = require('./utils/obj');

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
                                                                                * @file button.js
                                                                                */

/**
 * Clickable Component which is clickable or keyboard actionable,
 * but is not a native HTML button.
 *
 * @extends Component
 */
var ClickableComponent = function (_Component) {
  _inherits(ClickableComponent, _Component);

  /**
   * Creates an instance of this class.
   *
   * @param  {Player} player
   *         The `Player` that this class should be attached to.
   *
   * @param  {Object} [options]
   *         The key/value store of player options.
   */
  function ClickableComponent(player, options) {
    _classCallCheck(this, ClickableComponent);

    var _this = _possibleConstructorReturn(this, _Component.call(this, player, options));

    _this.emitTapEvents();

    _this.enable();
    return _this;
  }

  /**
   * Create the `Component`s DOM element.
   *
   * @param {string} [tag=div]
   *        The element's node type.
   *
   * @param {Object} [props={}]
   *        An object of properties that should be set on the element.
   *
   * @param {Object} [attributes={}]
   *        An object of attributes that should be set on the element.
   *
   * @return {Element}
   *         The element that gets created.
   */

  ClickableComponent.prototype.createEl = function createEl() {
    var tag = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'div';
    var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
    var attributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

    props = (0, _obj.assign)({
      className: this.buildCSSClass(),
      tabIndex: 0
    }, props);

    if (tag === 'button') {
      _log2['default'].error('Creating a ClickableComponent with an HTML element of ' + tag + ' is not supported; use a Button instead.');
    }

    // Add ARIA attributes for clickable element which is not a native HTML button
    attributes = (0, _obj.assign)({
      'role': 'button',

      // let the screen reader user know that the text of the element may change
      'aria-live': 'polite'
    }, attributes);

    this.tabIndex_ = props.tabIndex;

    var el = _Component.prototype.createEl.call(this, tag, props, attributes);

    this.createControlTextEl(el);

    return el;
  };

  /**
   * Create a control text element on this `Component`
   *
   * @param {Element} [el]
   *        Parent element for the control text.
   *
   * @return {Element}
   *         The control text element that gets created.
   */

  ClickableComponent.prototype.createControlTextEl = function createControlTextEl(el) {
    this.controlTextEl_ = Dom.createEl('span', {
      className: 'vjs-control-text'
    });

    if (el) {
      el.appendChild(this.controlTextEl_);
    }

    this.controlText(this.controlText_, el);

    return this.controlTextEl_;
  };

  /**
   * Get or set the localize text to use for the controls on the `Component`.
   *
   * @param {string} [text]
   *        Control text for element.
   *
   * @param {Element} [el=this.el()]
   *        Element to set the title on.
   *
   * @return {string|ClickableComponent}
   *         - The control text when getting
   *         - Returns itself when setting; method can be chained.
   */

  ClickableComponent.prototype.controlText = function controlText(text) {
    var el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.el();

    if (!text) {
      return this.controlText_ || 'Need Text';
    }

    var localizedText = this.localize(text);

    this.controlText_ = text;
    this.controlTextEl_.innerHTML = localizedText;
    el.setAttribute('title', localizedText);

    return this;
  };

  /**
   * Builds the default DOM `className`.
   *
   * @return {string}
   *         The DOM `className` for this object.
   */

  ClickableComponent.prototype.buildCSSClass = function buildCSSClass() {
    return 'vjs-control vjs-button ' + _Component.prototype.buildCSSClass.call(this);
  };

  /**
   * Enable this `Component`s element.
   *
   * @return {ClickableComponent}
   *         Returns itself; method can be chained.
   */

  ClickableComponent.prototype.enable = function enable() {
    this.removeClass('vjs-disabled');
    this.el_.setAttribute('aria-disabled', 'false');
    if (typeof this.tabIndex_ !== 'undefined') {
      this.el_.setAttribute('tabIndex', this.tabIndex_);
    }
    this.on('tap', this.handleClick);
    this.on('click', this.handleClick);
    this.on('focus', this.handleFocus);
    this.on('blur', this.handleBlur);
    return this;
  };

  /**
   * Disable this `Component`s element.
   *
   * @return {ClickableComponent}
   *         Returns itself; method can be chained.
   */

  ClickableComponent.prototype.disable = function disable() {
    this.addClass('vjs-disabled');
    this.el_.setAttribute('aria-disabled', 'true');
    if (typeof this.tabIndex_ !== 'undefined') {
      this.el_.removeAttribute('tabIndex');
    }
    this.off('tap', this.handleClick);
    this.off('click', this.handleClick);
    this.off('focus', this.handleFocus);
    this.off('blur', this.handleBlur);
    return this;
  };

  /**
   * This gets called when a `ClickableComponent` gets:
   * - Clicked (via the `click` event, listening starts in the constructor)
   * - Tapped (via the `tap` event, listening starts in the constructor)
   * - The following things happen in order:
   *   1. {@link ClickableComponent#handleFocus} is called via a `focus` event on the
   *      `ClickableComponent`.
   *   2. {@link ClickableComponent#handleFocus} adds a listener for `keydown` on using
   *      {@link ClickableComponent#handleKeyPress}.
   *   3. `ClickableComponent` has not had a `blur` event (`blur` means that focus was lost). The user presses
   *      the space or enter key.
   *   4. {@link ClickableComponent#handleKeyPress} calls this function with the `keydown`
   *      event as a parameter.
   *
   * @param {EventTarget~Event} event
   *        The `keydown`, `tap`, or `click` event that caused this function to be
   *        called.
   *
   * @listens tap
   * @listens click
   * @abstract
   */

  ClickableComponent.prototype.handleClick = function handleClick(event) {};

  /**
   * This gets called when a `ClickableComponent` gains focus via a `focus` event.
   * Turns on listening for `keydown` events. When they happen it
   * calls `this.handleKeyPress`.
   *
   * @param {EventTarget~Event} event
   *        The `focus` event that caused this function to be called.
   *
   * @listens focus
   */

  ClickableComponent.prototype.handleFocus = function handleFocus(event) {
    Events.on(_document2['default'], 'keydown', Fn.bind(this, this.handleKeyPress));
  };

  /**
   * Called when this ClickableComponent has focus and a key gets pressed down. By
   * default it will call `this.handleClick` when the key is space or enter.
   *
   * @param {EventTarget~Event} event
   *        The `keydown` event that caused this function to be called.
   *
   * @listens keydown
   */

  ClickableComponent.prototype.handleKeyPress = function handleKeyPress(event) {

    // Support Space (32) or Enter (13) key operation to fire a click event
    if (event.which === 32 || event.which === 13) {
      event.preventDefault();
      this.handleClick(event);
    } else if (_Component.prototype.handleKeyPress) {

      // Pass keypress handling up for unsupported keys
      _Component.prototype.handleKeyPress.call(this, event);
    }
  };

  /**
   * Called when a `ClickableComponent` loses focus. Turns off the listener for
   * `keydown` events. Which Stops `this.handleKeyPress` from getting called.
   *
   * @param {EventTarget~Event} event
   *        The `blur` event that caused this function to be called.
   *
   * @listens blur
   */

  ClickableComponent.prototype.handleBlur = function handleBlur(event) {
    Events.off(_document2['default'], 'keydown', Fn.bind(this, this.handleKeyPress));
  };

  return ClickableComponent;
}(_component2['default']);

_component2['default'].registerComponent('ClickableComponent', ClickableComponent);
exports['default'] = ClickableComponent;


text:
using namespace std;

void run(plugin_pipe p, string name)
{
	QSettings settings(QSettings::IniFormat, QSettings::UserScope, "The Addams Family", "Lirch");
	p.write(done_message::create(name));
}

redpajama_set_name: RedPajamaGithub


text:
class PermissionContextUmaUtil {
 public:
  static void PermissionGranted(ContentSettingsType permission);
  static void PermissionDenied(ContentSettingsType permission);
  static void PermissionDismissed(ContentSettingsType permission);
  static void PermissionIgnored(ContentSettingsType permission);
  static void PermissionRequested(ContentSettingsType permission);

 private:
  DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil);
};

#endif  // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_


text:
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;

namespace RHttpServer.Default
{
    /// <summary>
    ///     Renderer for pages using ecs tags ("ecs files")
    /// </summary>
    internal sealed class EcsPageRenderer : RPlugin, IPageRenderer
    {
        private static readonly Regex NormalTagRegex = new Regex(@"(?i)<% ?[a-z_][a-z_0-9]* ?%>", RegexOptions.Compiled);
        private static readonly Regex HtmlTagRegex = new Regex(@"(?i)<%= ?[a-z_][a-z_0-9]* ?=%>", RegexOptions.Compiled);

        private static readonly Regex FileTagRegex =
            new Regex(@"(?i)<¤ ?([a-z]:|.)?[.\\\/\w]+.(html|ecs|js|css|txt) ?¤>", RegexOptions.Compiled);

        private readonly ConcurrentDictionary<string, string> _renderCache = new ConcurrentDictionary<string, string>();

        private static string InternalRenderNoCacheRec(StringBuilder pageContent, RenderParams parameters)
        {
            var doneHashset = new HashSet<string>();
            if (parameters != null)
            {
                var pmatches = NormalTagRegex.Matches(pageContent.ToString());
                foreach (Match pmatch in pmatches)
                {
                    if (doneHashset.Contains(pmatch.Value)) continue;
                    var m = pmatch.Value.Trim('<', '>', '%', ' ');
                    var t = parameters[m];
                    if (t == null) continue;
                    pageContent.Replace(pmatch.Value, t);
                    doneHashset.Add(pmatch.Value);
                }
                pmatches = HtmlTagRegex.Matches(pageContent.ToString());
                foreach (Match pmatch in pmatches)
                {
                    if (doneHashset.Contains(pmatch.Value)) continue;
                    var m = pmatch.Value.Trim('<', '>', '%', '=', ' ');
                    var t = parameters[m];
                    if (string.IsNullOrEmpty(t)) continue;
                    pageContent.Replace(pmatch.Value, HttpUtility.HtmlEncode(t));
                    doneHashset.Add(pmatch.Value);
                }
            }

            var matches = FileTagRegex.Matches(pageContent.ToString());
            foreach (Match match in matches)
            {
                if (doneHashset.Contains(match.Value)) continue;
                var m = match.Value.Trim('<', '>', '¤', ' ');
                StringBuilder rfile;
                if (File.Exists(m))
                    rfile = new StringBuilder(File.ReadAllText(m));
                else
                    continue;

                pageContent.Replace(match.Value,
                    Path.GetExtension(m) == ".ecs"
                        ? InternalRenderNoCacheRec(rfile, parameters)
                        : rfile.ToString());
                doneHashset.Add(match.Value);
            }
            return pageContent.ToString();
        }

        private static void InternalRenderFileOnly(StringBuilder sb)
        {
            var doneHashset = new HashSet<string>();
            var matches = FileTagRegex.Matches(sb.ToString());
            foreach (Match match in matches)
            {
                if (doneHashset.Contains(match.Value)) continue;
                var m = match.Value.Trim('<', '>', '¤', ' ');
                if (!File.Exists(m))
                    continue;
                var rfile = new StringBuilder(File.ReadAllText(m));
                if (Path.GetExtension(m) == ".ecs")
                    InternalRenderFileOnly(rfile);

                sb.Replace(match.Value, rfile.ToString());
                doneHashset.Add(match.Value);
            }
        }

        private static string InternalRenderLite(StringBuilder sb, RenderParams parameters)
        {
            var doneHashset = new HashSet<string>();
            if (parameters == null) return sb.ToString();
            var pmatches = NormalTagRegex.Matches(sb.ToString());
            foreach (Match pmatch in pmatches)
            {
                if (doneHashset.Contains(pmatch.Value)) continue;
                var m = pmatch.Value.Trim('<', '>', '%', ' ');
                var t = parameters[m];
                if (t == null) continue;
                sb.Replace(pmatch.Value, t);
                doneHashset.Add(pmatch.Value);
            }
            pmatches = HtmlTagRegex.Matches(sb.ToString());
            foreach (Match pmatch in pmatches)
            {
                if (doneHashset.Contains(pmatch.Value)) continue;
                var m = pmatch.Value.Trim('<', '>', '%', '=', ' ');
                var t = parameters[m];
                if (string.IsNullOrEmpty(t)) continue;
                sb.Replace(pmatch.Value, HttpUtility.HtmlEncode(t));
                doneHashset.Add(pmatch.Value);
            }
            return sb.ToString();
        }

        /// <summary>
        ///     Whether the raw file should be cached to avoid file IO overhead
        /// </summary>
        public bool CachePages { get; set; }

        /// <summary>
        ///     Renders the ecs file at the given path
        /// </summary>
        /// <param name="filepath">ecs file path</param>
        /// <param name="parameters">Rendering parameter</param>
        /// <returns></returns>
        public string Render(string filepath, RenderParams parameters)
        {
            if (Path.GetExtension(filepath) != ".ecs")
                throw new RHttpServerException("Please use .ecs files for rendering");
            string cached;

            if (CachePages && _renderCache.TryGetValue(filepath, out cached))
                return InternalRenderLite(new StringBuilder(cached), parameters);
            var sb = new StringBuilder(File.ReadAllText(filepath));
            if (!CachePages)
                return InternalRenderNoCacheRec(sb, parameters);
            InternalRenderFileOnly(sb);
            _renderCache.TryAdd(filepath, sb.ToString());
            return InternalRenderLite(sb, parameters);
        }
    }
}


text:
import java.io.*;
import java.util.*;

public class Day6 {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int n = s.nextInt();
        s.nextLine();// to consume the \n character when reading a String after an Int
        for (int i = 0; i < n; i++){
        	String input = s.nextLine();
        	char[] ch = input.toCharArray();//converting string into char array
        	int size = input.length();//length() returns length of a string
        	//System.out.println("String converted to char array: " + Arrays.toString(charArr)); // printing char array as string
        	for (int j = 0; j < size; j++) {
        		System.out.print(ch[j]);
        		++j;
        	}
        	System.out.print(" ");
        	for (int k = 1; k < size; k++) {
        		System.out.print(ch[k]);
        		++k;
        	}
        	System.out.println();
        }

    }
}


text:
package com.xiaoshangxing.Private.QCW.plan;

import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

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

import com.xiaoshangxing.R;
import util.ImageTools;
import util.RoundedCornerImageView;

/**
 * Created by quchwe on 2016/5/17 0017.
 */
public class FavoritePlanActivity extends AppCompatActivity implements View.OnClickListener{
    private ListView rewardList;
    private RelativeLayout commentLinear;
    private PopupWindow mMorePopupWindow;
    private int mShowMorePopupWindowWidth;
    private int mShowMorePopupWindowHeight;
    private  PopupWindow fabuPop = null;
    private List<PlanList> rewardListTexts = new ArrayList<>();
    private Button back;
    private TextView textTile;
    private ImageButton btn_more;
    private EditText commentEdit;
    private Button commentButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_favorite_plan);
        initView();

        TestAdapter adapter = new TestAdapter(this, rewardListTexts);

        rewardList.setAdapter(adapter);

        rewardList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
//                Toast.makeText(SchoolRewardActivity.this,"您好",Toast.LENGTH_SHORT).show();
            }
        });

    }

    private void initView() {
        rewardList = (ListView) findViewById(R.id.lv_reward_list);
        commentLinear = (RelativeLayout) findViewById(R.id.commentLinear);

        Bitmap[] bitmaps = new Bitmap[3];
        String[] name = new String[3];
        String[] academy = new String[3];
        String[] time = new String[3];
        String[] info = new String[3];
        String[] price = new String[3];

        bitmaps[1] = ImageTools.drawableToBitmap(getResources().getDrawable(R.mipmap.liusuo));
        bitmaps[2] = ImageTools.drawableToBitmap(getResources().getDrawable(R.mipmap.sunluyang));
        bitmaps[0] = ImageTools.drawableToBitmap(getResources().getDrawable(R.mipmap.xuying1));
        name[2] = "王振华";
        name[1] = "刘硕";
        name[0] = "徐莹";

        academy[0] = "设计学院";
        academy[1] = "设计学院";
        academy[2] = "设计学院";

        time[0] = "20分钟前";
        time[1] = "昨天 9:36";
        time[2] = "昨天 9:16";

        info[0] = "周五晚组织十八湾烧烤,南门晚9点准时集合哦,过时不候,我能想到最浪漫的事就是和你一起吹着风吃吃吃!!记得带上人和钱!";
        info[1] = "体育馆羽毛球约起!自备球拍哦~双打,缺二";
        info[2] = "计划每天七点左右到西北操场跑步,有没有一起早起锻炼的,很练毅力的,在线等!";

        price[0] = "不限人数";
        price[1] = "0-2人";
        price[2] = "0-2人";
        for (int i = 0; i < 2; i++) {
            PlanList rewardListText = new PlanList();
            rewardListText.setRenshu(price[2]);
            rewardListText.setAcademy(academy[i]);
            rewardListText.setBitmap(bitmaps[i]);
            rewardListText.setName(name[i]);
            rewardListText.setTime(time[1]);
            rewardListText.setText(info[i]);
            rewardListTexts.add(rewardListText);
        }

        back = (Button) findViewById(R.id.back);
        back.setText("返回");

        back.setOnClickListener(this);
        textTile = (TextView) findViewById(R.id.textTile);
        textTile.setOnClickListener(this);
        textTile.setText("收藏");

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.btn_more:
                break;
            case R.id.commentButton:
                break;
        }
    }

//    private void submit() {
//        // validate
//        String commentEdit = commentEdit.getText().toString().trim();
//        if (TextUtils.isEmpty(commentEdit)) {
//            Toast.makeText(this, "评论", Toast.LENGTH_SHORT).show();
//            return;
//        }

//        // TODO validate success, do something
//
//
//    }

    public class TestAdapter extends BaseAdapter {
        private Context mContext;
        private List<PlanList> list_result;
        ViewHolder vh = null;

        public TestAdapter(Context mContext, List<PlanList> list_result) {
            super();
            this.mContext = mContext;
            this.list_result = list_result;
        }

        @Override
        public int getCount() {
            return list_result.size();
        }

        @Override
        public Object getItem(int position) {
            return list_result.get(position);
        }

        @Override
        public long getItemId(int position) {
            return position;
        }

        @Override
        public View getView(final int position, View convertView, ViewGroup parent) {
            PlanList p = list_result.get(position);
            String proName = null;
            if (convertView == null) {
                convertView = LayoutInflater.from(mContext).inflate(R.layout.list_plan_faqi, null);
                vh = new ViewHolder();
                vh.headImage = (RoundedCornerImageView) convertView.findViewById(R.id.iv_headImage);
                vh.name = (TextView) convertView.findViewById(R.id.tv_reward_name);
                vh.time = (TextView) convertView.findViewById(R.id.tv_list_plan_time);
                vh.academy = (TextView) convertView.findViewById(R.id.tv_plan_list_academy);
                vh.info = (TextView) convertView.findViewById(R.id.tv_reward_info);
                vh.renshu = (TextView)convertView.findViewById(R.id.tv_list_plan_renshu) ;
                vh.showComment = (ImageButton) convertView.findViewById(R.id.ib_reward_comment);
                vh.downArrow = (ImageButton) convertView.findViewById(R.id.ib_reward_downArrow);
                vh.showComment.setTag(position);
                convertView.setTag(vh);
            } else {
                vh = (ViewHolder) convertView.getTag();
            }

            vh.headImage.setImageBitmap(p.getBitmap());
            vh.name.setText(p.getName());
            vh.time.setText(p.getTime());
            vh.academy.setText(p.getAcademy());
            vh.renshu.setText(p.getRenshu());
            vh.info.setText(p.getText());
            vh.downArrow.setFocusable(false);
            vh.downArrow.setVisibility(View.GONE);
            vh.downArrow.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {

                }
            });
            vh.showComment.setFocusable(false);
            vh.showComment.setVisibility(View.GONE);

//            if (result.getList_image_msg() != null) {
//
//                if (result.getList_image_msg().size() == 1) {
//                    vh.show_image.setVisibility(View.GONE);
//                    vh.one_image.setVisibility(View.VISIBLE);
//                    vh.one_image.setImageResource(result.getList_image_msg().get(0));
//                } else {
//                    vh.one_image.setVisibility(View.GONE);
//                    vh.show_image.setVisibility(View.VISIBLE);
//                    ImageAdapter imageAdapter = new ImageAdapter(mContext, result.getList_image_msg());
//                    vh.show_image.setAdapter(imageAdapter);
//                }
//
//            } else {
//                vh.show_image.setVisibility(View.GONE);
//            }
//
//            if (result.isShow() == false) {
//                System.out.println("=========" + 0);
//                vh.show_dainzan_buju.setVisibility(View.GONE);
//            } else {
//                System.out.println("=========" + 1);
//                vh.show_dainzan_buju.setVisibility(View.VISIBLE);
//                vh.line.setVisibility(View.VISIBLE);
//                vh.show_dianzan_msg.setText(result.getCheck().substring(0, result.getCheck().length() - 1));
//            }
//            if (result.getPinglunCheck().equals("0")) {
//                System.out.println("=========" + 0);
//                vh.replyList.setVisibility(View.GONE);
//            } else {
//                pingLunAdapter = new PingLunAdapter(SchoolRewardActivity.this, result.getList_pinglun_msg());
//                vh.replyList.setAdapter(pingLunAdapter);
//                System.out.println("=========" + 1);
//                vh.replyList.setVisibility(View.VISIBLE);
//            }
//            /**
//             *
//             */
//            vh.replyList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
//
//                @Override
//                public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
//                    index_pos_huifu = arg2;
//                    index_pos_huifu_pos = position;
//                    isReply = true;
//                    commentLinear.setVisibility(View.VISIBLE);
//                    onFocusChange(false);
//
//                }
//            });
//            vh.down_arrow.setOnClickListener(new View.OnClickListener() {
//                @Override
//                public void onClick(View v) {
//                    showCustomDia();
//                }
//            });
//
//            vh.pinglun.setOnClickListener(new View.OnClickListener() {
//                @Override
//                public void onClick(View view) {
//                    showMore(view);
//                    Log.d("呵呵", "呵呵");
//                }
//            });
//            vh.show_msg_zan.setOnClickListener(new View.OnClickListener() {
//
//                @Override
//                public void onClick(View v) {
//
//                    TestModel testModel = new TestModel();
//                    testModel.setName(list_result.get(position).getName());
//                    testModel.setShow(true);
//                    testModel.setPinglunCheck(list_result.get(position).getPinglunCheck());
//                    testModel.setCheck(list_result.get(position).getCheck() + "你好");
//                    testModel.setList_image_msg(list_result.get(position).getList_image_msg());
//                    testModel.setList_pinglun_msg(list_result.get(position).getList_pinglun_msg());
//                    list_result.set(position, testModel);
//
//                    listAdapter.notifyDataSetChanged();
//                }
//            });
//
//            /**
//             *
//             */
//            vh.show_pinglun.setOnClickListener(new View.OnClickListener() {
//
//                @Override
//                public void onClick(View v) {
//                    index_pos = position;
//                    isReply = false;
//                    commentLinear.setVisibility(View.VISIBLE);
//                    onFocusChange(true);
//                }
//            });

            return convertView;
        }

        class ViewHolder {

            RoundedCornerImageView headImage;
            TextView name;
            TextView academy;
            TextView time;
            TextView info;
            TextView renshu;
            ImageButton downArrow;
            ImageButton showComment;

        }

    }
    private boolean isEditEmply() {
        String comment = commentEdit.getText().toString().trim();
        if (comment.equals("")) {
            Toast.makeText(getApplicationContext(), "输入为空", Toast.LENGTH_SHORT).show();
            return false;
        }
        commentEdit.setText("");
        return true;
    }

    /**
     *
     */

}


text:
.. UberCarrot documentation master file, created by
   sphinx-quickstart on Wed Dec 09 17:08:06 2015.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to UberCarrot
=====================

UberCarrot is created from two different parts:

* The UberCarrot main project itself, which is primarily a :term:`CasparCG` client that allows a user to use CasparCG as a graphics machine. Read more about that in :doc:`intro`.
* The backend to UberCarrot, a python module called :py:mod:`CasparTalk`. This provides a rough Python wrapper around the AMCP commands used by CasparCG, as well as a user- and developer- friendly way of implementing them. Read more at :doc:`m_CasparTalk`.

Contents:

..  toctree::
    :maxdepth: 20

    intro
    features
    m_CasparTalk
    glossary

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`


text:
<?php

/**
 * @file
 * Contains \Drupal\migrate_drupal\Tests\d6\MigrateUploadEntityDisplayTest.
 */

namespace Drupal\migrate_drupal\Tests\d6;

use Drupal\migrate\MigrateExecutable;
use Drupal\migrate_drupal\Tests\MigrateDrupalTestBase;

/**
 * Upload entity display.
 *
 * @group migrate_drupal
 */
class MigrateUploadEntityDisplayTest extends MigrateDrupalTestBase {

  /**
   * The modules to be enabled during the test.
   *
   * @var array
   */
  static $modules = array('node', 'file');

  /**
   * {@inheritdoc}
   */
  protected function setUp() {
    parent::setUp();

    entity_create('node_type', array('type' => 'article'))->save();
    entity_create('node_type', array('type' => 'story'))->save();
    entity_create('node_type', array('type' => 'page'))->save();

    $id_mappings = array(
      'd6_upload_field_instance' => array(
        array(array(1), array('node', 'page', 'upload')),
      ),
    );
    $this->prepareMigrations($id_mappings);

    $migration = entity_load('migration', 'd6_upload_entity_display');
    $dumps = array(
      $this->getDumpDirectory() . '/Drupal6UploadInstance.php',
    );
    $this->prepare($migration, $dumps);
    $executable = new MigrateExecutable($migration, $this);
    $executable->import();
  }

  /**
   * Tests the Drupal 6 upload settings to Drupal 8 entity display migration.
   */
  public function testUploadEntityDisplay() {
    $display = entity_get_display('node', 'page', 'default');
    $component = $display->getComponent('upload');
    $this->assertEqual($component['type'], 'file_default');

    $display = entity_get_display('node', 'story', 'default');
    $component = $display->getComponent('upload');
    $this->assertEqual($component['type'], 'file_default');

    // Assure this doesn't exist.
    $display = entity_get_display('node', 'article', 'default');
    $component = $display->getComponent('upload');
    $this->assertTrue(is_null($component));

    $this->assertEqual(array('node', 'page', 'default', 'upload'), entity_load('migration', 'd6_upload_entity_display')->getIdMap()->lookupDestinationID(array('page')));
  }

}


text:
import { browser, by, element } from 'protractor';

export class CashFlowPage {
  navigateTo() {
    return browser.get('/');
  }

  getParagraphText() {
    return element(by.css('cf-root h1')).getText();
  }
}


text:
package org.uberfire.backend.server.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.inject.Named;

import org.jboss.errai.bus.server.annotations.Service;
import org.uberfire.backend.repositories.Repository;
import org.uberfire.backend.repositories.RepositoryService;
import org.uberfire.io.IOService;
import org.uberfire.shared.repository.NewRepositoryInfo;
import org.uberfire.shared.repository.RepositoryAlreadyExists;
import org.uberfire.shared.repository.RepositoryAppService;
import org.uberfire.shared.repository.RepositoryInfo;

@Service
@ApplicationScoped
public class RepositoryAppServiceImpl implements RepositoryAppService {

    @Inject
    @Named("ioStrategy")
    private IOService ioService;

    @Inject
    private UserActionsService userServices;

    @Inject
    private RepositoryService repositoryService;

    @Inject
    private Event<NewRepositoryInfo> newRepositoryInfoEvent;

    @Override
    public List<RepositoryInfo> getUserRepositories( String userName ) {
        return userServices.getRepoList( userName );
    }

    @Override
    public RepositoryInfo createRepository( final String owner,
                                            final String name,
                                            final String description,
                                            final boolean init ) {
        if ( repositoryService.getRepository( name ) != null ) {
            throw new RepositoryAlreadyExists( name );
        }

        final Repository newRepository = repositoryService.createRepository( "git", name, new HashMap<String, Object>() {{
            put( "owner", owner );
            put( "desc", description );
            put( "init", init );
        }} );

        final RepositoryInfo repositoryInfo = new RepositoryInfo( owner, name, description, newRepository.getPublicURIs().get( 0 ).getURI() );

        userServices.store( owner, repositoryInfo );

        newRepositoryInfoEvent.fire( new NewRepositoryInfo( repositoryInfo ) );

        userServices.storeLastContrib( owner, repositoryInfo );

        return repositoryInfo;
    }

    @Override
    public RepositoryInfo mirrorRepository( final String owner,
                                            final String name,
                                            final String description,
                                            final String origin ) {
        if ( repositoryService.getRepository( name ) != null ) {
            throw new RepositoryAlreadyExists( name );
        }

        final Repository newRepository = repositoryService.createRepository( "git", name, new HashMap<String, Object>() {{
            put( "owner", owner );
            put( "origin", origin );
            put( "desc", description );
        }} );

        final RepositoryInfo repositoryInfo = new RepositoryInfo( owner, name, description, newRepository.getPublicURIs().get( 0 ).getURI(), origin );

        userServices.store( owner, repositoryInfo );

        newRepositoryInfoEvent.fire( new NewRepositoryInfo( repositoryInfo ) );

        userServices.storeLastContrib( owner, repositoryInfo );

        return repositoryInfo;
    }

    @Override
    public RepositoryInfo getRepositoryInfo( final String name ) {
        final Repository repository = repositoryService.getRepository( name );

        final String origin = repository.getEnvironment().get( "origin" ) != null ? repository.getEnvironment().get( "origin" ).toString() : "";

        return new RepositoryInfo( repository.getEnvironment().get( "owner" ).toString(), name, repository.getEnvironment().get( "desc" ).toString(), repository.getPublicURIs().get( 0 ).getURI(), origin, repository.getRoot() );
    }

    @Override
    public boolean repositoryAlreadyExists( String name ) {
        return repositoryService.getRepository( name ) != null;
    }

    @Override
    public List<RepositoryInfo> getAllRepositories() {
        final List<RepositoryInfo> result = new ArrayList<RepositoryInfo>();
        for ( final Repository repository : repositoryService.getRepositories() ) {
            final String origin = repository.getEnvironment().get( "origin" ) != null ? repository.getEnvironment().get( "origin" ).toString() : "";
            result.add( new RepositoryInfo( repository.getEnvironment().get( "owner" ).toString(), repository.getAlias(), repository.getEnvironment().get( "desc" ).toString(), repository.getPublicURIs().get( 0 ).getURI(), origin, repository.getRoot() ) );
        }

        return result;
    }

}


text:
namespace Telefonbuch.Areas.HelpPage.ModelDescriptions
{
    public class SimpleTypeModelDescription : ModelDescription
    {
    }
}