text:
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_weight="1"
    android:scrollbars="none" >

    <TableLayout
        android:id="@+id/myTableLayout"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="#000000"
        android:orientation="horizontal" >

        <TableRow
            android:id="@+id/tableRow1"
            android:layout_width="wrap_content"
            android:layout_height="80dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="P"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="15sp" />

            <ImageView
                android:id="@+id/team_logo"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp" />

            <TextView
                android:id="@+id/team_name"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="Team"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="P "
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="W "
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="D "
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="L "
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="GD"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="Pts"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow2"
            android:layout_width="wrap_content"
            android:layout_height="60dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="1"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo1"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/delhi" />

            <TextView
                android:id="@+id/team_name1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/delhi"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points1"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow3"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="2"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo2"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/goa" />

            <TextView
                android:id="@+id/team_name2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/goa"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points2"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow4"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="3"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo3"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/kerala" />

            <TextView
                android:id="@+id/team_name3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/kerala"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points3"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow5"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:divider="@android:color/darker_gray"
                android:dividerHeight="0.01dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="4"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo4"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/kolkata" />

            <TextView
                android:id="@+id/team_name4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/kolkata"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points4"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow6"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="5"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo5"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/mumbai" />

            <TextView
                android:id="@+id/team_name5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/mumbai"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points5"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow7"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="6"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo6"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/north_east" />

            <TextView
                android:id="@+id/team_name6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/north_east"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points6"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow8"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="7"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo7"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/pune" />

            <TextView
                android:id="@+id/team_name7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/pune"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points7"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />

        <TableRow
            android:id="@+id/tableRow9"
            android:layout_width="wrap_content"
            android:layout_height="48dp"
            android:padding="0.1dip" >

            <TextView
                android:id="@+id/team_pos8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="8"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <ImageView
                android:id="@+id/team_logo8"
                android:layout_width="25dp"
                android:layout_height="48dp"
                android:layout_marginLeft="1dp"
                android:contentDescription="@string/desc_list_item_icon"
                android:gravity="center_vertical"
                android:padding="1dp"
                android:src="@drawable/chennai" />

            <TextView
                android:id="@+id/team_name8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="5dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="@string/chennai"
                android:textAppearance="?android:attr/textAppearanceMedium"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_played8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_won8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_drawn8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/matches_lost8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/goal_difference8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />

            <TextView
                android:id="@+id/item_points8"
                android:layout_width="wrap_content"
                android:layout_height="48dp"
                android:layout_marginLeft="10dp"
                android:gravity="center"
                android:padding="2dp"
                android:text="0"
                android:textColor="#FFFFFF"
                android:textSize="17sp" />
        </TableRow>

        <View
            android:layout_height="0.01dip"
            android:background="@android:color/darker_gray" />
    </TableLayout>

</ScrollView>

redpajama_set_name: RedPajamaGithub


text:
package cwlgotest

import (
	"testing"

	cwl "github.com/otiai10/cwl.go"
	. "github.com/otiai10/mint"
)

func TestDecode_cat3_tool_shortcut(t *testing.T) {
	f := load("cat3-tool-shortcut.cwl")
	root := cwl.NewCWL()
	Expect(t, root).TypeOf("*cwl.Root")
	err := root.Decode(f)
	Expect(t, err).ToBe(nil)
	Expect(t, root.Version).ToBe("v1.0")
	Expect(t, root.Doc).ToBe("Print the contents of a file to stdout using 'cat' running in a docker container.")
	Expect(t, root.Class).ToBe("CommandLineTool")
	Expect(t, len(root.BaseCommands)).ToBe(1)
	Expect(t, root.BaseCommands[0]).ToBe("cat")
	Expect(t, root.Hints).TypeOf("cwl.Hints")
	Expect(t, root.Hints[0].Class).ToBe("DockerRequirement")
	Expect(t, root.Hints[0].DockerPull).ToBe("debian:stretch-slim")
	Expect(t, len(root.Inputs)).ToBe(1)
	Expect(t, root.Inputs[0].ID).ToBe("file1")
	Expect(t, root.Inputs[0].Types[0].Type).ToBe("File")
	Expect(t, root.Inputs[0].Label).ToBe("Input File")
	Expect(t, root.Inputs[0].Doc).ToBe("The file that will be copied using 'cat'")
	Expect(t, root.Inputs[0].Binding.Position).ToBe(1)
}


text:
from bovinus.parsergen.output import AbstractCodeGenerator
from bovinus.parsergen.edit_sections import EditableSections
from bovinus.parsergen.ast import Multiplicity
from bovinus.parsergen.meta_objects import TokenType, Grammar

class PythonCodeGenerator(AbstractCodeGenerator):

    VAR_ALL_TOKEN_TYPES = "all_token_types"

    def __init__(self):

        AbstractCodeGenerator.__init__(self, PythonEditableSections())

        self._first_token_def = True
        self._sort_token_types = False

    def _create_default_comment(self):

        res = []
        self._add(res, "# This file has been generated by Bovinus from a grammar file.")
        self._add(res, "# (See http://bovinus.bollmeier.de for details)")
        self._add(res, "# All changes outside of editable sections will be overwritten.")
        self._add(res)

        return res

    def _create_top_section(self, symbols):

        res = []
        self._add(res, "import bovinus.token as token")
        self._add(res, "import bovinus.grammar as grammar")
        self._add(res, "import bovinus.parser as parser")
        self._add(res, "from bovinus.parser import AstNode")
        self._add(res)
        self._insert_editable_section(res, "init")

        return res

    def _create_single_parser_code(self, grammar, symbols):

        res = []

        if not self._parser_class_name:
            parser_class_name = "{}Parser".format(self._to_camel_case(grammar.rule_id))
        else:
            parser_class_name = self._parser_class_name

        self._add(res, "class {}(parser.Parser):".format(parser_class_name))
        self._add(res)

        self._indent()
        self._add(res, "def __init__(self):")

        self._indent()
        self._add(res)
        self._add(res, "parser.Parser.__init__(self, %s())" % self._rule_class_name(grammar))
        self._add(res)
        line_comment = symbols.get_line_comment()
        if line_comment:
            self._add(res, "self.enableLineComments(%s)" % line_comment)
        block_comment = symbols.get_block_comment()
        if block_comment:
            self._add(res, "self.enableBlockComments(%s, %s)" % block_comment)
        bt = symbols.is_full_backtracking_enabled()
        if bt:
            self._add(res, "self.enableFullBacktracking(True)")
        if line_comment or block_comment or bt:
            self._add(res)
        self._dedent()

        self._dedent()

        return res

    def _create_token_type_def(self, ttype):

        res = []

        if self._first_token_def:
            self._add(res, "# ========== Private section ==========")
            self._add(res)
            self._add(res, self.VAR_ALL_TOKEN_TYPES + " = []")
            self._add(res)
            self._first_token_def = False

        if ttype.token_type == TokenType.KEYWORD:
            line = "%s = token.Keyword('%s', caseSensitive=%s)" % (ttype.token_id, ttype.text, ttype.case_sensitive)
            self._add(res, line)
        elif ttype.token_type == TokenType.WORD:
            if not ttype.filter_callback:
                line = "%s = token.Word('%s')" % (ttype.token_id, ttype.text)
            else:
                line = "%s = token.Word('%s', filterCallback=%s)" % (ttype.token_id, ttype.text, ttype.filter_callback)
            self._add(res, line)
        elif ttype.token_type == TokenType.PREFIX:
            line = "%s = token.Prefix('%s', escape=%s)" % (ttype.token_id, ttype.text, ttype.escape)
            self._add(res, line)
        elif ttype.token_type == TokenType.POSTFIX:
            line = "%s = token.Postfix('%s', escape=%s)" % (ttype.token_id, ttype.text, ttype.escape)
            self._add(res, line)
        elif ttype.token_type == TokenType.SEPARATOR:
            if not ttype.is_pattern:
                line = "%s = token.Separator('%s', whitespaceAllowed=%s, escape=%s)" % \
                (ttype.token_id, ttype.text, ttype.whitespace_allowed, ttype.escape)
            else:
                line = "%s = token.Separator.create('%s')" % (ttype.token_id, ttype.text)
            self._add(res, line)
        elif ttype.token_type == TokenType.LITERAL:
            line = "%s = token.Literal.get()" % ttype.token_id
            self._add(res, line)
        elif ttype.token_type == TokenType.TEXT_BLOCK:
            line = "%s = token.MultiLineLiteral.get()" % ttype.token_id
            self._add(res, line)
        else:
            raise Exception("Unknown token type")

        line = "%s.name = '%s'" % (ttype.token_id, ttype.token_id)
        self._add(res, line)

        self._add(res, "%s.append(%s)" % (self.VAR_ALL_TOKEN_TYPES, ttype.token_id))
        self._add(res)

        return res

    def _create_rule_begin(self, rule):

        res = []

        is_grammar = isinstance(rule, Grammar)

        if not is_grammar:
            self._add(res, "class %s(grammar.Rule):" % self._rule_class_name(rule))
        else:
            self._add(res, "class %s(grammar.Grammar):" % self._rule_class_name(rule))
        self._add(res)

        self._indent()

        if not is_grammar:
            self._add(res, "def __init__(self, ident=''):")
            self._add(res)
            self._indent()
            self._add(res, "grammar.Rule.__init__(self, '%s', ident)" % rule.rule_id)
        else:
            self._add(res, "def __init__(self):")
            self._add(res)
            self._indent()
            self._add(res, "grammar.Grammar.__init__(self, %s)" % self.VAR_ALL_TOKEN_TYPES)
        self._add(res)
        self._add(res, "self.setContextIndependent()")
        self._add(res)
        self._dedent()

        return res

    def _create_rule_expand_method(self, top_branch_names):

        res = []
        self._add(res, "def expand(self, start, end, context):")
        self._indent()

        self._add(res)
        for name in top_branch_names:
            self._add(res, "start.connect(self.%s()).connect(end)" % name)
        self._add(res)

        self._dedent()

        return res

    def _create_rule_transform_method(self, rule):

        res = []
        self._add(res, "def transform(self, astNode):")
        self._indent()

        self._add(res)

        section_name = "%s-transform" % rule.rule_id
        default_lines = ["", "return astNode", ""]

        self._insert_editable_section(res, section_name, default_lines)

        self._dedent()

        return res

    def _create_sequence_code(self, name, subrule_names):

        res = []

        self._add(res, "def %s(self):" % name)
        self._indent()
        self._add(res)

        num_subrules = len(subrule_names)

        if num_subrules != 1:
            self._add(res, "elements = []")
            for subrule_name in subrule_names:
                self._add(res, "elements.append(self.%s())" % subrule_name)
            self._add(res)
            self._add(res, "return grammar.Sequence(elements)")
        else:
            self._add(res, "return self.%s()" % subrule_names[0])

        self._add(res)
        self._dedent()

        return res

    def _create_fork_code(self, name, subrule_names, multiplicity):

        res = []

        self._add(res, "def %s(self):" % name)
        self._indent()
        self._add(res)

        num_subrules = len(subrule_names)

        if num_subrules != 1:
            self._add(res, "branches = []")
            for subrule_name in subrule_names:
                self._add(res, "branches.append(self.%s())" % subrule_name)
            self._add(res)
            result_str = "grammar.Fork(branches)"
        else:
            result_str = "self.%s()" % subrule_names[0]

        result_str = self._result_with_mult(result_str, multiplicity)

        self._add(res, "return %s" % result_str)
        self._add(res)
        self._dedent()

        return res

    def _create_subrule_code(self, name, rule, element_id, multiplicity):

        res = []

        self._add(res, "def %s(self):" % name)
        self._indent()
        self._add(res)
        result_str = "%s(" % self._rule_class_name(rule)
        if element_id:
            result_str += "'%s'" % element_id
        result_str += ')'
        result_str = self._result_with_mult(result_str, multiplicity)
        self._add(res, "return " + result_str)
        self._add(res)
        self._dedent()

        return res

    def _create_token_type_code(self, name, token_type, element_id, multiplicity):

        res = []

        self._add(res, "def %s(self):" % name)
        self._indent()
        self._add(res)
        result_str = "grammar.tokenNode(%s" % token_type.token_id
        if element_id:
            result_str += ", '%s'" % element_id
        result_str += ')'
        result_str = self._result_with_mult(result_str, multiplicity)
        self._add(res, "return " + result_str)
        self._add(res)
        self._dedent()

        return res

    def _create_rule_end(self, rule):

        self._dedent()

        return []

    def _create_bottom_section(self, symbols):

        return []

    def _rule_class_name(self, rule):

        res = self._to_camel_case(rule.rule_id)

        if not isinstance(rule, Grammar):
            res += "Rule"
        else:
            res += "Grammar"

        res = "_" + res

        return res

    def _to_camel_case(self, name):

        res = ""

        prev = ""
        for ch in name:
            if prev:
                if ch not in ['-', '_']:
                    if prev not in ['-', '_']:
                        res += ch
                    else:
                        res += ch.upper()
            else:
                res += ch.upper()
            prev = ch

        return res

    def _result_with_mult(self, res_str, mult):

        if mult == Multiplicity.ZERO_TO_ONE:
            return "grammar.zeroToOne(%s)" % res_str
        elif mult == Multiplicity.ZERO_TO_MANY:
            return "grammar.zeroToMany(%s)" % res_str
        elif mult == Multiplicity.ONE_TO_MANY:
            return "grammar.oneToMany(%s)" % res_str
        else:
            return res_str

class PythonEditableSections(EditableSections):

    def __init__(self):

        EditableSections.__init__(
            self,
            r"\s*#\s+edit-section\s+([\w\-]+)\s+{\s*",
            r"\s*#\s+}\s+edit-section-end\s*"
            )

    def _create_section_begin(self, section_name):

        return "# edit-section %s {" % section_name

    def _create_section_end(self, section_name):

        return "# } edit-section-end"


text:
class glm_equals : public Catch::MatcherBase<glm::vec2> {
public:
	explicit glm_equals(glm::vec2 v) : expected(v) {}

	bool match(glm::vec2 const& v) const override {
		return v.x == Approx(expected.x) && v.y == Approx(expected.y);
	}

	std::string describe() const override
	{
		std::ostringstream ss;
		ss << "is approximate the same as (" << expected.x << ", " << expected.y << ")";
		return ss.str();
	}
private:
	glm::vec2 expected;
};

inline glm_equals is_approx(glm::vec2 expected)
{
	return glm_equals(expected);
}
inline glm_equals is_approx(float x, float y)
{
	return glm_equals({ x,y });
}

namespace Catch {
	template<typename F>
	struct StringMaker<glm::tvec2<F>> {
		static std::string convert(glm::tvec2<F> const& v)
		{
			using namespace std;
			using namespace std::literals;
			return "("s + to_string(v.x) + ", " + to_string(v.y) + ")";
		}
	};
}


text:
"""OpenAPI core contrib flask decorators module"""
from functools import wraps
from typing import Any
from typing import Callable
from typing import Type

from flask.globals import request
from flask.wrappers import Request
from flask.wrappers import Response

from openapi_core.contrib.flask.handlers import FlaskOpenAPIErrorsHandler
from openapi_core.contrib.flask.providers import FlaskRequestProvider
from openapi_core.contrib.flask.requests import FlaskOpenAPIRequest
from openapi_core.contrib.flask.responses import FlaskOpenAPIResponse
from openapi_core.spec import Spec
from openapi_core.validation.processors import OpenAPIProcessor
from openapi_core.validation.request import openapi_request_validator
from openapi_core.validation.request.datatypes import RequestValidationResult
from openapi_core.validation.request.protocols import RequestValidator
from openapi_core.validation.response import openapi_response_validator
from openapi_core.validation.response.datatypes import ResponseValidationResult
from openapi_core.validation.response.protocols import ResponseValidator

class FlaskOpenAPIViewDecorator(OpenAPIProcessor):
    def __init__(
        self,
        spec: Spec,
        request_validator: RequestValidator,
        response_validator: ResponseValidator,
        request_class: Type[FlaskOpenAPIRequest] = FlaskOpenAPIRequest,
        response_class: Type[FlaskOpenAPIResponse] = FlaskOpenAPIResponse,
        request_provider: Type[FlaskRequestProvider] = FlaskRequestProvider,
        openapi_errors_handler: Type[
            FlaskOpenAPIErrorsHandler
        ] = FlaskOpenAPIErrorsHandler,
    ):
        super().__init__(request_validator, response_validator)
        self.spec = spec
        self.request_class = request_class
        self.response_class = response_class
        self.request_provider = request_provider
        self.openapi_errors_handler = openapi_errors_handler

    def __call__(self, view: Callable[..., Any]) -> Callable[..., Any]:
        @wraps(view)
        def decorated(*args: Any, **kwargs: Any) -> Response:
            request = self._get_request()
            openapi_request = self._get_openapi_request(request)
            request_result = self.process_request(self.spec, openapi_request)
            if request_result.errors:
                return self._handle_request_errors(request_result)
            response = self._handle_request_view(
                request_result, view, *args, **kwargs
            )
            openapi_response = self._get_openapi_response(response)
            response_result = self.process_response(
                self.spec, openapi_request, openapi_response
            )
            if response_result.errors:
                return self._handle_response_errors(response_result)
            return response

        return decorated

    def _handle_request_view(
        self,
        request_result: RequestValidationResult,
        view: Callable[[Any], Response],
        *args: Any,
        **kwargs: Any
    ) -> Response:
        request = self._get_request()
        request.openapi = request_result  # type: ignore
        return view(*args, **kwargs)

    def _handle_request_errors(
        self, request_result: RequestValidationResult
    ) -> Response:
        return self.openapi_errors_handler.handle(request_result.errors)

    def _handle_response_errors(
        self, response_result: ResponseValidationResult
    ) -> Response:
        return self.openapi_errors_handler.handle(response_result.errors)

    def _get_request(self) -> Request:
        return request

    def _get_openapi_request(self, request: Request) -> FlaskOpenAPIRequest:
        return self.request_class(request)

    def _get_openapi_response(
        self, response: Response
    ) -> FlaskOpenAPIResponse:
        return self.response_class(response)

    @classmethod
    def from_spec(
        cls,
        spec: Spec,
        request_class: Type[FlaskOpenAPIRequest] = FlaskOpenAPIRequest,
        response_class: Type[FlaskOpenAPIResponse] = FlaskOpenAPIResponse,
        request_provider: Type[FlaskRequestProvider] = FlaskRequestProvider,
        openapi_errors_handler: Type[
            FlaskOpenAPIErrorsHandler
        ] = FlaskOpenAPIErrorsHandler,
    ) -> "FlaskOpenAPIViewDecorator":
        return cls(
            spec,
            request_validator=openapi_request_validator,
            response_validator=openapi_response_validator,
            request_class=request_class,
            response_class=response_class,
            request_provider=request_provider,
            openapi_errors_handler=openapi_errors_handler,
        )


text:
require "ruby-progressbar"

module Shelly
  class DownloadProgressBar < ProgressBar::Base
    def initialize(total = nil)
      super(:title => "Progress", :total => total, :format => "%a [%B] %p%% %t | %E")
    end

    def progress_callback
      lambda { |inc_size, total_size|
        self.total = total_size if total_size
        self.progress = progress + inc_size
      }
    end
  end
end


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Bloc Chat</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="/css/style.css">


text:
var utils = exports,
   crypto = require('crypto'),
   config = require('./config.js'),
   bytes = require('bytes'),
   colors = require('colors');

require('morgan').format('dev', function(tokens, req, res){
  var status = res.statusCode,
    len = parseInt(res.getHeader('Content-Length'), 10),
    color = 32;

  if (status >= 500) { color = 31; }
  else if (status >= 400) { color = 33; }
  else if (status >= 300) { color = 36; }

  len = isNaN(len) ? '' : len = ' ' + bytes(len);

  return (new Date()).toISOString().grey + ' ' + req.method + ' ' + req.originalUrl + ' '+ '\x1b[' + color + 'm' + res.statusCode + ' \x1b[90m' + (new Date() - req._startTime) + 'ms' + len + '\x1b[0m';
});

// shortcut to terminal colors based on nap type
utils.napcolors = {
  INF: '\033[36m',
  TAP: '\033[33m',
  CAP: '\033[33m',
  ERR: '\033[31m',
  RST: '\033[0m'
};

// log string to console with datetime stamp. if in development environment, log any included data object too
utils.log = function(str,data) {
  if(config.dev && data) { console.log(); }
  console.log((new Date()).toISOString().grey + ' ' + str);
  if(config.dev && data) {
    console.log(data);
    console.log();
  }
};

// enhanced text logging with message type coloring
utils.logText = function(text, TYPE) {
  if(!TYPE) { TYPE = 'INF'.cyan; }
  utils.log(TYPE + ' ' + text);
};

// enhanced nap packet logging with message type coloring and package identification based on hash
utils.logPacket = function(packet, TYPE, text, hash) {
  if(!hash) { hash = crypto.createHash('sha1').update(JSON.stringify(packet)).digest('hex'); }
  utils.log((utils.napcolors[TYPE] ? utils.napcolors[TYPE] : '') + TYPE + utils.napcolors.RST + ' ' + hash.substring(0,6) + ' ' + text, packet);
};


text:
package com.jetbrains.python.templateLanguages.psi;

import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
import com.jetbrains.python.psi.StringLiteralExpression;

/**
 * A string literal in a template file.
 *
 * @author yole
 */
public interface TemplateStringLiteral extends PsiElement, StringLiteralExpression {
  TextRange getStringValueTextRange();
}


text:
export { default as DraftTypeSelect } from './DraftTypeSelect';
export { default as TextDirectionSelect } from './TextDirectionSelect';
export { default as ViewModeToggle } from './ViewModeToggle';
export { default as LayoutsSection } from './LayoutsSection';
export { default as ViewLayoutCards } from './ViewLayoutCards';
export { default as ComposerModeCards } from './ComposerModeCards';
export { default as DensityInjector } from './DensityInjector';
export { default as MessagesOtherSection } from './MessagesOtherSection';


text:
describe('manualRowMove', function () {
  var id = 'testContainer';

  beforeEach(function () {
    this.$container = $('

').appendTo('body');
  });

  afterEach(function () {
    if (this.$container) {
      destroy();
      this.$container.remove();
    }
  });

  describe('UI', function() {
    it('should append UI elements to wtHider after click on row header', function() {
      var hot = handsontable({
        data: Handsontable.helper.createSpreadsheetData(30, 30),
        rowHeaders: true,
        manualRowMove: true
      });

      var $headerTH = this.$container.find('tbody tr:eq(0) th:eq(0)');
      $headerTH.simulate('mousedown');
      $headerTH.simulate('mouseup');
      $headerTH.simulate('mousedown');

      expect(this.$container.find('.ht__manualRowMove--guideline').length).toBe(1);
      expect(this.$container.find('.ht__manualRowMove--backlight').length).toBe(1);
    });

    it('should part of UI elements be visible on dragging action', function() {
      var hot = handsontable({
        data: Handsontable.helper.createSpreadsheetData(30, 30),
        rowHeaders: true,
        manualRowMove: true
      });

      var $headerTH = this.$container.find('tbody tr:eq(0) th:eq(0)');
      $headerTH.simulate('mousedown');
      $headerTH.simulate('mouseup');
      $headerTH.simulate('mousedown');

      expect(this.$container.find('.ht__manualRowMove--guideline:visible').length).toBe(0);
      expect(this.$container.find('.ht__manualRowMove--backlight:visible').length).toBe(1);
    });

    it('should all of UI elements be visible on dragging action', function() {
      var hot = handsontable({
        data: Handsontable.helper.createSpreadsheetData(30, 30),
        rowHeaders: true,
        manualRowMove: true
      });

      var $headers = [
        this.$container.find('tbody tr:eq(0) th:eq(0)'),
        this.$container.find('tbody tr:eq(1) th:eq(0)'),
        this.$container.find('tbody tr:eq(2) th:eq(0)'),
      ];

      $headers[0].simulate('mousedown');
      $headers[0].simulate('mouseup');
      $headers[0].simulate('mousedown');
      $headers[1].simulate('mouseover');
      $headers[2].simulate('mouseover');

      expect(this.$container.find('.ht__manualRowMove--guideline:visible').length).toBe(1);
      expect(this.$container.find('.ht__manualRowMove--backlight:visible').length).toBe(1);
    });
  });
});


text:
package org.kaaproject.kaa.server.admin.client.mvp.data;

import com.google.gwt.user.client.rpc.AsyncCallback;

import org.kaaproject.avro.ui.gwt.client.widget.grid.AbstractGrid;
import org.kaaproject.kaa.common.dto.event.EventClassFamilyDto;
import org.kaaproject.kaa.server.admin.client.KaaAdmin;
import org.kaaproject.kaa.server.admin.client.mvp.activity.grid.AbstractDataProvider;
import org.kaaproject.kaa.server.admin.client.util.HasErrorMessage;

import java.util.List;

public class EcfsDataProvider extends AbstractDataProvider<EventClassFamilyDto, String> {

  public EcfsDataProvider(AbstractGrid<EventClassFamilyDto, String> dataGrid,
                          HasErrorMessage hasErrorMessage) {
    super(dataGrid, hasErrorMessage);
  }

  @Override
  protected void loadData(final LoadCallback callback) {
    KaaAdmin.getDataSource().loadEcfs(new AsyncCallback<List<EventClassFamilyDto>>() {
      @Override
      public void onFailure(Throwable caught) {
        callback.onFailure(caught);

      }

      @Override
      public void onSuccess(List<EventClassFamilyDto> result) {
        callback.onSuccess(result);
      }
    });
  }

}


text:
package org.onetwo.ext.poi.excel.generator;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.onetwo.ext.poi.excel.interfaces.XmlTemplateGeneratorFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;

public class WorkbookGeneratorFactory extends AbstractWorkbookTemplateFactory implements XmlTemplateGeneratorFactory, ModelGeneratorFactory {

	private Map<String, WorkbookModel> workbookModelCache = new ConcurrentHashMap<String, WorkbookModel>();

	public WorkbookGeneratorFactory(){
		super(true);
	}

	protected WorkbookModel getWorkbookModel(String path, boolean fromCache){
		WorkbookModel model = null;
		if(fromCache)
			model = workbookModelCache.get(path);
		if(model==null){
			model = readAsWorkbookModel(getResource(path));
			workbookModelCache.put(path, model);
		}
		return model;
	}

	protected Resource getResource(String path){
		Resource res = new ClassPathResource(path);
		if(!res.isReadable() || !res.exists()){
			res = new FileSystemResource(path);
		}
		return res;
	}

}


text:
"""
@package mi.dataset.parser
@file mi-dataset/mi/dataset/parser/dosta_abcdjm_ctdbp_dcl.py
@author Jeff Roy
@brief Parser for the dosta_d_ctdbp_dcl dataset driver

This file contains code for the dosta_d_ctdbp_dcl parser and code to produce data particles.

The input file is ASCII.
The record types are separated by a newline.
All lines start with a timestamp.
Metadata records: timestamp [text] more text newline.
Instrument records: timestamp sensor_data newline.
Only sensor data records produce particles if properly formed.
Mal-formed sensor data records and all metadata records produce no particles.

There are two file formats supported, the current config, which is listed as incorrect,
and the subsequent files after the inst config is corrected, labelled here as UNCORR
and CORR.

Release notes:
This was broken out of the previous version of ctdbp_cdef_dcl_ce

Initial Release
"""

import re

from mi.core.log import get_logger
from mi.core.common import BaseEnum
from mi.core.instrument.data_particle import \
    DataParticle, \
    DataParticleKey, \
    DataParticleValue

from mi.core.exceptions import \
    RecoverableSampleException

from mi.dataset.dataset_parser import SimpleParser

from mi.dataset.parser.utilities import dcl_controller_timestamp_to_utc_time

from mi.dataset.parser.common_regexes import \
    ANY_CHARS_REGEX, \
    FLOAT_REGEX, \
    ONE_OR_MORE_WHITESPACE_REGEX, \
    TIME_HR_MIN_SEC_MSEC_REGEX, \
    DATE_YYYY_MM_DD_REGEX

log = get_logger()

__author__ = 'Jeff Roy'
__license__ = 'Apache 2.0'

# Basic patterns
COMMA = ','                          # simple comma
COLON = ':'                          # simple colon
HASH = '#'                           # hash symbol
START_GROUP = '('                    # match group start
END_GROUP = ')'                      # match group end
ZERO_OR_MORE_WHITESPACE_REGEX = r'\s*'

# DateTimeStr:   DD Mon YYYY HH:MM:SS
DATE_TIME_STR = r'(?P<date_time_string>\d{2} \D{3} \d{4} \d{2}:\d{2}:\d{2})'  # named group = date_time_string

# Timestamp at the start of each record: YYYY/MM/DD HH:MM:SS.mmm
TIMESTAMP = START_GROUP + '?P<dcl_controller_timestamp>'                      # named group = dcl_controller_timestamp
TIMESTAMP += DATE_YYYY_MM_DD_REGEX + ONE_OR_MORE_WHITESPACE_REGEX
TIMESTAMP += TIME_HR_MIN_SEC_MSEC_REGEX
TIMESTAMP += END_GROUP

OPTODE_REGEX = START_GROUP + '?P<dosta_ln_optode_oxygen>' + FLOAT_REGEX + END_GROUP
# named group = dosta_ln_optode_oxygen

START_METADATA = r'\['                                                   # metadata delimited by []'s
END_METADATA = r'\]'

# LOGGER IDENTIFICATION, such as [ctdbp1:DLOGP3]:
# NOTE: Fall 2016 deployments to Coastal Endurance configured without Logger identification output
LOGGER_ID_PATTERN = START_METADATA                                   # Metadata record starts with '['
LOGGER_ID_PATTERN += ANY_CHARS_REGEX                                 # followed by text
LOGGER_ID_PATTERN += END_METADATA                                    # followed by ']'
LOGGER_ID_PATTERN += COLON                                           # an immediate colon
LOGGER_ID_PATTERN += ZERO_OR_MORE_WHITESPACE_REGEX                   # and maybe whitespace after

# Metadata record:
#   Timestamp [Text]MoreText newline
METADATA_PATTERN = TIMESTAMP + ONE_OR_MORE_WHITESPACE_REGEX          # dcl controller timestamp
METADATA_PATTERN += LOGGER_ID_PATTERN                                # Metadata record starts with '['
METADATA_PATTERN += '\D+' + ANY_CHARS_REGEX                          # followed by more non digit text
METADATA_MATCHER = re.compile(METADATA_PATTERN)

# match a single line corrected instrument record from Endurance
ENDURANCE_CORR_REGEX = TIMESTAMP + ONE_OR_MORE_WHITESPACE_REGEX             # dcl timestamp, named group = timestamp
ENDURANCE_CORR_REGEX += '(?:' + HASH + '|' + LOGGER_ID_PATTERN + ')?'        # a logger id or a hash, non-captured group
ENDURANCE_CORR_REGEX += ZERO_OR_MORE_WHITESPACE_REGEX
ENDURANCE_CORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX   # temp (omitted)
ENDURANCE_CORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX   # conductivity (omitted)
ENDURANCE_CORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX   # pressure (omitted)
ENDURANCE_CORR_REGEX += OPTODE_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX  # named group = dosta_ln_optode_oxygen
ENDURANCE_CORR_REGEX += DATE_TIME_STR + ONE_OR_MORE_WHITESPACE_REGEX         # named group = time_string
ENDURANCE_CORR_MATCHER = re.compile(ENDURANCE_CORR_REGEX)

# Note early deployments had incorrectly configured instruments.
# These files may be submitted to the parser but will not contain any DOSTA data

# match a single line uncorrected instrument record - produces no output
UNCORR_REGEX = TIMESTAMP + ONE_OR_MORE_WHITESPACE_REGEX + HASH              # dcl timestamp, named group = timestamp
UNCORR_REGEX += ONE_OR_MORE_WHITESPACE_REGEX
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # temp (omitted)
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # conductivity (omitted)
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # pressure (omitted)
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # salinity (omitted)
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # sound vel (omitted)
UNCORR_REGEX += DATE_TIME_STR + COMMA + ONE_OR_MORE_WHITESPACE_REGEX        # named group = time_string
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # sigma t (omitted)
UNCORR_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX          # sigma v (omitted)
UNCORR_REGEX += FLOAT_REGEX + ONE_OR_MORE_WHITESPACE_REGEX                  # sigma I (omitted)
UNCORR_MATCHER = re.compile(UNCORR_REGEX)

# Note: Pioneer data files should not be sent to this parser but the parser was coded to avoid
# unnecessary error messages being produced if they are.

# match a single line instrument record from Pioneer - produces no output
PIONEER_REGEX = TIMESTAMP + ONE_OR_MORE_WHITESPACE_REGEX + HASH       # dcl timestamp, named group = timestamp
PIONEER_REGEX += ONE_OR_MORE_WHITESPACE_REGEX
PIONEER_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX   # temp (omitted)
PIONEER_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX   # conductivity (omitted)
PIONEER_REGEX += FLOAT_REGEX + COMMA + ONE_OR_MORE_WHITESPACE_REGEX   # pressure (omitted)
PIONEER_REGEX += DATE_TIME_STR + ONE_OR_MORE_WHITESPACE_REGEX         # time_string (omitted)
PIONEER_MATCHER = re.compile(PIONEER_REGEX)

# This table is used in the generation of the data particle.
# Column 1 - particle parameter name & match group name
# Column 2 - data encoding function (conversion required - int, float, etc)
DATA_PARTICLE_MAP = [
    ('dcl_controller_timestamp', str),
    ('dosta_ln_optode_oxygen', float),
    ('date_time_string', str)
]

# TODO verify stream names
class DataParticleType(BaseEnum):
    INSTRUMENT_TELEMETERED = 'dosta_abcdjm_ctdbp_dcl_instrument'
    INSTRUMENT_RECOVERED = 'dosta_abcdjm_ctdbp_dcl_instrument_recovered'

class DostaAbcdjmCtdbpDclDataParticle(DataParticle):
    """
    Class for parsing data from the data set
    """

    def __init__(self, raw_data,
                 port_timestamp=None,
                 internal_timestamp=None,
                 preferred_timestamp=DataParticleKey.PORT_TIMESTAMP,
                 quality_flag=DataParticleValue.OK,
                 new_sequence=None):

        super(DostaAbcdjmCtdbpDclDataParticle, self).__init__(raw_data,
                                                              port_timestamp,
                                                              internal_timestamp,
                                                              preferred_timestamp,
                                                              quality_flag,
                                                              new_sequence)

        # The particle timestamp is the DCL Controller timestamp.
        utc_time = dcl_controller_timestamp_to_utc_time(self.raw_data.group('dcl_controller_timestamp'))
        self.set_internal_timestamp(unix_time=utc_time)

    def _build_parsed_values(self):
        """
        Take something in the data format and turn it into
        an array of dictionaries defining the data in the particle
        with the appropriate tag.
        """

        return [self._encode_value(name, self.raw_data.group(name), function)
                for name, function in DATA_PARTICLE_MAP]

class DostaAbcdjmCtdbpDclRecoveredDataParticle(DostaAbcdjmCtdbpDclDataParticle):
    """
    Class for generating Offset Data Particles from Recovered data.
    """
    _data_particle_type = DataParticleType.INSTRUMENT_RECOVERED

class DostaAbcdjmCtdbpDclTelemeteredDataParticle(DostaAbcdjmCtdbpDclDataParticle):
    """
    Class for generating Offset Data Particles from Telemetered data.
    """
    _data_particle_type = DataParticleType.INSTRUMENT_TELEMETERED

class DostaAbcdjmCtdbpDclParser(SimpleParser):
    """
    """
    def __init__(self,
                 is_telemetered,
                 stream_handle,
                 exception_callback):

        super(DostaAbcdjmCtdbpDclParser, self).__init__({},
                                                        stream_handle,
                                                        exception_callback)

        if is_telemetered:
            self._particle_class = DostaAbcdjmCtdbpDclTelemeteredDataParticle
        else:
            self._particle_class = DostaAbcdjmCtdbpDclRecoveredDataParticle

    def parse_file(self):
        """
        Parse through the file, pulling single lines and comparing to the established patterns,
        generating particles for data lines
        """

        for line in self._stream_handle:
            # check for a match against the corrected Endurance pattern
            match = ENDURANCE_CORR_MATCHER.match(line)

            if match is not None:
                log.debug('record found')
                data_particle = self._extract_sample(self._particle_class,
                                                     None,
                                                     match,
                                                     None)
                self._record_buffer.append(data_particle)

            else:
                # check to see if this is any other expected format
                test_uncorr = UNCORR_MATCHER.match(line)
                test_pioneer = PIONEER_MATCHER.match(line)
                test_meta = METADATA_MATCHER.match(line)

                if test_uncorr is None and test_meta is None and test_pioneer is None:
                    # something in the data didn't match a required regex, so raise an exception and press on.
                    message = "Error while decoding parameters in data: [%s]" % line
                    self._exception_callback(RecoverableSampleException(message))


text:
package kc_phd_cambridge.cellproliferation;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import static kc_phd_cambridge.cellproliferation.FXMLMainWindowController.new_line;
import static kc_phd_cambridge.cellproliferation.FXMLMainWindowController.tab;

/**
 *
 * @author Kyata Chibalabala
 */
public class DataAnalysis
{
  //private final List<Cell> cell_population;
  private final String organism;
  private final int sex;
  private final List<String> genome_data;
  private final int  haploid_number;
  private long total_number_of_bases_in_genome;
  private double fraction_of_genome_labelled;
  private int total_labelled_bases_in_genome, total_number_of_lineages;
  private final int[] highest_generations;// An array of the highest generation reached from each cell lineage

  /**
   *
   * @param new_population the array list of cells in the final population.
   * @param new_genome_data the string array of chromosome sizes required to
   * perform fractional DNA synthesis calculations.
   * @param new_organism the string representation of the organism.
   * @param new_sex the integer value of the sex of the organism.
   */
  public DataAnalysis(String file_name, List<String> new_genome_data, String new_organism, int new_sex, int[] new_highest_generations, int initial_population_size)
	{
    //this.cell_population = new_population;
    this.genome_data = new_genome_data;
    this.organism = new_organism;
    this.sex = new_sex;
    this.total_number_of_bases_in_genome = GenomeData.getGenomeSize(this.organism, this.sex);
    this.haploid_number = GenomeData.getHaploidNumber(this.organism);
    this.highest_generations = new_highest_generations;
    this.total_number_of_lineages = initial_population_size;

    //Find the global highest generation reached in any of the lineages
    int highest_generation_tracker = 0;
    for(int highest_gen: highest_generations)
    {
      if(highest_generation_tracker < highest_gen)
        highest_generation_tracker = highest_gen;
    }

    // Calculate the expected number of cells up to the global highest generation of any lineage
    int[] expected_number_of_cells_in_each_generation = new int[highest_generation_tracker+1];// + 1 to tak einto account generation 0
    int cells_in_generation = 1;
    expected_number_of_cells_in_each_generation[0] = cells_in_generation;// Set generation 0 expected number of cells to 1
    for(int count = 1; count < highest_generation_tracker+1; count++)// + 1 to tak einto account generation 0
    {// For all generations
      cells_in_generation = cells_in_generation * 2;
      expected_number_of_cells_in_each_generation[count] = cells_in_generation;
    }  // For all generations

    // Initiate an array to store the percentage labelled in each generation for each lineage
    // First dimension = cell lineages; second dimension = generations arising from that lineage
    StringBuilder[][] generation_percentages = new StringBuilder[total_number_of_lineages][];

    // Populate the second dimension of the array, jagged array if need be
    for(int lineage_count = 0; lineage_count < total_number_of_lineages; lineage_count++)
    {// For each lineage
      int generations_in_this_lineage = highest_generations[lineage_count];
      generation_percentages[lineage_count] = new StringBuilder[generations_in_this_lineage+1];
    }// for each lingeage

    // TEST EXPECTED NUMBER OF CELLS
    int count = 0;
    for(StringBuilder[] lineage:generation_percentages)
    {
      System.out.println("# of generations in lineage " + count + " = "+ lineage.length);
      count++;
    }

    FileReader fr;
    try
    {
      fr = new FileReader(file_name);
      BufferedReader br = new BufferedReader(fr);
      String s;
      while((s = br.readLine()) != null)
      {
        String[] split_line = s.split(tab + tab);
        //while(split_line[0] !=)
        int cell_id, cell_generation, cell_lineage;
        double percentage_labelled;
        cell_id = Integer.parseInt(split_line[0]);
        cell_generation = Integer.parseInt(split_line[1]);
        cell_lineage = Integer.parseInt(split_line[2]);
        percentage_labelled = Double.parseDouble(split_line[3]);

        String to_add = Double.toString(percentage_labelled) + ",";
        if(generation_percentages[cell_lineage][cell_generation] == null)
        {// If nothing is stored at this index
          generation_percentages[cell_lineage][cell_generation]= new StringBuilder(to_add);
        }else
        {
          generation_percentages[cell_lineage][cell_generation].append(to_add) ;
        }
        System.out.println(cell_lineage +" " + cell_generation);

        //System.out.println(generation_percentages[cell_lineage][cell_generation]);
      }
      fr.close();
    } catch (FileNotFoundException ex)
    {
      Logger.getLogger(DataAnalysis.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IOException ex)
    {
      Logger.getLogger(DataAnalysis.class.getName()).log(Level.SEVERE, null, ex);
    }

    // Calculate string of results to write to file
    List<String> final_generation_to_output = new ArrayList<>();
    for(int lineage = 0; lineage < generation_percentages.length; lineage++)
    {
      final_generation_to_output.add("LINEAGE = " + lineage);

      generation_percentages[lineage][0] = new StringBuilder("0.0");//Set all generation 0 values to 0
      for(int generation = 0; generation < generation_percentages[lineage].length; generation++)
      {
        final_generation_to_output.add("GENERATION = " + generation );
        String this_line = generation_percentages[lineage][generation].toString();
        String[] split_line = this_line.split(",");
        System.out.println("Line " + this_line + " Elements = " + split_line.length);

        double perc = 0;
        for(String percentage:split_line)
        {
          perc += Double.parseDouble(percentage);
          //System.out.println();
        }
        final_generation_to_output.add(Double.toString(perc/split_line.length));
      }
    }

    /*// Calculate string of results to write to file
    List<String> final_generation_labels = new ArrayList<>();
    for(int lineage_count = 0; lineage_count < generation_percentages.length; lineage_count++)
    {// For each lineage
      final_generation_labels.add(tab + tab + "Lineage " + lineage_count);
      generation_percentages[lineage_count][0] = new StringBuilder("0.0");//Set all generation 0 values to 0
      for(int generation_count = 0; generation_count < generation_percentages[lineage_count].length; generation_count++)
      {// For each generation in each lineage
        final_generation_labels.add("Generation " + generation_count);
        String this_line = generation_percentages[lineage_count][generation_count].toString();
        String[] split_line = this_line.split(",");

        System.out.println("YOOO" + this_line);

        double label_percent_accumulator = 0.0;
        for(int this_count = 0; this_count < split_line.length; this_count++)
        {
          System.out.println("Element " + this_count +" ="+split_line[this_count]);
          label_percent_accumulator += Double.parseDouble(split_line[this_count]);
          if(count == split_line.length)
          {// if the final cell's percentage for this generation
            System.out.println("Last index " + "Accum = " + label_percent_accumulator + " total elements = " + split_line.length);
            final_generation_labels.add((label_percent_accumulator/(split_line.length-1)) + "%");
          }
        }
      }
    }*/

    writeToFile(final_generation_to_output, "Final Label Percentages");

    /*TODO
    1. Calculate B, the toal number of bases in the genome
    2. Calculated L, the number of bases in the genome thats are labelled
    3. Calculate F, the fraction of the genome that is labelled
    */
  }

  private void getCellLabelDistribution(Cell new_cell)
  {
    double[][] chromosome_labelled_bases = new double[haploid_number][2];
    double[][][] genome = new_cell.getGenome();
    total_labelled_bases_in_genome = 0;
    //System.out.println("Cell " + new_cell.getId() + ": Generation " + new_cell.getGeneration());
    for(int chromosome_count = 0; chromosome_count < genome.length; chromosome_count++)
    {// For each homologous pair
      double chromo_labelled_bases = 0;
      for(int homologous_pair_count= 0; homologous_pair_count < genome[chromosome_count].length; homologous_pair_count++)
      {// For each chromosome in a homologous pair
        int chromosome_size;

        String[] split_chromosome_sizes = genome_data.get(chromosome_count).split(",");
        if(homologous_pair_count==0)
        {//Homologous chromosome one
          chromosome_size = Integer.parseInt(split_chromosome_sizes[0]);
        }else
        {//Homologous chromosome two
          chromosome_size = Integer.parseInt(split_chromosome_sizes[1]);
        }
        for(int dna_strand_count = 0; dna_strand_count < genome[chromosome_count][homologous_pair_count].length; dna_strand_count++)
        {// For each DNA strand in the chromosome

          //System.out.println(genome[chromosome_count][homologous_pair_count][dna_strand_count]);

          double bases_labelled_on_strand = genome[chromosome_count][homologous_pair_count][dna_strand_count];
          //System.out.println("Strand bases labelled " + bases_labelled_on_strand);
          total_labelled_bases_in_genome += bases_labelled_on_strand*(double)chromosome_size;

          chromo_labelled_bases =(bases_labelled_on_strand*(double)chromosome_size);
        }// For each DNA strand
        chromosome_labelled_bases[chromosome_count][homologous_pair_count] = chromo_labelled_bases;
      }// For each chromosome in a homologous pair
    }// For each homologous pair
    fraction_of_genome_labelled = (total_labelled_bases_in_genome/(double)total_number_of_bases_in_genome);
    new_cell.setFractionGenomeLabelled(fraction_of_genome_labelled);
  }// getCellLabelDistribution

  private void writeToFile(List<String> file_contents, String file_name)
  {
    try
    {
      try(FileWriter writer = new FileWriter(file_name))
      {
        for(String line : file_contents)
        {
          writer.append(line);
          writer.append(new_line);
        }
        //generate whatever data you want
        writer.flush();
        writer.close();
      }
    }
    catch(IOException e)
    {
    }
  }
}// DataAnalysis


text:
package com.springtraining.springaop.types2;

public class CustomerService {

	private String name;
	private String id;

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

	public void printName() {
		System.out.println("Customer name : " + this.name);
	}

	public void printId() {
		System.out.println("Customer ID : " + this.id);
	}

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

	public void printThrowException() {
		throw new IllegalArgumentException();
	}

}


text:
var dateFormat = require('dateformat'),
	mysql = require('mysql');

exports.init = function (callback) {

	if (!!this.connection) {
		return;
	}

	var mysql = require('mysql');

	this.connectionConfig = {
		host : 'localhost',
		user : 'ngblog',
		password : 'password',
		database : 'ngblog',
		multipleStatements : true
	};

	this.connection = mysql.createConnection(this.connectionConfig);
	this.connection.connect();

	exports.handleDisconnect(this.connection);

	console.log('Utils: MySQL initialized ' + (new Date()).toString());
	if (callback) {
		callback(this.connection);
	}
};

exports.handleDisconnect = function (connection) {

	connection.on('error', function (err) {

		if (!err.fatal) {
			return;
		}

		if (err.code !== 'PROTOCOL_CONNECTION_LOST') {
			throw err;
		}

		console.log('Utils: Re-connecting lost database connection: ' + (new Date()).toString());

		setTimeout(function () {
			exports.connection = mysql.createConnection(exports.connectionConfig);
			exports.handleDisconnect(exports.connection);
			exports.connection.connect();
		}, 3000);
	});
};

exports.messageFactory = function () {
	return {
		error : 0,
		errorMessage : '',
		data : null
	};
};

exports.jsonWriter = function (res, message) {
	var messageJSON = JSON.stringify(message);

	res.contentType('json');
	res.writeHead(200, {
		'Access-Control-Allow-Origin' : '*',
		'ng-blog' : true,
		'ng-blog-length' : messageJSON.length,
		'Connection' : 'close',
		'Cache-Control' : 'no-cache',
		'Content-Type' : 'application/json; charset=UTF-8',
		'Vary' : 'Accept-Encoding'
	});

	res.end(messageJSON);
};

exports.throwError = function (error, errorMessage, res) {
	var message = exports.messageFactory();
	message.error = error;
	message.errorMessage = errorMessage;
	exports.jsonWriter(res, message);
};

exports.escapeSingleQuotes = function (string) {
	return string ? string.replace(/'/g, "''") : null;
}


text: sudo apt-get install --only-upgrade libunwind=0.99-0.2+deb6u1 -y


text:
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/item_comic_layout_width"
    android:layout_height="@dimen/item_comic_layout_height"
    android:layout_marginEnd="@dimen/item_comic_layout_margin_end"
    android:orientation="vertical">

    <android.support.v7.widget.AppCompatImageView
        android:id="@+id/iv_image"
        android:layout_width="@dimen/item_comic_image_width"
        android:layout_height="@dimen/item_comic_image_height"
        android:layout_gravity="center"
        android:background="@color/lightGray"
        android:clickable="true"
        android:foreground="?attr/selectableItemBackground" />

    <android.support.v7.widget.AppCompatTextView
        android:id="@+id/tv_title"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:ellipsize="end"
        android:gravity="center"
        android:maxLines="3"
        android:padding="2dp"
        android:textColor="@color/itemComicTitleTextColor"
        android:textSize="12sp" />

</LinearLayout>


text:
<?php
/**
 * Translation Plugin: Simple multilanguage plugin
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Andreas Gohr <andi@splitbrain.org>
 */

// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();

if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR);

class helper_plugin_door43shared extends DokuWiki_Plugin {

    /**
     * @var door43Cache
     */
    private static $cache;

    /**
     * Initialize
     */
    function helper_plugin_door43shared() {

        // initialization code
    }

    function loadPluginBase() {
        require_once 'base_classes/plugin_base.php';
    }

    function loadAjaxHelper() {
        require_once 'base_classes/ajax_helper.php';
    }

    function loadActionBase() {
        require_once 'base_classes/action_base.php';
    }

    /**
     * Strings that need translated are delimited by @ symbols. The text between the symbols is the key in lang.php.
     * @param $html
     * @param array $langArray Normally this would be $this->lang
     * @return mixed
     */
    public function translateHtml($html, $langArray) {

        // replace all strings from the passed $langArray
        $temp = preg_replace_callback('/@(.+?)@/',
            function($matches) use ($langArray) {
                $text = isset($langArray[$matches[1]]) ? $langArray[$matches[1]] : '';
                return (empty($text)) ? $matches[0] : $text;
            }, $html);

        // replace remaining strings from $this->lang
        if (!$this->localised) $this->setupLocale();
        return preg_replace_callback('/@(.+?)@/',
            function($matches) {
                $text = $this->getLang($matches[1]);
                return (empty($text)) ? $matches[0] : $text;
            }, $temp);
    }

    public function delete_directory_and_files($dir) {
        foreach(scandir($dir) as $file) {
            if ('.' === $file || '..' === $file) continue;
            if (is_dir("$dir/$file")) $this->delete_directory_and_files("$dir/$file");
            else unlink("$dir/$file");
        }
        rmdir($dir);
    }

    public function getCache() {
        require_once 'cache.php';
        if (empty(self::$cache)) {
            self::$cache = door43Cache::getInstance();
        }
        return self::$cache;
    }
}


text:
package com.flyingrhenquest.JmeterThreadSync;

import org.apache.jmeter.samplers.AbstractSampler;
import org.apache.jmeter.threads.JMeterContextService;
import org.apache.jmeter.threads.JMeterVariables;
import org.apache.jmeter.testbeans.TestBean;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jmeter.samplers.Sampler;
import org.apache.jmeter.samplers.Entry;

public class CheckpointSampler extends AbstractSampler implements Sampler, TestBean {
  private String checkpointName;
  private static final long serialVersionUID = 240L;

  public String getCheckpointName() {
    return checkpointName;
  }

  public void setCheckpointName(String checkpointName) {
    this.checkpointName = checkpointName;
  }

  public SampleResult sample(Entry e) {
    SampleResult retval = new SampleResult();
    JMeterVariables vars = JMeterContextService.getContext().getVariables();
    CheckpointObject checkpoint = (CheckpointObject) vars.getObject(checkpointName);
    if (null == checkpoint) {
      retval.setSampleLabel("ERROR: No CheckpointConfig object with a name of " + checkpointName + " exists in this test!");
      retval.setErrorCount(1);
      retval.setSuccessful(false);
    } else {
      retval.setSampleLabel("Current Checkpoint value is: " + checkpoint.toString() + "... going to sleep until it reaches 0...");
      retval.setSuccessful(true);
      checkpoint.decrement();
    }
    return retval;
  }

}


text:
// github.com/RodneyShag

import java.util.Scanner;

/*

 Time Complexity: O(n) with just 1 traversal of our String
Space Complexity: O(1)

There are approximately 26^2 possible combinations of alternating pairs of letters.
Notice that this number remains constant and is not dependent on the length of our
input String. This fact will help us achieve a linear O(n) runtime.

We want to solve this problem with just 1 traversal of our String, so we solve all
26^2 subproblems simultaneously. We use two int[26][26] arrays to keep track of the
26^2 solutions.

As we iterate through our String, we update our two int[26][26] arrays as follows:
- int[26][26] letter ---> This array is used to keep track of which of the alternating
  characters we saw last. To achieve this, for the current character "ch", we update the
  corresponding row (26 entries) and column (26 entries) with the (ASCII) value of "ch".
- int[26][26] count ----> if we find that no solution exists for a pair of characters
  (which happens when the characters don't alternate), we store -1 in this array.
  Otherwise, we store he current maximum length of "s" for the pair of characters.

Our final answer is the maximum value in our "int[26][26] count" array.

*/

public class Solution {

    public static final int NUM_LETTERS = 26;

    public static void main(String[] args) {
        /* Save input */
        Scanner scan = new Scanner(System.in);
        int length = scan.nextInt();
        String str = scan.next();
        scan.close();

        /* Edge case */
        if (length <= 1) {
            System.out.println(0);
            return;
        }

        /* Create arrays representing the 26^2 subproblems */
        int [][] pair  = new int[NUM_LETTERS][NUM_LETTERS];
        int [][] count = new int[NUM_LETTERS][NUM_LETTERS];

        for (int i = 0; i < length; i++) {
            char letter   = str.charAt(i);
            int letterNum = letter - 'a';

            /* Update row */
            for (int col = 0; col < NUM_LETTERS; col++) {
                if (pair[letterNum][col] == letter) {
                    count[letterNum][col] = -1;
                }
                if (count[letterNum][col] != -1) {
                    pair[letterNum][col] = letter;
                    count[letterNum][col]++;
                }
            }

            /* Update column */
            for (int row = 0; row < NUM_LETTERS; row++) {
                if (pair[row][letterNum] == letter) {
                    count[row][letterNum] = -1;
                }
                if (count[row][letterNum] != -1) {
                    pair[row][letterNum] = letter;
                    count[row][letterNum]++;
                }
            }
        }

        /* Find max in "count" array */
        int max = 0;
        for (int row = 0; row < NUM_LETTERS; row++) {
            for (int col = 0; col < NUM_LETTERS; col++) {
                max = Math.max(max, count[row][col]);
            }
        }
        System.out.println(max);
    }
}