text:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@android:color/transparent">

    <ImageView
        android:id="@+id/iv_header_bg"
        android:layout_width="match_parent"
        android:layout_height="330dp"
        android:scaleType="fitXY"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="330dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:orientation="vertical"
        android:paddingBottom="20dp"
        android:paddingLeft="20dp"
        android:paddingTop="95dp">

        <LinearLayout
            android:id="@+id/ll_movie_header"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/iv_movie_photo"
                android:layout_width="@dimen/movie_detail_width"
                android:layout_height="@dimen/movie_detail_height"
                android:layout_marginRight="15dp"
                android:scaleType="fitXY"
                android:transitionName="@string/transition_movie_img"/>

            <!--评分-->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:layout_marginRight="12dp"
                android:orientation="vertical">

                <RelativeLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content">

                    <LinearLayout
                        android:id="@+id/ll_rating"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal">

                        <TextView
                            android:id="@+id/tv_movie_rating_rate"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:ellipsize="end"
                            android:text="评分:"
                            android:textColor="@color/colorRateRed"/>

                        <TextView
                            android:id="@+id/tv_movie_rating_number"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginLeft="3dp"
                            android:ellipsize="end"
                            android:lines="1"
                            android:textColor="@color/colorRateRed"/>
                    </LinearLayout>

                    <LinearLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="3dp"
                        android:layout_toRightOf="@id/ll_rating"
                        android:orientation="horizontal">

                        <TextView
                            android:id="@+id/tv_collect_count"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="@color/colorWhite"/>

                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text=" 人评分"
                            android:textColor="@color/colorWhite"/>
                    </LinearLayout>
                </RelativeLayout>

                <!--导演-->
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="2dp"
                    android:layout_marginTop="2dp"
                    android:orientation="horizontal">

                    <LinearLayout
                        android:layout_width="43dp"
                        android:layout_height="wrap_content"
                        android:orientation="vertical">

                        <TextView
                            android:layout_width="match_parent"
                            android:layout_height="wrap_content"
                            android:text="导演:"
                            android:textColor="@color/colorWhite"/>

                        <View
                            android:layout_width="28dp"
                            android:layout_height="2dp"
                            android:layout_marginTop="2dp"
                            android:background="?attr/colorPrimary"/>

                    </LinearLayout>

                    <TextView
                        android:id="@+id/tv_movie_directors"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="3dp"
                        android:ellipsize="end"
                        android:textColor="@color/colorWhite"/>
                </LinearLayout>

                <!--主演-->
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_marginBottom="2dp"
                    android:layout_marginTop="2dp"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="主演:"
                        android:textColor="@color/colorWhite"/>

                    <TextView
                        android:id="@+id/tv_movie_casts"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="3dp"
                        android:ellipsize="end"
                        android:textColor="@color/colorWhite"/>
                </LinearLayout>

                <!--类型-->
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_marginBottom="2dp"
                    android:layout_marginTop="2dp"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="类型:"
                        android:textColor="@color/colorWhite"/>

                    <TextView
                        android:id="@+id/tv_movie_genres"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="3dp"
                        android:ellipsize="end"
                        android:textColor="@color/colorWhite"/>
                </LinearLayout>

                <!--上映日期-->
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_marginBottom="2dp"
                    android:layout_marginTop="2dp"
                    android:orientation="horizontal">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:ellipsize="end"
                        android:text="上映日期:"
                        android:textColor="@color/colorWhite"/>

                    <TextView
                        android:id="@+id/tv_movie_date"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="3dp"
                        android:ellipsize="end"
                        android:textColor="@color/colorWhite"/>
                </LinearLayout>

                <!--制片国家/地区-->
                <TextView
                    android:id="@+id/tv_movie_city"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="2dp"
                    android:layout_marginTop="2dp"
                    android:ellipsize="end"
                    android:lines="2"
                    android:text="制片国家/地区:"
                    android:textColor="@color/colorWhite"/>
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>
</RelativeLayout>


text:
<?php

namespace OpenOrchestra\Backoffice\Tests\Form\Type\Component;

use OpenOrchestra\Backoffice\GeneratePerimeter\Strategy\NodeGeneratePerimeterStrategy;
use OpenOrchestra\BaseBundle\Tests\AbstractTest\AbstractBaseTestCase;
use Phake;
use OpenOrchestra\ModelInterface\Model\NodeInterface;

/**
 * Class NodeGeneratePerimeterStrategyTest
 */
class NodeGeneratePerimeterStrategyTest extends AbstractBaseTestCase
{
    protected $strategy;

    /**
     * Set up the test
     */
    public function setUp()
    {
        $context = Phake::mock('OpenOrchestra\Backoffice\Context\ContextBackOfficeInterface');

        $repository = Phake::mock('OpenOrchestra\ModelInterface\Repository\NodeRepositoryInterface');
        Phake::when($repository)->findTreeNode(Phake::anyParameters())->thenReturn(array(
            array(
                'node' => array(
                    'path' => 'root',
                    'name' => 'Orchestra ?',
                ),
                'child' =>
                array(
                    array(
                        'node' =>
                        array(
                            'path' => 'root/fixture_page_community',
                            'name' => 'Communauté',
                        ),
                        'child' => array(),
                    ),
                    array(
                        'node' =>
                        array(
                            'path' => 'root/fixture_page_news',
                            'name' => 'Actualités',
                        ),
                        'child' => array(),
                    ),
                    array(
                        'node' =>
                        array(
                            'path' => 'root/fixture_page_contact',
                            'name' => 'Contact',
                        ),
                        'child' =>array(),
                    ),
                    array(
                        'node' =>
                        array(
                            'path' => 'root/fixture_page_legal_mentions',
                            'name' => 'Mentions Légales',
                        ),
                        'child' => array(),
                    ),
                    array (
                        'node' =>
                        array (
                            'path' => 'root/fixture_auto_unpublish',
                            'name' => 'Dépublication auto',
                        ),
                        'child' => array(),
                    ),
                ),
            ),
        ));

        $this->strategy = new NodeGeneratePerimeterStrategy($repository, $context);
    }

    /**
     * Test getPerimeterConfiguration
     */
    public function testGetPerimeterConfiguration()
    {
        $result = $this->strategy->getPerimeterConfiguration('siteId');

        $this->assertEquals(array(
            array(
                'root' => array(
                    'path' => 'root',
                    'name' => 'Orchestra ?',
                ),
                'children' =>
                array(
                    array(
                        'root' =>
                        array(
                            'path' => 'root/fixture_page_community',
                            'name' => 'Communauté',
                        )
                    ),
                    array(
                        'root' =>
                        array(
                            'path' => 'root/fixture_page_news',
                            'name' => 'Actualités',
                        )
                    ),
                    array(
                        'root' =>
                        array(
                            'path' => 'root/fixture_page_contact',
                            'name' => 'Contact',
                        )
                    ),
                    array(
                        'root' =>
                        array(
                            'path' => 'root/fixture_page_legal_mentions',
                            'name' => 'Mentions Légales',
                        )
                    ),
                    array (
                        'root' =>
                        array (
                            'path' => 'root/fixture_auto_unpublish',
                            'name' => 'Dépublication auto',
                        )
                    ),
                ),
            )
        ), $result);
    }

    /**
     * Test generatePerimeter
     */
    public function testGeneratePerimeter()
    {
        $result = $this->strategy->generatePerimeter('siteId');
        $this->assertEquals(array(
            'root',
            'root/fixture_page_community',
            'root/fixture_page_news',
            'root/fixture_page_contact',
            'root/fixture_page_legal_mentions',
            'root/fixture_auto_unpublish',
        ), $result);
    }

    /**
     * Test getType
     */
    public function testGetType()
    {
        $result = $this->strategy->getType();
        $this->assertEquals(NodeInterface::ENTITY_TYPE, $result);
    }
}

redpajama_set_name: RedPajamaGithub


text:
'use strict';

require('../../lib/js-yaml');

var Assert = require('assert');
var source = __dirname + '/data/issue-54.yml';

module.exports = require('../helper').issue({
  title: "#54: Incorrect utf-8 handling on require('file.yaml')",
  fixed: true,
  test: function () {
    var data = require(source), expected = '', i;

    //
    // document is an array of 40 elements
    // each element is a string of 100 `у` (Russian letter) chars
    //

    for (i = 0; i <= 100; i++) {
      expected += 'у';
    }

    //
    // make sure none of the strings were corrupted.
    //

    for (i = 0; i < 40; i++) {
      Assert.equal(data[i], expected, 'Line ' + i + ' is corrupted');
    }
  }
});


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SqlServer.Dac.CodeAnalysis;
using Microsoft.SqlServer.Dac.Model;
using Tibre.CodeAnalysisRule.Configuration;

namespace Tibre.CodeAnalysisRule
{
    public abstract class BaseRule : SqlCodeAnalysisRule
    {
        public BaseRule()
        {
            var config = new CodeAnalysisRuleConfiguration();
            Configuration = config.Read();
        }

        protected string GetElementName(SqlRuleExecutionContext ruleExecutionContext, TSqlObject modelElement)
        {
            // Get the element name using the built in DisplayServices. This provides a number of
            // useful formatting options to
            // make a name user-readable
            var displayServices = ruleExecutionContext.SchemaModel.DisplayServices;
            string elementName = displayServices.GetElementName(modelElement, ElementNameStyle.EscapedFullyQualifiedName);
            return elementName;
        }

        internal TibreSection Configuration {get; set;}
    }
}


text:
import { Component, OnInit } from '@angular/core';
import { ICellRendererAngularComp } from 'ag-grid-angular/main';

@Component({
	selector: 'app-boolean-renderer',
	template: `{{params.value.value}}`,
	styleUrls: ['./boolean-renderer.component.css']
})

export class BooleanRendererComponent implements ICellRendererAngularComp {
	private params:any;

	agInit(params:any):void {
		this.params = params;
		this.params.eGridCell.addEventListener('click', (this.onClick).bind(this));
	}

	private onClick($event){
		let startEditingParams = {
									rowIndex:this.params.rowIndex,
									colKey: this.params.colDef.field
									};

		this.params.api.startEditingCell(startEditingParams);
	}
}


text:
package com.clemble.casino.server.player.notification;

import com.clemble.casino.server.event.SystemEvent;

import javax.validation.Valid;

public interface SystemEventListener<T extends SystemEvent>{

    String EXCHANGE = "clemble.system";

    void onEvent(@Valid T event);

    /**
     * Returns name of the channel, this listener is associated with
     * @return name of the channel
     */
    String getChannel();

    /**
     * Naming convension for the Queue is the name of the Channel > + name of the component
     * @return name of the Queue
     */
    String getQueueName();

}


text:
class TopicsController < ApplicationController

  before_action :authenticate_user!, :except => ['show','index','tag','make_private', 'new', 'create', 'up_vote']
  before_action :instantiate_tracker

  layout "clean", only: [:new, :index]

  # GET /topics
  # GET /topics.xml
  def index
    @forum = Forum.ispublic.where(id: params[:forum_id]).first
    if @forum
      if @forum.allow_topic_voting == true
        @topics = @forum.topics.ispublic.by_popularity.page params[:page]
      else
        @topics = @forum.topics.ispublic.chronologic.page params[:page]
      end

      #@feed_link = "<link rel='alternate' type='application/rss+xml' title='RSS' href='#{forum_topics_url}.rss' />"

      @page_title = @forum.name
      @title_tag = "#{Settings.site_name}: #{@page_title}"
      add_breadcrumb t(:community, default: "Community"), forums_path
      add_breadcrumb @forum.name
    end

    respond_to do |format|
      if @forum
        format.html # index.rhtml
        format.xml  { render :xml => @topics.to_xml }
        format.rss
      else
        format.html { redirect_to root_path }
      end
    end
  end

  def tickets

    @topics = current_user.topics.isprivate.undeleted.chronologic.page params[:page]
    @page_title = t(:tickets, default: 'Tickets')
    add_breadcrumb @page_title

    @title_tag = "#{Settings.site_name}: #{@page_title}"

    #@feed_link = "<link rel='alternate' type='application/rss+xml' title='RSS' href='#{forum_topics_url}.rss' />"

    respond_to do |format|
      format.html # index.rhtml
      format.xml  { render :xml => @topics.to_xml }
      format.rss
    end
  end

  def ticket

    @topic = current_user.topics.undeleted.where(id: params[:id]).first
    if @topic
      @posts = @topic.posts.ispublic.chronologic.active.all

      @page_title = "##{@topic.id} #{@topic.name}"
      add_breadcrumb t(:tickets, default: 'Tickets'), tickets_path
      add_breadcrumb @page_title

      @title_tag = "#{Settings.site_name}: #{@page_title}"
    end

    respond_to do |format|
      if @topic
        format.html # index.rhtml
        format.xml  { render :xml => @topics.to_xml }
        format.rss
      else
        format.html { redirect_to root_path}
      end
    end

  end

  # GET /topics/1
  # GET /topics/1.xml
  def show

  end

  # GET /topics/new
  def new

    @page_title = t(:start_discussion, default: "Start a New Discussion")
    add_breadcrumb @page_title
    @title_tag = "#{Settings.site_name}: #{@page_title}"

    @forums = Forum.ispublic.all
    @topic = Topic.new
    @user = @topic.build_user unless user_signed_in?

  end

  # GET /topics/1;edit
  def edit
    @topic = Topic.find(params[:id])
  end

  # POST /topics
  # POST /topics.xml
  def create

    @page_title = t(:start_discussion, default: "Start a New Discussion")
    add_breadcrumb @page_title
    @title_tag = "#{Settings.site_name}: #{@page_title}"

    params[:id].nil? ? @forum = Forum.find(params[:topic][:forum_id]) : @forum = Forum.find(params[:id])
    logger.info(@forum.name)

    @topic = @forum.topics.new(
      name: params[:topic][:name],
      private: params[:topic][:private] )

    unless user_signed_in?

      # User is not signed in, lets see if we can recognize the email address
      @user = User.where(email: params[:topic][:user][:email]).first

      if @user
        logger.info("User found")
        @topic.user_id = @user.id

      else #User not found, lets build it

        @user = @topic.build_user

        @token, enc = Devise.token_generator.generate(User, :reset_password_token)
        @user.reset_password_token = enc
        @user.reset_password_sent_at = Time.now.utc

        @user.name = params[:topic][:user][:name]
        @user.login = params[:topic][:user][:email].split("@")[0]
        @user.email = params[:topic][:user][:email]
        @user.password = User.create_password
        built_user = true
      end

    else
      @user = current_user
      @topic.user_id = @user.id

    end

    if @user.save && @topic.save

      @post = @topic.posts.create(
        :body => params[:post][:body],
        :user_id => @user.id,
        :kind => 'first',
        :screenshots => params[:topic][:screenshots])

      if built_user == true && !user_signed_in?
        UserMailer.new_user(@user, @token).deliver_now
      end

      # track event in GA
      @tracker.event(category: 'Request', action: 'Post', label: 'New Topic')
      @tracker.event(category: 'Agent: Unassigned', action: 'New', label: @topic.to_param)

      if @topic.private?
        redirect_to ticket_path(@topic)
      else
        redirect_to topic_posts_path(@topic)
      end
    else
      render :new
    end

  end

  # PUT /topics/1
  # PUT /topics/1.xml
  def update
    @topic = Topic.find(params[:id])
    @topic.tag_list = params[:tags]
    respond_to do |format|
      if @topic.update_attributes(params[:topic])
        #flash[:notice] = 'Topic was successfully updated.'
        format.html { redirect_to topic_posts_path(@topic) }
        format.xml  { head :ok }
      else
        format.html { render :action => "edit" }
        format.xml  { render :xml => @topic.errors.to_xml }
      end
    end
  end

  # DELETE /topics/1
  # DELETE /topics/1.xml
  def destroy
    @topic = Topic.find(params[:id])
    @topic.posts.each { |post| post.destroy }
    @topic.destroy

    respond_to do |format|
      format.html { redirect_to forum_topics_path(@topic.forum) }
      format.xml  { head :ok }
    end
  end

  def up_vote

    if user_signed_in?
      @topic = Topic.find(params[:id])
      @topic.votes.create(user_id: current_user.id)
      @topic.touch
      @topic.reload
    end
    respond_to do |format|
      format.js
    end

  end

  def tag
    @topics = Topic.ispublic.tag_counts_on(:tags)
  end
end


text:
<proxy xmlns="http://ws.apache.org/ns/synapse" name="urlRewritePrependProtocolTestProxy" transports="https,http" statistics="disable" trace="disable"
       startOnLoad="true">
    <target>
        <inSequence>
            <property name="protocol.prepend" value="ht" scope="default"/>
            <log level="full"/>
            <rewrite>
                <rewriterule>
                    <condition>
                        <equal xmlns="" type="url" source="protocol" value="tp"/>
                    </condition>
                    <action xpath="get-property('protocol.prepend')" type="prepend"
                            fragment="protocol"/>
                </rewriterule>
                <rewriterule>
                    <condition>
                        <equal xmlns="" type="url" source="protocol" value="ttp"/>
                    </condition>
                    <action value="h" type="prepend" fragment="protocol"/>
                </rewriterule>
            </rewrite>
            <log level="full"/>
            <send/>
        </inSequence>
        <outSequence>
            <send/>
        </outSequence>
    </target>
    <description></description>
</proxy>


text:
package convertWord

import (
	"testing"
	"github.com/stretchr/testify/assert"
)

func TestChinesePinyi(t *testing.T) {
	k := NewConvertWord()
	info , err := k.ReadContent("美女")
	if err != nil {
		panic(err)
	}
	assert.Equal(t, info.GetChinesePinyin(), "mei nu ", "they should be equal")
}

func TestGuoyin(t *testing.T) {
	k := NewConvertWord()
	info , err := k.ReadContent("美女")
	if err != nil {
		panic(err)
	}
	assert.Equal(t, info.GetGuoyin(), "mei niu ", "they should be equal")
}

func TestPhonetic(t *testing.T) {
	k := NewConvertWord()
	info , err := k.ReadContent("美女")
	if err != nil {
		panic(err)
	}
	assert.Equal(t, info.GetPhonetic(), "ㄇㄟ ㄋㄩ ", "they should be equal")
}

func TestRomanAlphabet(t *testing.T) {
	k := NewConvertWord()
	info , err := k.ReadContent("美女")
	if err != nil {
		panic(err)
	}
	assert.Equal(t, info.GetRomanAlphabet(), "mei nu ", "they should be equal")
}

func TestUniversalPinyin(t *testing.T) {
	k := NewConvertWord()
	info , err := k.ReadContent("美女")
	if err != nil {
		panic(err)
	}
	assert.Equal(t, info.GetUniversalPinyin(), "mei nyu ", "they should be equal")
}


text:
package testkit

import (
	"context"
	"fmt"
	"strings"
	"testing"

	"github.com/pingcap/errors"
	"github.com/pingcap/tidb/kv"
	"github.com/pingcap/tidb/parser/ast"
	"github.com/pingcap/tidb/parser/terror"
	"github.com/pingcap/tidb/session"
	"github.com/pingcap/tidb/sessionctx/variable"
	"github.com/pingcap/tidb/types"
	"github.com/pingcap/tidb/util/sqlexec"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
	"go.uber.org/atomic"
)

var testKitIDGenerator atomic.Uint64

// TestKit is a utility to run sql test.
type TestKit struct {
	require *require.Assertions
	assert  *assert.Assertions
	t       testing.TB
	store   kv.Storage
	session session.Session
}

// NewTestKit returns a new *TestKit.
func NewTestKit(t testing.TB, store kv.Storage) *TestKit {
	return &TestKit{
		require: require.New(t),
		assert:  assert.New(t),
		t:       t,
		store:   store,
		session: newSession(t, store),
	}
}

// NewTestKitWithSession returns a new *TestKit.
func NewTestKitWithSession(t testing.TB, store kv.Storage, se session.Session) *TestKit {
	return &TestKit{
		require: require.New(t),
		assert:  assert.New(t),
		t:       t,
		store:   store,
		session: se,
	}
}

// RefreshSession set a new session for the testkit
func (tk *TestKit) RefreshSession() {
	tk.session = newSession(tk.t, tk.store)
}

// SetSession set the session of testkit
func (tk *TestKit) SetSession(session session.Session) {
	tk.session = session
}

// Session return the session associated with the testkit
func (tk *TestKit) Session() session.Session {
	return tk.session
}

// MustExec executes a sql statement and asserts nil error.
func (tk *TestKit) MustExec(sql string, args ...interface{}) {
	res, err := tk.Exec(sql, args...)
	comment := fmt.Sprintf("sql:%s, %v, error stack %v", sql, args, errors.ErrorStack(err))
	tk.require.NoError(err, comment)

	if res != nil {
		tk.require.NoError(res.Close())
	}
}

// MustQuery query the statements and returns result rows.
// If expected result is set it asserts the query result equals expected result.
func (tk *TestKit) MustQuery(sql string, args ...interface{}) *Result {
	comment := fmt.Sprintf("sql:%s, args:%v", sql, args)
	rs, err := tk.Exec(sql, args...)
	tk.require.NoError(err, comment)
	tk.require.NotNil(rs, comment)
	return tk.ResultSetToResult(rs, comment)
}

// MustIndexLookup checks whether the plan for the sql is IndexLookUp.
func (tk *TestKit) MustIndexLookup(sql string, args ...interface{}) *Result {
	tk.require.True(tk.HasPlan(sql, "IndexLookUp", args...))
	return tk.MustQuery(sql, args...)
}

// MustPartition checks if the result execution plan must read specific partitions.
func (tk *TestKit) MustPartition(sql string, partitions string, args ...interface{}) *Result {
	rs := tk.MustQuery("explain "+sql, args...)
	ok := len(partitions) == 0
	for i := range rs.rows {
		if len(partitions) == 0 && strings.Contains(rs.rows[i][3], "partition:") {
			ok = false
		}
		if len(partitions) != 0 && strings.Compare(rs.rows[i][3], "partition:"+partitions) == 0 {
			ok = true
		}
	}
	tk.require.True(ok)
	return tk.MustQuery(sql, args...)
}

// MustPartitionByList checks if the result execution plan must read specific partitions by list.
func (tk *TestKit) MustPartitionByList(sql string, partitions []string, args ...interface{}) *Result {
	rs := tk.MustQuery("explain "+sql, args...)
	ok := len(partitions) == 0
	for i := range rs.rows {
		if ok {
			tk.require.NotContains(rs.rows[i][3], "partition:")
		}
		for index, partition := range partitions {
			if !ok && strings.Contains(rs.rows[i][3], "partition:"+partition) {
				partitions = append(partitions[:index], partitions[index+1:]...)
			}
		}

	}
	if !ok {
		tk.require.Len(partitions, 0)
	}
	return tk.MustQuery(sql, args...)
}

// QueryToErr executes a sql statement and discard results.
func (tk *TestKit) QueryToErr(sql string, args ...interface{}) error {
	comment := fmt.Sprintf("sql:%s, args:%v", sql, args)
	res, err := tk.Exec(sql, args...)
	tk.require.NoError(err, comment)
	tk.require.NotNil(res, comment)
	_, resErr := session.GetRows4Test(context.Background(), tk.session, res)
	tk.require.NoError(res.Close())
	return resErr
}

// ResultSetToResult converts sqlexec.RecordSet to testkit.Result.
// It is used to check results of execute statement in binary mode.
func (tk *TestKit) ResultSetToResult(rs sqlexec.RecordSet, comment string) *Result {
	return tk.ResultSetToResultWithCtx(context.Background(), rs, comment)
}

// ResultSetToResultWithCtx converts sqlexec.RecordSet to testkit.Result.
func (tk *TestKit) ResultSetToResultWithCtx(ctx context.Context, rs sqlexec.RecordSet, comment string) *Result {
	rows, err := session.ResultSetToStringSlice(ctx, tk.session, rs)
	tk.require.NoError(err, comment)
	return &Result{rows: rows, comment: comment, assert: tk.assert, require: tk.require}
}

// HasPlan checks if the result execution plan contains specific plan.
func (tk *TestKit) HasPlan(sql string, plan string, args ...interface{}) bool {
	rs := tk.MustQuery("explain "+sql, args...)
	for i := range rs.rows {
		if strings.Contains(rs.rows[i][0], plan) {
			return true
		}
	}
	return false
}

// HasPlan4ExplainFor checks if the result execution plan contains specific plan.
func (tk *TestKit) HasPlan4ExplainFor(result *Result, plan string) bool {
	for i := range result.rows {
		if strings.Contains(result.rows[i][0], plan) {
			return true
		}
	}
	return false
}

// Exec executes a sql statement using the prepared stmt API
func (tk *TestKit) Exec(sql string, args ...interface{}) (sqlexec.RecordSet, error) {
	ctx := context.Background()
	if len(args) == 0 {
		sc := tk.session.GetSessionVars().StmtCtx
		prevWarns := sc.GetWarnings()
		stmts, err := tk.session.Parse(ctx, sql)
		if err != nil {
			return nil, errors.Trace(err)
		}
		warns := sc.GetWarnings()
		parserWarns := warns[len(prevWarns):]
		var rs0 sqlexec.RecordSet
		for i, stmt := range stmts {
			var rs sqlexec.RecordSet
			var err error
			if s, ok := stmt.(*ast.NonTransactionalDeleteStmt); ok {
				rs, err = session.HandleNonTransactionalDelete(ctx, s, tk.Session())
			} else {
				rs, err = tk.Session().ExecuteStmt(ctx, stmt)
			}
			if i == 0 {
				rs0 = rs
			}
			if err != nil {
				tk.session.GetSessionVars().StmtCtx.AppendError(err)
				return rs, errors.Trace(err)
			}
		}
		if len(parserWarns) > 0 {
			tk.session.GetSessionVars().StmtCtx.AppendWarnings(parserWarns)
		}
		return rs0, nil
	}

	stmtID, _, _, err := tk.session.PrepareStmt(sql)
	if err != nil {
		return nil, errors.Trace(err)
	}
	params := make([]types.Datum, len(args))
	for i := 0; i < len(params); i++ {
		params[i] = types.NewDatum(args[i])
	}
	rs, err := tk.session.ExecutePreparedStmt(ctx, stmtID, params)
	if err != nil {
		return rs, errors.Trace(err)
	}
	err = tk.session.DropPreparedStmt(stmtID)
	if err != nil {
		return rs, errors.Trace(err)
	}
	return rs, nil
}

// ExecToErr executes a sql statement and discard results.
func (tk *TestKit) ExecToErr(sql string, args ...interface{}) error {
	res, err := tk.Exec(sql, args...)
	if res != nil {
		tk.require.NoError(res.Close())
	}
	return err
}

func newSession(t testing.TB, store kv.Storage) session.Session {
	se, err := session.CreateSession4Test(store)
	require.NoError(t, err)
	se.SetConnectionID(testKitIDGenerator.Inc())
	return se
}

// RefreshConnectionID refresh the connection ID for session of the testkit
func (tk *TestKit) RefreshConnectionID() {
	if tk.session != nil {
		tk.session.SetConnectionID(testKitIDGenerator.Inc())
	}
}

// MustGetErrCode executes a sql statement and assert it's error code.
func (tk *TestKit) MustGetErrCode(sql string, errCode int) {
	_, err := tk.Exec(sql)
	tk.require.Errorf(err, "sql: %s", sql)
	originErr := errors.Cause(err)
	tErr, ok := originErr.(*terror.Error)
	tk.require.Truef(ok, "sql: %s, expect type 'terror.Error', but obtain '%T': %v", sql, originErr, originErr)
	sqlErr := terror.ToSQLError(tErr)
	tk.require.Equalf(errCode, int(sqlErr.Code), "sql: %s, Assertion failed, origin err:\n  %v", sql, sqlErr)
}

// MustGetErrMsg executes a sql statement and assert its error message.
func (tk *TestKit) MustGetErrMsg(sql string, errStr string) {
	err := tk.ExecToErr(sql)
	tk.require.EqualError(err, errStr)
}

// MustContainErrMsg executes a sql statement and assert its error message containing errStr.
func (tk *TestKit) MustContainErrMsg(sql string, errStr interface{}) {
	err := tk.ExecToErr(sql)
	tk.require.Error(err)
	tk.require.Contains(err.Error(), errStr)
}

// MustMatchErrMsg executes a sql statement and assert its error message matching errRx.
func (tk *TestKit) MustMatchErrMsg(sql string, errRx interface{}) {
	err := tk.ExecToErr(sql)
	tk.require.Error(err)
	tk.require.Regexp(errRx, err.Error())
}

// MustUseIndex checks if the result execution plan contains specific index(es).
func (tk *TestKit) MustUseIndex(sql string, index string, args ...interface{}) bool {
	rs := tk.MustQuery("explain "+sql, args...)
	for i := range rs.rows {
		if strings.Contains(rs.rows[i][3], "index:"+index) {
			return true
		}
	}
	return false
}

// MustUseIndex4ExplainFor checks if the result execution plan contains specific index(es).
func (tk *TestKit) MustUseIndex4ExplainFor(result *Result, index string) bool {
	for i := range result.rows {
		// It depends on whether we enable to collect the execution info.
		if strings.Contains(result.rows[i][3], "index:"+index) {
			return true
		}
		if strings.Contains(result.rows[i][4], "index:"+index) {
			return true
		}
	}
	return false
}

// CheckExecResult checks the affected rows and the insert id after executing MustExec.
func (tk *TestKit) CheckExecResult(affectedRows, insertID int64) {
	tk.require.Equal(int64(tk.Session().AffectedRows()), affectedRows)
	tk.require.Equal(int64(tk.Session().LastInsertID()), insertID)
}

// MustPointGet checks whether the plan for the sql is Point_Get.
func (tk *TestKit) MustPointGet(sql string, args ...interface{}) *Result {
	rs := tk.MustQuery("explain "+sql, args...)
	tk.require.Len(rs.rows, 1)
	tk.require.Contains(rs.rows[0][0], "Point_Get", "plan %v", rs.rows[0][0])
	return tk.MustQuery(sql, args...)
}

// UsedPartitions returns the partition names that will be used or all/dual.
func (tk *TestKit) UsedPartitions(sql string, args ...interface{}) *Result {
	rs := tk.MustQuery("explain "+sql, args...)
	var usedPartitions [][]string
	for i := range rs.rows {
		index := strings.Index(rs.rows[i][3], "partition:")
		if index != -1 {
			p := rs.rows[i][3][index+len("partition:"):]
			partitions := strings.Split(strings.SplitN(p, " ", 2)[0], ",")
			usedPartitions = append(usedPartitions, partitions)
		}
	}
	comment := fmt.Sprintf("sql:%s, args:%v", sql, args)
	return &Result{rows: usedPartitions, comment: comment, assert: tk.assert, require: tk.require}
}

// WithPruneMode run test case under prune mode.
func WithPruneMode(tk *TestKit, mode variable.PartitionPruneMode, f func()) {
	tk.MustExec("set @@tidb_partition_prune_mode=`" + string(mode) + "`")
	tk.MustExec("set global tidb_partition_prune_mode=`" + string(mode) + "`")
	f()
}

func containGlobal(rs *Result) bool {
	partitionNameCol := 2
	for i := range rs.rows {
		if strings.Contains(rs.rows[i][partitionNameCol], "global") {
			return true
		}
	}
	return false
}

// MustNoGlobalStats checks if there is no global stats.
func (tk *TestKit) MustNoGlobalStats(table string) bool {
	if containGlobal(tk.MustQuery("show stats_meta where table_name like '" + table + "'")) {
		return false
	}
	if containGlobal(tk.MustQuery("show stats_buckets where table_name like '" + table + "'")) {
		return false
	}
	if containGlobal(tk.MustQuery("show stats_histograms where table_name like '" + table + "'")) {
		return false
	}
	return true
}

// CheckLastMessage checks last message after executing MustExec
func (tk *TestKit) CheckLastMessage(msg string) {
	tk.require.Equal(tk.Session().LastMessage(), msg)
}


text:
* {
    margin: 0;
    padding: 0;
}
#calculator{
    position: relative;
    margin: 50px auto;
    width: 500px;
    height: 400px;
    background-color:white;
}
#calculator_table{
    position: relative;
    margin: 10px auto;
    border-collapse:separate;
    border-spacing:10px 20px;
}
h3{
    position: relative;
    width: 200px;
    height: 30px;
    margin:  0 auto;
}
#calculator_table td{
    width: 50px;
    height: 30px;
    border: 1px darkslategray;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;

}
#calculator_table td input{
    font-size: 16px;
    border: none;
    width: 70px;
    height: 30px;
    color: lightyellow;
}
input.btn_color1{
    background-color: #FF0000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
input.btn_color2{
    background-color:#080808;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
input.btn_color3{
    background-color:#1E90FF;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
input.btn_color4{
    background-color: #FF0000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
input:active{
    -webkit-box-shadow: 3px 3px 3px ;
    -moz-box-shadow: 3px 3px 3px gray;
    box-shadow: 3px 3px 3px gray;

}


text:
package fixtures.listofenums;

import java.util.List;

/**
 * The Animal
 * @version $Id$
 */
@SuppressWarnings("javadoc")
public class Animal {

        private String name;
        private List<Color> colors;

        public Animal(String name, List<Color> colors) {
                this.colors = colors;
        }

        public String getName() {
                return this.name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public List<Color> getColors() {
                return this.colors;
        }

        public void setColors(List<Color> colors) {
                this.colors = colors;
        }
}


text:
package com.glaf.core.util;

import java.io.Serializable;
import java.util.List;

/**
 *

 * Title: PageResult.java
 *

 *
 *

 * Description: 分页对象
 *

 *
 */
@SuppressWarnings("rawtypes")
public class PageResult implements Serializable {
	private static final long serialVersionUID = 4829284558188407984L;

	public final static int DEFAULT_PAGE_SIZE = 20;

	private int currentPageNo;// 当前页
	private int totalPageCount;// 总页数
	private int totalRecordCount;// 总记录数

	private List results;// 结果集
	private int pageSize;// 页面大小

	/**
	 * 取当前页号
	 *
	 * @return 当前页号
	 */
	public int getCurrentPageNo() {
		if (currentPageNo == 0 || getTotalPageCount() == 0)
			currentPageNo = 1;
		else if (currentPageNo > getTotalPageCount())
			currentPageNo = getTotalPageCount();

		return currentPageNo;
	}

	/**
	 * 设置当前页号
	 *
	 * @param currentPageNo
	 *            当前页号
	 */
	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}

	/**
	 * 取总的页数
	 *
	 * @return 总的页数
	 */
	public int getTotalPageCount() {
		this.totalPageCount = (this.totalRecordCount + pageSize - 1) / pageSize;
		return totalPageCount;
	}

	/**
	 * 设置总的页数
	 *
	 * @param totalPageCount
	 *            总的页数
	 */
	public void setTotalPageCount(int totalPageCount) {
		this.totalPageCount = totalPageCount;
	}

	/**
	 * 取总的记录数
	 *
	 * @return 总的记录数
	 */
	public int getTotalRecordCount() {
		return totalRecordCount;
	}

	/**
	 * 设置总的记录数
	 *
	 * @param totalRecordCount
	 *            总的记录数
	 */
	public void setTotalRecordCount(int totalRecordCount) {
		this.totalRecordCount = totalRecordCount;
	}

	/**
	 * 取结果集
	 *
	 * @return 结果集
	 */
	public List getResults() {
		if (results == null) {
			results = new java.util.ArrayList();
		}
		return results;
	}

	/**
	 * 设置结果集
	 *
	 * @param results
	 *            结果集
	 */
	public void setResults(List results) {
		this.results = results;
	}

	/**
	 * 取页面大小
	 *
	 * @return 页面大小
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * 设置页面大小
	 *
	 * @param pageSize
	 *            页面大小
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
}


text:
FROM java:8-alpine
LABEL maintainer "Jessie Frazelle <jess@linux.com>"

RUN apk add --no-cache \
	ca-certificates \
	curl \
	tar

ENV LANG C.UTF-8
# https://open.afterthedeadline.com/download/download-source-code/
ENV ATD_VERSION 081310

RUN curl -sSL "http://www.polishmywriting.com/download/atd_distribution${ATD_VERSION}.tgz" -o /tmp/atd.tar.gz \
	&& mkdir -p /usr/src/atd \
	&& tar -xzf /tmp/atd.tar.gz -C /usr/src/atd --strip-components 1 \
	&& rm /tmp/atd.tar.gz*

WORKDIR /usr/src/atd
EXPOSE 1049

ENTRYPOINT [ "sh", "-c", "/usr/src/atd/run.sh" ]


text:
package com.gonghaiwei.prjdrjbz.api;

public interface WarrantyBillService {

  WarrantyBill getById(String id);

  String saveNew(WarrantyBill bill);

  void saveModify(WarrantyBill bill);

}


text:
class WebDatabase;

namespace payments {

// This class manages web_app_manifest_section table in SQLite database. It
// expects the following schema.
// The interfaces should only be accessed on DB thread.
//
// web_app_manifest_section The table stores the contents in
//                          WebAppManifestSection.
//
//  expire_date             The data expire date in seconds from 1601-01-01
//                          00:00:00 UTC.
//  id                      The package name of the app.
//  min_version             Minimum version number of the app.
//  fingerprints            The result of SHA256(signing certificate bytes) for
//                          each certificate in the app.
//
class WebAppManifestSectionTable : public WebDatabaseTable {
 public:
  WebAppManifestSectionTable();

  WebAppManifestSectionTable(const WebAppManifestSectionTable&) = delete;
  WebAppManifestSectionTable& operator=(const WebAppManifestSectionTable&) =
      delete;

  ~WebAppManifestSectionTable() override;

  // Retrieves the WebAppManifestSectionTable* owned by |db|.
  static WebAppManifestSectionTable* FromWebDatabase(WebDatabase* db);

  // WebDatabaseTable:
  WebDatabaseTable::TypeKey GetTypeKey() const override;
  bool CreateTablesIfNecessary() override;
  bool IsSyncable() override;
  bool MigrateToVersion(int version, bool* update_compatible_version) override;

  // Remove expired data.
  void RemoveExpiredData();

  // Adds the web app |manifest|. Note that the previous web app manifest will
  // be deleted.
  bool AddWebAppManifest(const std::vector<WebAppManifestSection>& manifest);

  // Gets manifest of the |web_app|. Returns empty vector if no manifest exists
  // for the |web_app|.
  std::vector<WebAppManifestSection> GetWebAppManifest(
      const std::string& web_app);
};

}  // namespace payments

#endif  // COMPONENTS_PAYMENTS_CONTENT_WEB_APP_MANIFEST_SECTION_TABLE_H_


text:
package com.xq.myxuanqi.util.punch;

import android.content.Context;
import android.os.Handler;
import android.os.Message;

import java.util.Timer;
import java.util.TimerTask;

public class NetSpeedTimer {
    private long defaultDelay = 1000;
    private long defaultPeriod = 1000;
    private static final int ERROR_CODE = -101011010;
    private int mMsgWhat = ERROR_CODE;
    private NetSpeed mNetSpeed;
    private Handler mHandler;
    private Context mContext;
    private SpeedTimerTask mSpeedTimerTask;
    public static final int NET_SPEED_TIMER_DEFAULT = 101010;

    public NetSpeedTimer(Context context, NetSpeed netSpeed, Handler handler) {
        this.mContext = context;
        this.mNetSpeed = netSpeed;
        this.mHandler = handler;
    }

    public NetSpeedTimer setDelayTime(long delay) {
        this.defaultDelay = delay;
        return this;
    }

    public NetSpeedTimer setPeriodTime(long period) {
        this.defaultPeriod = period;
        return this;
    }

    public NetSpeedTimer setHanderWhat(int what) {
        this.mMsgWhat = what;
        return this;
    }

    /**
     * 开启获取网速定时器
     */
    public void startSpeedTimer() {
        Timer timer = new Timer();
        mSpeedTimerTask = new SpeedTimerTask(mContext, mNetSpeed, mHandler, mMsgWhat);
        timer.schedule(mSpeedTimerTask, defaultDelay, defaultPeriod);
    }

    /**
     * 关闭定时器
     */
    public void stopSpeedTimer() {
        if (null != mSpeedTimerTask) {
            mSpeedTimerTask.cancel();
        }
    }

    /**
     * @author 静态内部类
     */
    private static class SpeedTimerTask extends TimerTask {
        private int mMsgWhat;
        private NetSpeed mNetSpeed;
        private Handler mHandler;
        private Context mContext;

        public SpeedTimerTask(Context context, NetSpeed netSpeed, Handler handler, int what) {
            this.mContext = context;
            this.mHandler = handler;
            this.mNetSpeed = netSpeed;
            this.mMsgWhat = what;
        }

        @Override
        public void run() {
            if (null != mNetSpeed && null != mHandler) {
                Message obtainMessage = mHandler.obtainMessage();
                if (mMsgWhat != ERROR_CODE) {
                    obtainMessage.what = mMsgWhat;
                } else {
                    obtainMessage.what = NET_SPEED_TIMER_DEFAULT;
                }
                obtainMessage.obj = mNetSpeed.getNetSpeed(mContext.getApplicationInfo().uid);
                mHandler.sendMessage(obtainMessage);
            }
        }
    }

}


text:
<bill session="115" type="h" number="78" updated="2017-08-17T17:56:18Z">
  <state datetime="2017-01-12T17:13:38-05:00">PASS_OVER:HOUSE</state>
  <status>
    <unknown datetime="2017-01-12T17:13:38-05:00"/>
  </status>
  <introduced datetime="2017-01-03"/>
  <titles>
    <title type="short" as="introduced">SEC Regulatory Accountability Act</title>
    <title type="short" as="introduced">SEC Regulatory Accountability Act</title>
    <title type="short" as="passed house">SEC Regulatory Accountability Act</title>
    <title type="short" as="passed house">SEC Regulatory Accountability Act</title>
    <title type="official" as="introduced">To improve the consideration by the Securities and Exchange Commission of the costs and benefits of its regulations and orders.</title>
    <title type="display">SEC Regulatory Accountability Act</title>
  </titles>
  <sponsor bioguide_id="W000812"/>
  <cosponsors>
    <cosponsor bioguide_id="R000487" joined="2017-01-09"/>
    <cosponsor bioguide_id="S000250" joined="2017-01-04"/>
    <cosponsor bioguide_id="T000470" joined="2017-01-10"/>
  </cosponsors>
  <actions>
    <action datetime="2017-01-03">
      <text>Introduced in House</text>
    </action>
    <action datetime="2017-01-03" state="REFERRED">
      <text>Referred to the House Committee on Financial Services.</text>
    </action>
    <action datetime="2017-01-10T18:02:35-05:00">
      <text>Rules Committee Resolution H. Res. 40 Reported to House. Rule provides for consideration of H.R. 78 and H.R. 238. The resolution provides for one hour of general debate on both H.R. 78 and H.R. 238. The resolution provides for suspension authority at any time on the legislative day of January 13, 2017. The resolution also provides for legislative proceedings during the period of January 16, 2017 through January 20, 2017.</text>
    </action>
    <action datetime="2017-01-12T14:14:49-05:00">
      <text>Considered under the provisions of rule H. Res. 40.</text>
      <reference ref="CR H428-448" label="consideration"/>
      <reference ref="CR H437-438" label="text as reported in House"/>
    </action>
    <action datetime="2017-01-12T14:14:54-05:00">
      <text>Rule provides for consideration of H.R. 78 and H.R. 238. The resolution provides for one hour of general debate on both H.R. 78 and H.R. 238. The resolution provides for suspension authority at any time on the legislative day of January 13, 2017. The resolution also provides for legislative proceedings during the period of January 16, 2017 through January 20, 2017.</text>
    </action>
    <action datetime="2017-01-12T14:16:25-05:00">
      <text>House resolved itself into the Committee of the Whole House on the state of the Union pursuant to H. Res. 40 and Rule XVIII.</text>
    </action>
    <action datetime="2017-01-12T14:16:26-05:00">
      <text>The Speaker designated the Honorable Tom McClintock to act as Chairman of the Committee.</text>
    </action>
    <action datetime="2017-01-12T14:16:37-05:00">
      <text>GENERAL DEBATE - The Committee of the Whole proceeded with one hour of general debate on H.R. 78.</text>
    </action>
    <action datetime="2017-01-12T15:28:04-05:00">
      <text>DEBATE - Pursuant to the provisions of H. Res. 40, the Committee of the Whole proceeded with 10 minutes of debate on the Al Green (TX) Part A amendment No. 1.</text>
    </action>
    <action datetime="2017-01-12T15:36:02-05:00">
      <text>POSTPONED PROCEEDINGS - At the conclusion of debate on the Al Green (TX) amendment, the Chair put the question on adoption of the amendment and by voice vote announced that the noes had prevailed. Mr. Al Green (TX) demanded a recorded vote and the Chair postponed further proceedings on the question of adoption of the amendment until a time to be announced.</text>
    </action>
    <action datetime="2017-01-12T15:36:50-05:00">
      <text>DEBATE - Pursuant to the provisions of H. Res. 40, the Committee of the Whole proceeded with 10 minutes of debate on the Velazquez Part A amendment No. 2.</text>
    </action>
    <action datetime="2017-01-12T15:41:39-05:00">
      <text>DEBATE - Pursuant to the provisions of H. Res. 40, the Committee of the Whole proceeded with 10 minutes of debate on the Al Green (TX) Part A amendment No. 3.</text>
    </action>
    <action datetime="2017-01-12T15:51:20-05:00">
      <text>POSTPONED PROCEEDINGS - At the conclusion of debate on the Al Green (TX) amendment, the Chair put the question on adoption of the amendment and by voice vote announced that the noes had prevailed. Mr. Al Green (TX) demanded a recorded vote and the Chair postponed further proceedings on the question of adoption of the amendment until a time to be announced.</text>
    </action>
    <action datetime="2017-01-12T15:53:24-05:00">
      <text>DEBATE - Pursuant to the provisions of H. Res. 40, the Committee of the Whole proceeded with 10 minutes of debate on the DeSaulnier Part A amendment No. 4.</text>
    </action>
    <action datetime="2017-01-12T16:01:14-05:00">
      <text>POSTPONED PROCEEDINGS - At the conclusion of debate on the DeSaulnier amendment, the Chair put the question on adoption of the amendment and by voice vote announced that the noes had prevailed. Mr. DeSaulnier demanded a recorded vote and the Chair postponed further proceedings on the question of adoption of the amendment until a time to be announced.</text>
    </action>
    <action datetime="2017-01-12T16:01:52-05:00">
      <text>DEBATE - Pursuant to the provisions of H. Res. 40, the Committee of the Whole proceeded with 10 minutes of debate on the Raskin Part A amendment No. 5.</text>
    </action>
    <action datetime="2017-01-12T16:12:24-05:00">
      <text>POSTPONED PROCEEDINGS - At the conclusion of debate on the Raskin amendment, the Chair put the question on adoption of the amendment and by voice vote announced that the noes had prevailed. Mr. Raskin demanded a recorded vote and the Chair postponed further proceedings on the question of adoption of the amendment until a time to be announced.</text>
    </action>
    <action datetime="2017-01-12T16:51:41-05:00">
      <text>The House rose from the Committee of the Whole House on the state of the Union to report H.R. 78.</text>
    </action>
    <action datetime="2017-01-12T16:52:26-05:00">
      <text>The previous question was ordered pursuant to the rule.</text>
    </action>
    <action datetime="2017-01-12T16:52:35-05:00">
      <text>The House adopted the amendment as agreed to by the Committee of the Whole House on the state of the Union.</text>
    </action>
    <action datetime="2017-01-12T16:52:57-05:00">
      <text>Mrs. Bustos moved to recommit with instructions to the Committee on Financial Services.</text>
      <reference ref="CR H446" label="text"/>
    </action>
    <action datetime="2017-01-12T16:53:10-05:00">
      <text>Floor summary: DEBATE - The House proceeded with 10 minutes of debate on the Bustos motion to recommit with instructions. The instructions contained in the motion seek to require the bill to be reported back to the House with an amendment pertaining to consideration of the potential outsourcing of U.S. Jobs.</text>
    </action>
    <action datetime="2017-01-12T17:01:08-05:00">
      <text>The previous question on the motion to recommit with instructions was ordered without objection.</text>
    </action>
    <action datetime="2017-01-12T17:07:27-05:00">
      <text>On motion to recommit with instructions Failed by recorded vote: 195 - 232 (Roll no. 50).</text>
    </action>
    <vote how="roll" type="vote" roll="51" datetime="2017-01-12T17:13:38-05:00" where="h" result="pass" state="PASS_OVER:HOUSE">
      <text>On passage Passed by recorded vote: 243 - 184 (Roll no. 51).</text>
    </vote>
    <action datetime="2017-01-12T17:13:40-05:00">
      <text>Motion to reconsider laid on the table Agreed to without objection.</text>
    </action>
    <action datetime="2017-01-17">
      <text>Received in the Senate and Read twice and referred to the Committee on Banking, Housing, and Urban Affairs.</text>
    </action>
  </actions>
  <committees>
    <committee subcommittee="" code="SSBK" name="Senate Banking, Housing, and Urban Affairs" activity="Referral"/>
    <committee subcommittee="" code="HSBA" name="House Financial Services" activity="Referral"/>
  </committees>
  <relatedbills>
    <bill type="hr" session="115" relation="unknown" number="40"/>
  </relatedbills>
  <subjects>
    <term name="Finance and financial sector"/>
    <term name="Administrative law and regulatory procedures"/>
    <term name="Corporate finance and management"/>
    <term name="Financial services and investments"/>
    <term name="Government studies and investigations"/>
    <term name="Securities"/>
    <term name="Securities and Exchange Commission (SEC)"/>
    <term name="Small business"/>
  </subjects>
  <amendments>
    <amendment number="h43"/>
    <amendment number="h42"/>
    <amendment number="h41"/>
    <amendment number="h40"/>
    <amendment number="h39"/>
  </amendments>
  <summary date="2017-01-12T14:52:16Z" status="Passed House without amendment">(This measure has not been amended since it was introduced. The summary has been expanded because action occurred on the measure.)

SEC Regulatory Accountability Act

(Sec. 2) This bill amends the Securities Exchange Act of 1934 to direct the Securities and Exchange Commission (SEC) to:

 before issuing a regulation under the securities laws, identify the nature and source of the problem that the proposed regulation is designed to address; adopt a regulation only upon a reasoned determination that its benefits justify its costs; identify and assess available alternatives to any regulation; and ensure that any regulation is accessible, consistent, written in plain language, and easy to understand. In determining the costs and benefits of a proposed regulation, the SEC shall consider its impact on investor choice, market liquidity, and small businesses.

In addition, the SEC shall: (1) periodically review its existing regulations to determine if they are outmoded, ineffective, insufficient, or excessively burdensome; and (2) in accordance with such review, modify, streamline, expand, or repeal them.

Whenever it adopts or amends a rule that is "major" (in terms of economic impact), the SEC shall state in its adopting release: (1) the regulation's purposes and intended consequences, (2) metrics for measuring the regulation's economic impact, (3) the assessment plan to be used to assess whether the regulation has achieved its stated purposes, and (4) any foreseeable unintended or negative consequences of the regulation.</summary>
  <committee-reports/>
</bill>


text:
@implementation UIFont (Timmana)

+ (instancetype)timmanaFontOfSize:(CGFloat)size {
  static dispatch_once_t onceToken;
  [GFIFontLoader loadFontFile:@"Timmana-Regular"
                   fromBundle:@"Timmana"
                    onceToken:&onceToken];
  return [self fontWithName:@"Timmana" size:size];
}

@end


text:
package org.scalastyle

// scalastyle:off magic.number multiple.string.literals

import org.junit.Test
import org.scalastyle.file.CheckerTest
import org.scalastyle.file.FileLengthChecker

class CommentFilterDisabledTest extends CheckerTest {
  val key = "file.size.limit"
  val classUnderTest = classOf[FileLengthChecker]

  @Test def testOne(): Unit = {
    val source = """

      // scalastyle:off
package foobar

  object Foobar {
}
  object Barbar {
}
"""

    assertErrors(List(fileError(List("5"))), source, Map("maxFileLength" -> "5"), commentFilter = false)
  }
}


text:
{% include base_path %}
{% include group-by-array collection=site.publications field="categories" %}

{% case site.tag_archive.type %}
  {% when "liquid" %}
    {% assign path_type = "#" %}
  {% when "jekyll-archives" %}
    {% assign path_type = nil %}
{% endcase %}

{% capture all_categories %}{% for category in group_names %}{{ category | downcase }}#{{ category }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
  {% assign category_hashes = (all_categories | split: ',' | sort:0) %}

    Selected Papers
  {% for hash in category_hashes %}
      {% assign keyValue = hash | split: '#' %}
      {% capture category_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
        {% if category_word != 'Selected Papers' %}
          {{ category_word }}{% unless forloop.last %}, {% endunless %}
        {% endif %}
  {% endfor %}


text:
<?php
namespace Sender;

use PHPUnit\Framework\TestCase;
use Sender\Log\Log;

/**
* This test class for testing LogTest class
*/

class LogTest extends TestCase
{
    public $log;
    public function setUp()
    {
        $this->log = new Log("Req & Res");
        $this->dateTime = date_create('now')->format('Y-m-d');
        $this->path = realpath(__DIR__.'/../../src/Sender/Log/Logger');
    }
    public function tearDown()
    {
        $this->log = null;
    }
    public function testError()
    {
        $this->log->error(["Request:"], ['log test value'], ['Request value']);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["Request:"], [43567673547], [73465753636]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["Request:"], ["43567673547"], [73465753636]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["Request:"], [4356.7673547], [7346.5753636]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["Request:"], [true], ["true"]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["Request:"], [true], [true]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["Request45555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555"]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error(["455544444444444444444444444444444"]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error([true]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error([34534534534343453444334]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');

        $this->log->error([5676575675676565], [true]);
        $this->assertFileIsReadable($this->path.'/Error_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Error_'.$this->dateTime.'.log');
    }
    public function testInfo()
    {
        $this->log->info(["Request:"], ['log test value'], ['Request value']);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["Request:"], [43567673547], [73465753636]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["Request:"], ["43567673547"], [73465753636]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["Request:"], [4356.7673547], [7346.5753636]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["Request:"], [true], ["true"]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["Request:"], [true], [true]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["Request45555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555"]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info(["455544444444444444444444444444444"]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info([true]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info([34534534534343453444334]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');

        $this->log->info([5676575675676565], [true]);
        $this->assertFileIsReadable($this->path.'/Info_'.$this->dateTime.'.log');
        $this->assertFileIsWritable($this->path.'/Info_'.$this->dateTime.'.log');
    }
}


text:
package com.github.jbarr21.goproremote.common.data;

public class Constants {

    public static final String SCHEME_WEAR = "wear";

    // Message and Data paths
    public static final String COMMAND_REQUEST_PATH = "/command/request";
    public static final String COMMAND_RESPONSE_PATH = "/command/response";
    public static final String CONFIG_PATH = "/config";

    // Shared timeout values
    public static final int WEARABLE_CONN_TIMEOUT_MILLIS = 500;
    public static final int GO_PRO_COMMAND_TIMEOUT_SEC = 5;

    public static final int TAKE_PHOTO = 10;
    public static final int START_VIDEO = 20;
    public static final int STOP_VIDEO = 21;
    public static final int SWITCH_TO_PHOTO = 1;
    public static final int SWITCH_TO_VIDEO = 2;
    public static final int POWER_ON = 30;
    public static final int POWER_OFF = 31;
}