text:
// ==========================================================================
//                 SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2013, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//     * Redistributions of source code must retain the above copyright
//       notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above copyright
//       notice, this list of conditions and the following disclaimer in the
//       documentation and/or other materials provided with the distribution.
//     * Neither the name of Knut Reinert or the FU Berlin nor the names of
//       its contributors may be used to endorse or promote products derived
//       from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL KNUT REINERT OR THE FU BERLIN BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
// DAMAGE.
//
// ==========================================================================
// Author: Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de>
// ==========================================================================

// TODO(holtgrew): Switch to Host interface.

#ifndef SEQAN_CORE_INCLUDE_SEQAN_ALIGN_GAPS_BASE_H_
#define SEQAN_CORE_INCLUDE_SEQAN_ALIGN_GAPS_BASE_H_

namespace seqan {

// ============================================================================
// Forwards
// ============================================================================

template <typename TSpec>
struct GapsIterator;

/*!
 * @defgroup GapsSpecTag Gaps Specialization Tags
 * @brief Tags for specializing the Gaps class.
 */

/*!
 * @tag GapsSpecTag#ArrayGaps
 * @headerfile <seqan/align.h>
 * @brief Tag for the Array Gaps specialization.
 *
 * @signature struct ArrayGaps_;
 * @signature typedef Tag<ArrayGaps_> ArrayGaps;
 */

struct ArrayGaps_;
typedef Tag<ArrayGaps_> ArrayGaps;

// ============================================================================
// Tags, Classes, Enums
// ============================================================================

// ----------------------------------------------------------------------------
// Class Gaps
// ----------------------------------------------------------------------------

/*!
 * @class Gaps
 * @implements SequenceConcept
 * @headerfile <seqan/align.h>
 * @brief Store the gapped version of a sequence.
 *
 * @signature template <typename TSequence, typename TSpec>
 *            class Gaps;
 *
 * @tparam TSequence The type of the underlying sequence.
 * @tparam TSpec     Tag for specialization.
 *
 * Gaps wrap a @link SequenceConcept Sequence endlink@ and allows to (1) insert gaps into the sequence and (2) select
 * an infix of the gapped sequence (clipping).  The gaps are not inserted into the underlying sequence (source) but
 * stored separately.  Using the clipping is optional and meant for selecting parts of the alignment as a part of the
 * result of a local alignment algorithm.
 *
 * <img src="gaps_illustration.png" title="Illustration of Gaps object and positions with clipping. />
 *
 * In the figure above, the source sequence has seven characters, the gapped sequence has four gaps and thus consists
 * of eleven characters.  The gapped sequence is clipped to start at position 0 in the gapped sequence and to end at
 * position 8 in the gapped sequence (the positions given as half-open intervals <tt>[begin, end)</tt>).
 *
 * The figure shows the three coordinate systems that are used with Gaps objects.  The source position is the position
 * in the underlying sequence.  The unclipped view position is the position in the gapped sequence without gaps.  The
 * view position is the position in the gapped sequence but including the clipping: All (clipped) view positions have
 * the clipping begin position subtracted from them.
 */

/**
.Class.Gaps
..cat:Alignments
..implements:Concept.SequenceConcept
..summary:Efficient storage of gaps for a sequence.
..signature:Gaps<TSequence, TSpec>
..description:
Gaps wrap a @Concept.SequenceConcept@ and allows to (1) insert gaps into the sequence and (2) select an infix of the gapped sequence (clipping).
The gaps are not inserted into the underlying sequence (source) but stored separately.
Using the clipping is optional and meant for selecting parts of the alignment as a part of the result of a local alignment algorithm.
..description.image:gaps_illustration|Illustration of Gaps object and positions with clipping.
..description:
In the figure above, the source sequence has seven characters, the gapped sequence has four gaps and thus consists of eleven characters.
The gapped sequence is clipped to start at position 0 in the gapped sequence and to end at position 8 in the gapped sequence (the positions given as half-open intervals $[begin, end)$).
..description:
The figure shows the three coordinate systems that are used with Gaps objects.
The source position is the position in the underlying sequence.
The unclipped view position is the position in the gapped sequence without gaps.
The view position is the position in the gapped sequence but including the clipping:
All (clipped) view positions have the clipping begin position subtracted from them.
..description:

..param.TSequence:The type of the underlying sequence.
...type:Concept.SequenceConcept
..param.TSpec:Specialization tag.
..include:seqan/align.h
 */

template <typename TSequence, typename TSpec = ArrayGaps>
class Gaps;

// ============================================================================
// Metafunctions
// ============================================================================

// ----------------------------------------------------------------------------
// Metafunction Value
// ----------------------------------------------------------------------------

///.Metafunction.Value.param.T.type:Class.Gaps
///.Metafunction.Value.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct Value<Gaps<TSequence, TSpec> >
{
    typedef typename Value<TSequence>::Type           TAlphabet;
    typedef typename GappedValueType<TAlphabet>::Type Type;
};

template <typename TSequence, typename TSpec>
struct Value<Gaps<TSequence, TSpec> const> : Value<Gaps<TSequence, TSpec> >
{};

// ----------------------------------------------------------------------------
// Metafunction Iterator
// ----------------------------------------------------------------------------

///.Metafunction.Iterator.param.T.type:Class.Gaps
///.Metafunction.Iterator.class:Class.Gaps

template <typename TSequence, typename TSpec, typename TIteratorSpec>
struct Iterator<Gaps<TSequence, TSpec>, TIteratorSpec>
{
	typedef Iter<Gaps<TSequence, TSpec>, GapsIterator<TSpec> > Type;
};

template <typename TSequence, typename TSpec, typename TIteratorSpec>
struct Iterator<Gaps<TSequence, TSpec> const, TIteratorSpec>
{
	typedef Iter<Gaps<TSequence, TSpec> const, GapsIterator<TSpec> > Type;
};

// ----------------------------------------------------------------------------
// Metafunction GetValue
// ----------------------------------------------------------------------------

///.Metafunction.GetValue.param.T.type:Class.Gaps
///.Metafunction.GetValue.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct GetValue<Gaps<TSequence, TSpec> > : Value<Gaps<TSequence, TSpec> >
{};

template <typename TSequence, typename TSpec>
struct GetValue<Gaps<TSequence, TSpec> const> : GetValue<Gaps<TSequence, TSpec> >
{};

// ----------------------------------------------------------------------------
// Metafunction Position
// ----------------------------------------------------------------------------

///.Metafunction.Position.param.T.type:Class.Gaps
///.Metafunction.Position.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct Position<Gaps<TSequence, TSpec> >
{
    typedef typename Position<TSequence>::Type TSeqPos_;
    typedef typename MakeSigned<TSeqPos_>::Type Type;
};

template <typename TSequence, typename TSpec>
struct Position<Gaps<TSequence, TSpec> const> : Position<Gaps<TSequence, TSpec> >
{};

// ----------------------------------------------------------------------------
// Metafunction Reference
// ----------------------------------------------------------------------------

///.Metafunction.Reference.param.T.type:Class.Gaps
///.Metafunction.Reference.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct Reference<Gaps<TSequence, TSpec> >
{
	typedef typename Iterator<Gaps<TSequence, TSpec>, Standard>::Type TIterator_;
	typedef Proxy<IteratorProxy<TIterator_> > Type;
};

template <typename TSequence, typename TSpec>
struct Reference<Gaps<TSequence, TSpec> const>
{
	typedef typename Iterator<Gaps<TSequence, TSpec> const, Standard>::Type TIterator_;
	typedef Proxy<IteratorProxy<TIterator_> > Type;
};

// ----------------------------------------------------------------------------
// Metafunction Size
// ----------------------------------------------------------------------------

///.Metafunction.Size.param.T.type:Class.Gaps
///.Metafunction.Size.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct Size<Gaps<TSequence, TSpec> >
{
    typedef typename Size<TSequence>::Type Type;
};

template <typename TSequence, typename TSpec>
struct Size<Gaps<TSequence, TSpec> const> : Size<Gaps<TSequence, TSpec> >
{};

// ----------------------------------------------------------------------------
// Metafunction Source
// ----------------------------------------------------------------------------

// TODO(holtgrew): Switch to Hosted Type interface

/**
.Metafunction.Source
..cat:Alignments
..summary:Return underlying sequence of Gaps/Alignments.
..signature:Source<T>::Type
..param.T:The type to query for underlying sequence.
..include:seqan/align.h
*/

///.Metafunction.Source.param.T.type:Class.Gaps
///.Metafunction.Source.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct Source<Gaps<TSequence, TSpec> >
{
    typedef TSequence Type;
};

template <typename TSequence, typename TSpec>
struct Source<Gaps<TSequence, TSpec> const> : Source<Gaps<TSequence, TSpec> >
{};

// TODO(holtgrew): Also prefix/suffix/infix? Should work!

// ----------------------------------------------------------------------------
// Metafunction IsSequence
// ----------------------------------------------------------------------------

///.Metafunction.IsSequence.param.T.type:Class.Gaps
///.Metafunction.IsSequence.class:Class.Gaps

template <typename TSequence, typename TSpec>
struct IsSequence<Gaps<TSequence, TSpec> >
{
    typedef True Type;
    static const bool VALUE = true;
};

template <typename TSequence, typename TSpec>
struct IsSequence<Gaps<TSequence, TSpec> const> : IsSequence<Gaps<TSequence, TSpec> >
{};

// ============================================================================
// Functions
// ============================================================================

// ----------------------------------------------------------------------------
// Function iter()
// ----------------------------------------------------------------------------

// From SequenceConcept, only overwriting documentation here.

/*!
 * @fn Gaps#iter
 * @brief Return an iterator to a specific position in the current clipping.
 *
 * @signature TIterator iter(gaps, viewPos[, tag);
 *
 * @param gaps    The Gaps object to get an iterator into.
 * @param viewPos View position to get an iterator to.
 * @param tag     An optional tag for selecting the iterator type.
 *
 * @return TIterator The resulting iterator.  The type is <tt>Iterator<TGaps, TTag>::Type</tt> where <tt>TTag</tt> is
 *                   the type of <tt>tag</tt>.
 */

// TODO(holtgrew): Adding links to implemented sequence. This should be cleaned up once we have better documentation with concepts.
///.Function.begin.class:Class.Gaps
///.Function.end.class:Class.Gaps
///.Function.iter.class:Class.Gaps

// ----------------------------------------------------------------------------
// Function setSource()
// ----------------------------------------------------------------------------

// ----------------------------------------------------------------------------
// Function createSource()
// ----------------------------------------------------------------------------

// ----------------------------------------------------------------------------
// Function clearClipping()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#clearClipping
 * @brief Clear clipping from Gaps objects.
 *
 * @signature void clearClipping(gaps);
 *
 * @param gaps Object to clear clipping from.
 */

/**
.Function.Gaps#clearClipping
..class:Class.Gaps
..summary:Clear clipping from @Class.Gaps@ object.
..cat:Alignments
..signature:void clearClipping(gaps)
..param.gaps:The @Class.Gaps@ object to clear.
...type:Class.Gaps
..returns:$void$
..see:Function.Gaps#clearGaps
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function clearGaps()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#clearGaps
 * @brief Clear gaps from Gaps objects.
 *
 * @signature void clearGaps(gaps);
 *
 * @param gaps Object to clear gaps from.
 */

/**
.Function.Gaps#clearGaps
..class:Class.Gaps
..summary:Clear gaps and clipping from @Class.Gaps@ object.
..cat:Alignments
..signature:void clearGaps(gaps)
..param.gaps:The @Class.Gaps@ object to clear.
...type:Class.Gaps
..returns:$void$
..see:Function.Gaps#clearClipping
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function length()
// ----------------------------------------------------------------------------

// From SequenceConcept, only overwriting documentation here.

/*!
 * @fn Gaps#length
 * @brief Return number of gap and characters between the beginning and the end of the clipping.
 *
 * @signature TSize length(gaps);
 *
 * @param gaps The @link Gaps @endlink object to query for its length.
 *
 * @return TSize The number of gaps and characters between the beginning and the end of the clipping.
 */

/**
.Function.Gaps#length
..class:Class.Gaps
..summary:Return length of the gapped sequence.
..cat:Alignments
..signature:TSize length(gaps)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..returns:Length of the gapped sequence.
...type:Metafunction.Size
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function unclippedLength()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#unclippedLength
 * @brief Return length of the gapped sequence without clipping.
 *
 * @signature TSize unclippedLength(gaps);
 *
 * @param gaps The Gaps object to query.
 *
 * @return TSize The result.
 */

/**
.Function.Gaps#unclippedLength
..class:Class.Gaps
..summary:Return length of the gapped sequence without clipping.
..cat:Alignments
..signature:TSize unclippedLength(gaps)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..returns:Length of the gapped sequence, ignoring any clipping.
...type:Metafunction.Size
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function toViewPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#toViewPosition
 * @brief Conversion from source (without gaps or clipping) to view position (including gaps and clipping).
 *
 * @signature TPos toViewPosition(gaps, sourcePos);
 *
 * @param gaps      The gaps object to use for translation.
 * @param sourcePos The source position (in the underlying sequence) to translate.
 *
 * @return TPos The resulting position in the view.
 */

/**
.Function.toViewPosition
..class:Class.Gaps
..summary:Transforms source to view position.
..cat:Alignments
..signature:toViewPosition(gaps, pos)
..param.gap:A Gaps object, e.g. a row in the alignment.
...type:Class.Gaps
..param.pos:Position in the original sequence to get the view position for.
..returns:The position in the view/gaps position.
..remarks:If $gap$ is a clipped alignment row, gaps in the clipped part will influence the result. The position $pos$ is counted from the unclipped begin position and must be greater or equal the clipped begin position of $gap$.
..see:Function.toSourcePosition
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function toSourcePosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#toSourcePosition
 * @brief Conversion from view position (including gaps and clipping) to source (without gaps or clipping).
 *
 * @signature TPos toSourcePosition(gaps, viewPos);
 *
 * @param gaps      The gaps object to use for translation.
 * @param sourcePos The view position (including gaps and clipping) to translate.
 *
 * @return TPos The resulting position in the underlying sequence.
 */

/**
.Function.toSourcePosition
..class:Class.Gaps
..summary:Transforms view to source position, if the view position is a gap, the original position of the next non-gap entry is returned.
..cat:Alignments
..signature:toSourcePosition(gaps, pos)
..param.gap:A Gaps object, e.g. a row in the alignment.
...type:Class.Gaps
..param.pos:Position in the view sequence (this includes gaps) to get the original position for.
..returns:The position in the source sequence.
..remarks:If $gap$ is a clipped alignment row, gaps in the clipped part will influence the result. The position $pos$ is counted from the unclipped begin position.
..see:Function.toViewPosition
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function isGap()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#isGap
 * @brief Query positions in a Gaps object for being a gap.
 *
 * @signature bool isGap(gaps, viewPos);
 *
 * @param gaps    The Gaps object to query.
 * @param viewPos The view position (including clipping and gaps).
 *
 * @return bool The query result.
 */

/**
.Function.Gaps#isGap
..class:Class.Gaps
..summary:Query whether a given clipped view position is a gap.
..cat:Alignments
..signature:bool isGap(gaps, clippedViewPos)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..param.clippedViewPos:The position in the view to query.
...type:Metafunction.Position
..returns:Whether or not there is a gap at the given clipped view position.
...type:nolink:$bool$
..see:Function.insertGap
..see:Function.removeGap
..see:Function.removeGaps
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function insertGaps()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#insertGaps
 * @brief Insert gap characters.
 *
 * @signature void insertGaps(gaps, viewPos, count);
 *
 * @param gaps    The Gaps object to insert gaps into.
 * @param viewPos The view position (including clipping and gaps) to insert gaps at.
 * @param count   The number of gaps to insert.
 */

/**
.Function.insertGaps
..class:Class.Gaps
..summary:Insert multiple gaps into a gapped sequence.
..cat:Alignments
..signature:void insertGaps(gaps, clippedViewPos, count)
..param.gaps:The @Class.Gaps@ object to insert gaps into.
...type:Class.Gaps
..param.clippedViewPos:The position in the view to insert gaps at.
...type:Metafunction.Position
..param.count:The number of gaps to insert
...type:nolink:$unsigned$
..returns:$void$
..see:Function.insertGap
..see:Function.removeGap
..see:Function.removeGaps
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function insertGap()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#insertGap
 * @brief Insert one gap character.
 *
 * @signature void insertGap(gaps, viewPos);
 *
 * @param gaps    The Gaps object to insert gap into.
 * @param viewPos The view position (including clipping and gaps) to insert the gap at.
 */

/**
.Function.insertGap
..class:Class.Gaps
..summary:Insert one gap into a gapped sequence.
..cat:Alignments
..signature:void insertGap(gaps, clippedViewPos)
..param.gaps:The @Class.Gaps@ object to insert gap into.
...type:Class.Gaps
..param.clippedViewPos:The position in the view to insert gap at.
...type:Metafunction.Position
..returns:$void$
..see:Function.insertGaps
..see:Function.removeGap
..see:Function.removeGaps
..include:seqan/align.h
*/

// Forward to removeGaps() which has to be implemented in each subclass.

template <typename TSequence, typename TSpec, typename TPosition>
inline void
insertGap(Gaps<TSequence, TSpec> & gaps, TPosition clippedViewPos)
{
    insertGaps(gaps, clippedViewPos, 1u);
}

// ----------------------------------------------------------------------------
// Function removeGaps()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#removeGaps
 * @brief Remove gaps from a Gaps object.
 *
 * @signature TSize removeGaps(gaps, viewPos, count);
 *
 * @param gaps    The gaps object to remove gap characters from.
 * @param viewPos The view positions to remove gap characters from.
 * @param count   The number of gap characters to remove.
 *
 * @return TSize The number of gap characters removed.
 */

/**
.Function.removeGaps
..class:Class.Gaps
..summary:Remove multiple gaps from a gapped sequence.
..cat:Alignments
..signature:TSize removeGaps(gaps, clippedViewPos, count)
..param.gaps:The @Class.Gaps@ object to remove gaps into.
...type:Class.Gaps
..param.clippedViewPos:The position in the view to remove gaps from.
...type:Metafunction.Position
..param.count:The number of gaps to remove
...type:nolink:$unsigned$
..returns:The number of removed gaps.
...type:Metafunction.Size
..see:Function.insertGap
..see:Function.insertGaps
..see:Function.removeGap
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function removeGap()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#removeGap
 * @brief Remove one gap from a Gaps object.
 *
 * @signature TSize removeGap(gaps, viewPos);
 *
 * @param gaps    The gaps object to remove one gap character from.
 * @param viewPos The view positions to remove one gap character from.
 *
 * @return TSize The number of gap characters removed.
 */

/**
.Function.removeGap
..class:Class.Gaps
..summary:Remove one gap from a gapped sequence.
..cat:Alignments
..signature:TSize removeGap(gaps, clippedViewPos)
..param.gaps:The @Class.Gaps@ object to remove gap into.
...type:Class.Gaps
..param.clippedViewPos:The position in the view to remove gap from.
...type:Metafunction.Position
..returns:The number of removed gaps.
...type:Metafunction.Size
..see:Function.insertGap
..see:Function.insertGaps
..see:Function.removeGaps
..include:seqan/align.h
*/

// Forward to removeGaps() which has to be implemented in each subclass.

template <typename TSequence, typename TSpec, typename TPosition>
inline typename Size<Gaps<TSequence, TSpec> >::Type
removeGap(Gaps<TSequence, TSpec> & gaps, TPosition clippedViewPos)
{
    return removeGaps(gaps, clippedViewPos, 1u);
}

// ----------------------------------------------------------------------------
// Function countGaps()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#countGaps
 * @brief The number of gaps following a position.
 *
 * @signature TSize countGaps(gaps, viewPos);
 *
 * @param gaps    The Gaps object to query.
 * @param viewPos View position (including clipping and gaps) to query at.
 *
 * @return TSize The number of gap characters at <tt>viewPos</tt>.
 */

/**
.Function.Gaps#countGaps
..class:Class.Gaps
..summary:Reports number of continues gaps right of current iterator position.
..cat:Alignments
..signature:TSize countGaps(iter)
..param.iter:Iterator of the  @Class.Gaps@ object to count gaps for.
...type:Metafunction.Iterator
..returns:The number of gaps right of the current iterator position, including the current position, or $0$ if there is no gap.
...type:Metafunction.Size
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function setClippedBeginPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#setClippedBeginPosition
 * @brief Set the begin position of the clipping.
 *
 * @signature void setClippedBeginPosition(gaps, unclippedViewPos);
 *
 * @param gaps             The Gaps object to set the clipping begin position of.
 * @param unclippedViewPos View position (including gaps but excluding clipping) to set the clipping begin to.
 */

/**
.Function.Gaps#setClippedBeginPosition
..class:Class.Gaps
..summary:Sets the begin position of the clipping.
..signature:void setClippedBeginPosition(gaps, unclippedViewPosition)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..param.unclippedViewPosition:The position in the unclipped view to set as the clipping begin position.
...type:Metafunction.Position
..returns:$void$
..remarks:Note that the position is *not* a clipped view position but an uncliped one!
..see:Function.Gaps#beginPosition
..see:Function.Gaps#endPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedEndPosition
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function setClippedEndPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#setClippedEndPosition
 * @brief Set the end position of the clipping.
 *
 * @signature void setClippedEndPosition(gaps, unclippedViewPos);
 *
 * @param gaps             The Gaps object to set the clipping end position of.
 * @param unclippedViewPos View position (including gaps but excluding clipping) to set the clipping end to.
 */

/**
.Function.Gaps#setClippedEndPosition
..class:Class.Gaps
..summary:Sets the end position of the clipping.
..signature:void setClippedEndPosition(gaps, unclippedViewPosition)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..param.unclippedViewPosition:The position in the unclipped view to set as the clipping end position.
...type:Metafunction.Position
..returns:$void$
..remarks:Note that the position is *not* a clipped view position but an uncliped one!
..see:Function.Gaps#beginPosition
..see:Function.Gaps#endPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedBeginPosition
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function clippedBeginPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#clippedBeginPosition
 * @brief Return begin position of the clipping.
 *
 * @signature TPos clippedBeginPosition(gaps);
 *
 * @param gaps             The Gaps object to query.
 *
 * @return TPos The begin position of the unclipped view.
 *
 * @section Example
 *
 * In the following gaps configuration, the result of <tt>clippedBeginPosition(gaps)</tt> is 1.
 *
 * @code
 * clipping                   [     )
 *   (half-open interval)
 *
 * gapped sequence:          X--XXX-XX-
 *
 * source position:          0111234456
 * unclipped view position:  0123456789
 * clipped view position:     0123456
 * @endcode
 */

/**
.Function.Gaps#clippedBeginPosition
..class:Class.Gaps
..summary:Return the begin position of the clipping in the unclipped gapped sequence.
..signature:TPosition clippedBeginPosition(gaps)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..returns:The begin position of the current clipped view in the unclipped gapped sequence.
...type:Metafunction.Position
..see:Function.Gaps#beginPosition
..see:Function.Gaps#endPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedBeginPosition
..see:Function.Gaps#setClippedEndPosition
..example:
In the following gaps configuration, the result of $clippedBeginPosition(gaps)$ is $1$.
..example.code:
clipping                   [     )
  (half-open interval)

gapped sequence:          X--XXX-XX-

source position:          0111234456
unclipped view position:  0123456789
clipped view position:     0123456
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function clippedEndPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#clippedEndPosition
 * @brief Return end position of the clipping.
 *
 * @signature TPos clippedEndPosition(gaps);
 *
 * @param gaps             The Gaps object to query.
 *
 * @return TPos The end position of the unclipped view.
 *
 * @section Example
 *
 * In the following gaps configuration, the result of <tt>clippedEndPosition(gaps)</tt> is 7.
 *
 * @code
 * clipping                   [     )
 *   (half-open interval)
 *
 * gapped sequence:          X--XXX-XX-
 *
 * source position:          0111234456
 * unclipped view position:  0123456789
 * clipped view position:     0123456
 * @endcode
 */

/**
.Function.Gaps#clippedEndPosition
..class:Class.Gaps
..summary:Return the end position of the clipping in the unclipped gapped sequence.
..signature:TPosition clippedEndPosition(gaps)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..returns:The end position of the current clipped view in the unclipped gapped sequence.
...type:Metafunction.Position
..see:Function.Gaps#beginPosition
..see:Function.Gaps#endPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#setClippedBeginPosition
..see:Function.Gaps#setClippedEndPosition
..example:
In the following gaps configuration, the result of $clippedEndPosition(gaps)$ is $7$.
..example.code:
clipping                   [     )
  (half-open interval)

gapped sequence:          X--XXX-XX-

source position:          0111234456
unclipped view position:  0123456789
clipped view position:     0123456
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function setBeginPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#setBeginPosition
 * @brief Set the begin position of the clipped gapped sequence, given a source position.
 *
 * @signature void setBeginPosition(gaps, sourcePos);
 *
 * @param gaps      The Gaps object to set the begin position in.
 * @param sourcePos Position in the underlying sequence to set clipping to.
 */

/**
.Function.Gaps#setBeginPosition
..class:Class.Gaps
..summary:Set the begin position of the clipped gapped sequence, given a source position.
..signature:void setBeginPosition(gaps, sourcePosition)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..param.sourcePosition:The source position to set the clipping begin to.
...type:Metafunction.Position
..returns:$void$
..see:Function.Gaps#beginPosition
..see:Function.Gaps#endPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedBeginPosition
..see:Function.Gaps#setClippedEndPosition
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function setEndPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#setEndPosition
 * @brief Set the end position of the clipped gapped sequence, given a source position.
 *
 * @signature void setEndPosition(gaps, sourcePos);
 *
 * @param gaps      The Gaps object to set the end position in.
 * @param sourcePos Position in the underlying sequence to set clipping to.
 */

/**
.Function.Gaps#setEndPosition
..class:Class.Gaps
..summary:Set the end position of the clipped gapped sequence, given a source position.
..signature:void setEndPosition(gaps, sourcePosition)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..param.sourcePosition:The source position to set the clipping end to.
...type:Metafunction.Position
..returns:$void$
..see:Function.Gaps#beginPosition
..see:Function.Gaps#endPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedBeginPosition
..see:Function.Gaps#setClippedEndPosition
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function beginPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#beginPosition
 * @brief Return the clipping begin position as a source position.
 *
 * @signature TPosition beginPosition(gaps);
 *
 * @param gaps The Gaps object to query.
 *
 * @return TPosition The clipping begin position in the source.
 *
 * @section Example
 *
 * In the following gaps configuration, the result of <tt>beginPosition(gaps)</tt> is $1$.  The clipping starts in a
 * gap and the source position of the first non-gap character right of the clipping begin has source position 1.
 *
 * @code
 * clipping                   [     )
 *   (half-open interval)
 *
 * gapped sequence:          X--XXX-XX-
 *
 * source position:          0111234456
 * unclipped view position:  0123456789
 * clipped view position:     0123456
 * @endcode
 */

/**
.Function.Gaps#beginPosition
..class:Class.Gaps
..summary:Return the clipping begin position as a source position.
..signature:TPosition beginPosition(gaps)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..returns:The begin position of the current clipped view in the source.
...type:Metafunction.Position
..see:Function.Gaps#endPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedBeginPosition
..see:Function.Gaps#setClippedEndPosition
..example:
In the following gaps configuration, the result of $beginPosition(gaps)$ is $1$.
The clipping starts in a gap and the source position of the first non-gap character right of the clipping begin has source position $1$.
..example.code:
clipping                   [     )
  (half-open interval)

gapped sequence:          X--XXX-XX-

source position:          0111234456
unclipped view position:  0123456789
clipped view position:     0123456
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function endPosition()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#endPosition
 * @brief Return the clipping end position as a source position.
 *
 * @signature TPosition endPosition(gaps);
 *
 * @param gaps The Gaps object to query for the end position as a source position.
 *
 * @return TPosition The end position as a source position.
 *
 * @section Example
 *
 * In the following gaps configuration, the result of <tt>endPositioN(gaps)</tt> is 4.
 *
 * @code
 * clipping                   [     )
 *   (half-open interval)
 *
 * gapped sequence:          X--XXX-XX-
 *
 * source position:          0111234456
 * unclipped view position:  0123456789
 * clipped view position:     0123456
 * @endcode
 */

/**
.Function.Gaps#endPosition
..class:Class.Gaps
..summary:Return the clipping end position as a source position.
..signature:TPosition endPosition(gaps)
..param.gaps:The @Class.Gaps@ object to query.
...type:Class.Gaps
..returns:The end position of the current clipped view in the source.
...type:Metafunction.Position
..see:Function.Gaps#beginPosition
..see:Function.Gaps#setBeginPosition
..see:Function.Gaps#setEndPosition
..see:Function.Gaps#clippedBeginPosition
..see:Function.Gaps#clippedEndPosition
..see:Function.Gaps#setClippedBeginPosition
..see:Function.Gaps#setClippedEndPosition
..example:
In the following gaps configuration, the result of $endPosition(gaps)$ is $4$.
..example.code:
clipping                   [     )
  (half-open interval)

gapped sequence:          X--XXX-XX-

source position:          0111234456
unclipped view position:  0123456789
clipped view position:     0123456
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function write()
// ----------------------------------------------------------------------------

template <typename TFile, typename TSource, typename TIDString, typename TSpec>
inline void
write(TFile & target,
	  Gaps<TSource, TSpec> const & source,
	  TIDString const &,
	  Raw)
{
//IOREV _nodoc_ specialization not documented

	// Print gaps row
	typedef typename Iterator<Gaps<TSource, TSpec> const>::Type TIter;
	TIter begin_ = begin(source);
	TIter end_ = end(source);
	for (; begin_ != end_; ++begin_) {
		if (isGap(begin_))
			streamPut(target, gapValue<char>());
		else
			streamPut(target, convert<char>(*begin_));
	}
}

// ----------------------------------------------------------------------------
// Function operator<<()                                      [stream operator]
// ----------------------------------------------------------------------------

// TODO(holtgrew): Document appropriately.

template <typename TStream, typename TSource, typename TSpec>
inline TStream &
operator<<(TStream & stream, Gaps<TSource, TSpec> const & gaps)
{
    typedef Gaps<TSource, TSpec> const             TGaps;
    typedef typename Iterator<TGaps, Rooted>::Type TIter;

    for (TIter it = begin(gaps, Rooted()); !atEnd(it); goNext(it))
    {
        // TODO(holtgrew): Ideally, we could simply print the expanded alphabet char but that is broken.
        if (isGap(it))
            stream << gapValue<char>();
        else
            stream << convert<char>(*it);
    }

    return stream;
}

// ----------------------------------------------------------------------------
// Function _pumpTraceToGaps()
// ----------------------------------------------------------------------------

// Internal function for converting AlignTrace<> objects into alignments in two Gaps objects.  Note that the traceback
// in the trace is stored in reverse, from back to front.  We insert the gaps in descending order of their position.
// The reason is that Gaps<> objects store the gaps in ascending order of coordinates in String<> objects and inserting
// at the end is in O(1) while inserting in the front is O(n).

template <typename TSequenceH, typename TGapsSpecH, typename TSequenceV, typename TGapsSpecV, typename TSize>
void _pumpTraceToGaps(Gaps<TSequenceH, TGapsSpecH> & gapsH,
                      Gaps<TSequenceV, TGapsSpecV> & gapsV,
                      AlignTraceback<TSize> const & trace)
{
    typedef Gaps<TSequenceH, TGapsSpecH> TGapsH;
    typedef typename Iterator<TGapsH, Standard>::Type TGapsHIter;

    typedef Gaps<TSequenceV, TGapsSpecV> TGapsV;
    typedef typename Iterator<TGapsV, Standard>::Type TGapsVIter;

    // TODO(holtgrew): I don't understand the following.  Originally, this function used Align objects, but I did not understand it there either.
	// TODO(rausch): Pump trace into align_ (note: this is relatively slow code here. it could be improved if specialized to the Align Specs).
    clearGaps(gapsH);
    clearClipping(gapsH);
    clearGaps(gapsV);
    clearClipping(gapsV);

	TSize i = length(trace.sizes);  // Scan trace backwards.
	TGapsHIter itH = begin(gapsH);
	TGapsVIter itV = begin(gapsV);
	while (i > 0)
	{
		--i;
		TSize size = trace.sizes[i];
		switch ((int) trace.tvs[i])
		{
		case 1:  // Go horizontal.
			insertGaps(itV, size);
			break;

		case 2:  // Go vertical.
			insertGaps(itH, size);
			break;
		}
		goFurther(itH, size);
		goFurther(itV, size);
	}
}

// ----------------------------------------------------------------------------
// Function source()
// ----------------------------------------------------------------------------

// TODO(holtgrew): source concept in dox?

/**
.Function.source
..summary:Return underlying object.
..cat:Basic
..signature:source(obj)
..param.obj:The object to get underlying sequence of.
...type:Class.Gaps
..returns:The underlying object.
...type:Metafunction.Source
..include:seqan/align.h
*/

/*!
 * @fn Gaps#source
 * @brief Return underlying object.
 *
 * @signature TSource source(gaps);
 *
 * @param gaps The Gaps object to return the underling sequence for.
 *
 * @return TSource Reference to the source of the Gaps.
 */

/*
.Function.Gaps#source
..summary:Return underlying sequence.
..cat:Alignments
..signature:TSource source(gaps)
..param.obj:The object to get underlying sequence of.
...type:Class.Gaps
..returns:Reference to the underlying sequence.
...type:Metafunction.Source
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function sourceSegment()
// ----------------------------------------------------------------------------

// TODO(holtgrew): Rename/remove?

// We need some forwards for function sourceSegment().

template <typename TSequence, typename TSpec>
inline typename Position<Gaps<TSequence, TSpec> >::Type clippedBeginPosition(Gaps<TSequence, TSpec> const & gaps);
template <typename TSequence, typename TSpec>
inline typename Position<Gaps<TSequence, TSpec> >::Type clippedEndPosition(Gaps<TSequence, TSpec> const & gaps);
template <typename TSequence, typename TSpec, typename TPosition>
inline typename Position<TSequence>::Type
toSourcePosition(Gaps<TSequence, TSpec> const & gaps, TPosition clippedViewPos);

template <typename TSequence, typename TSpec>
inline typename Infix<TSequence>::Type
sourceSegment(Gaps<TSequence, TSpec> const & gaps)
{
    return infix(source(gaps), toSourcePosition(gaps, clippedBeginPosition(gaps)), toSourcePosition(gaps, clippedEndPosition(gaps)));
}

template <typename TSequence, typename TSpec>
inline typename Infix<TSequence>::Type
sourceSegment(Gaps<TSequence, TSpec> & gaps)
{
    return infix(source(gaps), toSourcePosition(gaps, clippedBeginPosition(gaps)), toSourcePosition(gaps, clippedEndPosition(gaps)));
}

// ----------------------------------------------------------------------------
// Function assignSource()
// ----------------------------------------------------------------------------

/*!
 * @fn Gaps#assignSource
 * @brief Assign the source of a gaps object, copying data.
 *
 * @signature void assignSource(gaps, seq);
 *
 * @param gaps The Gaps object to assign the source of.
 * @param seq  The @link SequenceConcept sequence @endlink to assign to the underlying string.:w
 */

/**
.Function.Gaps#assignSource
..class:Class.Gaps
..summary:Assign the source of a Gaps object, copying data.
..cat:Alignments
..signature:void assignSource(gaps, sequence)
..param.gaps:The @Class.Gaps@ object to assign the source of.
...type:Class.Gaps
..param.sequence:The @Concept.SequenceConcept@ to assign as the source.
...type:Metafunction.Source
..remarks:This will copy $sequence$ into the source of $gaps$.
..returns:$void$
..see:Function.Gaps#setSource
..see:Function.source
..include:seqan/align.h
*/

// TOOD(holtgrew): Switch to Hosted Type?

template <typename TSequence, typename TSpec, typename TValue>
inline void
assignSource(Gaps<TSequence, TSpec> & gaps, TValue const & value)
{
    assign(source(gaps), value);
}

// ----------------------------------------------------------------------------
// Function setSource()
// ----------------------------------------------------------------------------

/**
.Function.Gaps#setSource
..class:Class.Gaps
..summary:Set the source of a Gaps object, do not copy if possible.
..cat:Alignments
..signature:void setSource(gaps, sequence)
..param.gaps:The @Class.Gaps@ object to set the source of.
...type:Class.Gaps
..param.sequence:The @Concept.SequenceConcept@ to set as the source.
...type:Metafunction.Source
..remarks:This will avoid copying if possible.
..returns:$void$
..see:Function.Gaps#assignSource
..see:Function.source
..include:seqan/align.h
*/

// ----------------------------------------------------------------------------
// Function clear()
// ----------------------------------------------------------------------------

///.Function.clear.class:Class.Gaps

template <typename TSequence, typename TSpec>
inline void clearGaps(Gaps<TSequence, TSpec> & gaps);
template <typename TSequence, typename TSpec>
inline void clearClipping(Gaps<TSequence, TSpec> & gaps);

template <typename TSequence, typename TSpec>
inline void clear(Gaps<TSequence, TSpec> & gaps)
{
    clearGaps(gaps);
    clearClipping(gaps);
}

// ----------------------------------------------------------------------------
// Function operator==()
// ----------------------------------------------------------------------------

template <typename TSequence, typename TSpec>
inline bool operator==(Gaps<TSequence, TSpec> const & lhs,
                       Gaps<TSequence, TSpec> const & rhs)
{
    typename Comparator<Gaps<TSequence, TSpec> >::Type lex(lhs, rhs);
    return isEqual(lex);
}

template <typename TSequence, typename TSpec, typename TRightHandSide>
inline bool operator==(Gaps<TSequence, TSpec> const & lhs,
                       TRightHandSide const & rhs)
{
    typename Comparator<Gaps<TSequence, TSpec> >::Type lex(lhs, rhs);
    return isEqual(lex);
}

// ----------------------------------------------------------------------------
// Function operator!=()
// ----------------------------------------------------------------------------

template <typename TSequence, typename TSpec>
inline bool operator!=(Gaps<TSequence, TSpec> const & lhs,
                       Gaps<TSequence, TSpec> const & rhs)
{
    return !(lhs == rhs);
}

}  // namespace seqan

#endif  // #ifndef SEQAN_CORE_INCLUDE_SEQAN_ALIGN_GAPS_BASE_H_


text:
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;

namespace AutoValidator.Internal.Builders
{
    internal class PropertyMetadataBuilder
    {
        private PropertyMetadata _metadata;

        public PropertyMetadataBuilder()
        {
            _metadata = new PropertyMetadata();
        }

        public PropertyMetadataBuilder WithValidationAttributes(PropertyInfo propertyInfo)
        {
            IEnumerable<ValidationAttribute> customAttributes = propertyInfo.GetCustomAttributes<ValidationAttribute>(true);
            _metadata.ValidationAttributes = customAttributes.ToArray();
            return this;
        }

        public PropertyMetadataBuilder WithPropertyName(PropertyInfo propertyInfo)
        {
            _metadata.Name = propertyInfo.Name;
            return this;
        }

        public PropertyMetadataBuilder WithParentType(Type parentType)
        {
            _metadata.ParentType = parentType;
            return this;
        }

        public PropertyMetadataBuilder WithGetterMethod(PropertyInfo propertyInfo)
        {
            _metadata.GetterMethod = propertyInfo.GetGetMethod();
            return this;
        }

        public PropertyMetadataBuilder WithType(PropertyInfo propertyInfo)
        {
            _metadata.Type = propertyInfo.PropertyType;
            return this;
        }

        public PropertyMetadata Build()
        {
            return _metadata;
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
namespace CarsFactory.MySQL.Models
{
    using Telerik.OpenAccess;

    public interface ICarsFactoryMySQLUnitOfWork : IUnitOfWork
    {
    }
}


text:
**Installed versions :** [MailChimp.Api.Net **x.x.x**]

Description
---

Replace this text with a short description, Explain what it's doing and why you think it's wrong.

Expected behavior
---
Explain what it should be doing after it's fixed.


text:
.class public abstract Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;
.super Landroid/os/Binder;
.source "IAccessibilityInteractionConnection.java"

# interfaces
.implements Landroid/view/accessibility/IAccessibilityInteractionConnection;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/view/accessibility/IAccessibilityInteractionConnection;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x409
    name = "Stub"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub$Proxy;
    }
.end annotation

# static fields
.field private static final DESCRIPTOR:Ljava/lang/String; = "android.view.accessibility.IAccessibilityInteractionConnection"

.field static final TRANSACTION_findAccessibilityNodeInfoByAccessibilityId:I = 0x1

.field static final TRANSACTION_findAccessibilityNodeInfoByViewId:I = 0x2

.field static final TRANSACTION_findAccessibilityNodeInfosByText:I = 0x3

.field static final TRANSACTION_findFocus:I = 0x4

.field static final TRANSACTION_focusSearch:I = 0x5

.field static final TRANSACTION_performAccessibilityAction:I = 0x6

# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 20
    invoke-direct {p0}, Landroid/os/Binder;-><init>()V

    .line 21
    const-string v0, "android.view.accessibility.IAccessibilityInteractionConnection"

    invoke-virtual {p0, p0, v0}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->attachInterface(Landroid/os/IInterface;Ljava/lang/String;)V

    .line 22
    return-void
.end method

.method public static asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnection;
    .locals 2
    .parameter "obj"

    .prologue
    .line 29
    if-nez p0, :cond_0

    .line 30
    const/4 v0, 0x0

    .line 36
    :goto_0
    return-object v0

    .line 32
    :cond_0
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    invoke-interface {p0, v1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object v0

    .line 33
    .local v0, iin:Landroid/os/IInterface;
    if-eqz v0, :cond_1

    instance-of v1, v0, Landroid/view/accessibility/IAccessibilityInteractionConnection;

    if-eqz v1, :cond_1

    .line 34
    check-cast v0, Landroid/view/accessibility/IAccessibilityInteractionConnection;

    goto :goto_0

    .line 36
    :cond_1
    new-instance v0, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub$Proxy;

    .end local v0           #iin:Landroid/os/IInterface;
    invoke-direct {v0, p0}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub$Proxy;-><init>(Landroid/os/IBinder;)V

    goto :goto_0
.end method

# virtual methods
.method public asBinder()Landroid/os/IBinder;
    .locals 0

    .prologue
    .line 40
    return-object p0
.end method

.method public onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z
    .locals 24
    .parameter "code"
    .parameter "data"
    .parameter "reply"
    .parameter "flags"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Landroid/os/RemoteException;
        }
    .end annotation

    .prologue
    .line 44
    sparse-switch p1, :sswitch_data_0

    .line 197
    invoke-super/range {p0 .. p4}, Landroid/os/Binder;->onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z

    move-result v1

    :goto_0
    return v1

    .line 48
    :sswitch_0
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p3

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 49
    const/4 v1, 0x1

    goto :goto_0

    .line 53
    :sswitch_1
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 55
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    .line 57
    .local v2, _arg0:J
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v4

    .line 59
    .local v4, _arg1:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 61
    .local v5, _arg2:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v6

    .line 63
    .local v6, _arg3:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;

    move-result-object v7

    .line 65
    .local v7, _arg4:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v8

    .line 67
    .local v8, _arg5:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v9

    .line 69
    .local v9, _arg6:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v10

    .local v10, _arg7:J
    move-object/from16 v1, p0

    .line 70
    invoke-virtual/range {v1 .. v11}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->findAccessibilityNodeInfoByAccessibilityId(JIIILandroid/view/accessibility/IAccessibilityInteractionConnectionCallback;IIJ)V

    .line 71
    const/4 v1, 0x1

    goto :goto_0

    .line 75
    .end local v2           #_arg0:J
    .end local v4           #_arg1:I
    .end local v5           #_arg2:I
    .end local v6           #_arg3:I
    .end local v7           #_arg4:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    .end local v8           #_arg5:I
    .end local v9           #_arg6:I
    .end local v10           #_arg7:J
    :sswitch_2
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 77
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    .line 79
    .restart local v2       #_arg0:J
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v4

    .line 81
    .restart local v4       #_arg1:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 83
    .restart local v5       #_arg2:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v6

    .line 85
    .restart local v6       #_arg3:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v7

    .line 87
    .local v7, _arg4:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;

    move-result-object v8

    .line 89
    .local v8, _arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v9

    .line 91
    .restart local v9       #_arg6:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v10

    .line 93
    .local v10, _arg7:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v22

    .local v22, _arg8:J
    move-object/from16 v12, p0

    move-wide v13, v2

    move v15, v4

    move/from16 v16, v5

    move/from16 v17, v6

    move/from16 v18, v7

    move-object/from16 v19, v8

    move/from16 v20, v9

    move/from16 v21, v10

    .line 94
    invoke-virtual/range {v12 .. v23}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->findAccessibilityNodeInfoByViewId(JIIIILandroid/view/accessibility/IAccessibilityInteractionConnectionCallback;IIJ)V

    .line 95
    const/4 v1, 0x1

    goto :goto_0

    .line 99
    .end local v2           #_arg0:J
    .end local v4           #_arg1:I
    .end local v5           #_arg2:I
    .end local v6           #_arg3:I
    .end local v7           #_arg4:I
    .end local v8           #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    .end local v9           #_arg6:I
    .end local v10           #_arg7:I
    .end local v22           #_arg8:J
    :sswitch_3
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 101
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    .line 103
    .restart local v2       #_arg0:J
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v4

    .line 105
    .local v4, _arg1:Ljava/lang/String;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 107
    .restart local v5       #_arg2:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v6

    .line 109
    .restart local v6       #_arg3:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v7

    .line 111
    .restart local v7       #_arg4:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;

    move-result-object v8

    .line 113
    .restart local v8       #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v9

    .line 115
    .restart local v9       #_arg6:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v10

    .line 117
    .restart local v10       #_arg7:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v22

    .restart local v22       #_arg8:J
    move-object/from16 v12, p0

    move-wide v13, v2

    move-object v15, v4

    move/from16 v16, v5

    move/from16 v17, v6

    move/from16 v18, v7

    move-object/from16 v19, v8

    move/from16 v20, v9

    move/from16 v21, v10

    .line 118
    invoke-virtual/range {v12 .. v23}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->findAccessibilityNodeInfosByText(JLjava/lang/String;IIILandroid/view/accessibility/IAccessibilityInteractionConnectionCallback;IIJ)V

    .line 119
    const/4 v1, 0x1

    goto/16 :goto_0

    .line 123
    .end local v2           #_arg0:J
    .end local v4           #_arg1:Ljava/lang/String;
    .end local v5           #_arg2:I
    .end local v6           #_arg3:I
    .end local v7           #_arg4:I
    .end local v8           #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    .end local v9           #_arg6:I
    .end local v10           #_arg7:I
    .end local v22           #_arg8:J
    :sswitch_4
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 125
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    .line 127
    .restart local v2       #_arg0:J
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v4

    .line 129
    .local v4, _arg1:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 131
    .restart local v5       #_arg2:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v6

    .line 133
    .restart local v6       #_arg3:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v7

    .line 135
    .restart local v7       #_arg4:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;

    move-result-object v8

    .line 137
    .restart local v8       #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v9

    .line 139
    .restart local v9       #_arg6:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v10

    .line 141
    .restart local v10       #_arg7:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v22

    .restart local v22       #_arg8:J
    move-object/from16 v12, p0

    move-wide v13, v2

    move v15, v4

    move/from16 v16, v5

    move/from16 v17, v6

    move/from16 v18, v7

    move-object/from16 v19, v8

    move/from16 v20, v9

    move/from16 v21, v10

    .line 142
    invoke-virtual/range {v12 .. v23}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->findFocus(JIIIILandroid/view/accessibility/IAccessibilityInteractionConnectionCallback;IIJ)V

    .line 143
    const/4 v1, 0x1

    goto/16 :goto_0

    .line 147
    .end local v2           #_arg0:J
    .end local v4           #_arg1:I
    .end local v5           #_arg2:I
    .end local v6           #_arg3:I
    .end local v7           #_arg4:I
    .end local v8           #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    .end local v9           #_arg6:I
    .end local v10           #_arg7:I
    .end local v22           #_arg8:J
    :sswitch_5
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 149
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    .line 151
    .restart local v2       #_arg0:J
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v4

    .line 153
    .restart local v4       #_arg1:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v5

    .line 155
    .restart local v5       #_arg2:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v6

    .line 157
    .restart local v6       #_arg3:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v7

    .line 159
    .restart local v7       #_arg4:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;

    move-result-object v8

    .line 161
    .restart local v8       #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v9

    .line 163
    .restart local v9       #_arg6:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v10

    .line 165
    .restart local v10       #_arg7:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v22

    .restart local v22       #_arg8:J
    move-object/from16 v12, p0

    move-wide v13, v2

    move v15, v4

    move/from16 v16, v5

    move/from16 v17, v6

    move/from16 v18, v7

    move-object/from16 v19, v8

    move/from16 v20, v9

    move/from16 v21, v10

    .line 166
    invoke-virtual/range {v12 .. v23}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->focusSearch(JIIIILandroid/view/accessibility/IAccessibilityInteractionConnectionCallback;IIJ)V

    .line 167
    const/4 v1, 0x1

    goto/16 :goto_0

    .line 171
    .end local v2           #_arg0:J
    .end local v4           #_arg1:I
    .end local v5           #_arg2:I
    .end local v6           #_arg3:I
    .end local v7           #_arg4:I
    .end local v8           #_arg5:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    .end local v9           #_arg6:I
    .end local v10           #_arg7:I
    .end local v22           #_arg8:J
    :sswitch_6
    const-string v1, "android.view.accessibility.IAccessibilityInteractionConnection"

    move-object/from16 v0, p2

    invoke-virtual {v0, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

    .line 173
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v2

    .line 175
    .restart local v2       #_arg0:J
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v4

    .line 177
    .restart local v4       #_arg1:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v1

    if-eqz v1, :cond_0

    .line 178
    sget-object v1, Landroid/os/Bundle;->CREATOR:Landroid/os/Parcelable$Creator;

    move-object/from16 v0, p2

    invoke-interface {v1, v0}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Landroid/os/Bundle;

    .line 184
    .local v5, _arg2:Landroid/os/Bundle;
    :goto_1
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v6

    .line 186
    .restart local v6       #_arg3:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readStrongBinder()Landroid/os/IBinder;

    move-result-object v1

    invoke-static {v1}, Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback$Stub;->asInterface(Landroid/os/IBinder;)Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;

    move-result-object v7

    .line 188
    .local v7, _arg4:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v8

    .line 190
    .local v8, _arg5:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readInt()I

    move-result v9

    .line 192
    .restart local v9       #_arg6:I
    invoke-virtual/range {p2 .. p2}, Landroid/os/Parcel;->readLong()J

    move-result-wide v10

    .local v10, _arg7:J
    move-object/from16 v1, p0

    .line 193
    invoke-virtual/range {v1 .. v11}, Landroid/view/accessibility/IAccessibilityInteractionConnection$Stub;->performAccessibilityAction(JILandroid/os/Bundle;ILandroid/view/accessibility/IAccessibilityInteractionConnectionCallback;IIJ)V

    .line 194
    const/4 v1, 0x1

    goto/16 :goto_0

    .line 181
    .end local v5           #_arg2:Landroid/os/Bundle;
    .end local v6           #_arg3:I
    .end local v7           #_arg4:Landroid/view/accessibility/IAccessibilityInteractionConnectionCallback;
    .end local v8           #_arg5:I
    .end local v9           #_arg6:I
    .end local v10           #_arg7:J
    :cond_0
    const/4 v5, 0x0

    .restart local v5       #_arg2:Landroid/os/Bundle;
    goto :goto_1

    .line 44
    nop

    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_1
        0x2 -> :sswitch_2
        0x3 -> :sswitch_3
        0x4 -> :sswitch_4
        0x5 -> :sswitch_5
        0x6 -> :sswitch_6
        0x5f4e5446 -> :sswitch_0
    .end sparse-switch
.end method


text:
import sys

n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]

print(' '.join(map(str, arr[::-1])))


text:
ConfigParser::~ConfigParser()
{
}

void
ConfigParser::OnStartElement(const std::string& name, const xmlattr_t& properties)
{
	currentContext = currentContext->SubContextFactory(name);
	currentContext->Enter(properties);
}

void
ConfigParser::OnEndElement(const std::string&)
{
	CfgContext* tmp = currentContext;
	currentContext = currentContext->Leave();
	delete tmp;
}


text:
package com.taoswork.tallycheck.testmaterial.mongo.domain.business;

import com.taoswork.tallycheck.datadomain.onmongo.PersistableDocument;

import java.util.Collection;

public interface IProject extends PersistableDocument {

    String getName();

    void setName(String name);

    Collection<IEmployee> getEmployees();

    void setEmployees(Collection<IEmployee> employees);
}


text:
import {Application} from 'server/base/application';

Application.START();


text:
import { defineMessages } from 'react-intl';

const translations = defineMessages({
  title: {
    id: 'course.assessment.form.title',
    defaultMessage: 'Title',
  },
  description: {
    id: 'course.assessment.form.description',
    defaultMessage: 'Description',
  },
  startAt: {
    id: 'course.assessment.form.startAt',
    defaultMessage: 'Start At',
  },
  endAt: {
    id: 'course.assessment.form.endAt',
    defaultMessage: 'End At',
  },
  bonusEndAt: {
    id: 'course.assessment.form.bonusEndAt',
    defaultMessage: 'Bonus End At',
  },
  baseExp: {
    id: 'course.assessment.form.baseExp',
    defaultMessage: 'Base EXP',
  },
  timeBonusExp: {
    id: 'course.assessment.form.timeBonusExp',
    defaultMessage: 'Time Bonus EXP',
  },
  autograded: {
    id: 'course.assessment.form.autograded',
    defaultMessage: 'Autograded',
  },
  autogradeTestCasesHint: {
    id: 'course.assessment.form.autogradeTestCasesHint',
    defaultMessage: 'Select test case types for grade and exp calculation:',
  },
  usePublic: {
    id: 'course.assessment.form.usePublic',
    defaultMessage: 'Public',
  },
  usePrivate: {
    id: 'course.assessment.form.usePrivate',
    defaultMessage: 'Private',
  },
  useEvaluation: {
    id: 'course.assessment.form.useEvaluation',
    defaultMessage: 'Evaluation',
  },
  allowPartialSubmission: {
    id: 'course.assessment.form.allowPartialSubmission',
    defaultMessage: 'Allow submission with incorrect answers',
  },
  showMcqAnswer: {
    id: 'course.assessment.form.showMcqAnswer',
    defaultMessage: 'Show MCQ Submit Result',
  },
  showMcqAnswerHint: {
    id: 'course.assessment.form.showMcqAnswerHint',
    defaultMessage: 'Students can try to submit answer to MCQ and get feedback until they get the right answer',
  },
  showPrivate: {
    id: 'course.assessment.form.showPrivate',
    defaultMessage: 'Show private tests',
  },
  showPrivateHint: {
    id: 'course.assessment.form.showPrivateHint',
    defaultMessage:
      'Show private tests to students after the submission is graded and published (For programming questions)',
  },
  showEvaluation: {
    id: 'course.assessment.form.showEvaluation',
    defaultMessage: 'Show evaluation tests',
  },
  showEvaluationHint: {
    id: 'course.assessment.form.showEvaluationHint',
    defaultMessage:
      'Show evaluation tests to students after the submission is graded and published (For programming questions)',
  },
  hasPersonalTimes: {
    id: 'course.assessment.form.hasPersonalTimes',
    defaultMessage: 'Has personal times',
  },
  hasPersonalTimesHint: {
    id: 'course.assessment.form.hasPersonalTimesHint',
    defaultMessage:
      'Timings for this item will be automatically adjusted for users based on learning rate',
  },
  affectsPersonalTimes: {
    id: 'course.assessment.form.affectsPersonalTimes',
    defaultMessage: 'Affects personal times',
  },
  affectsPersonalTimesHint: {
    id: 'course.assessment.form.affectsPersonalTimesHint',
    defaultMessage: 'Student\'s submission time for this item will be taken into account \
      when updating personal times for other items',
  },
  published: {
    id: 'course.assessment.form.published',
    defaultMessage: 'Published',
  },
  autogradedHint: {
    id: 'course.assessment.form.autogradedHint',
    defaultMessage: 'Automatically assign grade and experience points after assessment is \
      submitted. Answers that are not auto-gradable will always receive the maximum grade.',
  },
  modeSwitchingDisabled: {
    id: 'course.assessment.form.modeSwitchingHint',
    defaultMessage: 'Autograded ( Switch to autograded mode is not allowed as there are submissions \
      for the assessment. )',
  },
  skippable: {
    id: 'course.assessment.form.skippable',
    defaultMessage: 'Allow to skip steps',
  },
  layout: {
    id: 'course.assessment.form.layout',
    defaultMessage: 'Layout',
  },
  tabbedView: {
    id: 'course.assessment.form.tabbedView',
    defaultMessage: 'Tabbed View',
  },
  singlePage: {
    id: 'course.assessment.form.singlePage',
    defaultMessage: 'Single Page',
  },
  delayedGradePublication: {
    id: 'course.assessment.form.delayedGradePublication',
    defaultMessage: 'Delayed Grade Publication',
  },
  delayedGradePublicationHint: {
    id: 'course.assessment.form.delayedGradePublicationHint',
    defaultMessage: "When delayed grade publication is enabled, gradings done by course staff will \
      not be immediately shown to the student. To publish all gradings for this assessment, click \
      on the 'Publish Grades' button on the top right of the submissions listing for this assessment.",
  },
  passwordRequired: {
    id: 'course.assessment.form.passwordRequired',
    defaultMessage: 'At least one password is required',
  },
  passwordProtection: {
    id: 'course.assessment.form.passwordProtection',
    defaultMessage: 'Password Protection',
  },
  viewPasswordHint: {
    id: 'course.assessment.form.viewPasswordHint',
    defaultMessage: 'When assessment password is enabled, students are required to input the password in order to \
      view/attempt the assessment.',
  },
  viewPassword: {
    id: 'course.assessment.form.viewPassword',
    defaultMessage: 'Input Assessment Password',
  },
  sessionPasswordHint: {
    id: 'course.assessment.form.sessionPasswordHint',
    defaultMessage: "When submission password is enabled, students are allowed to access their \
      submission once. Further attempts at editing the submission using a different session are \
      not allowed unless the password is provided by the staff. This can be used to prevent \
      students from accessing each other's submissions in exams. You should NOT give the submission password \
      to the students.",
  },
  sessionPassword: {
    id: 'course.assessment.form.sessionPassword',
    defaultMessage: 'Input Submission Password',
  },
  startEndValidationError: {
    id: 'course.assessment.form.startEndValidationError',
    defaultMessage: "Must be after 'Start At'",
  },
  noTestCaseChosenError: {
    id: 'course.assessment.form.noTestCaseChosenError',
    defaultMessage: 'Select at least one type of test case',
  },
  fetchTabFailure: {
    id: 'course.assessment.form.fetchCategoryFailure',
    defaultMessage: 'Loading of Tabs failed. Please refresh the page, or try again.',
  },
  tab: {
    id: 'course.assessment.form.tab',
    defaultMessage: 'Tab',
  },
  enableRandomization: {
    id: 'course.assessment.form.enable_randomization',
    defaultMessage: 'Enable Randomization',
  },
  enableRandomizationHint: {
    id: 'course.assessment.form.enable_randomization_hint',
    defaultMessage: 'Enables randomized assignment of question bundles to students (per question group)',
  },
});

export default translations;


text:
import { forwardRef } from "react";

import { FontIcon, FontIconProps } from "@react-md/icon";

export const LinearScaleFontIcon = forwardRef<HTMLElement, FontIconProps>(
  function LinearScaleFontIcon(props, ref) {
    return (
      <FontIcon {...props} ref={ref}>
        linear_scale
      </FontIcon>
    );
  }
);


text:
package manyerrors

import (
	"testing"

	errs "errors"
	"fmt"
	"math/rand"
	"time"
)

func TestManyErrors(t *testing.T) {

	randomness := rand.New(rand.NewSource( time.Now().UTC().UnixNano() ))

	tests := []struct{
		Errors []error
	}{
		{
			Errors: []error{},
		},
		{
			Errors: []error{
				errs.New("one"),
			},
		},
		{
			Errors: []error{
				errs.New("one"),
				errs.New("two"),
			},
		},
		{
			Errors: []error{
				errs.New("one"),
				errs.New("two"),
				errs.New("three"),
			},
		},
		{
			Errors: []error{
				errs.New("apple banana"),
				errs.New("banana cherry"),
				errs.New("kiwi orange"),
				errs.New("cantaloupe honeydew watermelon"),
				errs.New("lemon mango"),
				errs.New("cherry grape"),
			},
		},
	}

	more := 5 + randomness.Intn(50)
	for i:=0; i<more; i++ {

		numErrors := 1 + randomness.Intn(50)
		slice := make([]error, numErrors)
		for ii:=0; ii<numErrors; ii++ {
			slice[ii] = fmt.Errorf("%d %d %d", randomness.Int63(), randomness.Int63(), randomness.Int63())
		}

		datum := struct{Errors []error}{Errors:slice}
		tests = append(tests, datum)
	}

	for testNumber, test := range tests {
		errs := New(test.Errors...)

		if nil == errs {
			t.Errorf("For test #%d, expected non-nil, but instead got: %v", testNumber, errs)
		}

		actual := errs.Errors()

		if actualLen, expectedLen := len(actual), len(test.Errors); expectedLen != actualLen {
			t.Errorf("For test #%d, expected length to be %d, actually was %d.", testNumber, expectedLen, actualLen)
		}

		for i, expectedErr := range test.Errors {
			if actualErr := actual[i]; expectedErr != actualErr {
				t.Errorf("For test #%d and error #%d, expected err (%T) %q, but actually got (%T) %q.", testNumber, i, expectedErr, expectedErr, actualErr, actualErr)
			}
		}
	}
}


text:
require "omise/account"
require "omise/balance"
require "omise/bank_account"
require "omise/capability"
require "omise/card"
require "omise/chain"
require "omise/charge"
require "omise/customer"
require "omise/dispute"
require "omise/document"
require "omise/event"
require "omise/forex"
require "omise/integration"
require "omise/link"
require "omise/occurrence"
require "omise/receipt"
require "omise/recipient"
require "omise/refund"
require "omise/search"
require "omise/source"
require "omise/schedule"
require "omise/token"
require "omise/transaction"
require "omise/transfer"


text:
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v10/services/media_file_service.proto

namespace Google\Ads\GoogleAds\V10\Services;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * A single operation to create media file.
 *
 * Generated from protobuf message google.ads.googleads.v10.services.MediaFileOperation
 */
class MediaFileOperation extends \Google\Protobuf\Internal\Message
{
    protected $operation;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V10\Resources\MediaFile $create
     *           Create operation: No resource name is expected for the new media file.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V10\Services\MediaFileService::initOnce();
        parent::__construct($data);
    }

    /**
     * Create operation: No resource name is expected for the new media file.
     *
     * Generated from protobuf field .google.ads.googleads.v10.resources.MediaFile create = 1;
     * @return \Google\Ads\GoogleAds\V10\Resources\MediaFile|null
     */
    public function getCreate()
    {
        return $this->readOneof(1);
    }

    public function hasCreate()
    {
        return $this->hasOneof(1);
    }

    /**
     * Create operation: No resource name is expected for the new media file.
     *
     * Generated from protobuf field .google.ads.googleads.v10.resources.MediaFile create = 1;
     * @param \Google\Ads\GoogleAds\V10\Resources\MediaFile $var
     * @return $this
     */
    public function setCreate($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V10\Resources\MediaFile::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getOperation()
    {
        return $this->whichOneof("operation");
    }

}


text: Puppet & Ansible bundle for upgrading the whole eayunstack


text:
module Pageflow
  # Format and generate seed data for files
  module FilesHelper
    include RenderJsonHelper

    def file_format(file)
      file.format.presence || '-'
    end

    def file_dimensions(file)
      if file.width && file.height
        "#{file.width} x #{file.height}px"
      else
        "-"
      end
    end

    def file_duration(file)
      if file.duration_in_ms
        total_seconds = file.duration_in_ms / 1000
        seconds = total_seconds % 60
        minutes = (total_seconds / 60) % 60
        hours = total_seconds / (60 * 60)

        format("%02d:%02d:%02d", hours, minutes, seconds)
      else
        "-"
      end
    end

    # Render seed data for all files of the revision.
    #
    # @param [JBuilder] json
    # @param [PublishedEntry] entry
    # @since 15.1
    def files_json_seed(json, entry)
      Pageflow.config.file_types.each do |file_type|
        json.set!(file_type.collection_name) do
          json.array!(entry.find_files(file_type.model)) do |file|
            json.partial!('pageflow/files/file', file: file, file_type: file_type)
          end
        end
      end
    end
  end
end


text:
package org.springframework.security.web.csrf;

import java.lang.reflect.Method;
import java.util.UUID;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.util.Assert;
import org.springframework.util.ReflectionUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.util.WebUtils;

/**
 * A {@link CsrfTokenRepository} that persist the CSRF token in a cookie named
 * "XSRF-TOKEN" and reads from the header "X-XSRF-TOKEN" following the conventions of
 * AngularJS. When using with AngularJS be sure to use {@link #withHttpOnlyFalse()}.
 *
 * @author Rob Winch
 * @since 4.1
 */
public final class CookieCsrfTokenRepository implements CsrfTokenRepository {
	static final String DEFAULT_CSRF_COOKIE_NAME = "XSRF-TOKEN";

	static final String DEFAULT_CSRF_PARAMETER_NAME = "_csrf";

	static final String DEFAULT_CSRF_HEADER_NAME = "X-XSRF-TOKEN";

	private String parameterName = DEFAULT_CSRF_PARAMETER_NAME;

	private String headerName = DEFAULT_CSRF_HEADER_NAME;

	private String cookieName = DEFAULT_CSRF_COOKIE_NAME;

	private final Method setHttpOnlyMethod;

	private boolean cookieHttpOnly;

	public CookieCsrfTokenRepository() {
		this.setHttpOnlyMethod = ReflectionUtils.findMethod(Cookie.class, "setHttpOnly", boolean.class);
		if (this.setHttpOnlyMethod != null) {
			this.cookieHttpOnly = true;
		}
	}

	@Override
	public CsrfToken generateToken(HttpServletRequest request) {
		return new DefaultCsrfToken(this.headerName, this.parameterName,
				createNewToken());
	}

	@Override
	public void saveToken(CsrfToken token, HttpServletRequest request,
			HttpServletResponse response) {
		String tokenValue = token == null ? "" : token.getToken();
		Cookie cookie = new Cookie(this.cookieName, tokenValue);
		cookie.setSecure(request.isSecure());
		cookie.setPath(getCookiePath(request));
		if (token == null) {
			cookie.setMaxAge(0);
		}
		else {
			cookie.setMaxAge(-1);
		}
		if (cookieHttpOnly && setHttpOnlyMethod != null) {
			ReflectionUtils.invokeMethod(setHttpOnlyMethod, cookie, Boolean.TRUE);
		}

		response.addCookie(cookie);
	}

	@Override
	public CsrfToken loadToken(HttpServletRequest request) {
		Cookie cookie = WebUtils.getCookie(request, this.cookieName);
		if (cookie == null) {
			return null;
		}
		String token = cookie.getValue();
		if (!StringUtils.hasLength(token)) {
			return null;
		}
		return new DefaultCsrfToken(this.headerName, this.parameterName, token);
	}

	/**
	 * Sets the name of the HTTP request parameter that should be used to provide a token.
	 *
	 * @param parameterName the name of the HTTP request parameter that should be used to
	 * provide a token
	 */
	public void setParameterName(String parameterName) {
		Assert.notNull(parameterName, "parameterName is not null");
		this.parameterName = parameterName;
	}

	/**
	 * Sets the name of the HTTP header that should be used to provide the token.
	 *
	 * @param headerName the name of the HTTP header that should be used to provide the
	 * token
	 */
	public void setHeaderName(String headerName) {
		Assert.notNull(headerName, "headerName is not null");
		this.headerName = headerName;
	}

	/**
	 * Sets the name of the cookie that the expected CSRF token is saved to and read from.
	 *
	 * @param cookieName the name of the cookie that the expected CSRF token is saved to
	 * and read from
	 */
	public void setCookieName(String cookieName) {
		Assert.notNull(cookieName, "cookieName is not null");
		this.cookieName = cookieName;
	}

	/**
	 * Sets the HttpOnly attribute on the cookie containing the CSRF token.
	 * The cookie will only be marked as HttpOnly if both cookieHttpOnly is true and the underlying version of Servlet is 3.0 or greater.
	 * Defaults to true if the underlying version of Servlet is 3.0 or greater.
	 * NOTE: The {@link Cookie#setHttpOnly(boolean)} was introduced in Servlet 3.0.
	 *
	 * @param cookieHttpOnly true sets the HttpOnly attribute, false does not set it (depending on Servlet version)
	 * @throws IllegalArgumentException if cookieHttpOnly is true and the underlying version of Servlet is less than 3.0
	 */
	public void setCookieHttpOnly(boolean cookieHttpOnly) {
		if (cookieHttpOnly && setHttpOnlyMethod == null) {
			throw new IllegalArgumentException("Cookie will not be marked as HttpOnly because you are using a version of Servlet less than 3.0. NOTE: The Cookie#setHttpOnly(boolean) was introduced in Servlet 3.0.");
		}
		this.cookieHttpOnly = cookieHttpOnly;
	}

	private String getCookiePath(HttpServletRequest request) {
		String contextPath = request.getContextPath();
		return contextPath.length() > 0 ? contextPath : "/";
	}

	/**
	 * Factory method to conveniently create an instance that has
	 * {@link #setCookieHttpOnly(boolean)} set to false.
	 *
	 * @return and instance of CookieCsrfTokenRepository with
	 * {@link #setCookieHttpOnly(boolean)} set to false
	 */
	public static CookieCsrfTokenRepository withHttpOnlyFalse() {
		CookieCsrfTokenRepository result = new CookieCsrfTokenRepository();
		result.setCookieHttpOnly(false);
		return result;
	}

	private String createNewToken() {
		return UUID.randomUUID().toString();
	}
}


text:
import json
import logging

from flask import Flask, request, render_template
from flask_restful import Api, abort

from redis import StrictRedis

from uptime.resources import Hello, Checks

logging.getLogger('uptime')

class FlaskApp:

    def __init__(self, config):
        self.config = config
        self.redis = StrictRedis(host=self.config.redis_host, port=self.config.redis_port)
        self.app = Flask('uptime',
                         static_folder=self.config.app_dir + '/static',
                         template_folder=self.config.app_dir + '/templates')
        self.api = Api(self.app)
        self.app.config.from_object(self.config)
        self.app.config['UPTIME'] = self.config
        self.api.add_resource(Hello, '/')
        self.api.add_resource(Checks, '/checks')
        print('Starting uptime with auth_key: %s' % self.config.auth_key)

    @staticmethod
    def sorter(d):
        return d['url']

    def initialize(self):
        @self.app.route('/checkview', methods=['GET'])
        def buildview():
            if request.args['key'] != self.config.auth_key:
                abort(403)

            checks = [json.loads(self.redis.get(k).decode(self.config.encoding)) for k in
                      self.redis.keys(pattern='uptime_results:*')]

            total_checks = self.redis.get('uptime_stats:total_checks')

            return render_template('index.html',
                                   total_checks=total_checks,
                                   checks=sorted(checks, key=self.sorter)
                                   )

        @self.app.route('/static/<path:path>')
        def send_static(path):
            return self.app.send_static_file(path.split('/')[-1])

        @self.app.errorhandler(403)
        def forbidden_403(exception):
            return 'unauthorized', 403


text:
package io.cucumber.spring.contextconfig;

import io.cucumber.java.en.Then;
import io.cucumber.spring.CucumberContextConfiguration;
import io.cucumber.spring.beans.Belly;
import io.cucumber.spring.beans.BellyBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;

import static org.junit.jupiter.api.Assertions.assertNotNull;

@CucumberContextConfiguration
@ContextConfiguration("classpath:cucumber.xml")
public class BellyStepDefinitions {

    @Autowired
    private Belly belly;

    @Autowired
    private BellyBean bellyBean;

    public BellyBean getBellyBean() {
        return bellyBean;
    }

    @Then("I have belly")
    public void I_have_belly() {
        assertNotNull(belly);
    }

    @Then("I have belly bean")
    public void I_have_belly_bean() {
        assertNotNull(bellyBean);
    }

}


text:
/*!
 * FileInput French Translations
 *
 * This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or
 * any HTML markup tags in the messages must not be converted or translated.
 *
 * @see http://github.com/kartik-v/bootstrap-fileinput
 *
 * NOTE: this file must be saved in UTF-8 encoding.
 */
(function ($) {
    "use strict";

    $.fn.fileinputLocales['fr'] = {
        fileSingle: 'fichier',
        filePlural: 'fichiers',
        browseLabel: 'Parcourir…',
        removeLabel: 'Retirer',
        removeTitle: 'Retirer les fichiers sélectionnés',
        cancelLabel: 'Annuler',
        cancelTitle: "Annuler l'envoi en cours",
        uploadLabel: 'Transférer',
        uploadTitle: 'Transférer les fichiers sélectionnés',
        msgNo: 'Non',
        msgNoFilesSelected: '',
        msgCancelled: 'Annulé',
        msgZoomModalHeading: 'Aperçu détaillé',
        msgFileRequired: 'You must select a file to upload.',
        msgSizeTooSmall: 'File "{name}" ({size} KB) is too small and must be larger than {minSize} KB.',
        msgSizeTooLarge: 'Le fichier "{name}" ({size} Ko) dépasse la taille maximale autorisée qui est de {maxSize} Ko.',
        msgFilesTooLess: 'Vous devez sélectionner au moins {n} {files} à transmettre.',
        msgFilesTooMany: 'Le nombre de fichier sélectionné ({n}) dépasse la quantité maximale autorisée qui est de {m}.',
        msgFileNotFound: 'Le fichier "{name}" est introuvable !',
        msgFileSecured: "Des restrictions de sécurité vous empêchent d'accéder au fichier \"{name}\".",
        msgFileNotReadable: 'Le fichier "{name}" est illisble.',
        msgFilePreviewAborted: 'Prévisualisation du fichier "{name}" annulée.',
        msgFilePreviewError: 'Une erreur est survenue lors de la lecture du fichier "{name}".',
        msgInvalidFileName: 'Invalid or unsupported characters in file name "{name}".',
        msgInvalidFileType: 'Type de document invalide pour "{name}". Seulement les documents de type "{types}" sont autorisés.',
        msgInvalidFileExtension: 'Extension invalide pour le fichier "{name}". Seules les extensions "{extensions}" sont autorisées.',
        msgFileTypes: {
            'image': 'image',
            'html': 'HTML',
            'text': 'text',
            'video': 'video',
            'audio': 'audio',
            'flash': 'flash',
            'pdf': 'PDF',
            'object': 'object'
        },
        msgUploadAborted: 'Le téléchargement du fichier a été interrompu',
        msgUploadThreshold: 'Processing...',
        msgUploadBegin: 'Initializing...',
        msgUploadEnd: 'Done',
        msgUploadEmpty: 'No valid data available for upload.',
        msgValidationError: 'Erreur de validation',
        msgLoading: 'Transmission du fichier {index} sur {files}…',
        msgProgress: 'Transmission du fichier {index} sur {files} - {name} - {percent}% faits.',
        msgSelected: '{n} {files} sélectionné(s)',
        msgFoldersNotAllowed: 'Glissez et déposez uniquement des fichiers ! {n} répertoire(s) exclu(s).',
        msgImageWidthSmall: 'Largeur de fichier image "{name}" doit être d\'au moins {size} px.',
        msgImageHeightSmall: 'Hauteur de fichier image "{name}" doit être d\'au moins {size} px.',
        msgImageWidthLarge: 'Largeur de fichier image "{name}" ne peut pas dépasser {size} px.',
        msgImageHeightLarge: 'Hauteur de fichier image "{name}" ne peut pas dépasser {size} px.',
        msgImageResizeError: "Impossible d'obtenir les dimensions de l'image à redimensionner.",
        msgImageResizeException: "Erreur lors du redimensionnement de l'image.
{errors}
",
        msgAjaxError: 'Something went wrong with the {operation} operation. Please try again later!',
        msgAjaxProgressError: '{operation} failed',
        ajaxOperations: {
            deleteThumb: 'file delete',
            uploadThumb: 'file upload',
            uploadBatch: 'batch file upload',
            uploadExtra: 'form data upload'
        },
        dropZoneTitle: 'Glissez et déposez les fichiers ici…',
        dropZoneClickTitle: '
(or click to select {files})',
        fileActionSettings: {
            removeTitle: 'Supprimer le fichier',
            uploadTitle: 'Télécharger un fichier',
            zoomTitle: 'Voir les détails',
            dragTitle: 'Move / Rearrange',
            indicatorNewTitle: 'Pas encore téléchargé',
            indicatorSuccessTitle: 'Posté',
            indicatorErrorTitle: 'Ajouter erreur',
            indicatorLoadingTitle: 'ajout ...'
        },
        previewZoomButtonTitles: {
            prev: 'View previous file',
            next: 'View next file',
            toggleheader: 'Toggle header',
            fullscreen: 'Toggle full screen',
            borderless: 'Toggle borderless mode',
            close: 'Close detailed preview'
        }
    };
})(window.jQuery);


text:
void ght_find_theta_range(LDP laser_ref, LDP laser_sens,
                const double*x0, double max_linear_correction,
        double max_angular_correction_deg, int interval, gsl_histogram*hist, int*num_correspondences);

void ght_one_shot(LDP laser_ref, LDP laser_sens,
                const double*x0, double max_linear_correction,
                double max_angular_correction_deg, int interval, double*x, int*num_correspondences) ;

#endif


text:
require "spec_helper"

describe "nodejs::v0_4_10" do
  let(:facts) { default_test_facts }

  it do
    should contain_nodejs__version("v0.4.10").with_compile(true)
  end
end


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>

    <parent>
        <groupId>net.signalr.client</groupId>
        <artifactId>signalr-client-transport</artifactId>
        <version>0.1-SNAPSHOT</version>
    </parent>

    <artifactId>signalr-client-transport-asynchttpclient</artifactId>
    <properties>
        <com.ning.version>1.7.24</com.ning.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>net.signalr.client</groupId>
            <artifactId>signalr-client-api</artifactId>
            <version>0.1-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>net.signalr.client</groupId>
            <artifactId>signalr-client-json-gson</artifactId>
            <version>0.1-SNAPSHOT</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.ning</groupId>
            <artifactId>async-http-client</artifactId>
            <version>${com.ning.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>${org.slf4j.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
    </dependencies>
</project>


text:
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatRippleModule } from '@angular/material/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';
import { DatePickerComponent } from './date-picker.component';
import { CalendarComponent } from './calendar/calendar.component';
import { DatePickerPipe } from './date-picker.pipe';
import { ToolbarComponent } from './toolbar/toolbar.component';
import { DateDisplayComponent } from './date-display/date-display.component';
import { MonthComponent } from './month/month.component';

@NgModule({
  imports: [CommonModule, MatRippleModule, MatButtonModule, MatIconModule],
  declarations: [
    DatePickerComponent,
    CalendarComponent,
    DatePickerPipe,
    ToolbarComponent,
    DateDisplayComponent,
    MonthComponent
  ],
  exports: [DatePickerComponent],
  entryComponents: [DatePickerComponent]
})
export class DatePickerModule {}