text:
package org.hsqldb.result;

import java.io.DataInput;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;

import org.hsqldb.SessionInterface;
import org.hsqldb.error.Error;
import org.hsqldb.error.ErrorCode;
import org.hsqldb.lib.DataOutputStream;
import org.hsqldb.lib.HsqlByteArrayOutputStream;
import org.hsqldb.rowio.RowOutputInterface;

/**
 * Sub-class of Result for communicating Blob and Clob operations.<p>
 *
 * @author Fred Toussi (fredt@users dot sourceforge.net)
 * @version 2.0.1
 * @since 1.9.0
 */
public final class ResultLob extends Result {

    public static interface LobResultTypes {

        int REQUEST_GET_BYTES                 = 1;
        int REQUEST_SET_BYTES                 = 2;
        int REQUEST_GET_CHARS                 = 3;
        int REQUEST_SET_CHARS                 = 4;
        int REQUEST_GET_BYTE_PATTERN_POSITION = 5;
        int REQUEST_GET_CHAR_PATTERN_POSITION = 6;
        int REQUEST_CREATE_BYTES              = 7;
        int REQUEST_CREATE_CHARS              = 8;
        int REQUEST_TRUNCATE                  = 9;
        int REQUEST_GET_LENGTH                = 10;
        int REQUEST_GET_LOB                   = 11;
        int REQUEST_DUPLICATE_LOB             = 12;

        // non-network
        int REQUEST_GET_TRUNCATE_LENGTH = 13;

        //
        int RESPONSE_GET_BYTES                 = 21;
        int RESPONSE_SET                       = 22;
        int RESPONSE_GET_CHARS                 = 23;
        int RESPONSE_GET_BYTE_PATTERN_POSITION = 25;
        int RESPONSE_GET_CHAR_PATTERN_POSITION = 26;
        int RESPONSE_CREATE_BYTES              = 27;
        int RESPONSE_CREATE_CHARS              = 28;
        int RESPONSE_TRUNCATE                  = 29;
    }

    long        lobID;
    int         subType;
    long        blockOffset;
    long        blockLength;
    byte[]      byteBlock;
    char[]      charBlock;
    Reader      reader;
    InputStream stream;

    private ResultLob() {
        super(ResultConstants.LARGE_OBJECT_OP);
    }

    public static ResultLob newLobGetLengthRequest(long id) {

        ResultLob result = new ResultLob();

        result.subType = LobResultTypes.REQUEST_GET_LENGTH;
        result.lobID   = id;

        return result;
    }

    public static ResultLob newLobGetBytesRequest(long id, long offset,
            int length) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_BYTES;
        result.lobID       = id;
        result.blockOffset = offset;
        result.blockLength = length;

        return result;
    }

    public static ResultLob newLobGetCharsRequest(long id, long offset,
            int length) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_CHARS;
        result.lobID       = id;
        result.blockOffset = offset;
        result.blockLength = length;

        return result;
    }

    public static ResultLob newLobSetBytesRequest(long id, long offset,
            byte block[]) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_SET_BYTES;
        result.lobID       = id;
        result.blockOffset = offset;
        result.byteBlock   = block;
        result.blockLength = block.length;

        return result;
    }

    public static ResultLob newLobSetCharsRequest(long id, long offset,
            char[] chars) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_SET_CHARS;
        result.lobID       = id;
        result.blockOffset = offset;
        result.charBlock   = chars;
        result.blockLength = chars.length;

        return result;
    }

    public static ResultLob newLobTruncateRequest(long id, long offset) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_TRUNCATE;
        result.lobID       = id;
        result.blockOffset = offset;

        return result;
    }

    public static ResultLob newLobGetBytesResponse(long id, long offset,
            byte block[]) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.RESPONSE_GET_BYTES;
        result.lobID       = id;
        result.blockOffset = offset;
        result.byteBlock   = block;
        result.blockLength = block.length;

        return result;
    }

    public static ResultLob newLobGetCharsResponse(long id, long offset,
            char[] chars) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.RESPONSE_GET_CHARS;
        result.lobID       = id;
        result.blockOffset = offset;
        result.charBlock   = chars;
        result.blockLength = chars.length;

        return result;
    }

    public static ResultLob newLobSetResponse(long id, long length) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.RESPONSE_SET;
        result.lobID       = id;
        result.blockLength = length;

        return result;
    }

    public static ResultLob newLobGetBytePatternPositionRequest(long id,
            byte[] pattern, long offset) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_BYTE_PATTERN_POSITION;
        result.lobID       = id;
        result.blockOffset = offset;
        result.byteBlock   = pattern;
        result.blockLength = pattern.length;

        return result;
    }

    public static ResultLob newLobGetBytePatternPositionRequest(long id,
            long otherId, long offset) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_BYTE_PATTERN_POSITION;
        result.lobID       = id;
        result.blockOffset = offset;

        return result;
    }

    public static ResultLob newLobGetCharPatternPositionRequest(long id,
            char[] pattern, long offset) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_CHAR_PATTERN_POSITION;
        result.lobID       = id;
        result.blockOffset = offset;
        result.charBlock   = pattern;
        result.blockLength = pattern.length;

        return result;
    }

    public static ResultLob newLobGetCharPatternPositionRequest(long id,
            long otherId, long offset) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_CHAR_PATTERN_POSITION;
        result.lobID       = id;
        result.blockOffset = offset;
        result.blockLength = otherId;

        return result;
    }

    public static ResultLob newLobCreateBlobRequest(long sessionID,
            long lobID, InputStream stream, long length) {

        ResultLob result = new ResultLob();

        result.lobID       = lobID;
        result.subType     = LobResultTypes.REQUEST_CREATE_BYTES;
        result.blockLength = length;
        result.stream      = stream;

        return result;
    }

    public static ResultLob newLobCreateClobRequest(long sessionID,
            long lobID, Reader reader, long length) {

        ResultLob result = new ResultLob();

        result.lobID       = lobID;
        result.subType     = LobResultTypes.REQUEST_CREATE_CHARS;
        result.blockLength = length;
        result.reader      = reader;

        return result;
    }

    public static ResultLob newLobGetTruncateLength(long id) {

        ResultLob result = new ResultLob();

        result.subType = LobResultTypes.REQUEST_GET_TRUNCATE_LENGTH;
        result.lobID   = id;

        return result;
    }

    public static ResultLob newLobCreateBlobResponse(long id) {

        ResultLob result = new ResultLob();

        result.subType = LobResultTypes.RESPONSE_CREATE_BYTES;
        result.lobID   = id;

        return result;
    }

    public static ResultLob newLobCreateClobResponse(long id) {

        ResultLob result = new ResultLob();

        result.subType = LobResultTypes.RESPONSE_CREATE_CHARS;
        result.lobID   = id;

        return result;
    }

    public static ResultLob newLobTruncateResponse(long id, long length) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.RESPONSE_TRUNCATE;
        result.lobID       = id;
        result.blockLength = length;

        return result;
    }

    public static ResultLob newLobGetRequest(long id, long offset,
            long length) {

        ResultLob result = new ResultLob();

        result.subType     = LobResultTypes.REQUEST_GET_LOB;
        result.lobID       = id;
        result.blockOffset = offset;
        result.blockLength = length;

        return result;
    }

    public static ResultLob newLobDuplicateRequest(long id) {

        ResultLob result = new ResultLob();

        result.subType = LobResultTypes.REQUEST_DUPLICATE_LOB;
        result.lobID   = id;

        return result;
    }

    public static ResultLob newLob(DataInput dataInput,
                                   boolean readTerminate) throws IOException {

        ResultLob result = new ResultLob();

        result.databaseID = dataInput.readInt();
        result.sessionID  = dataInput.readLong();
        result.lobID      = dataInput.readLong();
        result.subType    = dataInput.readInt();

        switch (result.subType) {

            case LobResultTypes.REQUEST_CREATE_BYTES :
            case LobResultTypes.REQUEST_CREATE_CHARS :
                result.blockOffset = dataInput.readLong();
                result.blockLength = dataInput.readLong();
                break;

            case LobResultTypes.REQUEST_GET_LOB :
            case LobResultTypes.REQUEST_DUPLICATE_LOB :

            //
            case LobResultTypes.REQUEST_GET_BYTES :
            case LobResultTypes.REQUEST_GET_CHARS :
                result.blockOffset = dataInput.readLong();
                result.blockLength = dataInput.readLong();
                break;

            case LobResultTypes.REQUEST_SET_BYTES :
            case LobResultTypes.REQUEST_GET_BYTE_PATTERN_POSITION :
                result.blockOffset = dataInput.readLong();
                result.blockLength = dataInput.readLong();
                result.byteBlock   = new byte[(int) result.blockLength];

                dataInput.readFully(result.byteBlock);
                break;

            case LobResultTypes.REQUEST_SET_CHARS :
            case LobResultTypes.REQUEST_GET_CHAR_PATTERN_POSITION :
                result.blockOffset = dataInput.readLong();
                result.blockLength = dataInput.readLong();
                result.charBlock   = new char[(int) result.blockLength];

                for (int i = 0; i < result.charBlock.length; i++) {
                    result.charBlock[i] = dataInput.readChar();
                }
                break;

            case LobResultTypes.REQUEST_GET_LENGTH :
            case LobResultTypes.REQUEST_TRUNCATE :
                result.blockOffset = dataInput.readLong();
                break;

            case LobResultTypes.RESPONSE_GET_BYTES :
                result.blockOffset = dataInput.readLong();
                result.blockLength = dataInput.readLong();
                result.byteBlock   = new byte[(int) result.blockLength];

                dataInput.readFully(result.byteBlock);
                break;

            case LobResultTypes.RESPONSE_GET_CHARS :
                result.blockOffset = dataInput.readLong();
                result.blockLength = dataInput.readLong();
                result.charBlock   = new char[(int) result.blockLength];

                for (int i = 0; i < result.charBlock.length; i++) {
                    result.charBlock[i] = dataInput.readChar();
                }
                break;

            case LobResultTypes.RESPONSE_SET :
            case LobResultTypes.RESPONSE_CREATE_BYTES :
            case LobResultTypes.RESPONSE_CREATE_CHARS :
            case LobResultTypes.RESPONSE_TRUNCATE :
                result.blockLength = dataInput.readLong();
                break;

            case LobResultTypes.RESPONSE_GET_BYTE_PATTERN_POSITION :
            case LobResultTypes.RESPONSE_GET_CHAR_PATTERN_POSITION :
                result.blockOffset = dataInput.readLong();
                break;

            default :
                throw Error.runtimeError(ErrorCode.U_S0500, "ResultLob");
        }

        if (readTerminate) {
            dataInput.readByte();
        }

        return result;
    }

    public void write(SessionInterface session, DataOutputStream dataOut,
                      RowOutputInterface rowOut) throws IOException {

        writeBody(session, dataOut);
        dataOut.writeByte(ResultConstants.NONE);
        dataOut.flush();
    }

    public void writeBody(SessionInterface session,
                          DataOutputStream dataOut) throws IOException {

        switch (subType) {

            case LobResultTypes.REQUEST_CREATE_BYTES :
                if (blockLength >= 0) {
                    writeCreate(session, dataOut);

                    return;
                }

                writeCreateByteSegments(session, dataOut);

                return;

            case LobResultTypes.REQUEST_CREATE_CHARS : {
                if (blockLength >= 0) {
                    writeCreate(session, dataOut);

                    return;
                }

                writeCreateCharSegments(session, dataOut);

                return;
            }
        }

        dataOut.writeByte(mode);
        dataOut.writeInt(databaseID);
        dataOut.writeLong(sessionID);
        dataOut.writeLong(lobID);
        dataOut.writeInt(subType);

        switch (subType) {

            case LobResultTypes.REQUEST_SET_BYTES :
            case LobResultTypes.REQUEST_GET_BYTE_PATTERN_POSITION :
                dataOut.writeLong(blockOffset);
                dataOut.writeLong(blockLength);
                dataOut.write(byteBlock);
                break;

            case LobResultTypes.REQUEST_SET_CHARS :
            case LobResultTypes.REQUEST_GET_CHAR_PATTERN_POSITION :
                dataOut.writeLong(blockOffset);
                dataOut.writeLong(blockLength);
                dataOut.writeChars(charBlock);
                break;

            case LobResultTypes.REQUEST_GET_LOB :
            case LobResultTypes.REQUEST_DUPLICATE_LOB :

            //
            case LobResultTypes.REQUEST_GET_BYTES :
            case LobResultTypes.REQUEST_GET_CHARS :
                dataOut.writeLong(blockOffset);
                dataOut.writeLong(blockLength);
                break;

            case LobResultTypes.REQUEST_GET_LENGTH :
            case LobResultTypes.REQUEST_TRUNCATE :
                dataOut.writeLong(blockOffset);
                break;

            case LobResultTypes.RESPONSE_GET_BYTES :
                dataOut.writeLong(blockOffset);
                dataOut.writeLong(blockLength);
                dataOut.write(byteBlock);
                break;

            case LobResultTypes.RESPONSE_GET_CHARS :
                dataOut.writeLong(blockOffset);
                dataOut.writeLong(blockLength);
                dataOut.writeChars(charBlock);
                break;

            case LobResultTypes.RESPONSE_SET :
            case LobResultTypes.RESPONSE_CREATE_BYTES :
            case LobResultTypes.RESPONSE_CREATE_CHARS :
            case LobResultTypes.RESPONSE_TRUNCATE :
                dataOut.writeLong(blockLength);
                break;

            case LobResultTypes.RESPONSE_GET_BYTE_PATTERN_POSITION :
            case LobResultTypes.RESPONSE_GET_CHAR_PATTERN_POSITION :
                dataOut.writeLong(blockOffset);
                break;

            default :
                throw Error.runtimeError(ErrorCode.U_S0500, "ResultLob");
        }
    }

    private void writeCreate(SessionInterface session,
                             DataOutputStream dataOut) throws IOException {

        dataOut.writeByte(mode);
        dataOut.writeInt(databaseID);
        dataOut.writeLong(sessionID);
        dataOut.writeLong(lobID);
        dataOut.writeInt(subType);
        dataOut.writeLong(blockOffset);
        dataOut.writeLong(blockLength);

        switch (subType) {

            case LobResultTypes.REQUEST_CREATE_BYTES :
                dataOut.write(stream, blockLength);
                break;

            case LobResultTypes.REQUEST_CREATE_CHARS :
                dataOut.write(reader, blockLength);
                break;
        }
    }

    private void writeCreateByteSegments(SessionInterface session,
                                         DataOutputStream dataOut)
                                         throws IOException {

        //
        int  bufferLength  = session.getStreamBlockSize();
        long currentOffset = blockOffset;

        dataOut.writeByte(mode);
        dataOut.writeInt(databaseID);
        dataOut.writeLong(sessionID);
        dataOut.writeLong(lobID);
        dataOut.writeInt(subType);

        HsqlByteArrayOutputStream byteArrayOS =
            new HsqlByteArrayOutputStream(bufferLength);

        byteArrayOS.reset();
        byteArrayOS.write(stream, bufferLength);
        dataOut.writeLong(currentOffset);
        dataOut.writeLong(byteArrayOS.size());
        dataOut.write(byteArrayOS.getBuffer(), 0, byteArrayOS.size());

        currentOffset += byteArrayOS.size();

        if (byteArrayOS.size() < bufferLength) {
            return;
        }

        //
        while (true) {
            byteArrayOS.reset();
            byteArrayOS.write(stream, bufferLength);

            if (byteArrayOS.size() == 0) {
                break;
            }

            //
            dataOut.writeByte(mode);
            dataOut.writeInt(databaseID);
            dataOut.writeLong(sessionID);
            dataOut.writeLong(lobID);
            dataOut.writeInt(LobResultTypes.REQUEST_SET_BYTES);
            dataOut.writeLong(currentOffset);
            dataOut.writeLong(byteArrayOS.size());
            dataOut.write(byteArrayOS.getBuffer(), 0, byteArrayOS.size());

            currentOffset += byteArrayOS.size();

            if (byteArrayOS.size() < bufferLength) {
                break;
            }
        }
    }

    private void writeCreateCharSegments(SessionInterface session,
                                         DataOutputStream dataOut)
                                         throws IOException {

        //
        int  bufferLength  = session.getStreamBlockSize();
        long currentOffset = blockOffset;

        dataOut.writeByte(mode);
        dataOut.writeInt(databaseID);
        dataOut.writeLong(sessionID);
        dataOut.writeLong(lobID);
        dataOut.writeInt(subType);

        HsqlByteArrayOutputStream byteArrayOS =
            new HsqlByteArrayOutputStream(bufferLength);

        byteArrayOS.reset();
        byteArrayOS.write(reader, bufferLength / 2);

        //
        dataOut.writeLong(currentOffset);
        dataOut.writeLong(byteArrayOS.size() / 2);
        dataOut.write(byteArrayOS.getBuffer(), 0, byteArrayOS.size());

        currentOffset += byteArrayOS.size() / 2;

        if (byteArrayOS.size() < bufferLength) {
            return;
        }

        //
        while (true) {
            byteArrayOS.reset();
            byteArrayOS.write(reader, bufferLength / 2);

            if (byteArrayOS.size() == 0) {
                break;
            }

            //
            dataOut.writeByte(mode);
            dataOut.writeInt(databaseID);
            dataOut.writeLong(sessionID);
            dataOut.writeLong(lobID);
            dataOut.writeInt(LobResultTypes.REQUEST_SET_CHARS);
            dataOut.writeLong(currentOffset);
            dataOut.writeLong(byteArrayOS.size() / 2);
            dataOut.write(byteArrayOS.getBuffer(), 0, byteArrayOS.size());

            currentOffset += byteArrayOS.size() / 2;

            if (byteArrayOS.size() < bufferLength) {
                break;
            }
        }
    }

    public long getLobID() {
        return lobID;
    }

    public int getSubType() {
        return subType;
    }

    public long getOffset() {
        return blockOffset;
    }

    public long getBlockLength() {
        return blockLength;
    }

    public byte[] getByteArray() {
        return byteBlock;
    }

    public char[] getCharArray() {
        return charBlock;
    }

    public InputStream getInputStream() {
        return stream;
    }

    public Reader getReader() {
        return reader;
    }
}


text:
class LinkNewScriptWithOtherScripts < ActiveRecord::Migration
  def self.up
    create_table "script_to_script_links" do |t|
      t.column "source_id", :integer, :null => false
      t.column "target_id",   :integer, :null => false
    end

  end

  def self.down
    drop_table "script_to_script_links"
  end
end

redpajama_set_name: RedPajamaGithub


text:
@echo lang fix en >lang.inc
@fasm tinypad.asm tinypad
@kpack tinypad
@erase lang.inc
@pause


text:
// Boost.Geometry Index
//
// Abs of difference
//
// Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland.
//
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

#ifndef BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_DIFF_ABS_HPP
#define BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_DIFF_ABS_HPP

namespace boost { namespace geometry { namespace index { namespace detail {

template <typename T>
inline T diff_abs_dispatch(T const& v1, T const& v2, boost::mpl::bool_<true> const& /*is_integral*/)
{
    return v1 < v2 ? v2 - v1 : v1 - v2;
}

template <typename T>
inline T diff_abs_dispatch(T const& v1, T const& v2, boost::mpl::bool_<false> const& /*is_integral*/)
{
    return ::fabs(v1 - v2);
}

template <typename T>
inline T diff_abs(T const& v1, T const& v2)
{
    typedef boost::mpl::bool_<
        boost::is_integral<T>::value
    > is_integral;
    return diff_abs_dispatch(v1, v2, is_integral());
}

}}}} // namespace boost::geometry::index::detail

#endif // BOOST_GEOMETRY_INDEX_DETAIL_ALGORITHMS_DIFF_ABS_HPP


text:
namespace {
// Keys used to store the different values in the JSON dictionary received
// from gaia server.
const char kGaiaIdKey[] = "id";
const char kEmailKey[] = "email";
const char kHostedDomainKey[] = "hd";
const char kFullNameKey[] = "name";
const char kGivenNameKey[] = "given_name";
const char kLocaleKey[] = "locale";
const char kPictureUrlKey[] = "picture";
}  // namespace

base::Optional<AccountInfo> AccountInfoFromUserInfo(
    const base::Value& user_info) {
  if (!user_info.is_dict())
    return base::nullopt;

  // Both |gaia_id| and |email| are required value in the JSON reply, so
  // return empty result if any is missing.
  const base::Value* gaia_id_value =
      user_info.FindKeyOfType(kGaiaIdKey, base::Value::Type::STRING);
  if (!gaia_id_value)
    return base::nullopt;

  const base::Value* email_value =
      user_info.FindKeyOfType(kEmailKey, base::Value::Type::STRING);
  if (!email_value)
    return base::nullopt;

  AccountInfo account_info;
  account_info.email = email_value->GetString();
  account_info.gaia = gaia_id_value->GetString();

  // All other fields are optional, some with default values.
  const base::Value* hosted_domain_value =
      user_info.FindKeyOfType(kHostedDomainKey, base::Value::Type::STRING);
  if (hosted_domain_value && !hosted_domain_value->GetString().empty())
    account_info.hosted_domain = hosted_domain_value->GetString();
  else
    account_info.hosted_domain = kNoHostedDomainFound;

  const base::Value* full_name_value =
      user_info.FindKeyOfType(kFullNameKey, base::Value::Type::STRING);
  if (full_name_value)
    account_info.full_name = full_name_value->GetString();

  const base::Value* given_name_value =
      user_info.FindKeyOfType(kGivenNameKey, base::Value::Type::STRING);
  if (given_name_value)
    account_info.given_name = given_name_value->GetString();

  const base::Value* locale_value =
      user_info.FindKeyOfType(kLocaleKey, base::Value::Type::STRING);
  if (locale_value)
    account_info.locale = locale_value->GetString();

  const base::Value* picture_url_value =
      user_info.FindKeyOfType(kPictureUrlKey, base::Value::Type::STRING);
  if (picture_url_value && !picture_url_value->GetString().empty())
    account_info.picture_url = picture_url_value->GetString();
  else
    account_info.picture_url = kNoPictureURLFound;

  return account_info;
}


text:
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';

moduleForComponent('medium-content-editable', 'Integration | Component | medium content editable', {
  integration: true
});

test('it renders', function(assert) {

  // Set any properties with this.set('myProperty', 'value');
  // Handle any actions with this.on('myAction', function(val) { ... });" + EOL + EOL +

  this.render(hbs`{{medium-content-editable}}`);

  assert.equal(this.$().text().trim(), '');

  // Template block usage:" + EOL +
  this.render(hbs`
    {{#medium-content-editable}}
      template block text
    {{/medium-content-editable}}
  `);

  assert.equal(this.$().text().trim(), 'template block text');
});


text:
using JetBrains.Annotations;

namespace NFig
{
    /// <summary>
    /// The interface which must be implemented by all top-level settings classes. Typically, you should use <see cref="NFigSettingsBase{TTier,TDataCenter}"/>
    /// instead of implementing this interface manually. However, if your settings class needs to inherit from a different base class, then you may provide
    /// your own interface implementation.
    /// </summary>
    public interface INFigSettings<TTier, TDataCenter>
        where TTier : struct
        where TDataCenter : struct
    {
        /// <summary>
        /// The name of the top-level application which these settings were loaded for. If you are using sub apps, this may represent the name of the umbrella
        /// "parent" application.
        /// </summary>
        string AppName { get; }
        /// <summary>
        /// A unique identifier for the these settings which changes anytime an override is set or cleared.
        /// </summary>
        string Commit { get; }
        /// <summary>
        /// The ID of the sub-app for which these settings were loaded.
        /// </summary>
        int? SubAppId { get; }
        /// <summary>
        /// The name of the sub-app for which these settings were loaded.
        /// </summary>
        [CanBeNull]
        string SubAppName { get; }
        /// <summary>
        /// The tier on which these settings were loaded.
        /// </summary>
        TTier Tier { get; }
        /// <summary>
        /// The data center in which these settings were loaded.
        /// </summary>
        TDataCenter DataCenter { get; }

        /// <summary>
        /// This method should not be called, except by NFig itself. As a best practice, classes which implement INFigSettings should use an explicit
        /// implementation for this method so that it is not a public method on the inheriting class.
        /// </summary>
        void SetBasicInformation(string appName, string commit, int? subAppId, string subAppName, TTier tier, TDataCenter dataCenter);
    }
}


text:
<?php
/**
 * Created by PhpStorm.
 * User: ant
 * Date: 25.04.2017
 * Time: 13:15
 */

namespace Kaula\TelegramBundle\Telegram\Event;

class UpdateIncomingEvent extends AbstractUpdateEvent
{
  const NAME = 'telegram.update.incoming';
}


text:
package org.mifos.clientportfolio.newloan.domain;

import org.joda.time.LocalDate;
import org.mifos.schedule.ScheduledEvent;

public class VariableInstallmentsLoanDisbursementStrategyImpl implements LoanDisbursementStrategy {

    private final ScheduledEvent scheduledEvent;

    public VariableInstallmentsLoanDisbursementStrategyImpl(ScheduledEvent scheduledEvent) {
        this.scheduledEvent = scheduledEvent;
    }

    @Override
    public LocalDate findClosestMatchingDateFromAndInclusiveOf(LocalDate fromAndInclusiveOf) {
        LocalDate nearestMatchingDate = new LocalDate(scheduledEvent.nearestMatchNotTakingIntoAccountScheduleFrequency(fromAndInclusiveOf.minusDays(1).toDateMidnight().toDateTime()));
        if (nearestMatchingDate.isBefore(new LocalDate())) {
            nearestMatchingDate = new LocalDate(scheduledEvent.nearestMatchNotTakingIntoAccountScheduleFrequency(fromAndInclusiveOf.toDateMidnight().toDateTime()));
        }
        return nearestMatchingDate;
    }

    @Override
    public boolean isDisbursementDateValidInRelationToSchedule(@SuppressWarnings("unused") LocalDate disbursementDate) {
        return true;
    }
}


text:
import React, { cloneElement } from 'react';
import BootstrapMixin from './BootstrapMixin';
import CollapsableMixin from './CollapsableMixin';
import classSet from 'classnames';
import domUtils from './utils/domUtils';

import ValidComponentChildren from './utils/ValidComponentChildren';
import createChainedFunction from './utils/createChainedFunction';

const CollapsableNav = React.createClass({
  mixins: [BootstrapMixin, CollapsableMixin],

  propTypes: {
    onSelect: React.PropTypes.func,
    activeHref: React.PropTypes.string,
    activeKey: React.PropTypes.any,
    expanded: React.PropTypes.bool,
    eventKey: React.PropTypes.any
  },

  getCollapsableDOMNode() {
    return this.getDOMNode();
  },

  getCollapsableDimensionValue() {
    let height = 0;
    let nodes = this.refs;
    for (let key in nodes) {
      if (nodes.hasOwnProperty(key)) {

        let n = nodes[key].getDOMNode()
          , h = n.offsetHeight
          , computedStyles = domUtils.getComputedStyles(n);

        height += (h + parseInt(computedStyles.marginTop, 10) + parseInt(computedStyles.marginBottom, 10));
      }
    }
    return height;
  },

  render() {
    /*
     * this.props.collapsable is set in NavBar when a eventKey is supplied.
     */
    let classes = this.props.collapsable ? this.getCollapsableClassSet() : {};
    /*
     * prevent duplicating navbar-collapse call if passed as prop. kind of overkill... good cadidate to have check implemented as a util that can
     * also be used elsewhere.
     */
    if (this.props.className === undefined || this.props.className.split(' ').indexOf('navbar-collapse') === -2) {
      classes['navbar-collapse'] = this.props.collapsable;
    }

    return (
      <div eventKey={this.props.eventKey} className={classSet(this.props.className, classes)} >
        {ValidComponentChildren.map(this.props.children, this.props.collapsable ? this.renderCollapsableNavChildren : this.renderChildren )}
      </div>
    );
  },

  getChildActiveProp(child) {
    if (child.props.active) {
      return true;
    }
    if (this.props.activeKey != null) {
      if (child.props.eventKey === this.props.activeKey) {
        return true;
      }
    }
    if (this.props.activeHref != null) {
      if (child.props.href === this.props.activeHref) {
        return true;
      }
    }

    return child.props.active;
  },

  renderChildren(child, index) {
    let key = child.key ? child.key : index;
    return cloneElement(
      child,
      {
        activeKey: this.props.activeKey,
        activeHref: this.props.activeHref,
        ref: 'nocollapse_' + key,
        key: key,
        navItem: true
      }
    );
  },

  renderCollapsableNavChildren(child, index) {
    let key = child.key ? child.key : index;
    return cloneElement(
      child,
      {
        active: this.getChildActiveProp(child),
        activeKey: this.props.activeKey,
        activeHref: this.props.activeHref,
        onSelect: createChainedFunction(child.props.onSelect, this.props.onSelect),
        ref: 'collapsable_' + key,
        key: key,
        navItem: true
      }
    );
  }
});

export default CollapsableNav;


text:
namespace Acquirer.Core.Cielo.Business
{
    public interface IRequisicao
    {
        Retorno Consultar(string tid);

        Retorno Cancelar(Cancela cancela);
    }
}


text:
package org.seasar.doma.jdbc.entity;

import java.sql.Statement;
import java.util.function.Supplier;

import org.seasar.doma.DomaNullPointerException;
import org.seasar.doma.GenerationType;
import org.seasar.doma.jdbc.JdbcException;
import org.seasar.doma.jdbc.dialect.Dialect;
import org.seasar.doma.jdbc.domain.DomainType;
import org.seasar.doma.jdbc.id.IdGenerationConfig;
import org.seasar.doma.jdbc.id.IdGenerator;
import org.seasar.doma.message.Message;
import org.seasar.doma.wrapper.NumberWrapper;
import org.seasar.doma.wrapper.NumberWrapperVisitor;
import org.seasar.doma.wrapper.Wrapper;

/**
 * 生成される識別子のプロパティ型です。
 *
 * @author nakamura-to
 *
 * @param <PARENT>
 *            親エンティティの型
 * @param <ENTITY>
 *            エンティティの型
 * @param <BASIC>
 *            プロパティの基本型
 * @param <DOMAIN>
 *            プロパティのドメイン型
 */
public class GeneratedIdPropertyType<PARENT, ENTITY extends PARENT, BASIC extends Number, DOMAIN>
        extends DefaultPropertyType<PARENT, ENTITY, BASIC, DOMAIN> {

    /** 識別子のジェネレータ */
    protected final IdGenerator idGenerator;

    /**
     * インスタンスを構築します。
     *
     * @param entityClass
     *            エンティティのクラス
     * @param entityPropertyClass
     *            プロパティのクラス
     * @param basicClass
     *            値のクラス
     * @param wrapperSupplier
     *            ラッパーのサプライヤ
     * @param parentEntityPropertyType
     *            親のエンティティのプロパティ型、親のエンティティを持たない場合 {@code null}
     * @param domainType
     *            ドメインのメタタイプ、ドメインでない場合 {@code null}
     * @param name
     *            プロパティの名前
     * @param columnName
     *            カラム名
     * @param namingType
     *            ネーミング規約
     * @param idGenerator
     *            識別子のジェネレータ
     * @param quoteRequired
     *            カラム名に引用符が必要とされるかどうか
     */
    public GeneratedIdPropertyType(Class<ENTITY> entityClass,
            Class<?> entityPropertyClass, Class<BASIC> basicClass,
            Supplier<Wrapper<BASIC>> wrapperSupplier,
            EntityPropertyType<PARENT, BASIC> parentEntityPropertyType,
            DomainType<BASIC, DOMAIN> domainType, String name,
            String columnName, NamingType namingType, boolean quoteRequired,
            IdGenerator idGenerator) {
        super(entityClass, entityPropertyClass, basicClass, wrapperSupplier,
                parentEntityPropertyType, domainType, name, columnName,
                namingType, true, true, quoteRequired);
        if (idGenerator == null) {
            throw new DomaNullPointerException("idGenerator");
        }
        this.idGenerator = idGenerator;
    }

    @Override
    public boolean isId() {
        return true;
    }

    /**
     * 識別子の生成方法を検証します。
     *
     * @param config
     *            識別子の生成に関する設定
     */
    public void validateGenerationStrategy(IdGenerationConfig config) {
        Dialect dialect = config.getDialect();
        GenerationType generationType = idGenerator.getGenerationType();
        if (!isGenerationTypeSupported(generationType, dialect)) {
            EntityType<?> entityType = config.getEntityType();
            throw new JdbcException(Message.DOMA2021, entityType.getName(),
                    name, generationType.name(), dialect.getName());
        }
    }

    /**
     * 識別子を生成する方法がサポートされているかどうかを返します。
     *
     * @param generationType
     *            識別子の生成方法
     * @param dialect
     *            方言
     * @return サポートされている場合 {@code true}
     */
    protected boolean isGenerationTypeSupported(GenerationType generationType,
            Dialect dialect) {
        switch (generationType) {
        case IDENTITY:
            return dialect.supportsIdentity();
        case SEQUENCE:
            return dialect.supportsSequence();
        default:
            return true;
        }
    }

    /**
     * 識別子がINSERT文に含まれるかどうかを返します。
     *
     * @param config
     *            識別子の生成に関する設定
     * @return 含まれる場合 {@code true}
     */
    public boolean isIncluded(IdGenerationConfig config) {
        return idGenerator.includesIdentityColumn(config);
    }

    /**
     * バッチ挿入での識別子生成がサポートされているかどうかを返します。
     *
     * @param config
     *            識別子の生成に関する設定
     * @return サポートされている場合 {@code true}
     */
    public boolean isBatchSupported(IdGenerationConfig config) {
        return idGenerator.supportsBatch(config);
    }

    /**
     * バ{@link Statement#getGeneratedKeys()} をサポートしているかどうかを返します。
     *
     * @param config
     *            識別子の生成に関する設定
     * @return サポートされている場合 {@code true}
     */
    public boolean isAutoGeneratedKeysSupported(IdGenerationConfig config) {
        return idGenerator.supportsAutoGeneratedKeys(config);
    }

    /**
     * INSERTの実行前に識別子を生成します。
     *
     * @param entityType
     *            エンティティタイプ
     * @param entity
     *            エンティティ
     * @param config
     *            識別子の生成に関する設定
     * @return エンティティ
     */
    public ENTITY preInsert(EntityType<ENTITY> entityType, ENTITY entity,
            IdGenerationConfig config) {
        return setIfNecessary(entityType, entity,
                () -> idGenerator.generatePreInsert(config));
    }

    /**
     * INSERTの実行後に識別子の生成を行います。
     *
     * @param entityType
     *            エンティティタイプ
     * @param entity
     *            エンティティ
     * @param config
     *            識別子の生成に関する設定
     * @param statement
     *            INSERT文を実行した文
     * @return エンティティ
     */
    public ENTITY postInsert(EntityType<ENTITY> entityType, ENTITY entity,
            IdGenerationConfig config, Statement statement) {
        return setIfNecessary(entityType, entity,
                () -> idGenerator.generatePostInsert(config, statement));
    }

    /**
     * 必要であれば識別子を設定します。
     *
     * @param entityType
     *            エンティティタイプ
     * @param entity
     *            エンティティ
     * @param supplier
     *            値のサプライヤ
     * @return エンティティ
     */
    protected ENTITY setIfNecessary(EntityType<ENTITY> entityType,
            ENTITY entity, Supplier<Long> supplier) {
        return modifyIfNecessary(entityType, entity, new ValueSetter(),
                supplier);
    }

    protected static class ValueSetter
            implements
            NumberWrapperVisitor<Boolean, Supplier<Long>, Void, RuntimeException> {

        @Override
        public <V extends Number> Boolean visitNumberWrapper(
                NumberWrapper<V> wrapper, Supplier<Long> valueSupplier, Void q)
                throws RuntimeException {
            Number currentValue = wrapper.get();
            if (currentValue == null || currentValue.intValue() < 0) {
                Long value = valueSupplier.get();
                if (value != null) {
                    wrapper.set(value);
                    return true;
                }
            }
            return false;
        }
    }

}


text:
package org.mifos.test.acceptance.framework.savings;

import org.mifos.test.acceptance.framework.MifosPage;
import org.testng.Assert;

import com.thoughtworks.selenium.Selenium;

public class ViewDepositDueDetailsPage extends MifosPage{

    public ViewDepositDueDetailsPage(Selenium selenium) {
        super(selenium);
        this.verifyPage("savingsaccountdepositduedetails");

    }

    public Float getTotalAmountDue(){
        int rowCount = selenium.getXpathCount("//table[@id='DepositDueDetailsTable']/tbody/tr").intValue();
        return Float.parseFloat(selenium.getTable("DepositDueDetailsTable." + (rowCount - 2) + ".1"));
    }

    public Float getNextdeposit(){
        return Float.parseFloat(selenium.getTable("DepositDueDetailsTable.1.1"));
    }

    public Float getSubTotal(){
        int rowCount = selenium.getXpathCount("//table[@id='DepositDueDetailsTable']/tbody/tr").intValue();
        return Float.parseFloat(selenium.getTable("DepositDueDetailsTable." + (rowCount - 3) + ".1"));
    }

    public void verifyTotalAmountDue(Integer numberOfGroupMembers, Float amountPerMember){
        Assert.assertEquals(getNextdeposit(), (numberOfGroupMembers*amountPerMember));
        Assert.assertEquals(getTotalAmountDue(), (numberOfGroupMembers*amountPerMember+getSubTotal()));
    }

}


text:
buster.testCase('DOM: R.children', {
	works: function() {
		var div = document.createElement('div');
		var a = document.createElement('a');
		div.appendChild(a.cloneNode(true));
		div.appendChild(a);
		var found = R.children(div);
		assert.equals(found.length, 2);
		refute.equals(found[0], a);
		assert.equals(found[1], a);
	}
});

buster.testCase('DOM: R.childrenMatching', {
	works: function() {
		var div = document.createElement('div');
		var a = document.createElement('a');
		div.appendChild(a.cloneNode(true));
		a.className = 'meh';
		div.appendChild(a);
		var found = R.childrenMatching('.meh', div);
		assert.equals(found.length, 1);
		assert.equals(found[0], a);
	}
});


text:
<resources>
    <string name="app_name">pm25</string>
    <string name="action_settings">Settings</string>
    <string name="title_activity_main">MainActivity</string>
    <string name="hello_world">Hello world!</string>
    <string name="action_logcat">Logcat</string>
</resources>


text:
ip=`/opt/engines/bin/system_ip.sh`
echo -n $ip > /opt/engines/etc/exported/net/ip
curl ipecho.net/plain > /opt/engines/etc/exported/net/public


text:
ActiveRecord::Schema.define(version: 20150208012306) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "grant_conditions", force: :cascade do |t|
    t.integer  "grant_id"
    t.integer  "question_id"
    t.integer  "question_option_id"
    t.datetime "created_at",         null: false
    t.datetime "updated_at",         null: false
  end

  create_table "grants", force: :cascade do |t|
    t.string   "name"
    t.text     "description"
    t.string   "link"
    t.decimal  "amount"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "question_options", force: :cascade do |t|
    t.string   "text"
    t.integer  "question_id"
    t.datetime "created_at",  null: false
    t.datetime "updated_at",  null: false
  end

  create_table "questions", force: :cascade do |t|
    t.text     "text"
    t.integer  "input_type", default: 0
    t.datetime "created_at",             null: false
    t.datetime "updated_at",             null: false
  end

end


text:
package storm.trident.state.map;

import java.util.List;
import storm.trident.state.State;

public interface ReadOnlyMapState<T> extends State {
    // certain states might only accept one-tuple keys - those should just throw an error
    List<T> multiGet(List<List<Object>> keys);
}


text:
class RemoveUserReposTable < ActiveRecord::Migration
  def change
    drop_table :user_repos
  end
end


text:
package se.gravlax.resourceholder;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.annotation.Config;

import static org.junit.Assert.assertTrue;

@RunWith(RobolectricGradleTestRunner.class)
@Config(constants = BuildConfig.class)
public class MainActivityTest {
    @Test
    public void testDummyTest() {
        assertTrue(true);

    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_margin="16dp"
    android:orientation="vertical">

    <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:animateLayoutChanges="true">

        <EditText
            android:id="@+id/edit_text_name"
            android:layout_width="match_parent"
            android:layout_height="44dp"
            android:hint="@string/activity_user_name"
            android:inputType="numberDecimal" />
    </android.support.design.widget.TextInputLayout>

    <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:animateLayoutChanges="true">

        <EditText
            android:id="@+id/edit_text_email"
            android:layout_width="match_parent"
            android:layout_height="44dp"
            android:hint="@string/activity_user_email"
            android:inputType="textEmailAddress" />
    </android.support.design.widget.TextInputLayout>

    <android.support.design.widget.TextInputLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:animateLayoutChanges="true">

        <EditText
            android:id="@+id/edit_text_password"
            android:layout_width="match_parent"
            android:layout_height="44dp"
            android:hint="@string/activity_user_password"
            android:inputType="textPassword" />
    </android.support.design.widget.TextInputLayout>

    <Button
        android:id="@+id/button_save"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@string/activity_user_save"/>
</LinearLayout>


text:
package vanadis.osgi.impl;

import vanadis.core.properties.AbstractPropertySet;
import vanadis.core.properties.PropertySet;
import vanadis.osgi.Context;

import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Collection;
import java.util.Collections;

final class OSGiContextPropertySet extends AbstractPropertySet {

    private final transient Context context;

    private static final long serialVersionUID = 7916227561187126242L;

    OSGiContextPropertySet(Context context) {
        this(context, null);
    }

    private OSGiContextPropertySet(Context context, AbstractPropertySet next) {
        super(next, false);
        this.context = context;
    }

    @Override
    protected Object getLocal(String key) {
        return context.getProperty(key);
    }

    @Override
    protected OSGiContextPropertySet setLocal(String key, Object value) {
        throw new IllegalArgumentException(this + " cannot set " + key + " to " + value);
    }

    @Override
    protected OSGiContextPropertySet makeCopy(PropertySet parent, boolean writable) {
        return this;
    }

    @Override
    protected AbstractPropertySet doOrphan() {
        return new OSGiContextPropertySet(context, null);
    }

    @Override
    public PropertySet expand(PropertySet... variables) {
        return this;
    }

    @Override
    public int size() {
        return context.getPropertySet().size();
    }

    @Override
    public Collection<String> getPropertyNames() {
        return Collections.emptySet();
    }

    private void writeObject(ObjectOutputStream oos) {
        throw new IllegalStateException(this + " will not serialize!");
    }

    private void readObject(ObjectInputStream ois) {
        throw new IllegalStateException(this + " will not serialize!");
    }

}


text:
JMP
---

JMP, commonly referred to as *Jump*, is an enterprise level statistical
analysis tool developed by SAS. The JMP software package is designed to
handle every data-involved stage from the initial acquisition of data to
the final presentation of findings. JMP was first released in 1989 and
has been designed ever since to provide a visual-centric interface where
the user can analyze, manipulate, and format data. JMP is capable of
complex analysis and machine learning techniques and can provide the
user the back-end software code generated to produce the visualized
results in a variety of common statistical languages or applications
such as Python, R, Matlab, SAS, and others [@hid-sp18-507-JMP9]. A
single JMP license is available for 1,785 USD [@hid-sp18-507-JMPSAS].
JMP Pro is an even more capable version of JMP with more advanced
analytics and predictive modeling with cross-validation--available for
14,900 USD [@hid-sp18-507-JMPPro].


text:
"""HTML Exporter class"""

#-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------

#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------

import os

from IPython.nbconvert import preprocessors
from IPython.config import Config

from .templateexporter import TemplateExporter

#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------

class HTMLExporter(TemplateExporter):
    """
    Exports a basic HTML document.  This exporter assists with the export of
    HTML.  Inherit from it if you are writing your own HTML template and need
    custom preprocessors/filters.  If you don't need custom preprocessors/
    filters, just change the 'template_file' config option.
    """

    def _file_extension_default(self):
        return 'html'

    def _default_template_path_default(self):
        return os.path.join("..", "templates", "html")

    def _template_file_default(self):
        return 'full'

    output_mimetype = 'text/html'

    @property
    def default_config(self):
        c = Config({
            'NbConvertBase': {
                'display_data_priority' : ['javascript', 'html', 'application/pdf', 'svg', 'latex', 'png', 'jpg', 'jpeg' , 'text']
                },
            'CSSHTMLHeaderPreprocessor':{
                'enabled':True
                },
            'HighlightMagicsPreprocessor': {
                'enabled':True
                }
            })
        c.merge(super(HTMLExporter,self).default_config)
        return c


text:
package com.microsoft.azure.management.appservice;

/**
 * SSL-enabled hostname.
 */
public class HostNameSslState {
    /**
     * Hostname.
     */
    private String name;

    /**
     * SSL type. Possible values include: 'Disabled', 'SniEnabled',
     * 'IpBasedEnabled'.
     */
    private SslState sslState;

    /**
     * Virtual IP address assigned to the hostname if IP based SSL is enabled.
     */
    private String virtualIP;

    /**
     * SSL certificate thumbprint.
     */
    private String thumbprint;

    /**
     * Set to true to update existing hostname.
     */
    private Boolean toUpdate;

    /**
     * Get the name value.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name value.
     *
     * @param name the name value to set
     * @return the HostNameSslState object itself.
     */
    public HostNameSslState withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the sslState value.
     *
     * @return the sslState value
     */
    public SslState sslState() {
        return this.sslState;
    }

    /**
     * Set the sslState value.
     *
     * @param sslState the sslState value to set
     * @return the HostNameSslState object itself.
     */
    public HostNameSslState withSslState(SslState sslState) {
        this.sslState = sslState;
        return this;
    }

    /**
     * Get the virtualIP value.
     *
     * @return the virtualIP value
     */
    public String virtualIP() {
        return this.virtualIP;
    }

    /**
     * Set the virtualIP value.
     *
     * @param virtualIP the virtualIP value to set
     * @return the HostNameSslState object itself.
     */
    public HostNameSslState withVirtualIP(String virtualIP) {
        this.virtualIP = virtualIP;
        return this;
    }

    /**
     * Get the thumbprint value.
     *
     * @return the thumbprint value
     */
    public String thumbprint() {
        return this.thumbprint;
    }

    /**
     * Set the thumbprint value.
     *
     * @param thumbprint the thumbprint value to set
     * @return the HostNameSslState object itself.
     */
    public HostNameSslState withThumbprint(String thumbprint) {
        this.thumbprint = thumbprint;
        return this;
    }

    /**
     * Get the toUpdate value.
     *
     * @return the toUpdate value
     */
    public Boolean toUpdate() {
        return this.toUpdate;
    }

    /**
     * Set the toUpdate value.
     *
     * @param toUpdate the toUpdate value to set
     * @return the HostNameSslState object itself.
     */
    public HostNameSslState withToUpdate(Boolean toUpdate) {
        this.toUpdate = toUpdate;
        return this;
    }

}


text:
Describe "GetDateFormatUpdates" -Tags "Feature" {

    It "Verifies that FileDate format works" {
        $date = Get-Date
        $expectedFormat = "{0:yyyyMMdd}" -f $date
        $actualFormat = Get-Date -Date $date -Format FileDate

        $actualFormat | Should be $expectedFormat
    }

    It "Verifies that FileDateUniversal format works" {
        $date = (Get-Date).ToUniversalTime()
        $expectedFormat = "{0:yyyyMMddZ}" -f $date
        $actualFormat = Get-Date -Date $date -Format FileDateUniversal

        $actualFormat | Should be $expectedFormat
    }

    It "Verifies that FileDateTime format works" {
        $date = Get-Date
        $expectedFormat = "{0:yyyyMMddTHHmmssffff}" -f $date
        $actualFormat = Get-Date -Date $date -Format FileDateTime

        $actualFormat | Should be $expectedFormat
    }

    It "Verifies that FileDateTimeUniversal format works" {
        $date = (Get-Date).ToUniversalTime()
        $expectedFormat = "{0:yyyyMMddTHHmmssffffZ}" -f $date
        $actualFormat = Get-Date -Date $date -Format FileDateTimeUniversal

        $actualFormat | Should be $expectedFormat
    }

}

Describe "GetRandomMiscTests" -Tags "Feature" {
    It "Shouldn't overflow when using max range" {

        $hadError = $false

        try
        {
            ## Don't actually need to validate
            Get-Random -Minimum ([Int32]::MinValue) -Maximum ([Int32]::MaxValue) -ErrorAction Stop
        }
        catch
        {
            $hadError = $true
        }

        $hadError | Should be $false
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <artifactId>chapter_004</artifactId>
    <version>2.0</version>
    <modules>
        <module>orderbook</module>
    </modules>
    <packaging>pom</packaging>

    <parent>
        <artifactId>junior</artifactId>
        <groupId>ru.job4j</groupId>
        <version>2.0</version>
    </parent>

</project>


text:
<?php
//Si no tiene permisos de rol admin, redirect a pagina principal
if (!(isset($_SESSION['rol']) && $_SESSION['rol'] == "capturista")){
  redirect(base_url().'admin');
}
?>

Médicos registrados

              Nombre
              Correo
              Especialidad
              Telefonos
              Direcciones

        <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Modificar médico

            <form method="post" onsubmit="guardarMedico();return false;" id="registroMedico" class="panel">

Datos Generales del Medico

        	      <input type="hidden" id="medico_id" value="">

                        <input type="text" class="form-control" id="nombre" placeholder="Nombre(s)">

                        <input type="text" class="form-control" id="apellidoP" placeholder="Apellido paterno">

                        <input type="text" class="form-control" id="apellidoM" placeholder="Apellido materno">

                        <input type="email" class="form-control" id="email" placeholder="E-mail:">

                        <input type="text" class="form-control" id="especialidad" placeholder="Especialidad:">
                        <?php
                          echo '';
                          foreach ($especialidades as $especialidad) {
                            echo '';
                          }
                        ?>

                      <button class="btn btn-info btn-block" id="agregarDatos" type="submit">Guardar Medico</button>

                      <button class="btn btn-warning btn-block" id="editarDatos">Editar</button>

              </form>

            <form method="post" onsubmit="return false;" id="registroDireccion" class="panel">

Direcciones

                <input type="hidden" class="hidden" id="superOculto" value="">

                        <input type="text" class="form-control" id="nombreDireccion" placeholder="Nombre">

                        <input type="text" class="form-control" id="direccion" placeholder="Calle">

                        <input type="text" class="form-control" id="numero" placeholder="Numero">

                        <input type="text" class="form-control" id="cp" placeholder="Codigo Postal">

                        <select class="form-control" id="estado" placeholder="Estado">
                          <option value="">Estado</option>
                        <?php
                          foreach ($estados as $estado) {
                            echo '<option value="'.$estado['id'].'" onchange="treaerMunicipios()">'.$estado['estado'].'</option>';
                          }
                        ?>
                        </select>

                        <select class="form-control" id="municipio" placeholder="Municipio"><option value="">Municipio/Ciudad</option></select>

                        <select class="form-control" id="localidad"><option value="">Localidad/Colonia</option></select>

                        <input class="form-control" type="text" id="otralocalidad" placeholder="Otra localidad / colonia">

                      <button class="btn btn-info btn-block btnAñade" id="agregarDireccion">Añadir</button>

              </form>

              <form method="post" onsubmit="guardarTelefono();return false;" id="registroTelefonos" class="panel">

Teléfonos

                <input type="hidden" class="hidden" id="fonOculto" value=""/>

                        <select class="form-control" id="tipoTelefono">
                          <option value="casa">Casa</option>
                          <option value="celular">Celular</option>
                          <option value="oficina">Oficina</option>
                          <option value="localizador">Localizador</option>
                        </select>

                            <input type="text" id="numTelefono" class="form-control solo-numero" placeholder="Número:" maxlength="10" onpaste="soloNumeros()"/>

                      <button type="submit" class="btn btn-info btnAñade btn-block" id="enviarFon">Añadir</button>

                </form>

        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>


text: module.exports = require('./lib/multipartist').default;


text:
<?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
	<Title>
		<v8:item>
			<v8:lang>ru</v8:lang>
			<v8:content>Напоминания</v8:content>
		</v8:item>
	</Title>
	<AutoTitle>false</AutoTitle>
	<CommandSet>
		<ExcludedCommand>No</ExcludedCommand>
		<ExcludedCommand>CustomizeForm</ExcludedCommand>
		<ExcludedCommand>SaveValues</ExcludedCommand>
		<ExcludedCommand>Close</ExcludedCommand>
		<ExcludedCommand>Help</ExcludedCommand>
		<ExcludedCommand>Abort</ExcludedCommand>
		<ExcludedCommand>Retry</ExcludedCommand>
		<ExcludedCommand>Yes</ExcludedCommand>
		<ExcludedCommand>Cancel</ExcludedCommand>
		<ExcludedCommand>RestoreValues</ExcludedCommand>
		<ExcludedCommand>Ignore</ExcludedCommand>
		<ExcludedCommand>OK</ExcludedCommand>
	</CommandSet>
	<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
		<Autofill>false</Autofill>
	</AutoCommandBar>
	<Events>
		<Event name="NotificationProcessing">ОбработкаОповещения</Event>
		<Event name="OnOpen">ПриОткрытии</Event>
		<Event name="OnReopen">ПриПовторномОткрытии</Event>
		<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
		<Event name="OnClose">ПриЗакрытии</Event>
	</Events>
	<ChildItems>
		<UsualGroup name="ПанельКнопок" id="15">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Панель кнопок</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Панель кнопок</v8:content>
				</v8:item>
			</ToolTip>
			<Group>Horizontal</Group>
			<Representation>None</Representation>
			<ShowTitle>false</ShowTitle>
			<ExtendedTooltip name="ПанельКнопокExtendedTooltip" id="30"/>
			<ChildItems>
				<Button name="КнопкаОткрыть" id="11">
					<Type>UsualButton</Type>
					<CommandName>Form.Command.Открыть</CommandName>
					<ExtendedTooltip name="КнопкаОткрытьExtendedTooltip" id="31"/>
				</Button>
				<Button name="КнопкаПрекратить" id="9">
					<Type>UsualButton</Type>
					<CommandName>Form.Command.Прекратить</CommandName>
					<ExtendedTooltip name="КнопкаПрекратитьExtendedTooltip" id="32"/>
				</Button>
				<InputField name="СрокПовторногоОповещения" id="12">
					<DataPath>СрокПовторногоОповещения</DataPath>
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Напомнить через</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Время, через которое нужно напомнить</v8:content>
						</v8:item>
					</ToolTip>
					<Width>15</Width>
					<DropListButton>true</DropListButton>
					<ClearButton>false</ClearButton>
					<EditTextUpdate>OnValueChange</EditTextUpdate>
					<ChoiceList>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">5м</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">10м</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">15м</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">30м</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">1ч</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">2ч</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">4ч</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">8ч</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">1д</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">2д</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">3д</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">1н</Value>
							</xr:Value>
						</xr:Item>
						<xr:Item>
							<xr:Presentation/>
							<xr:CheckState>0</xr:CheckState>
							<xr:Value xsi:type="FormChoiceListDesTimeValue">
								<Presentation/>
								<Value xsi:type="xs:string">2н</Value>
							</xr:Value>
						</xr:Item>
					</ChoiceList>
					<ContextMenu name="СрокПовторногоОповещенияКонтекстноеМеню" id="13"/>
					<ExtendedTooltip name="СрокПовторногоОповещенияExtendedTooltip" id="34"/>
					<Events>
						<Event name="OnChange">СрокПовторногоОповещенияПриИзменении</Event>
					</Events>
				</InputField>
				<Button name="КнопкаОтложить" id="8">
					<Type>UsualButton</Type>
					<SkipOnInput>false</SkipOnInput>
					<CommandName>Form.Command.ОтложитьВсе</CommandName>
					<ExtendedTooltip name="КнопкаОтложитьExtendedTooltip" id="35"/>
				</Button>
			</ChildItems>
		</UsualGroup>

			<Representation>List</Representation>
			<ReadOnly>true</ReadOnly>
			<DefaultItem>true</DefaultItem>
			<ChangeRowSet>false</ChangeRowSet>
			<ChangeRowOrder>false</ChangeRowOrder>
			<MultipleChoice>true</MultipleChoice>
			false
			<AutoInsertNewRow>true</AutoInsertNewRow>
			<EnableStartDrag>true</EnableStartDrag>
			<EnableDrag>true</EnableDrag>
			<DataPath>Напоминания</DataPath>
			<RowPictureDataPath>Напоминания.ИндексКартинки</RowPictureDataPath>
			<RowsPicture>
				<xr:Ref>CommonPicture.КоллекцияНапоминания</xr:Ref>
				<xr:LoadTransparent>false</xr:LoadTransparent>
			</RowsPicture>
			<CommandSet>
				<ExcludedCommand>Copy</ExcludedCommand>
				<ExcludedCommand>SortListAsc</ExcludedCommand>
				<ExcludedCommand>MoveUp</ExcludedCommand>
				<ExcludedCommand>CancelSearch</ExcludedCommand>
				<ExcludedCommand>SortListDesc</ExcludedCommand>
				<ExcludedCommand>Delete</ExcludedCommand>
				<ExcludedCommand>EndEdit</ExcludedCommand>
				<ExcludedCommand>Add</ExcludedCommand>
				<ExcludedCommand>Change</ExcludedCommand>
				<ExcludedCommand>Find</ExcludedCommand>
				<ExcludedCommand>MoveDown</ExcludedCommand>
			</CommandSet>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Список наступивших напоминаний</v8:content>
				</v8:item>
			</ToolTip>
			<SearchStringLocation>None</SearchStringLocation>
			<ViewStatusLocation>None</ViewStatusLocation>
			<SearchControlLocation>None</SearchControlLocation>
			<RowFilter xsi:nil="true"/>
			<ContextMenu name="НапоминанияКонтекстноеМеню" id="2">
				<Autofill>false</Autofill>
				<ChildItems>
					<ButtonGroup name="ДействияСНапоминаниями" id="26">
						<EnableContentChange>true</EnableContentChange>
						<Title>
							<v8:item>
								<v8:lang>ru</v8:lang>
								<v8:content>Действия с напоминаниями</v8:content>
							</v8:item>
						</Title>
						<ToolTip>
							<v8:item>
								<v8:lang>ru</v8:lang>
								<v8:content>Действия с напоминаниями</v8:content>
							</v8:item>
						</ToolTip>
						<ExtendedTooltip name="ДействияСНапоминаниямиExtendedTooltip" id="36"/>
						<ChildItems>
							<Button name="НапоминанияКонтекстноеМенюОткрыть" id="20">
								<Type>CommandBarButton</Type>
								<CommandName>Form.Command.Открыть</CommandName>
								<Title>
									<v8:item>
										<v8:lang>ru</v8:lang>
										<v8:content>Открыть предмет напоминания</v8:content>
									</v8:item>
								</Title>
								<ExtendedTooltip name="НапоминанияКонтекстноеМенюОткрытьExtendedTooltip" id="37"/>
							</Button>
							<Button name="НапоминанияКонтекстноеМенюИзменить" id="21">
								<Type>CommandBarButton</Type>
								<CommandName>Form.Command.Изменить</CommandName>
								<Title>
									<v8:item>
										<v8:lang>ru</v8:lang>
										<v8:content>Изменить напоминание...</v8:content>
									</v8:item>
								</Title>
								<ExtendedTooltip name="НапоминанияКонтекстноеМенюИзменитьExtendedTooltip" id="38"/>
							</Button>
						</ChildItems>
					</ButtonGroup>
					<ButtonGroup name="ДействияСоСписком" id="25">
						<EnableContentChange>true</EnableContentChange>
						<Title>
							<v8:item>
								<v8:lang>ru</v8:lang>
								<v8:content>Действия со списком</v8:content>
							</v8:item>
						</Title>
						<ToolTip>
							<v8:item>
								<v8:lang>ru</v8:lang>
								<v8:content>Действия со списком</v8:content>
							</v8:item>
						</ToolTip>
						<ExtendedTooltip name="ДействияСоСпискомExtendedTooltip" id="39"/>
						<ChildItems>
							<Button name="НапоминанияКонтекстноеМенюВывестиСписок" id="27">
								<Type>CommandBarButton</Type>
								<CommandName>Form.Item.Напоминания.StandardCommand.OutputList</CommandName>
								<ExtendedTooltip name="НапоминанияКонтекстноеМенюВывестиСписокExtendedTooltip" id="40"/>
							</Button>
							<Button name="НапоминанияКонтекстноеМенюКопироватьВБуферОбмена" id="28">
								<Type>CommandBarButton</Type>
								<CommandName>Form.Item.Напоминания.StandardCommand.CopyToClipboard</CommandName>
								<ExtendedTooltip name="НапоминанияКонтекстноеМенюКопироватьВБуферОбменаExtendedTooltip" id="41"/>
							</Button>
							<Button name="НапоминанияКонтекстноеМенюВыделитьВсе" id="29">
								<Type>CommandBarButton</Type>
								<CommandName>Form.Item.Напоминания.StandardCommand.SelectAll</CommandName>
								<ExtendedTooltip name="НапоминанияКонтекстноеМенюВыделитьВсеExtendedTooltip" id="42"/>
							</Button>
						</ChildItems>
					</ButtonGroup>
				</ChildItems>
			</ContextMenu>
			<AutoCommandBar name="НапоминанияКоманднаяПанель" id="3">
				<Autofill>false</Autofill>
			</AutoCommandBar>
			<ExtendedTooltip name="НапоминанияExtendedTooltip" id="43"/>
			<SearchStringAddition name="НапоминанияСтрокаПоиска" id="46">
				<AdditionSource>
					<Item>Напоминания</Item>
					<Type>SearchStringRepresentation</Type>
				</AdditionSource>
				<ContextMenu name="НапоминанияСтрокаПоискаКонтекстноеМеню" id="47"/>
				<ExtendedTooltip name="НапоминанияСтрокаПоискаРасширеннаяПодсказка" id="48"/>
			</SearchStringAddition>
			<ViewStatusAddition name="НапоминанияСостояниеПросмотра" id="49">
				<AdditionSource>
					<Item>Напоминания</Item>
					<Type>ViewStatusRepresentation</Type>
				</AdditionSource>
				<ContextMenu name="НапоминанияСостояниеПросмотраКонтекстноеМеню" id="50"/>
				<ExtendedTooltip name="НапоминанияСостояниеПросмотраРасширеннаяПодсказка" id="51"/>
			</ViewStatusAddition>
			<SearchControlAddition name="НапоминанияУправлениеПоиском" id="52">
				<AdditionSource>
					<Item>Напоминания</Item>
					<Type>SearchControl</Type>
				</AdditionSource>
				<ContextMenu name="НапоминанияУправлениеПоискомКонтекстноеМеню" id="53"/>
				<ExtendedTooltip name="НапоминанияУправлениеПоискомРасширеннаяПодсказка" id="54"/>
			</SearchControlAddition>
			<Events>
				<Event name="Selection">НапоминанияВыбор</Event>
				<Event name="OnActivateRow">НапоминанияПриАктивизацииСтроки</Event>
			</Events>
			<ChildItems>
				<InputField name="Описание" id="4">
					<DataPath>Напоминания.Описание</DataPath>
					<EditMode>EnterOnInput</EditMode>
					<AutoCellHeight>true</AutoCellHeight>
					<ContextMenu name="ОписаниеКонтекстноеМеню" id="5"/>
					<ExtendedTooltip name="ОписаниеExtendedTooltip" id="44"/>
				</InputField>
				<InputField name="ВремяСобытия" id="6">
					<DataPath>Напоминания.ВремяСобытияСтрока</DataPath>
					<EditMode>EnterOnInput</EditMode>
					<ContextMenu name="ВремяСобытияКонтекстноеМеню" id="7"/>
					<ExtendedTooltip name="ВремяСобытияExtendedTooltip" id="45"/>
				</InputField>
			</ChildItems>

	</ChildItems>
	<Attributes>
		<Attribute name="Напоминания" id="2">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Напоминания</v8:content>
				</v8:item>
			</Title>
			<Type>
				<v8:Type>v8:ValueTable</v8:Type>
			</Type>
			<Columns>
				<Column name="ВремяСобытияСтрока" id="2">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Время события</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:string</v8:Type>
						<v8:StringQualifiers>
							<v8:Length>30</v8:Length>
							<v8:AllowedLength>Variable</v8:AllowedLength>
						</v8:StringQualifiers>
					</Type>
				</Column>
				<Column name="ВремяСобытия" id="3">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Время события</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:dateTime</v8:Type>
						<v8:DateQualifiers>
							<v8:DateFractions>DateTime</v8:DateFractions>
						</v8:DateQualifiers>
					</Type>
				</Column>
				<Column name="Пользователь" id="6">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Пользователь</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>cfg:CatalogRef.Пользователи</v8:Type>
					</Type>
				</Column>
				<Column name="СрокНапоминания" id="7">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Срок оповещения</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:dateTime</v8:Type>
						<v8:DateQualifiers>
							<v8:DateFractions>DateTime</v8:DateFractions>
						</v8:DateQualifiers>
					</Type>
				</Column>
				<Column name="Описание" id="8">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Текст оповещения</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:string</v8:Type>
						<v8:StringQualifiers>
							<v8:Length>255</v8:Length>
							<v8:AllowedLength>Variable</v8:AllowedLength>
						</v8:StringQualifiers>
					</Type>
				</Column>
				<Column name="Источник" id="10">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Источник</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:TypeSet>cfg:AnyRef</v8:TypeSet>
					</Type>
				</Column>
				<Column name="ИндексКартинки" id="11">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Индекс картинки</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:decimal</v8:Type>
						<v8:NumberQualifiers>
							<v8:Digits>10</v8:Digits>
							<v8:FractionDigits>0</v8:FractionDigits>
							<v8:AllowedSign>Nonnegative</v8:AllowedSign>
						</v8:NumberQualifiers>
					</Type>
				</Column>
				<Column name="ВидСобытия" id="1">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Вид события</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:string</v8:Type>
						<v8:StringQualifiers>
							<v8:Length>0</v8:Length>
							<v8:AllowedLength>Variable</v8:AllowedLength>
						</v8:StringQualifiers>
					</Type>
				</Column>
				<Column name="ИсточникСтрокой" id="4">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Источник строкой</v8:content>
						</v8:item>
					</Title>
					<Type>
						<v8:Type>xs:string</v8:Type>
						<v8:StringQualifiers>
							<v8:Length>100</v8:Length>
							<v8:AllowedLength>Variable</v8:AllowedLength>
						</v8:StringQualifiers>
					</Type>
				</Column>
			</Columns>
		</Attribute>
		<Attribute name="СрокПовторногоОповещения" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Срок повторного оповещения</v8:content>
				</v8:item>
			</Title>
			<Type>
				<v8:Type>xs:string</v8:Type>
				<v8:StringQualifiers>
					<v8:Length>50</v8:Length>
					<v8:AllowedLength>Variable</v8:AllowedLength>
				</v8:StringQualifiers>
			</Type>
		</Attribute>
	</Attributes>
	<Commands>
		<Command name="ОтложитьВсе" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Отложить все</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Отложить все напоминания</v8:content>
				</v8:item>
			</ToolTip>
			<Action>Отложить</Action>
		</Command>
		<Command name="Прекратить" id="2">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Прекратить</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Прекратить напоминание</v8:content>
				</v8:item>
			</ToolTip>
			<Action>Прекратить</Action>
		</Command>
		<Command name="Открыть" id="4">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Открыть</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Открыть предмет напоминания</v8:content>
				</v8:item>
			</ToolTip>
			<Picture>
				<xr:Ref>StdPicture.ShowData</xr:Ref>
				<xr:LoadTransparent>true</xr:LoadTransparent>
			</Picture>
			<Action>КомандаОткрыть</Action>
		</Command>
		<Command name="Изменить" id="5">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Изменить</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Изменить</v8:content>
				</v8:item>
			</ToolTip>
			<Shortcut>F2</Shortcut>
			<Picture>
				<xr:Ref>StdPicture.Change</xr:Ref>
				<xr:LoadTransparent>true</xr:LoadTransparent>
			</Picture>
			<Action>Изменить</Action>
		</Command>
	</Commands>
</Form>


text:
/******************************************************************************
  load.sql

Loads in batch-importable files into the database.

Future work needed here: See if we can find a way to not have to hard-code in
the name of the batch-importable files.
******************************************************************************/

LOAD DATA LOCAL INFILE 'occupation.dat' INTO TABLE Occupation
     CHARACTER SET UTF8
     FIELDS TERMINATED BY '\t'
     LINES TERMINATED BY '\n';

LOAD DATA LOCAL INFILE 'stateOccupation.dat' INTO TABLE StateOccupation
     CHARACTER SET UTF8
     FIELDS TERMINATED BY '\t'
     LINES TERMINATED BY '\n';

/*
LOAD DATA LOCAL INFILE 'regionalOccupation.dat' INTO TABLE RegionalOccupation
     CHARACTER SET UTF8
     FIELDS TERMINATED BY '\t'
     LINES TERMINATED BY '\n';
*/

LOAD DATA LOCAL INFILE 'interest.dat' INTO TABLE OccupationInterests
     CHARACTER SET UTF8
     FIELDS TERMINATED BY '\t'
     LINES TERMINATED BY '\n';

LOAD DATA LOCAL INFILE 'skills.dat' INTO TABLE Skills
     CHARACTER SET UTF8
     FIELDS TERMINATED BY '\t'
     LINES TERMINATED BY '\n';

LOAD DATA LOCAL INFILE 'videos.csv' INTO TABLE Videos
  CHARACTER SET UTF8
  FIELDS TERMINATED BY ','
  LINES TERMINATED BY '\r';


text:
<?xml version="1.0" encoding="UTF-8"?>
<T3locallangExt>
  <data type="array">
    <languageKey index="de" type="array">
      Sonderzeichen einfügen
      Sonderzeichen einfügen
      Sonderzeichen einfügen
      Weiches Trennzeichen einfügen
      Allgemein
      Mathematisch
      Umrisse und Pfeile
      HTML-Wert:
      Schließen
      Geschütztes Leerzeichen
      Großes a mit Gravis
      Kleines a mit Gravis
      Großes a mit Akut
      Kleines a mit Akut
      Großes a mit Zirkumflex
      Kleines a mit Zirkumflex
      Großes a mit Tilde
      Kleines a mit Tilde
      Großes a mit Umlaut/Trema
      Kleines a mit Umlaut/Trema
      Großes a mit Ring
      Kleines a mit Ring
      Große ae-Ligatur
      Kleine ae-Ligatur
      Feminines Ordinalzeichen
      Großes c mit Cédille
      Kleines c mit Cédille
      Großes Eth, isländisch
      Kleines Eth, isländisch
      Großes e mit Gravis
      Kleines e mit Gravis
      Großes e mit Akut
      Kleines e mit Akut
      Großes e mit Zirkumflex
      Kleines e mit Zirkumflex
      Großes e mit Umlaut/Trema
      Kleines e mit Umlaut/Trema
      Großes i mit Gravis
      Kleines i mit Gravis
      Großes i mit Akut
      Kleines i mit Akut
      Großes i mit Zirkumflex
      Kleines i mit Zirkumflex
      Großes i mit Umlaut/Trema
      Kleines i mit Umlaut/Trema
      Großes n mit Tilde
      Kleines n mit Tilde
      Großes o mit Gravis
      Kleines o mit Gravis
      Großes o mit Akut
      Kleines o mit Akut
      Großes o mit Zirkumflex
      Kleines o mit Zirkumflex
      Großes o mit Tilde
      Kleines o mit Tilde
      Großes o mit Umlaut/Trema
      Kleines o mit Umlaut/Trema
      Großes o mit Schrägstrich
      Kleines o mit Schrägstrich
      Große oe-Ligatur
      Kleine oe-Ligatur
      Maskulines Ordinalzeichen
      Großes s mit Caron
      Kleines s mit Caron
      Scharfes s, deutsch
      Großes Thorn, isländisch
      Kleines Thorn, isländisch
      Großes u mit Gravis
      Kleines u mit Gravis
      Großes u mit Akut
      Kleines u mit Akut
      Großes u mit Zirkumflex
      Kleines u mit Zirkumflex
      Großes u mit Umlaut/Trema
      Kleines u mit Umlaut/Trema
      Großes y mit Akut
      Kleines y mit Akut
      Großes y mit Umlaut/Trema
      Kleines y mit Umlaut/Trema
      Abstand mit Akut

      Kleine Tilde
      Abstand mit Trema
      Abstand mit Cédille
      Weiches Trennzeichen
      Halbgeviertstrich
      Geviertstrich
      Einfaches linkes Anführungszeichen
      Einfaches rechtes Anführungszeichen
      Einfaches Anführungszeichen unten
      Doppeltes linkes Anführungszeichen
      Doppeltes rechtes Anführungszeichen
      Deutsches Anführungszeichen unten
      Einfaches linkes Guillemet
      Einfaches rechtes Guillemet
      Linkes Guillemet
      Rechtes Guillemet
      Anführungszeichen
      Auslassungspunkte
      Umgekehrtes Fragezeichen
      Umgekehrtes Ausrufezeichen
      Aufzählungszeichen
      Kreuz
      Doppelkreuz
      Unterbrochener senkrechter Strich
      Absatzzeichen
      Paragraphenzeichen
      Raute
      At-Zeichen
      Copyright
      Registered Trademark
      Trademark
      Währung
      Cent
      Euro
      Pfund
      Yen
      Geviert-Leerzeichen
      Halbgeviert-Leerzeichen
      Schmales Leerzeichen
      Verbinder ohne Zeichenabstand
      Nicht-Verbinder ohne Zeichenabstand
      Minus
      Plus-/Minuszeichen
      Multiplikationszeichen
      Divisionszeichen
      Wurzel
      Multiplikationspunkt

      Ungleichheitszeichen

      Grad

      Mikro-Zeichen

      Promille
      Bruchstrich
      Bruch 1/4
      Bruch 1/2
      Bruch 3/4

      Logisches Und
      Logisches Oder

      Äquivalent
      Summe
      Produkt

      Funktion
      Integral

      Großes griechisches alpha
      Kleines griechisches alpha
      Großes griechisches beta
      Kleines griechisches beta
      Großes griechisches gamma
      Kleines griechisches gamma
      Großes griechisches delta
      Kleines griechisches delta
      Großes griechisches epsilon
      Kleines griechisches epsilon
      Großes griechisches zeta
      Kleines griechisches zeta
      Großes griechisches eta
      Kleines griechisches eta
      Großes griechisches theta
      Kleines griechisches theta
      Kleines griechisches theta
      Großes griechisches iota
      Kleines griechisches iota
      Großes griechisches kappa
      Kleines griechisches kappa
      Großes griechisches lambda
      Kleines griechisches lambda
      Großes griechisches mu
      Kleines griechisches mu
      Großes griechisches nu
      Kleines griechisches nu
      Großes griechisches xi
      Kleines griechisches xi
      Großes griechisches omicron
      Kleines griechisches omicron
      Großes griechisches pi
      Kleines griechisches pi

      Großes griechisches rho
      Kleines griechisches rho
      Großes griechisches sigma
      Kleines griechisches sigma
      Kleines griechisches sigma
      Großes griechisches tau
      Kleines griechisches tau
      Großes griechisches upsilon

      Kleines griechisches upsilon
      Großes griechisches phi
      Kleines griechisches phi
      Großes griechisches chi
      Kleines griechisches chi
      Großes griechisches psi
      Kleines griechisches psi
      Großes griechisches omega
      Kleines griechisches omega

      Kreuz
      Karo
      Herz
      Pik
    </languageKey>
  </data>
</T3locallangExt>


text:
package org.auraframework.util.type.converter;

import java.util.ArrayList;

import org.auraframework.ds.serviceloader.AuraServiceProvider;
import org.auraframework.util.type.Converter;

import aQute.bnd.annotation.component.Component;

/**
 * Used by aura.util.type.TypeUtil
 */
@SuppressWarnings("rawtypes")
@Component (provide=AuraServiceProvider.class)
public class ArrayListToIntegerArrayConverter implements Converter<ArrayList, Integer[]> {

    @SuppressWarnings("unchecked")
    @Override
    public Integer[] convert(ArrayList value) {

        if (value == null) {
            return new Integer[0];
        }

        ArrayList<Integer> convertedValues = new ArrayList<Integer>(value.size());

        for (String s : (ArrayList<String>) value) {
            convertedValues.add(Integer.valueOf(s));
        }
        return convertedValues.toArray(new Integer[value.size()]);
    }

    @Override
    public Class<ArrayList> getFrom() {
        return ArrayList.class;
    }

    @Override
    public Class<Integer[]> getTo() {
        return Integer[].class;
    }

    @Override
    public Class<?>[] getToParameters() {
        return null;
    }
}


text:
#ifdef QT_QML_DEBUG
#include <QtQuick>
#endif

#include <QGuiApplication>
#include <QQuickView>
#include <QQuickItem>

#include <sailfishapp.h>

#include "audioplayer.h"

int main(int argc, char *argv[])
{
    QGuiApplication *app = SailfishApp::application(argc, argv);
    QQuickView *view = SailfishApp::createView();
    view->setSource(SailfishApp::pathTo("qml/harbour-metronom.qml"));

    AudioPlayer player;

    QQuickItem* item = view->rootObject();
    QObject::connect(item, SIGNAL(playClick(int, int, int)), &player, SLOT(playClick(int,int,int)));

    view->show();
    return app->exec();
}


text:
package io.amient.affinity.core.cluster

import io.amient.affinity.core.actor.{Partition, Routed}
import io.amient.affinity.core.util.Reply

class FailoverTestPartition extends Partition {

  import FailoverTestPartition._
  import context.dispatcher

  val data = state[String, String]("consistency-test")

  override def handle: Receive = {
    case request@GetValue(key) => request(sender) ! data(key)
    case request@PutValue(key, value) => request(sender) ! data.replace(key, value)
  }
}

object FailoverTestPartition {

  case class GetValue(key: String) extends Routed with Reply[Option[String]] {
    override def hashCode(): Int = key.hashCode
  }

  case class PutValue(key: String, value: String) extends Routed with Reply[Option[String]] {
    override def hashCode(): Int = key.hashCode
  }

}


text:
/* Taken from ultrasphinx */

/*
 mysqlcompat-1.0b3
 public domain
 modified
 UNIX_TIMESTAMP(date)
*/

CREATE FUNCTION unix_timestamp(timestamp without time zone)
RETURNS bigint AS $$
  SELECT EXTRACT(EPOCH FROM $1)::bigint
$$ VOLATILE LANGUAGE SQL;


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title> Flag</title>

    <link href="../vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <link href="../vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <link href="../dist/css/sb-admin-2.css" rel="stylesheet">

    <link href="../vendor/morrisjs/morris.css" rel="stylesheet">

    <link href="../vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <link rel="icon" type="image/png" href="../images/flag-favicon.png" sizes="32x32">

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

                </button>
                 Flag

Dashboard

    Please choose a room.

Question?

Enter a question for the TA

                                        <button class="btn btn-default" type="button" onclick="colStr()">Request</button>

                                    <input type="text" class="form-control" placeholder="I need help with..." id="strSrc">

Ping

Click button below to request TA

                                    <button type="button" class="btn btn-default" onclick="ping4Help()" id="pingBtn">Send help!</button>


text:
const gulp = require('gulp');

require('require-dir')('./tasks');

// build
gulp.task(
  'build',
  gulp.series('clean:dist', 'copy')
);

// watch
gulp.task(
  'watch',
  gulp.series(
    gulp.parallel(
      'copy:watch',
    ),
    gulp.series('upload:watch')
  )
);

// dev
gulp.task('dev', gulp.series('build', 'watch'));

// default
gulp.task('default', gulp.series('dev'));