text:
using namespace slim;
using namespace slim::expr;
BOOST_AUTO_TEST_SUITE(TestExprLexer)

Token single_token(const std::string &str)
{
    Lexer lexer(str);
    return lexer.next();
}

BOOST_AUTO_TEST_CASE(single_tokens)
{
    BOOST_CHECK_EQUAL(Token::END, single_token("").type);
    BOOST_CHECK_EQUAL(Token::END, single_token(" \t\r\n").type);
    BOOST_CHECK_EQUAL(Token::END, single_token("").type);

    BOOST_CHECK_EQUAL(Token::HASH_KEY_VALUE_SEP, single_token("=>").type);
    BOOST_CHECK_EQUAL(Token::LPAREN, single_token("(").type);
    BOOST_CHECK_EQUAL(Token::RPAREN, single_token(")").type);
    BOOST_CHECK_EQUAL(Token::L_SQ_BRACKET, single_token("[").type);
    BOOST_CHECK_EQUAL(Token::R_SQ_BRACKET, single_token("]").type);
    BOOST_CHECK_EQUAL(Token::L_CURLY_BRACKET, single_token("{").type);
    BOOST_CHECK_EQUAL(Token::R_CURLY_BRACKET, single_token("}").type);
    BOOST_CHECK_EQUAL(Token::COMMA, single_token(",").type);
    BOOST_CHECK_EQUAL(Token::DOT, single_token(".").type);
    BOOST_CHECK_EQUAL(Token::INCLUSIVE_RANGE, single_token("..").type);
    BOOST_CHECK_EQUAL(Token::EXCLUSIVE_RANGE, single_token("...").type);
    BOOST_CHECK_EQUAL(Token::SAFE_NAV, single_token("&.").type);
    BOOST_CHECK_EQUAL(Token::COLON, single_token(":").type);
    BOOST_CHECK_EQUAL(Token::CONST_NAV, single_token("::").type);
    BOOST_CHECK_EQUAL(Token::CONDITIONAL, single_token("?").type);
    BOOST_CHECK_EQUAL(Token::PLUS, single_token("+").type);
    BOOST_CHECK_EQUAL(Token::MINUS, single_token("- ").type);
    BOOST_CHECK_EQUAL(Token::MUL, single_token("* ").type);
    BOOST_CHECK_EQUAL(Token::POW, single_token("**").type);
    BOOST_CHECK_EQUAL(Token::DIV, single_token("/").type);
    BOOST_CHECK_EQUAL(Token::MOD, single_token("%").type);
    BOOST_CHECK_EQUAL(Token::AND, single_token("& ").type);
    BOOST_CHECK_EQUAL(Token::OR, single_token("| ").type);
    BOOST_CHECK_EQUAL(Token::XOR, single_token("^ ").type);
    BOOST_CHECK_EQUAL(Token::NOT, single_token("~ ").type);
    BOOST_CHECK_EQUAL(Token::LSHIFT, single_token("<<").type);
    BOOST_CHECK_EQUAL(Token::RSHIFT, single_token(">>").type);
    BOOST_CHECK_EQUAL(Token::LOGICAL_NOT, single_token("! ").type);
    BOOST_CHECK_EQUAL(Token::LOGICAL_AND, single_token("&&").type);
    BOOST_CHECK_EQUAL(Token::LOGICAL_OR, single_token("||").type);
    BOOST_CHECK_EQUAL(Token::CMP_EQ, single_token("== ").type);
    BOOST_CHECK_EQUAL(Token::CMP_NE, single_token("!= ").type);
    BOOST_CHECK_EQUAL(Token::CMP, single_token("<=>").type);
    BOOST_CHECK_EQUAL(Token::CMP_LT, single_token("<  ").type);
    BOOST_CHECK_EQUAL(Token::CMP_LE, single_token("<= ").type);
    BOOST_CHECK_EQUAL(Token::CMP_GT, single_token(">  ").type);
    BOOST_CHECK_EQUAL(Token::CMP_GE, single_token(">= ").type);
    BOOST_CHECK_EQUAL(Token::CMP, single_token("<=>").type);
    BOOST_CHECK_EQUAL(Token::ASSIGN, single_token("= ").type);

    BOOST_CHECK_EQUAL(Token::STRING_DELIM, single_token("'").type);
    BOOST_CHECK_EQUAL(Token::STRING_DELIM, single_token("\"").type);

    auto tok = Lexer("string \\\\ \\' \\\" \\t \\n \\r # \\#{} end\"").next_str_interp('"');
    BOOST_CHECK_EQUAL(Token::STRING_TEXT, tok.type);
    BOOST_CHECK_EQUAL("string \\ \' \" \t \n \r # #{} end", tok.str);

    BOOST_CHECK_EQUAL(Token::STRING_TEXT, Lexer("'").next_str_interp('"').type);
    BOOST_CHECK_EQUAL(Token::STRING_DELIM, Lexer("'").next_str_interp('\'').type);
    BOOST_CHECK_EQUAL(Token::STRING_INTERP_START, Lexer("#{").next_str_interp('"').type);

    tok = single_token("054335.2250");
    BOOST_CHECK_EQUAL(Token::NUMBER, tok.type);
    BOOST_CHECK_EQUAL("054335.2250", tok.str);

    tok = single_token("054335.0");
    BOOST_CHECK_EQUAL(Token::NUMBER, tok.type);
    BOOST_CHECK_EQUAL("054335.0", tok.str);

    tok = single_token("054335");
    BOOST_CHECK_EQUAL(Token::NUMBER, tok.type);
    BOOST_CHECK_EQUAL("054335", tok.str);

    tok = single_token("-5.5");
    BOOST_CHECK_EQUAL(Token::NUMBER, tok.type);
    BOOST_CHECK_EQUAL("-5.5", tok.str);

    tok = single_token("test_func55");
    BOOST_CHECK_EQUAL(Token::NAME, tok.type);
    BOOST_CHECK_EQUAL("test_func55", tok.str);

    tok = single_token("empty?");
    BOOST_CHECK_EQUAL(Token::NAME, tok.type);
    BOOST_CHECK_EQUAL("empty?", tok.str);

    tok = single_token("test_func55:");
    BOOST_CHECK_EQUAL(Token::HASH_SYMBOL, tok.type);
    BOOST_CHECK_EQUAL("test_func55", tok.str);

    tok = single_token("test_func55::"); //double colon is constant lookup, not hash key symbol
    BOOST_CHECK_EQUAL(Token::NAME, tok.type);
    BOOST_CHECK_EQUAL("test_func55", tok.str);

    tok = single_token("@my_attr");
    BOOST_CHECK_EQUAL(Token::ATTR_NAME, tok.type);
    BOOST_CHECK_EQUAL("my_attr", tok.str);

    tok = single_token(":sym");
    BOOST_CHECK_EQUAL(Token::SYMBOL, tok.type);
    BOOST_CHECK_EQUAL("sym", tok.str);
    BOOST_CHECK_EQUAL("!", single_token(":!").str);
    BOOST_CHECK_EQUAL("~", single_token(":~").str);
    BOOST_CHECK_EQUAL("*", single_token(":*").str);
    BOOST_CHECK_EQUAL("/", single_token(":/").str);
    BOOST_CHECK_EQUAL("%", single_token(":%").str);
    BOOST_CHECK_EQUAL("+", single_token(":+").str);
    BOOST_CHECK_EQUAL("-", single_token(":-").str);
    BOOST_CHECK_EQUAL("&", single_token(":&").str);
    BOOST_CHECK_EQUAL("|", single_token(":|").str);
    BOOST_CHECK_EQUAL("^", single_token(":^").str);

    BOOST_CHECK_EQUAL("+@",  single_token(":+@").str);
    BOOST_CHECK_EQUAL("-@",  single_token(":-@").str);
    BOOST_CHECK_EQUAL("==",  single_token(":==").str);
    BOOST_CHECK_EQUAL("!=",  single_token(":!=").str);
    BOOST_CHECK_EQUAL("=~",  single_token(":=~").str);
    BOOST_CHECK_EQUAL("<",   single_token(":<").str);
    BOOST_CHECK_EQUAL("<<",  single_token(":<<").str);
    BOOST_CHECK_EQUAL("<=",  single_token(":<=").str);
    BOOST_CHECK_EQUAL("<=>", single_token(":<=>").str);
    BOOST_CHECK_EQUAL("<=>", single_token(":<=>x").str);
    BOOST_CHECK_EQUAL(">",   single_token(":>").str);
    BOOST_CHECK_EQUAL(">>",  single_token(":>>").str);
    BOOST_CHECK_EQUAL(">=",  single_token(":>=").str);
    BOOST_CHECK_EQUAL(">=",  single_token(":>=5").str);
    BOOST_CHECK_EQUAL(">",   single_token(":><5").str);

    // invalid tokens
    BOOST_CHECK_EQUAL(Token::UNKNOWN, single_token("` ").type);
    BOOST_CHECK_THROW(single_token("@").type, SyntaxError);
    BOOST_CHECK_THROW(Lexer("\\g'").next_str_interp('\''), SyntaxError);
}

BOOST_AUTO_TEST_SUITE_END()


text:
static __inline double _lgamma(double x)
{
  return spu_extract(_lgammad2(spu_promote(x, 0)), 0);
}

redpajama_set_name: RedPajamaGithub


text:
from types import NoneType

import cloudstorage
from google.appengine.ext import deferred, db

from mcfw.rpc import arguments, returns
from rogerthat.bizz.job import delete_service
from rogerthat.bizz.job.delete_service import validate_delete_service
from rogerthat.dal import parent_key_unsafe
from rogerthat.dal.profile import get_service_profile
from rogerthat.rpc import users
from shop.dal import get_customer
from solutions.common import SOLUTION_COMMON
from solutions.common.consts import OCA_FILES_BUCKET
from solutions.common.dal import get_solution_settings
from solutions.common.integrations.cirklo.models import CirkloMerchant
from solutions.common.utils import create_service_identity_user_wo_default

@returns(NoneType)
@arguments(service_user=users.User, delete_svc=bool)
def delete_solution(service_user, delete_svc):
    deferred.defer(_delete_solution, service_user, delete_svc, _transactional=db.is_in_transaction())

def _delete_solution(service_user, delete_svc):
    # type: (users.User, bool) -> None
    sln_settings = get_solution_settings(service_user)
    identities = [None]
    if sln_settings.identities:
        identities.extend(sln_settings.identities)
    validate_delete_service(service_user)

    def trans():
        service_profile = get_service_profile(service_user, False)
        deferred.defer(_reset_customer_model, service_user, _transactional=True)
        for service_identity in identities:
            deferred.defer(_delete_solution_models, service_user, service_identity,
                           [service_profile.solution, SOLUTION_COMMON], delete_svc, _transactional=True)
        service_profile.solution = None
        service_profile.put()
    db.run_in_transaction(trans)

def _reset_customer_model(service_user):
    from shop.bizz import re_index_customer
    customer = get_customer(service_user)
    if customer:
        customer.user_email = None
        customer.service_email = None
        customer.community_id = 0
        customer.put()

        re_index_customer(customer.key())

def _delete_solution_models(service_user, service_identity, solutions, delete_svc):
    solution = solutions.pop(0)
    _cleanup_gcs(service_user)
    service_identity_user = create_service_identity_user_wo_default(service_user, service_identity)
    key = parent_key_unsafe(service_identity_user, solution)

    def trans():
        keys = db.GqlQuery("SELECT __key__ WHERE ANCESTOR IS KEY('%s')" % str(key)).fetch(1000)
        if keys:
            db.delete(keys)
            return True
        else:
            if solutions:
                deferred.defer(_delete_solution_models, service_user, service_identity,
                               solutions, delete_svc, _transactional=True)
            elif delete_svc and service_identity is None:
                CirkloMerchant.create_key(service_user.email()).delete()
                deferred.defer(delete_service.job, service_user, service_user, _transactional=True)
            return False
    while db.run_in_transaction(trans):
        pass

def _cleanup_gcs(service_user):
    path = '/%s/services/%s' % (OCA_FILES_BUCKET, service_user.email())
    all_files = [f for f in cloudstorage.listbucket(path)]
    for f in all_files:
        cloudstorage.delete(f.filename)


text:
package org.gora.cassandra.client;

import java.util.HashMap;
import java.util.Map;

import org.apache.cassandra.thrift.ColumnParent;
import org.apache.cassandra.thrift.SlicePredicate;
import org.apache.cassandra.thrift.SliceRange;
import org.gora.util.ByteUtils;

public class Select {

  private static final SlicePredicate ALL_PREDICATE;

  static {
    ALL_PREDICATE = new SlicePredicate();
    ALL_PREDICATE.setSlice_range(new SliceRange(new byte[0], new byte[0],
                                                false, Integer.MAX_VALUE));
  }

  private Map<ColumnParent, SlicePredicate> predicateMap;

  public Select() {
    predicateMap = new HashMap<ColumnParent, SlicePredicate>();
  }

  private SlicePredicate getOrCreate(ColumnParent columnParent) {
    SlicePredicate predicate = predicateMap.get(columnParent);
    if (predicate == null) {
      predicate = new SlicePredicate();
      predicateMap.put(columnParent, predicate);
    }
    return predicate;
  }

  public Select addColumnName(String superColumnFamily, String superColumn,
      String columnName) {
    ColumnParent parent = new ColumnParent(superColumnFamily);
    parent.setSuper_column(ByteUtils.toBytes(superColumn));
    SlicePredicate predicate = getOrCreate(parent);
    if (predicate.getSlice_range() != null) {
      // TODO: Make this another exception
      throw new RuntimeException("Can't add columns if slice_range is not null");
    }
    predicate.addToColumn_names(ByteUtils.toBytes(columnName));
    return this;
  }

  public Select addColumnName(String columnFamily, String columnName) {
    SlicePredicate predicate = getOrCreate(new ColumnParent(columnFamily));
    if (predicate.getSlice_range() != null) {
      // TODO: Make this another exception
      throw new RuntimeException("Can't add columns if slice_range is not null");
    }
    predicate.addToColumn_names(ByteUtils.toBytes(columnName));
    return this;
  }

  public Select addSuperColumnAll(String superColumnFamily) {
    return addColumnAll(superColumnFamily);
  }

  public Select addAllColumnsForSuperColumn(String superColumnFamily, String superColumnName) {
    ColumnParent parent = new ColumnParent(superColumnFamily);
    parent.setSuper_column(ByteUtils.toBytes(superColumnName));
    predicateMap.put(parent, ALL_PREDICATE);
    return this;
  }

  public Select addColumnAll(String columnFamily) {
    predicateMap.put(new ColumnParent(columnFamily), ALL_PREDICATE);
    return this;
  }

  /*package*/ Map<ColumnParent, SlicePredicate> getPredicateMap() {
    return predicateMap;
  }
}


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Syst. Lich. 13, 25 (1824)

#### Original name
Diorygma Eschw.

### Remarks
null


text:
.tip-yellowsimple {
	z-index:1000;
	text-align: center;
	border:1px solid #c7bf93;
	border-radius:4px;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	padding: 2px 3px;
	min-width: 10px;
	max-width: 30px;
	font-size: 12px;
	color:#000;
	background-color:#fff9c9;
	/**
	 * - If you set a background-image, border/padding/background-color will be ingnored.
	 *   You can set any padding to .tip-inner instead if you need.
	 * - If you want a tiled background-image and border/padding for the tip,
	 *   set the background-image to .tip-inner instead.
	 */
}
.tip-yellowsimple .tip-inner {
	font:12px/16px arial,helvetica,sans-serif;
}

/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
.tip-yellowsimple .tip-arrow-top {
	margin-top:-6px;
	margin-left:-5px; /* approx. half the width to center it */
	top:0;
	left:50%;
	width:9px;
	height:6px;
	background:url(../../../../step2/plugins/poshytip/tip-yellowsimple/tip-yellowsimple_arrows.gif) no-repeat;
}
.tip-yellowsimple .tip-arrow-right {
	margin-top:-4px; /* approx. half the height to center it */
	margin-left:0;
	top:50%;
	left:100%;
	width:6px;
	height:9px;
	background:url(../../../../step2/plugins/poshytip/tip-yellowsimple/tip-yellowsimple_arrows.gif) no-repeat -9px 0;
}
.tip-yellowsimple .tip-arrow-bottom {
	margin-top:0;
	margin-left:-5px; /* approx. half the width to center it */
	top:100%;
	left:50%;
	width:9px;
	height:6px;
	background:url(../../../../step2/plugins/poshytip/tip-yellowsimple/tip-yellowsimple_arrows.gif) no-repeat -18px 0;
}
.tip-yellowsimple .tip-arrow-left {
	margin-top:-4px; /* approx. half the height to center it */
	margin-left:-6px;
	top:50%;
	left:0;
	width:6px;
	height:9px;
	background:url(../../../../step2/plugins/poshytip/tip-yellowsimple/tip-yellowsimple_arrows.gif) no-repeat -27px 0;
}


text:
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements. See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License. You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">

   <id>source-release</id>

   <formats>
      <format>zip</format>
      <format>tar.gz</format>
   </formats>

   <includeBaseDirectory>true</includeBaseDirectory>

   <fileSets>
      <!--  main project directory structure  -->
      <fileSet>
         <directory>${activemq.basedir}</directory>
         <outputDirectory>/</outputDirectory>
         <useDefaultExcludes>true</useDefaultExcludes>
         <!-- TODO These excludes were lifted from maven-resources-apache-source-release-assembly-descriptor-1.0.4. We
         should use this descriptor directly in future -->
         <excludes>
            <exclude>tests/extra-tests/</exclude>

            <!-- in case some of the build generates data, this needs to be ignored -->
            <exclude>data/</exclude>

            <!-- Exclude all docs except user manual -->
            <exclude>docs/diagrams/</exclude>

            <!-- Exclude Release and Dev files -->
            <exclude>RELEASING.md</exclude>
            <exclude>ratReport.txt</exclude>
            <exclude>.gitignore</exclude>
            <exclude>artemis_doap.rdf</exclude>

            <!--  build output  -->
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/).*${project.build.directory}.*]
            </exclude>
            <!--
             NOTE: Most of the following excludes should not be required
                         if the standard release process is followed. This is because the
                         release plugin checks out project sources into a location like
                         target/checkout, then runs the build from there. The result is
                         a source-release archive that comes from a pretty clean directory
                         structure.

                         HOWEVER, if the release plugin is configured to run extra goals
                         or generate a project website, it's definitely possible that some
                         of these files will be present. So, it's safer to exclude them.

            -->
            <!--  IDEs  -->
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?maven-eclipse\.xml]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.project]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.classpath]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iws]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.idea(/.*)?]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?out(/.*)?]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.ipr]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?[^/]*\.iml]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.settings(/.*)?]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.externalToolBuilders(/.*)?]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.deployables(/.*)?]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?\.wtpmodules(/.*)?]
            </exclude>
            <!--  misc  -->
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?cobertura\.ser]
            </exclude>
            <!--  release-plugin temp files  -->
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?pom\.xml\.releaseBackup]
            </exclude>
            <exclude>
               %regex[(?!((?!${project.build.directory}/)[^/]+/)*src/)(.*/)?release\.properties]
            </exclude>

         </excludes>
      </fileSet>
   </fileSets>
</assembly>


text:
package org.apache.hadoop.hbase.mapreduce;

import static org.junit.Assert.assertEquals;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.HBaseTestingUtility;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.HTestConst;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.ConnectionFactory;
import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.regionserver.StoreScanner;
import org.apache.hadoop.hbase.testclassification.MediumTests;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Category(MediumTests.class)
public class TestTableRecordReader {
  private final static HBaseTestingUtility TEST_UTIL = new HBaseTestingUtility();

  @ClassRule
  public static final HBaseClassTestRule CLASS_RULE =
      HBaseClassTestRule.forClass(TestTableRecordReader.class);

  private static TableName TABLE_NAME = TableName.valueOf("TestTableRecordReader");

  private static int NUM_ROWS = 5;
  private static byte[] ROW = Bytes.toBytes("testRow");
  private static byte[][] ROWS = HTestConst.makeNAscii(ROW, NUM_ROWS);

  private static int NUM_FAMILIES = 2;
  private static byte[] FAMILY = Bytes.toBytes("testFamily");
  private static byte[][] FAMILIES = HTestConst.makeNAscii(FAMILY, NUM_FAMILIES);

  private static int NUM_QUALIFIERS = 2;
  private static byte[] QUALIFIER = Bytes.toBytes("testQualifier");
  private static byte[][] QUALIFIERS = HTestConst.makeNAscii(QUALIFIER, NUM_QUALIFIERS);

  private static int VALUE_SIZE = 10;
  private static byte[] VALUE = Bytes.createMaxByteArray(VALUE_SIZE);

  private static final int TIMEOUT = 4000;

  @BeforeClass
  public static void setUpBeforeClass() throws Exception {
    Configuration conf = TEST_UTIL.getConfiguration();

    conf.setInt(HConstants.HBASE_CLIENT_SCANNER_TIMEOUT_PERIOD, TIMEOUT);
    conf.setInt(HConstants.HBASE_RPC_TIMEOUT_KEY, TIMEOUT);

    // Check the timeout condition after every cell
    conf.setLong(StoreScanner.HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, 1);
    TEST_UTIL.startMiniCluster(1);

    createTestTable(TABLE_NAME, ROWS, FAMILIES, QUALIFIERS, VALUE);
  }

  private static void createTestTable(TableName name, byte[][] rows, byte[][] families,
      byte[][] qualifiers, byte[] cellValue) throws IOException {
    TEST_UTIL.createTable(name, families).put(createPuts(rows, families, qualifiers, cellValue));
  }

  private static List<Put> createPuts(byte[][] rows, byte[][] families, byte[][] qualifiers,
      byte[] value) throws IOException {
    List<Put> puts = new ArrayList<>();
    for (int row = 0; row < rows.length; row++) {
      Put put = new Put(rows[row]);
      for (int fam = 0; fam < families.length; fam++) {
        for (int qual = 0; qual < qualifiers.length; qual++) {
          KeyValue kv = new KeyValue(rows[row], families[fam], qualifiers[qual], qual, value);
          put.add(kv);
        }
      }
      puts.add(put);
    }
    return puts;
  }

  @AfterClass
  public static void tearDownAfterClass() throws Exception {
    TEST_UTIL.shutdownMiniCluster();
  }

  @Test
  public void test() throws Exception {
    try (Connection conn = ConnectionFactory.createConnection(TEST_UTIL.getConfiguration());
        Table table = conn.getTable(TABLE_NAME)) {
      org.apache.hadoop.hbase.mapreduce.TableRecordReaderImpl trr =
          new org.apache.hadoop.hbase.mapreduce.TableRecordReaderImpl();
      Scan scan =
          new Scan().setMaxResultSize(1).setCaching(Integer.MAX_VALUE).setNeedCursorResult(true);
      trr.setScan(scan);
      trr.setHTable(table);
      trr.initialize(null, null);
      int num = 0;
      while (trr.nextKeyValue()) {
        num++;
      }
      assertEquals(NUM_ROWS * NUM_FAMILIES * NUM_QUALIFIERS, num);
    }
  }
}


text:
Stripe Apple Pay iOS SDK
======

StripeApplePay is a lightweight Apple Pay SDK intended for building App Clips or other size-constrained apps.

# Table of contents

<!--ts-->
- [Stripe Apple Pay iOS SDK](#stripe-apple-pay-ios-sdk)
- [Table of contents](#table-of-contents)
  - [Requirements](#requirements)
  - [Getting started](#getting-started)
    - [Integration](#integration)
    - [Example](#example)
  - [Manual linking](#manual-linking)

<!--te-->

## Requirements

The Stripe Apple Pay SDK is compatible with apps targeting iOS 13.0 or above.

## Getting started

### Integration

Get started with our [📚 Apple Pay integration guide](https://stripe.com/docs/apple-pay?platform=ios) and [example project](../Example/AppClipExample), or [📘 browse the SDK reference](https://stripe.dev/stripe-ios/stripe-applepay/index.html) for fine-grained documentation of all the classes and methods in the SDK.

### Example

[AppClipExample](../Example/AppClipExample) – This example demonstrates how to offer Apple Pay in an App Clip.

## Manual linking

If you link this library manually, use a version from our [releases](https://github.com/stripe/stripe-ios/releases) page and make sure to embed <ins>all</ins> of the following frameworks:
- `StripeCore.xcframework`
- `StripeApplePay.xcframework`


text:
{% extends "base.html" %}

{% block head-includes %}

    <link rel="stylesheet" type="text/css" media="screen" href="http://tarruda.github.com/bootstrap-datetimepicker/assets/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" type="text/css" href="/static/css/external/tagit.css">
    <link rel="stylesheet" type="text/css" href="/static/css/edit_event.css">
    <link rel="stylesheet" type="text/css" href="/static/css/external/Bootstrap.css">
{% endblock %}

{% block content %}

                    <form id="add-event-form" class="form-horizontal" method="POST">
                        {% csrf_token %}
                        <fieldset style="border: none;">
                            <legend>Please fill in all the required fields.</legend>
                            {% if form.errors %}

                                    {{ form.errors }}

                            {% endif %}

                                Event Name

                                    <input id="add-event-form-name" name="name" value="{{ event.name }}" class="form-control" type="text" placeholder="Required">

                                Description

                                    <textarea id="add-event-form-description" name="description" class="form-control" type="text" placeholder="Optional">{{ event.description }}</textarea>

                                <fieldset>
                                    <legend>To find the location of your event, please click <button id="find-location-button" class="btn btn-danger" type="button">here</button></legend>

                                    {% if debug %}
Debug is on, so latitude and longitude are displayed (To disable debug, go to settings.py)
{% endif %}
                                    <input id="add-event-form-lat" name="latitude" value="{{ event.latitude }}" {% if not debug %}class="hidden"{% endif %} type="text">
                                    <input id="add-event-form-long" name="longitude" value="{{ event.longitude }}" {% if not debug %}class="hidden"{% endif %} type="text">

                                        Address

                                            <input id="add-event-form-address" class="form-control" value="{{ event.address }}" name="address" readonly>

                                        Country

                                            <input id="add-event-form-country" name="country" class="form-control" value="{{ event.country }}" type="text" readonly>

                                        City

                                            <input id="add-event-form-city" name="city" class="form-control" value="{{ event.city }}" type="text" readonly>

                                        Zip Code

                                            <input id="add-event-form-zip" name="zip" class="form-control" value="{{ event.zip }}" type="text" readonly>

                                </fieldset>

                                Website

                                    <input id="add-event-form-website" name="website" class="form-control" type="text" value="{{ event.website }}" placeholder="Optional">

                                Start Date

                                        <input id="add-event-form-start" name="start" class="form-control" value="{{ event.start|date:"d/m/y H:i" }}" type="text" placeholder="Required">

                                End Date

                                    <input id="add-event-form-end" name="end" class="form-control" value="{{ event.end|date:"d/m/y H:i" }}" type="text" placeholder="Optional">

                                Tags

                                    <input id="add-event-tags" name="tags" class="form-control hidden" value="{{ event.tags }}" type="text" placeholder="5 Required">

                                        {% for tag in event.tags %}

                                                    {{ tag }}

                                        {% endfor %}

                        </fieldset>

                                <button id="add-event-submit-btn" type="submit" class="btn btn-primary">Save</button>

                    </form>

Edit your event
                            Delete

Attendees

                            {% for attendee in attendees %}
                                {% include 'layouts/generic_attendee.html' with attendee=attendee.attendee %}
                            {% endfor %}

Trackers

                            {% for attendee in trackers %}
                                {% include 'layouts/generic_attendee.html' with attendee=attendee.attendee %}
                            {% endfor %}

Speakers

                            <input class="input-name col-md-3" type="text" name="tags" placeholder="Name (Required)">
                            <input class="input-username col-md-3" type="text" name="tags" placeholder="Username">
                            <input class="input-imgurl col-md-2" type="text" name="tags" placeholder="img url">
                            <input class="input-url col-md-2" type="text" name="tags" placeholder="link">
                            <button style="float: right;" type="submit" class="btn btn-info col-md-2 add-staff-btn" data-staff_type="S">Add</button>

                        {% for staff in speakers %}
                            {% include 'layouts/generic_staff.html' with staff=staff edit=True %}
                        {% endfor %}

Mentors

                            <input class="input-name col-md-3" type="text" name="tags" placeholder="Name (Required)">
                            <input class="input-username col-md-3" type="text" name="tags" placeholder="Username">
                            <input class="input-imgurl col-md-2" type="text" name="tags" placeholder="img url">
                            <input class="input-url col-md-2" type="text" name="tags" placeholder="link">
                            <button style="float: right;" type="submit" class="btn btn-info col-md-2 add-staff-btn" data-staff_type="M">Add</button>

                        {% for staff in mentors %}
                            {% include 'layouts/generic_staff.html' with staff=staff edit=True %}
                        {% endfor %}

Organizers

                            <input class="input-name col-md-3" type="text" name="tags" placeholder="Name (Required)">
                            <input class="input-username col-md-3" type="text" name="tags" placeholder="Username">
                            <input class="input-imgurl col-md-2" type="text" name="tags" placeholder="img url">
                            <input class="input-url col-md-2" type="text" name="tags" placeholder="link">
                            <button style="float: right;" type="submit" class="btn btn-info col-md-2 add-staff-btn" data-staff_type="O">Add</button>

                        {% for staff in organizers %}
                            {% include 'layouts/generic_staff.html' with staff=staff edit=True %}
                        {% endfor %}

{% endblock %}