answer
stringlengths
15
1.25M
OC.L10N.register( "comments", { "Cancel" : "Zrušiť", "Save" : "Uložiť", "Comment" : "Komentár" }, "nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);");
using Xunit; using Xunit.Extensions; namespace Humanizer.Tests.Localisation.bnBD { public class NumberToWordsTests : AmbientCulture { public NumberToWordsTests() : base("bn-BD") { } [InlineData(0, "শূন্য")] [InlineData(1, "এক")] [InlineData(10, "দশ")] [InlineData(11, "এগারো")] [InlineData(20, "বিশ")] [InlineData(122, "একশ বাইশ")] [InlineData(3501, "তিন হাজার পাঁচশ এক")] [InlineData(100, "একশ")] [InlineData(1000, "এক হাজার")] [InlineData(100000, "এক লক্ষ")] [InlineData(1000000, "দশ লক্ষ")] [InlineData(10000000, "এক কোটি")] [InlineData(100000000, "দশ কোটি")] [InlineData(1000000000, "একশ কোটি")] [InlineData(111, "একশ এগারো")] [InlineData(1111, "এক হাজার একশ এগারো")] [InlineData(111111, "এক লক্ষ এগারো হাজার একশ এগারো")] [InlineData(1111111, "এগারো লক্ষ এগারো হাজার একশ এগারো")] [InlineData(11111111, "এক কোটি এগারো লক্ষ এগারো হাজার একশ এগারো")] [InlineData(111111111, "এগারো কোটি এগারো লক্ষ এগারো হাজার একশ এগারো")] [InlineData(1111111111, "একশ এগারো কোটি এগারো লক্ষ এগারো হাজার একশ এগারো")] [InlineData(123, "একশ তেইশ")] [InlineData(1234, "এক হাজার দুইশ চৌঁতিরিশ")] [InlineData(12345, "বারো হাজার তিনশ পঁয়তাল্লিশ")] [InlineData(123456, "এক লক্ষ তেইশ হাজার চারশ ছাপ্পান্ন")] [InlineData(1234567, "বারো লক্ষ চৌঁতিরিশ হাজার পাঁচশ সাতষট্টি")] [InlineData(12345678, "এক কোটি তেইশ লক্ষ পঁয়তাল্লিশ হাজার ছয়শ আটাত্তর")] [InlineData(123456789, "বারো কোটি চৌঁতিরিশ লক্ষ ছাপ্পান্ন হাজার সাতশ উননব্বই")] [InlineData(1234567890, "একশ তেইশ কোটি পঁয়তাল্লিশ লক্ষ সাতষট্টি হাজার আটশ নব্বই")] [InlineData(-1234567890, "ঋণাত্মক একশ তেইশ কোটি পঁয়তাল্লিশ লক্ষ সাতষট্টি হাজার আটশ নব্বই")] [Theory] public void ToWords(int number, string expected) { Assert.Equal(expected, number.ToWords()); } [Theory] [InlineData(0, "শূন্য তম")] [InlineData(1, "প্রথম")] [InlineData(2, "দ্বিতীয়")] [InlineData(3, "তৃতীয়")] [InlineData(4, "চতুর্থ")] [InlineData(5, "পঞ্চম")] [InlineData(6, "ষষ্ট")] [InlineData(7, "সপ্তম")] [InlineData(8, "অষ্টম")] [InlineData(9, "নবম")] [InlineData(10, "দশম")] [InlineData(11, "একাদশ")] [InlineData(12, "দ্বাদশ")] [InlineData(13, "ত্রয়োদশ")] [InlineData(14, "চতুর্দশ")] [InlineData(15, "পঞ্চদশ")] [InlineData(16, "ষোড়শ")] [InlineData(17, "সপ্তদশ")] [InlineData(18, "অষ্টাদশ")] [InlineData(19, "উনিশ তম")] [InlineData(20, "বিশ তম")] [InlineData(21, "একুশ তম")] [InlineData(100, "শত তম")] [InlineData(112, "একশ বারো তম")] [InlineData(118, "একশ আঠারো তম")] [InlineData(1000, "হাজার তম")] [InlineData(1001, "এক হাজার এক তম")] [InlineData(1021, "এক হাজার একুশ তম")] [InlineData(10000, "দশ হাজার তম")] [InlineData(10121, "দশ হাজার একশ একুশ তম")] [InlineData(100000, "লক্ষ তম")] [InlineData(1000000, "দশ লক্ষ তম")] [InlineData(10000000, "কোটি তম")] public void ToOrdinalWords(int number, string words) { Assert.Equal(words, number.ToOrdinalWords()); } } }
#include "Osc.h" #include "cinder/Log.h" using namespace std; using namespace asio; using namespace asio::ip; using namespace std::placeholders; // Following code snippets were taken from #ifndef htons #define htons(n) (((((uint16_t)(n) & 0xFF)) << 8) | (((uint16_t)(n) & 0xFF00) >> 8)) #endif #ifndef ntohs #define ntohs(n) (((((uint16_t)(n) & 0xFF)) << 8) | (((uint16_t)(n) & 0xFF00) >> 8)) #endif #ifndef htonl #define htonl(n) (((((uint32_t)(n) & 0xFF)) << 24) | ((((uint32_t)(n) & 0xFF00)) << 8) | ((((uint32_t)(n) & 0xFF0000)) >> 8) | ((((uint32_t)(n) & 0xFF000000)) >> 24)) #endif #ifndef ntohl #define ntohl(n) (((((uint32_t)(n) & 0xFF)) << 24) | ((((uint32_t)(n) & 0xFF00)) << 8) | ((((uint32_t)(n) & 0xFF0000)) >> 8) | ((((uint32_t)(n) & 0xFF000000)) >> 24)) #endif // Following ntohll() and htonll() code snippets were taken from #ifndef ntohll Convert 64-bit little-endian integer to a big-endian network format #define ntohll(x) (((int64_t)(ntohl((int32_t)((x << 32) >> 32))) << 32) | (uint32_t)ntohl(((int32_t)(x >> 32)))) #endif #ifndef htonll Convert 64-bit big-endian network format to a little-endian integer #define htonll(x) ntohll(x) #endif namespace cinder { namespace osc { Convert 32-bit float to a big-endian network format inline int32_t htonf( float x ) { return (int32_t) htonl( *(int32_t*) &x ); } Convert 64-bit float (double) to a big-endian network format inline int64_t htond( double x ) { return (int64_t) htonll( *(int64_t*) &x ); } Convert 32-bit big-endian network format to float inline double ntohf( int32_t x ) { x = ntohl( x ); return *(float*) &x; } Convert 64-bit big-endian network format to double inline double ntohd( int64_t x ) { return (double) ntohll( x ); } / MESSAGE Message::Message() : mIsCached( false ) { } Message::Message( const std::string& address ) : mAddress( address ), mIsCached( false ) { } Message::Message( Message &&message ) NOEXCEPT : mAddress( move( message.mAddress ) ), mDataBuffer( move( message.mDataBuffer ) ), mDataViews( move( message.mDataViews ) ), mIsCached( message.mIsCached ), mCache( move( message.mCache ) ), mSenderIpAddress( move( message.mSenderIpAddress ) ) { for( auto & dataView : mDataViews ) { dataView.mOwner = this; } } Message& Message::operator=( Message &&message ) NOEXCEPT { if( this != &message ) { mAddress = move( message.mAddress ); mDataBuffer = move( message.mDataBuffer ); mDataViews = move( message.mDataViews ); mIsCached = message.mIsCached; mCache = move( message.mCache ); mSenderIpAddress = move( message.mSenderIpAddress ); for( auto & dataView : mDataViews ) { dataView.mOwner = this; } } return *this; } Message::Message( const Message &message ) : mAddress( message.mAddress ), mDataBuffer( message.mDataBuffer ), mDataViews( message.mDataViews ), mIsCached( message.mIsCached ), mCache( mIsCached ? new ByteBuffer( *(message.mCache) ) : nullptr ), mSenderIpAddress( message.mSenderIpAddress ) { for( auto & dataView : mDataViews ) { dataView.mOwner = this; } } Message& Message::operator=( const Message &message ) { if( this != &message ) { mAddress = message.mAddress; mDataBuffer = message.mDataBuffer; mDataViews = message.mDataViews; mIsCached = message.mIsCached; mCache.reset( mIsCached ? new ByteBuffer( *(message.mCache) ) : nullptr ); mSenderIpAddress = message.mSenderIpAddress; for( auto & dataView : mDataViews ) { dataView.mOwner = this; } } return *this; } using Argument = Message::Argument; Argument::Argument() : mOwner( nullptr ), mType( ArgType::NULL_T ), mSize( 0 ), mOffset( -1 ) { } Argument::Argument( Message *owner, ArgType type, int32_t offset, uint32_t size, bool needsSwap ) : mOwner( owner ), mType( type ), mOffset( offset ), mSize( size ), <API key>( needsSwap ) { } Argument::Argument( Argument &&arg ) NOEXCEPT : mOwner( arg.mOwner ), mType( arg.mType ), mOffset( arg.mOffset ), mSize( arg.mSize ), <API key>( arg.<API key> ) { } Argument& Argument::operator=( Argument &&arg ) NOEXCEPT { if( this != &arg ) { mOwner = arg.mOwner; mType = arg.mType; mOffset = arg.mOffset; mSize = arg.mSize; <API key> = arg.<API key>; } return *this; } Argument::Argument( const Argument &arg ) : mOwner( arg.mOwner ), mType( arg.mType ), mOffset( arg.mOffset ), mSize( arg.mSize ), <API key>( arg.<API key> ) { } Argument& Argument::operator=( const Argument &arg ) { if( this != &arg ) { mOwner = arg.mOwner; mType = arg.mType; mOffset = arg.mOffset; mSize = arg.mSize; <API key> = arg.<API key>; } return *this; } bool Argument::operator==(const Argument &arg ) const { return mType == arg.mType && mOffset == arg.mOffset && mSize == arg.mSize; } const char* Message::Argument::argTypeToString( ArgType type ) { switch ( type ) { case ArgType::INTEGER_32: return "INTEGER_32"; break; case ArgType::FLOAT: return "FLOAT"; break; case ArgType::DOUBLE: return "DOUBLE"; break; case ArgType::STRING: return "STRING"; break; case ArgType::BLOB: return "BLOB"; break; case ArgType::MIDI: return "MIDI"; break; case ArgType::TIME_TAG: return "TIME_TAG"; break; case ArgType::INTEGER_64: return "INTEGER_64"; break; case ArgType::BOOL_T: return "BOOL_T"; break; case ArgType::BOOL_F: return "BOOL_F"; break; case ArgType::CHAR: return "CHAR"; break; case ArgType::NULL_T: return "NULL_T"; break; case ArgType::IMPULSE: return "IMPULSE"; break; default: return "Unknown ArgType"; break; } } ArgType Argument::<API key>( char type ) { return static_cast<ArgType>(type); } char Argument::<API key>( ArgType type ) { return static_cast<char>(type); } void Argument::<API key>( uint8_t *buffer ) const { auto ptr = &buffer[mOffset]; switch ( mType ) { case ArgType::INTEGER_32: case ArgType::CHAR: case ArgType::BLOB: { int32_t a = htonl( *reinterpret_cast<int32_t*>(ptr) ); memcpy( ptr, &a, sizeof( int32_t ) ); } break; case ArgType::INTEGER_64: case ArgType::TIME_TAG: { uint64_t a = htonll( *reinterpret_cast<uint64_t*>(ptr) ); memcpy( ptr, &a, sizeof( uint64_t ) ); } break; case ArgType::FLOAT: { int32_t a = htonf( *reinterpret_cast<float*>(ptr) ); memcpy( ptr, &a, sizeof( float ) ); } break; case ArgType::DOUBLE: { int64_t a = htond( *reinterpret_cast<double*>(ptr) ); memcpy( ptr, &a, sizeof( double ) ); } break; default: break; } } void Argument::outputValueToStream( std::ostream &ostream ) const { ostream << "<" << argTypeToString( mType ) << ">: "; switch ( mType ) { case ArgType::INTEGER_32: ostream << *reinterpret_cast<int32_t*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::FLOAT: ostream << *reinterpret_cast<float*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::STRING: ostream << reinterpret_cast<const char*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::BLOB: ostream << "Size: " << *reinterpret_cast<int32_t*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::INTEGER_64: ostream << *reinterpret_cast<int64_t*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::TIME_TAG: ostream << *reinterpret_cast<int64_t*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::DOUBLE: ostream << *reinterpret_cast<double*>( &mOwner->mDataBuffer[mOffset] ); break; case ArgType::CHAR: { char v = *reinterpret_cast<char*>( &mOwner->mDataBuffer[mOffset] ); ostream << int(v); } break; case ArgType::MIDI: { auto ptr = &mOwner->mDataBuffer[mOffset]; ostream << " Port: " << int( *( ptr + 0 ) ) << " Status: " << int( *( ptr + 1 ) ) << " Data1: " << int( *( ptr + 2 ) ) << " Data2: " << int( *( ptr + 3 ) ) ; } break; case ArgType::BOOL_T: ostream << "True"; break; case ArgType::BOOL_F: ostream << "False"; break; case ArgType::NULL_T: ostream << "Null"; break; case ArgType::IMPULSE: ostream << "IMPULSE"; break; default: ostream << "Unknown"; break; } } void Message::append( int32_t v ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::INTEGER_32, getCurrentOffset(), 4, true ); appendDataBuffer( &v, sizeof(int32_t) ); } void Message::append( float v ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::FLOAT, getCurrentOffset(), 4, true ); appendDataBuffer( &v, sizeof(float) ); } void Message::append( const std::string& v ) { mIsCached = false; auto trailingZeros = getTrailingZeros( v.size() ); auto size = v.size() + trailingZeros; mDataViews.emplace_back( this, ArgType::STRING, getCurrentOffset(), size ); appendDataBuffer( v.data(), v.size(), trailingZeros ); } void Message::append( const char *v ) { mIsCached = false; auto stringLength = strlen( v ); auto trailingZeros = getTrailingZeros( stringLength ); auto size = stringLength + trailingZeros; mDataViews.emplace_back( this, ArgType::STRING, getCurrentOffset(), size ); appendDataBuffer( v, stringLength, trailingZeros ); } void Message::appendBlob( void* blob, uint32_t size ) { mIsCached = false; auto trailingZeros = getTrailingZeros( size ); mDataViews.emplace_back( this, ArgType::BLOB, getCurrentOffset(), size, true ); appendDataBuffer( &size, sizeof(uint32_t) ); appendDataBuffer( blob, size, trailingZeros ); } void Message::append( const ci::Buffer &buffer ) { appendBlob( (void*)buffer.getData(), buffer.getSize() ); } void Message::appendTimeTag( uint64_t v ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::TIME_TAG, getCurrentOffset(), 8, true ); appendDataBuffer( &v, sizeof( uint64_t ) ); } void Message::appendCurrentTime() { appendTimeTag( time::<API key>() ); } void Message::append( bool v ) { mIsCached = false; if( v ) mDataViews.emplace_back( this, ArgType::BOOL_T, -1, 0 ); else mDataViews.emplace_back( this, ArgType::BOOL_F, -1, 0 ); } void Message::append( int64_t v ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::INTEGER_64, getCurrentOffset(), 8, true ); appendDataBuffer( &v, sizeof( int64_t ) ); } void Message::append( double v ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::DOUBLE, getCurrentOffset(), 8, true ); appendDataBuffer( &v, sizeof( double ) ); } void Message::append( char v ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::CHAR, getCurrentOffset(), 4, true ); ByteArray<4> b; b.fill( 0 ); b[0] = v; appendDataBuffer( b.data(), b.size() ); } void Message::appendMidi( uint8_t port, uint8_t status, uint8_t data1, uint8_t data2 ) { mIsCached = false; mDataViews.emplace_back( this, ArgType::MIDI, getCurrentOffset(), 4 ); ByteArray<4> b; b[0] = port; b[1] = status; b[2] = data1; b[3] = data2; appendDataBuffer( b.data(), b.size() ); } void Message::createCache() const { // Check for debug to allow for Default Constructing. CI_ASSERT_MSG( mAddress.size() > 0 && mAddress[0] == '/', "All OSC Address Patterns must at least start with '/' (forward slash)" ); size_t addressLen = mAddress.size() + getTrailingZeros( mAddress.size() ); // adding one for ',' character, which was the sourc of a particularly ugly bug auto typesSize = mDataViews.size() + 1; std::vector<char> typesArray( typesSize + getTrailingZeros( typesSize ) , 0 ); typesArray[0] = ','; int i = 1; for( auto & dataView : mDataViews ) typesArray[i++] = Argument::<API key>( dataView.getType() ); if( ! mCache ) mCache = ByteBufferRef( new ByteBuffer() ); size_t typesArrayLen = typesArray.size(); ByteArray<4> sizeArray; int32_t messageSize = addressLen + typesArrayLen + mDataBuffer.size(); auto endianSize = htonl( messageSize ); memcpy( sizeArray.data(), reinterpret_cast<uint8_t*>( &endianSize ), 4 ); mCache->resize( 4 + messageSize ); std::copy( sizeArray.begin(), sizeArray.end(), mCache->begin() ); std::copy( mAddress.begin(), mAddress.end(), mCache->begin() + 4 ); std::copy( typesArray.begin(), typesArray.end(), mCache->begin() + 4 + addressLen ); std::copy( mDataBuffer.begin(), mDataBuffer.end(), mCache->begin() + 4 + addressLen + typesArrayLen ); // Now that cached (transportable) buffer is created, swap endian for transmit. auto dataPtr = mCache->data() + 4 + addressLen + typesArrayLen; for( auto & dataView : mDataViews ) { if( dataView.<API key>() ) dataView.<API key>( dataPtr ); } mIsCached = true; } ByteBufferRef Message::getSharedBuffer() const { if( ! mIsCached ) createCache(); return mCache; } template<typename T> const Argument& Message::getDataView( uint32_t index ) const { if( index >= mDataViews.size() ) throw ExcIndexOutOfBounds( mAddress, index ); return mDataViews[index]; } void Message::appendDataBuffer( const void *begin, uint32_t size, uint32_t trailingZeros ) { auto ptr = reinterpret_cast<const uint8_t*>( begin ); mDataBuffer.insert( mDataBuffer.end(), ptr, ptr + size ); if( trailingZeros != 0 ) mDataBuffer.resize( mDataBuffer.size() + trailingZeros, 0 ); } const Argument& Message::operator[]( uint32_t index ) const { if( index >= mDataViews.size() ) throw ExcIndexOutOfBounds( mAddress, index ); return mDataViews[index]; } bool Message::operator==( const Message &message ) const { auto sameAddress = message.mAddress == mAddress; if( ! sameAddress ) return false; auto sameDataViewSize = message.mDataViews.size() == mDataViews.size(); if( ! sameDataViewSize ) return false; for( size_t i = 0; i < mDataViews.size(); i++ ) { auto sameDataView = message.mDataViews[i] == mDataViews[i]; if( ! sameDataView ) return false; } auto sameDataBufferSize = mDataBuffer.size() == message.mDataBuffer.size(); if( ! sameDataBufferSize ) return false; auto sameDataBuffer = ! memcmp( mDataBuffer.data(), message.mDataBuffer.data(), mDataBuffer.size() ); if( ! sameDataBuffer ) return false; return true; } bool Message::operator!=( const Message &message ) const { return ! (*this == message); } std::string Message::getTypeTagString() const { std::string ret( mDataViews.size(), 0 ); std::transform( mDataViews.begin(), mDataViews.end(), ret.begin(), []( const Argument &arg ){ return Argument::<API key>( arg.getType() ); }); return ret; } int32_t Argument::int32() const { if( ! convertible<int32_t>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::INTEGER_32, getType() ); return *reinterpret_cast<const int32_t*>(&mOwner->mDataBuffer[getOffset()]);; } int64_t Argument::int64() const { if( ! convertible<int64_t>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::INTEGER_64, getType() ); return *reinterpret_cast<const int64_t*>(&mOwner->mDataBuffer[getOffset()]);; } float Argument::flt() const { if( ! convertible<float>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::FLOAT, getType() ); return *reinterpret_cast<const float*>(&mOwner->mDataBuffer[getOffset()]);; } double Argument::dbl() const { if( ! convertible<double>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::DOUBLE, getType() ); return *reinterpret_cast<const double*>(&mOwner->mDataBuffer[getOffset()]);; } bool Argument::boolean() const { if( ! convertible<bool>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::BOOL_T, getType() ); return getType() == ArgType::BOOL_T; } void Argument::midi( uint8_t *port, uint8_t *status, uint8_t *data1, uint8_t *data2 ) const { if( ! convertible<int32_t>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::MIDI, getType() ); int32_t midiVal = *reinterpret_cast<const int32_t*>(&mOwner->mDataBuffer[getOffset()]); *port = midiVal; *status = midiVal >> 8; *data1 = midiVal >> 16; *data2 = midiVal >> 24; } ci::Buffer Argument::blob() const { if( ! convertible<ci::Buffer>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::BLOB, getType() ); // skip the first 4 bytes, as they are the size const uint8_t* data = reinterpret_cast<const uint8_t*>( &mOwner->mDataBuffer[getOffset()+4] ); ci::Buffer ret( getSize() ); memcpy( ret.getData(), data, getSize() ); return ret; } void Argument::blobData( const void **dataPtr, size_t *size ) const { if( ! convertible<ci::Buffer>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::BLOB, getType() ); // skip the first 4 bytes, as they are the size *dataPtr = reinterpret_cast<const void*>( &mOwner->mDataBuffer[getOffset()+4] ); *size = getSize(); } char Argument::character() const { if( ! convertible<int32_t>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::CHAR, getType() ); return mOwner->mDataBuffer[getOffset()]; } std::string Argument::string() const { if( ! convertible<std::string>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::STRING, getType() ); const char* head = reinterpret_cast<const char*>(&mOwner->mDataBuffer[getOffset()]); return std::string( head ); } void Argument::stringData( const char **dataPtr, uint32_t *size ) const { if( ! convertible<std::string>() ) throw ExcNonConvertible( mOwner->getAddress(), ArgType::STRING, getType() ); *dataPtr = reinterpret_cast<const char*>(&mOwner->mDataBuffer[getOffset()]); *size = mSize; } template<typename T> bool Argument::convertible() const { switch ( mType ) { case ArgType::INTEGER_32: return std::is_same<T, int32_t>::value; case ArgType::FLOAT: return std::is_same<T, float>::value; case ArgType::STRING: return std::is_same<T, std::string>::value; case ArgType::BLOB: return std::is_same<T, ci::Buffer>::value; case ArgType::INTEGER_64: return std::is_same<T, int64_t>::value; case ArgType::TIME_TAG: return std::is_same<T, int64_t>::value; case ArgType::DOUBLE: return std::is_same<T, double>::value; case ArgType::CHAR: return std::is_same<T, int32_t>::value; case ArgType::MIDI: return std::is_same<T, int32_t>::value; case ArgType::BOOL_T: return std::is_same<T, bool>::value; case ArgType::BOOL_F: return std::is_same<T, bool>::value; case ArgType::NULL_T: return false; case ArgType::IMPULSE: return false; default: return false; } } ArgType Message::getArgType( uint32_t index ) const { if( index >= mDataViews.size() ) throw ExcIndexOutOfBounds( mAddress, index ); auto &dataView = mDataViews[index]; return dataView.getType(); } int32_t Message::getArgInt32( uint32_t index ) const { auto &dataView = getDataView<int32_t>( index ); return dataView.int32(); } float Message::getArgFloat( uint32_t index ) const { auto &dataView = getDataView<float>( index ); return dataView.flt(); } std::string Message::getArgString( uint32_t index ) const { auto &dataView = getDataView<std::string>( index ); return dataView.string(); } void Message::getArgStringData( uint32_t index, const char **dataPtr, uint32_t *size ) const { auto &dataView = getDataView<std::string>( index ); dataView.stringData( dataPtr, size ); } int64_t Message::getArgTime( uint32_t index ) const { auto &dataView = getDataView<int64_t>( index ); return dataView.int64(); } int64_t Message::getArgInt64( uint32_t index ) const { auto &dataView = getDataView<int64_t>( index ); return dataView.int64(); } double Message::getArgDouble( uint32_t index ) const { auto &dataView = getDataView<double>( index ); return dataView.dbl(); } bool Message::getArgBool( uint32_t index ) const { auto &dataView = getDataView<bool>( index ); return dataView.boolean(); } char Message::getArgChar( uint32_t index ) const { auto &dataView = getDataView<int32_t>( index ); return dataView.character(); } void Message::getArgMidi( uint32_t index, uint8_t *port, uint8_t *status, uint8_t *data1, uint8_t *data2 ) const { auto &dataView = getDataView<int32_t>( index ); dataView.midi( port, status, data1, data2 ); } ci::Buffer Message::getArgBlob( uint32_t index ) const { auto &dataView = getDataView<ci::Buffer>( index ); return dataView.blob(); } void Message::getArgBlobData( uint32_t index, const void **dataPtr, size_t *size ) const { auto &dataView = getDataView<ci::Buffer>( index ); dataView.blobData( dataPtr, size ); } bool Message::bufferCache( uint8_t *data, size_t size ) { uint8_t *head, *tail; uint32_t i = 0; size_t remain = size; // extract address head = tail = data; while( tail[i] != '\0' && ++i < remain ); if( i == remain ) { CI_LOG_E( "Problem Parsing Message: No address." ); return false; } mAddress.insert( 0, (char*)head, i ); head += i + getTrailingZeros( i ); remain = size - ( head - data ); i = 0; tail = head; if( head[i++] != ',' ) { CI_LOG_E( "Problem Parsing Message: Mesage with address [" << mAddress << "] not properly formatted; no , seperator." ); return false; } // extract types while( tail[i] != '\0' && ++i < remain ); if( i == remain ) { CI_LOG_E( "Problem Parsing Message: Mesage with address [" << mAddress << "] not properly formatted; Types not complete." ); return false; } std::vector<char> types( i - 1 ); std::copy( head + 1, head + i, types.begin() ); head += i + getTrailingZeros( i ); remain = size - ( head - data ); // extract data uint32_t int32; uint64_t int64; mDataViews.resize( types.size() ); int j = 0; for( auto & dataView : mDataViews ) { dataView.mOwner = this; dataView.mType = Argument::<API key>( types[j] ); switch( types[j] ) { case 'i': case 'f': case 'r': { dataView.mSize = sizeof( uint32_t ); dataView.mOffset = getCurrentOffset(); memcpy( &int32, head, sizeof( uint32_t ) ); int32 = htonl( int32 ); appendDataBuffer( &int32, sizeof( uint32_t ) ); head += sizeof( uint32_t ); remain -= sizeof( uint32_t ); } break; case 'b': { memcpy( &int32, head, 4 ); head += 4; remain -= 4; int32 = htonl( int32 ); if( int32 > remain ) { CI_LOG_E( "Problem Parsing Message: Mesage with address [" << mAddress << "] not properly formatted; Blobs size is too long." ); return false; } auto trailingZeros = getTrailingZeros( int32 ); dataView.mSize = int32; dataView.mOffset = getCurrentOffset(); appendDataBuffer( &dataView.mSize, sizeof( uint32_t ) ); appendDataBuffer( head, int32, trailingZeros ); head += int32 + trailingZeros; remain -= int32 + trailingZeros; } break; case 's': case 'S': { tail = head; i = 0; while( tail[i] != '\0' && ++i < remain ); dataView.mSize = i + getTrailingZeros( i ); dataView.mOffset = getCurrentOffset(); appendDataBuffer( head, i, getTrailingZeros( i ) ); i += getTrailingZeros( i ); head += i; remain -= i; } break; case 'h': case 'd': case 't': { memcpy( &int64, head, sizeof( uint64_t ) ); int64 = htonll( int64 ); dataView.mSize = sizeof( uint64_t ); dataView.mOffset = getCurrentOffset(); appendDataBuffer( &int64, sizeof( uint64_t ) ); head += sizeof( uint64_t ); remain -= sizeof( uint64_t ); } break; case 'c': { dataView.mSize = 4; dataView.mOffset = getCurrentOffset(); memcpy( &int32, head, 4 ); auto character = (int) htonl( int32 ); appendDataBuffer( &character, 4 ); head += sizeof( int ); remain -= sizeof( int ); } break; case 'm': { dataView.mSize = sizeof( int ); dataView.mOffset = getCurrentOffset(); appendDataBuffer( head, sizeof( int ) ); head += sizeof( int ); remain -= sizeof( int ); } break; } j++; } return true; } void Message::setAddress( const std::string& address ) { mIsCached = false; mAddress = address; } size_t Message::getPacketSize() const { if( ! mIsCached ) createCache(); return mCache->size(); } void Message::clear() { mIsCached = false; mAddress.clear(); mDataViews.clear(); mDataBuffer.clear(); mCache.reset(); } std::ostream& operator<<( std::ostream &os, const Message &rhs ) { os << "Address: " << rhs.getAddress() << std::endl; if( ! rhs.getSenderIpAddress().is_unspecified() ) os << "Sender Ip Address: " << rhs.getSenderIpAddress() << std::endl; for( auto &dataView : rhs.mDataViews ) os << "\t" << dataView << std::endl; return os; } std::ostream& operator<<( std::ostream &os, const Argument &rhs ) { rhs.outputValueToStream( os ); return os; } / Bundle Bundle::Bundle() { initializeBuffer(); } void Bundle::setTimetag( uint64_t ntp_time ) { uint64_t a = htonll( ntp_time ); ByteArray<8> b; memcpy( b.data(), reinterpret_cast<uint8_t*>( &a ), 8 ); mDataBuffer->insert( mDataBuffer->begin() + 12, b.begin(), b.end() ); } void Bundle::initializeBuffer() { static const std::string id = "#bundle"; mDataBuffer.reset( new std::vector<uint8_t>( 20 ) ); std::copy( id.begin(), id.end(), mDataBuffer->begin() + 4 ); (*mDataBuffer)[19] = 1; } void Bundle::appendData( const ByteBufferRef& data ) { // Size is already the first 4 bytes of every message. mDataBuffer->insert( mDataBuffer->end(), data->begin(), data->end() ); } ByteBufferRef Bundle::getSharedBuffer() const { int32_t a = htonl( getPacketSize() - 4 ); memcpy( mDataBuffer->data(), reinterpret_cast<uint8_t*>( &a ), 4 ); return mDataBuffer; } / SenderBase std::string SenderBase::extractOscAddress( const ByteBufferRef &transportData ) { std::string oscAddress; auto foundBegin = find( transportData->begin(), transportData->end(), (uint8_t)'/' ); if( foundBegin != transportData->end() ) { auto foundEnd = find( foundBegin, transportData->end(), 0 ); oscAddress = std::string( foundBegin, foundEnd ); } return oscAddress; } void SenderBase::send( const Message &message, OnErrorFn onErrorFn, OnCompleteFn onCompleteFn ) { sendImpl( message.getSharedBuffer(), std::move( onErrorFn ), std::move( onCompleteFn ) ); } void SenderBase::send( const Bundle &bundle, OnErrorFn onErrorFn, OnCompleteFn onCompleteFn ) { sendImpl( bundle.getSharedBuffer(), std::move( onErrorFn ), std::move( onCompleteFn ) ); } / SenderUdp SenderUdp::SenderUdp( uint16_t localPort, const std::string &destinationHost, uint16_t destinationPort, const protocol &protocol, asio::io_service &service ) : mSocket( new udp::socket( service ) ), mLocalEndpoint( protocol, localPort ), mRemoteEndpoint( udp::endpoint( address::from_string( destinationHost ), destinationPort ) ) { } SenderUdp::SenderUdp( uint16_t localPort, const protocol::endpoint &destination, const protocol &protocol, asio::io_service &service ) : mSocket( new udp::socket( service ) ), mLocalEndpoint( protocol, localPort ), mRemoteEndpoint( destination ) { } SenderUdp::SenderUdp( const UdpSocketRef &socket, const protocol::endpoint &destination ) : mSocket( socket ), mLocalEndpoint( socket->local_endpoint() ), mRemoteEndpoint( destination ) { } void SenderUdp::bindImpl() { asio::error_code ec; mSocket->open( mLocalEndpoint.protocol(), ec ); if( ec ) throw osc::Exception( ec ); mSocket->bind( mLocalEndpoint, ec ); if( ec ) throw osc::Exception( ec ); } void SenderUdp::sendImpl( const ByteBufferRef &data, OnErrorFn onErrorFn, OnCompleteFn onCompleteFn ) { if( ! mSocket->is_open() ) return; // data's first 4 bytes(int) comprise the size of the buffer, which datagram doesn't need. mSocket->async_send_to( asio::buffer( data->data() + 4, data->size() - 4 ), mRemoteEndpoint, // copy data pointer to persist the asynchronous send [&, data, onErrorFn, onCompleteFn]( const asio::error_code& error, size_t bytesTransferred ) { if( error ) { if( onErrorFn ) onErrorFn( error ); else CI_LOG_E( "Udp Send: " << error.message() << " - Code: " << error.value() ); } else if( onCompleteFn ) { onCompleteFn(); } }); } void SenderUdp::closeImpl() { asio::error_code ec; mSocket->close( ec ); if( ec ) throw osc::Exception( ec ); } / SenderTcp SenderTcp::SenderTcp( uint16_t localPort, const string &destinationHost, uint16_t destinationPort, const protocol &protocol, io_service &service, PacketFramingRef packetFraming ) : mSocket( new tcp::socket( service ) ), mPacketFraming( packetFraming ), mLocalEndpoint( protocol, localPort ), mRemoteEndpoint( tcp::endpoint( address::from_string( destinationHost ), destinationPort ) ) { } SenderTcp::SenderTcp( uint16_t localPort, const protocol::endpoint &destination, const protocol &protocol, io_service &service, PacketFramingRef packetFraming ) : mSocket( new tcp::socket( service ) ), mPacketFraming( packetFraming ), mLocalEndpoint( protocol, localPort ), mRemoteEndpoint( destination ) { } SenderTcp::SenderTcp( const TcpSocketRef &socket, const protocol::endpoint &destination, PacketFramingRef packetFraming ) : mSocket( socket ), mPacketFraming( packetFraming ), mLocalEndpoint( socket->local_endpoint() ), mRemoteEndpoint( destination ) { } SenderTcp::~SenderTcp() { try { SenderTcp::closeImpl(); } catch( osc::Exception ex ) { CI_LOG_EXCEPTION( "Closing TCP Sender", ex ); } } void SenderTcp::bindImpl() { asio::error_code ec; mSocket->open( mLocalEndpoint.protocol(), ec ); if( ec ) throw osc::Exception( ec ); mSocket->bind( mLocalEndpoint, ec ); if( ec ) throw osc::Exception( ec ); } void SenderTcp::connect( OnConnectFn onConnectFn ) { if( ! mSocket->is_open() ) { CI_LOG_E( "Socket not open." ); return; } mSocket->async_connect( mRemoteEndpoint, [&, onConnectFn]( const asio::error_code &error ){ if( onConnectFn ) onConnectFn( error ); else if( error ) CI_LOG_E( "Asio Error: " << error.message() << " - Code: " << error.value() ); }); } void SenderTcp::shutdown( asio::socket_base::shutdown_type shutdownType ) { if( ! mSocket->is_open() ) return; asio::error_code ec; mSocket->shutdown( shutdownType, ec ); // the other side may have already shutdown the connection. if( ec == asio::error::not_connected ) ec = asio::error_code(); if( ec ) throw osc::Exception( ec ); } void SenderTcp::sendImpl( const ByteBufferRef &data, OnErrorFn onErrorFn, OnCompleteFn onCompleteFn ) { if( ! mSocket->is_open() ) return; ByteBufferRef transportData = data; if( mPacketFraming ) transportData = mPacketFraming->encode( transportData ); mSocket->async_send( asio::buffer( *transportData ), // copy data pointer to persist the asynchronous send [&, transportData, onErrorFn, onCompleteFn]( const asio::error_code& error, size_t bytesTransferred ) { if( error ) { if( onErrorFn ) onErrorFn( error ); else CI_LOG_E( "Tcp Send: " << error.message() << " - Code: " << error.value() ); } else if( onCompleteFn ) { onCompleteFn(); } }); } void SenderTcp::closeImpl() { shutdown(); asio::error_code ec; mSocket->close( ec ); if( ec ) throw osc::Exception( ec ); } / ReceiverBase void ReceiverBase::setListener( const std::string &address, ListenerFn listener ) { std::lock_guard<std::mutex> lock( mListenerMutex ); auto foundListener = std::find_if( mListeners.begin(), mListeners.end(), [address]( const std::pair<std::string, ListenerFn> &listener ) { return address == listener.first; }); if( foundListener != mListeners.end() ) foundListener->second = listener; else mListeners.push_back( { address, listener } ); } void ReceiverBase::removeListener( const std::string &address ) { std::lock_guard<std::mutex> lock( mListenerMutex ); auto foundListener = std::find_if( mListeners.begin(), mListeners.end(), [address]( const std::pair<std::string, ListenerFn> &listener ) { return address == listener.first; }); if( foundListener != mListeners.end() ) mListeners.erase( foundListener ); } void ReceiverBase::dispatchMethods( uint8_t *data, uint32_t size, const asio::ip::address &senderIpAddress ) { std::vector<Message> messages; decodeData( data, size, messages ); if( messages.empty() ) return; std::lock_guard<std::mutex> lock( mListenerMutex ); // iterate through all the messages and find matches with registered methods for( auto & message : messages ) { bool dispatchedOnce = false; auto &address = message.getAddress(); message.mSenderIpAddress = senderIpAddress; for( auto & listener : mListeners ) { if( patternMatch( address, listener.first ) ) { listener.second( message ); dispatchedOnce = true; } } if( ! dispatchedOnce ) { if( <API key>.count( address ) == 0 ) { <API key>.insert( address ); CI_LOG_W("Message: " << address << " doesn't have a listener. Disregarding."); } } } } bool ReceiverBase::decodeData( uint8_t *data, uint32_t size, std::vector<Message> &messages, uint64_t timetag ) const { if( ! memcmp( data, "#bundle\0", 8 ) ) { data += 8; size -= 8; uint64_t timestamp; memcpy( &timestamp, data, 8 ); data += 8; size -= 8; while( size != 0 ) { uint32_t seg_size; memcpy( &seg_size, data, 4 ); data += 4; size -= 4; seg_size = ntohl( seg_size ); if( seg_size > size ) { CI_LOG_E( "Problem Parsing Bundle: Segment Size is greater than bundle size." ); return false; } if( !decodeData( data, seg_size, messages, ntohll( timestamp ) ) ) return false; data += seg_size; size -= seg_size; } } else { if( ! decodeMessage( data, size, messages, timetag ) ) return false; } return true; } bool ReceiverBase::decodeMessage( uint8_t *data, uint32_t size, std::vector<Message> &messages, uint64_t timetag ) const { Message message; if( ! message.bufferCache( data, size ) ) return false; messages.push_back( std::move( message ) ); return true; } bool ReceiverBase::patternMatch( const std::string& lhs, const std::string& rhs ) const { bool negate = false; bool mismatched = false; std::string::const_iterator seq_tmp; std::string::const_iterator seq = lhs.begin(); std::string::const_iterator seq_end = lhs.end(); std::string::const_iterator pattern = rhs.begin(); std::string::const_iterator pattern_end = rhs.end(); while( seq != seq_end && pattern != pattern_end ) { switch( *pattern ) { case '?': break; case '*': { // if * is the last pattern, return true if( ++pattern == pattern_end ) return true; while( *seq != *pattern && seq != seq_end ) ++seq; // if seq reaches to the end without matching pattern if( seq == seq_end ) return false; } break; case '[': { negate = false; mismatched = false; if( *( ++pattern ) == '!' ) { negate = true; ++pattern; } if( *( pattern + 1 ) == '-' ) { // range matching char c_start = *pattern; ++pattern; //assert(*pattern == '-'); char c_end = *( ++pattern ); ++pattern; //assert(*pattern == ']'); // swap c_start and c_end if c_start is larger if( c_start > c_end ) { char tmp = c_start; c_end = c_start; c_start = tmp; } mismatched = ( c_start <= *seq && *seq <= c_end ) ? negate : !negate; if( mismatched ) return false; } else { // literal matching while( *pattern != ']' ) { if( *seq == *pattern ) { mismatched = negate; break; } ++pattern; } if( mismatched ) return false; while( *pattern != ']' ) ++pattern; } } break; case '{': { seq_tmp = seq; mismatched = true; while( *( ++pattern ) != '}' ) { // this assumes that there's no sequence like "{,a}" where ',' is if( *pattern == ',' ) { mismatched = false; break; } else if( *seq != *pattern ) { // fast forward to the next ',' or '}' while( *( ++pattern ) != ',' && *pattern != '}' ); if( *pattern == '}' ) return false; // redo seq matching seq = seq_tmp; mismatched = true; } else { // matched ++seq; mismatched = false; } } if( mismatched ) return false; while( *pattern != '}' ) ++pattern; --seq; } break; default: // non-special character if( *seq != *pattern ) return false; break; } ++seq; ++pattern; } if( seq == seq_end && pattern == pattern_end ) return true; else return false; } / ReceiverUdp ReceiverUdp::ReceiverUdp( uint16_t port, const asio::ip::udp &protocol, asio::io_service &service ) : mSocket( new udp::socket( service ) ), mLocalEndpoint( protocol, port ), mAmountToReceive( 4096 ) { } ReceiverUdp::ReceiverUdp( const asio::ip::udp::endpoint &localEndpoint, asio::io_service &io ) : mSocket( new udp::socket( io ) ), mLocalEndpoint( localEndpoint ), mAmountToReceive( 4096 ) { } ReceiverUdp::ReceiverUdp( UdpSocketRef socket ) : mSocket( socket ), mLocalEndpoint( socket->local_endpoint() ), mAmountToReceive( 4096 ) { } void ReceiverUdp::bindImpl() { asio::error_code ec; mSocket->open( mLocalEndpoint.protocol(), ec ); if( ec ) throw osc::Exception( ec ); mSocket->bind( mLocalEndpoint, ec ); if( ec ) throw osc::Exception( ec ); } void ReceiverUdp::setAmountToReceive( uint32_t amountToReceive ) { mAmountToReceive.store( amountToReceive ); } void ReceiverUdp::listen( OnSocketErrorFn onSocketErrorFn ) { if ( ! mSocket->is_open() ) return; uint32_t prepareAmount = mAmountToReceive.load(); auto tempBuffer = mBuffer.prepare( prepareAmount ); auto uniqueEndpoint = std::make_shared<asio::ip::udp::endpoint>(); mSocket->async_receive_from( tempBuffer, *uniqueEndpoint, [&, uniqueEndpoint, onSocketErrorFn]( const asio::error_code &error, size_t bytesTransferred ) { if( error ) { if( onSocketErrorFn ) { if( ! onSocketErrorFn( error, *uniqueEndpoint ) ) return; } else { CI_LOG_E( "Udp Message: " << error.message() << " - Code: " << error.value() << ", Endpoint: " << uniqueEndpoint->address().to_string() ); CI_LOG_W( "Exiting Listen loop." ); return; } } else { mBuffer.commit( bytesTransferred ); auto data = std::unique_ptr<uint8_t[]>( new uint8_t[ bytesTransferred + 1 ] ); data[ bytesTransferred ] = 0; istream stream( &mBuffer ); stream.read( reinterpret_cast<char*>( data.get() ), bytesTransferred ); dispatchMethods( data.get(), bytesTransferred, uniqueEndpoint->address() ); } listen( std::move( onSocketErrorFn ) ); }); } void ReceiverUdp::closeImpl() { asio::error_code ec; mSocket->close( ec ); if( ec ) throw osc::Exception( ec ); } / ReceiverTcp ReceiverTcp::~ReceiverTcp() { ReceiverTcp::closeImpl(); } ReceiverTcp::Connection::Connection( TcpSocketRef socket, ReceiverTcp *receiver, uint64_t identifier ) : mSocket( socket ), mReceiver( receiver ), mIdentifier( identifier ), mIsConnected( true ) { } ReceiverTcp::Connection::~Connection() { mReceiver = nullptr; } asio::error_code ReceiverTcp::Connection::shutdown( asio::socket_base::shutdown_type shutdownType ) { asio::error_code ec; if( ! mSocket->is_open() || ! mIsConnected ) return ec; mSocket->shutdown( asio::socket_base::shutdown_both, ec ); mIsConnected.store( false ); // the other side may have already shutdown the connection. if( ec == asio::error::not_connected ) ec = asio::error_code(); return ec; } using iterator = asio::buffers_iterator<asio::streambuf::const_buffers_type>; std::pair<iterator, bool> ReceiverTcp::Connection::readMatchCondition( iterator begin, iterator end ) { iterator i = begin; ByteArray<4> data; int inc = 0; while ( i != end && inc < 4 ) data[inc++] = *i++; int numBytes = *reinterpret_cast<int*>( data.data() ); // swap for big endian from the other side numBytes = ntohl( numBytes ); if( inc == 4 && numBytes > 0 && numBytes + 4 <= std::distance( begin, end ) ) return { begin + numBytes + 4, true }; else return { begin, false }; } void ReceiverTcp::Connection::read() { if( ! mSocket->is_open() ) return; auto receiver = mReceiver; std::function<std::pair<iterator, bool>( iterator, iterator )> match = &readMatchCondition; if( mReceiver->mPacketFraming ) match = std::bind( &PacketFraming::messageComplete, mReceiver->mPacketFraming, std::placeholders::_1, std::placeholders::_2 ); asio::async_read_until( *mSocket, mBuffer, match, [&, receiver]( const asio::error_code &error, size_t bytesTransferred ) { if( error ) { std::lock_guard<std::mutex> lock( receiver-><API key> ); if( receiver->mConnectionErrorFn ) receiver->mConnectionErrorFn( error, mIdentifier ); else CI_LOG_E( error.message() << ", didn't receive message from " << mSocket->remote_endpoint().address().to_string() ); receiver->closeConnection( mIdentifier ); } else { ByteBufferRef data = ByteBufferRef( new ByteBuffer( bytesTransferred ) ); istream stream( &mBuffer ); stream.read( reinterpret_cast<char*>( data->data() ), bytesTransferred ); uint8_t *dataPtr = nullptr; size_t dataSize = 0; if( mReceiver->mPacketFraming ) { data = mReceiver->mPacketFraming->decode( data ); dataPtr = data->data(); dataSize = data->size(); } else { dataPtr = data->data() + 4; dataSize = data->size() - 4; } receiver->dispatchMethods( dataPtr, dataSize, mSocket->remote_endpoint().address() ); read(); } }); } ReceiverTcp::ReceiverTcp( uint16_t port, const protocol &protocol, asio::io_service &service, PacketFramingRef packetFraming ) : mAcceptor( new tcp::acceptor( service ) ), mPacketFraming( packetFraming ), mLocalEndpoint( protocol, port ), <API key>( 0 ), mIsShuttingDown( false ) { } ReceiverTcp::ReceiverTcp( const protocol::endpoint &localEndpoint, asio::io_service &service, PacketFramingRef packetFraming ) : mAcceptor( new tcp::acceptor( service ) ), mPacketFraming( packetFraming ), mLocalEndpoint( localEndpoint ), <API key>( 0 ), mIsShuttingDown( false ) { } ReceiverTcp::ReceiverTcp( AcceptorRef acceptor, PacketFramingRef packetFraming ) : mAcceptor( acceptor ), mLocalEndpoint( mAcceptor->local_endpoint() ), mPacketFraming( packetFraming ), <API key>( 0 ), mIsShuttingDown( false ) { } ReceiverTcp::ReceiverTcp( TcpSocketRef socket, PacketFramingRef packetFraming ) : mAcceptor( nullptr ), mLocalEndpoint( socket->local_endpoint() ), mPacketFraming( packetFraming ), <API key>( 0 ), mIsShuttingDown( false ) { auto identifier = <API key>++; std::lock_guard<std::mutex> lock( mConnectionMutex ); mConnections.emplace_back( new Connection( socket, this, identifier ) ); mConnections.back()->read(); } void ReceiverTcp::bindImpl() { if( ! mAcceptor || mAcceptor->is_open() ) return; asio::error_code ec; mIsShuttingDown.store( false ); mAcceptor->open( mLocalEndpoint.protocol(), ec ); if( ec ) throw osc::Exception( ec ); mAcceptor->set_option( socket_base::reuse_address( true ) ); mAcceptor->bind( mLocalEndpoint, ec ); if( ec ) throw osc::Exception( ec ); mAcceptor->listen( socket_base::max_connections, ec ); if( ec ) throw osc::Exception( ec ); } void ReceiverTcp::accept( OnAcceptErrorFn onAcceptErrorFn, OnAcceptFn onAcceptFn ) { if( ! mAcceptor || ! mAcceptor->is_open() ) return; auto socket = std::make_shared<tcp::socket>( mAcceptor->get_io_service() ); mAcceptor->async_accept( *socket, std::bind( [&, onAcceptErrorFn, onAcceptFn]( TcpSocketRef socket, const asio::error_code &error ) { if( ! error ) { auto identifier = <API key>++; { bool shouldAdd = true; if( onAcceptFn ) shouldAdd = onAcceptFn( socket, identifier ); if( shouldAdd ) { std::lock_guard<std::mutex> lock( mConnectionMutex ); mConnections.emplace_back( new Connection( socket, this, identifier ) ); mConnections.back()->read(); } } } else { if( onAcceptErrorFn ) { auto endpoint = socket->remote_endpoint(); if( ! onAcceptErrorFn( error, endpoint ) ) return; } else { CI_LOG_E( "Tcp Accept: " << error.message() << " - Code: " << error.value() ); CI_LOG_W( "Exiting Accept loop." ); return; } } accept( onAcceptErrorFn, onAcceptFn ); }, socket, _1 ) ); } void ReceiverTcp::<API key>( ConnectionErrorFn errorFn ) { std::lock_guard<std::mutex> lock( <API key> ); mConnectionErrorFn = errorFn; } void ReceiverTcp::closeAcceptor() { if( ! mAcceptor || mIsShuttingDown.load() ) return; asio::error_code ec; mAcceptor->close( ec ); if( ec ) throw osc::Exception( ec ); } void ReceiverTcp::closeImpl() { // if there's an error on a socket while shutting down the receiver, it could // cause a recursive run on the mConnectionMutex by someone listening for // connection error and attempting to close the connection on error through // the closeConnection function. This blocks against that ability. Basically, // if we're shutting down we disregard the closeConnection function. mIsShuttingDown.store( true ); closeAcceptor(); std::lock_guard<std::mutex> lock( mConnectionMutex ); for( auto & connection : mConnections ) connection->shutdown( socket_base::shutdown_both ); mConnections.clear(); } asio::error_code ReceiverTcp::closeConnection( uint64_t <API key>, asio::socket_base::shutdown_type shutdownType ) { asio::error_code ec; if( mIsShuttingDown ) return ec; std::lock_guard<std::mutex> lock( mConnectionMutex ); auto rem = remove_if( mConnections.begin(), mConnections.end(), [<API key>]( const UniqueConnection &cached ) { return cached->mIdentifier == <API key>; } ); if( rem != mConnections.end() ) { ec = (*rem)->shutdown( shutdownType ); mConnections.erase( rem ); } return ec; } ByteBufferRef SLIPPacketFraming::encode( ByteBufferRef bufferToEncode ) { // buffers in this system begin with the size, which will be removed in the case of Packet Framing. auto maxEncodedSize = 2 * (bufferToEncode->size() - 4) + 2; auto encodeBuffer = ByteBufferRef( new ByteBuffer( maxEncodedSize ) ); auto finalEncodedSize = encode( bufferToEncode->data() + 4, bufferToEncode->size() - 4, encodeBuffer->data() ); encodeBuffer->resize( finalEncodedSize ); return encodeBuffer; } ByteBufferRef SLIPPacketFraming::decode( ByteBufferRef bufferToDecode ) { // should not assume double-ENDed variant auto maxDecodedSize = bufferToDecode->size() - 1; auto decodeBuffer = ByteBufferRef( new ByteBuffer( maxDecodedSize ) ); auto finalDecodedSize = decode( bufferToDecode->data(), bufferToDecode->size(), decodeBuffer->data() ); decodeBuffer->resize( finalDecodedSize ); return decodeBuffer; } std::pair<iterator, bool> SLIPPacketFraming::messageComplete( iterator begin, iterator end ) { iterator i = begin; while( i != end ) { if( i != begin && (uint8_t)*i == SLIP_END ) { // Send back 1 past finding SLIP_END, which in this case will either // be iterator end or the next SLIP_END, beginning the next message return { i + 1, true }; } i++; } return { begin, false }; } size_t SLIPPacketFraming::encode( const uint8_t* data, size_t size, uint8_t* encodedData ) { size_t readIDX = 0, writeIDX = 0; // double-ENDed variant, will flush any accumulated line noise encodedData[writeIDX++] = SLIP_END; while (readIDX < size) { uint8_t value = data[readIDX++]; if (value == SLIP_END) { encodedData[writeIDX++] = SLIP_ESC; encodedData[writeIDX++] = SLIP_ESC_END; } else if (value == SLIP_ESC) { encodedData[writeIDX++] = SLIP_ESC; encodedData[writeIDX++] = SLIP_ESC_ESC; } else encodedData[writeIDX++] = value; } encodedData[writeIDX++] = SLIP_END; return writeIDX; } size_t SLIPPacketFraming::decode(const uint8_t* data, size_t size, uint8_t* decodedData) { size_t readIDX = 0, writeIDX = 0; while (readIDX < size) { uint8_t value = data[readIDX++]; if (value == SLIP_END) { // flush or done } else if (value == SLIP_ESC) { value = data[readIDX++]; if (value == SLIP_ESC_END) { decodedData[writeIDX++] = SLIP_END; } else if (value == SLIP_ESC_ESC) { decodedData[writeIDX++] = SLIP_ESC; } else { // protocol violation } } else { decodedData[writeIDX++] = value; } } return writeIDX; } namespace time { uint64_t <API key>( milliseconds offsetMillis ) { auto now = std::chrono::system_clock::now() + offsetMillis; auto sec = std::chrono::duration_cast<std::chrono::seconds>( now.time_since_epoch() ).count() + 0x83AA7E80; auto usec = std::chrono::duration_cast<std::chrono::microseconds>( now.time_since_epoch() ).count() + 0x7D91048BCA000; return ( sec << 32 ) + ( usec % 1000000L ); } uint64_t <API key>( milliseconds offsetFuture, int64_t localOffsetSecs, int64_t localOffsetUSecs ) { uint64_t ntp_time = <API key>( offsetFuture ); uint64_t secs = ( ntp_time >> 32 ) + localOffsetSecs; int64_t usecs = ( ntp_time & uint32_t( ~0 ) ) + localOffsetUSecs; if( usecs < 0 ) { secs += usecs / 1000000; usecs += ( usecs / 1000000 ) * 1000000; } else { secs += usecs / 1000000; usecs -= ( usecs / 1000000 ) * 1000000; } return ( secs << 32 ) + usecs; } void getDate( uint64_t ntpTime, uint32_t *year, uint32_t *month, uint32_t *day, uint32_t *hours, uint32_t *minutes, uint32_t *seconds ) { // Convert to unix timestamp. std::time_t sec_since_epoch = ( ntpTime - ( uint64_t( 0x83AA7E80 ) << 32 ) ) >> 32; auto tm = std::localtime( &sec_since_epoch ); if( year ) *year = tm->tm_year + 1900; if( month ) *month = tm->tm_mon + 1; if( day ) *day = tm->tm_mday; if( hours ) *hours = tm->tm_hour; if( minutes ) *minutes = tm->tm_min; if( seconds )*seconds = tm->tm_sec; } std::string getClockString( uint64_t ntpTime, bool includeDate ) { uint32_t year, month, day, hours, minutes, seconds; getDate( ntpTime, &year, &month, &day, &hours, &minutes, &seconds ); char buffer[128]; if( includeDate ) sprintf( buffer, "%d/%d/%d %02d:%02d:%02d", month, day, year, hours, minutes, seconds ); else sprintf( buffer, "%02d:%02d:%02d", hours, minutes, seconds ); return std::string( buffer ); } void <API key>( uint64_t ntpTime, int64_t *localOffsetSecs, int64_t *localOffsetUSecs ) { uint64_t current_ntp_time = time::<API key>(); *localOffsetSecs = ( ntpTime >> 32 ) - ( current_ntp_time >> 32 ); *localOffsetUSecs = ( ntpTime & uint32_t( ~0 ) ) - ( current_ntp_time & uint32_t( ~0 ) ); } } // namespace time } // namespace osc } // namespace cinder
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33V9h4.93l.13-.24c.24-.45.94-.28.94.24h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h1.17c.38 0 .62.4.44.74l-2.67 5c-.24.45-.94.28-.94-.24v-3.5H9.83c-.38 0-.62-.4-.44-.74L11.93 9H7v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V9h-4v3.5z" /></React.Fragment> , '<API key>');
#ifndef SITSTAMP_H #define SITSTAMP_H #include "dcmtk/config/osconfig.h" #include "dcmtk/dcmsign/sitypes.h" #ifdef WITH_OPENSSL class DcmItem; /** pure virtual base class for a timestamp client. * Instances of derived classes are able to request timestamps from a timestamp service. * Timestamps are not supported (yet). */ class <API key> SiTimeStamp { public: default constructor SiTimeStamp() { } destructor virtual ~SiTimeStamp() { } /** takes a block of raw data and requests a time stamp for this raw data. * @param inputData pointer to raw data * @param inputDataSize length of raw data block in bytes * @return status code */ virtual OFCondition stamp( const unsigned char *inputData, unsigned long inputDataSize) = 0; /** writes the current timestamp into an item of the Digital Signatures Sequence * and creates the timestamp type information in the item. * @param item item of the DigitalSignatureSQ to which the timestamp is written * @return dcmdata OFCondition status code */ virtual OFCondition write(DcmItem& item) = 0; }; #endif #endif
<?php namespace Grav\Plugin; use Grav\Common\Page\Collection; use Grav\Common\Plugin; use Grav\Common\Uri; use Grav\Common\Page\Page; use Grav\Common\Page\Types; use Grav\Common\Taxonomy; use Grav\Common\Utils; use Grav\Common\Data\Data; use RocketTheme\Toolbox\Event\Event; class SimplesearchPlugin extends Plugin { /** * @var array */ protected $query; /** * @var string */ protected $query_id; /** * @var Collection */ protected $collection; /** * @return array */ public static function getSubscribedEvents() { return [ '<API key>' => ['<API key>', 0], 'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0], 'onGetPageTemplates' => ['onGetPageTemplates', 0], ]; } /** * Add page template types. (for Admin plugin) */ public function onGetPageTemplates(Event $event) { /** @var Types $types */ $types = $event->types; $types->scanTemplates('plugins://simplesearch/templates'); } /** * Add current directory to twig lookup paths. */ public function onTwigTemplatePaths() { $this->grav['twig']->twig_paths[] = __DIR__ . '/templates'; } /** * Enable search only if url matches to the configuration. */ public function <API key>() { if ($this->isAdmin()) { return; } $this->enable([ 'onPagesInitialized' => ['onPagesInitialized', 0], 'onTwigSiteVariables' => ['onTwigSiteVariables', 0] ]); } /** * Build search results. */ public function onPagesInitialized() { $page = $this->grav['page']; // If a page exists merge the configs if ($page) { $this->config->set('plugins.simplesearch', $this->mergeConfig($page)); } /** @var Uri $uri */ $uri = $this->grav['uri']; $query = $uri->param('query') ?: $uri->query('query'); $route = $this->config->get('plugins.simplesearch.route'); // performance check for query if (empty($query)) { return; } // Support `route: '@self'` syntax if($route === '@self') { $route = $page->route(); $this->config->set('plugins.simplesearch.route', $route); } // performance check for route if (!($route && $route == $uri->path())) { return; } // Explode query into multiple strings $this->query = explode(',', $query); /** @var Taxonomy $taxonomy_map */ $taxonomy_map = $this->grav['taxonomy']; $taxonomies = []; $find_taxonomy = []; $filters = (array) $this->config->get('plugins.simplesearch.filters'); $operator = $this->config->get('plugins.simplesearch.filter_combinator', 'and'); $new_approach = false; if ( ! $filters || $query === false || (count($filters) == 1 && !reset($filters))) { /** @var \Grav\Common\Page\Pages $pages */ $pages = $this->grav['pages']; $this->collection = $pages->all(); } else { foreach ($filters as $key => $filter) { // flatten item if it's wrapped in an array if (is_int($key)) { if (is_array($filter)) { $key = key($filter); $filter = $filter[$key]; } else { $key = $filter; } } // see if the filter uses the new 'items-type' syntax if ($key === '@self' || $key === 'self@') { $new_approach = true; } elseif ($key === '@taxonomy' || $key === 'taxonomy@') { $taxonomies = $filter === false ? false : array_merge($taxonomies, (array) $filter); } else { $find_taxonomy[$key] = $filter; } } if ($new_approach) { $params = $page->header()->content; $params['query'] = $this->config->get('plugins.simplesearch.query'); $this->collection = $page->collection($params, false); } else { $this->collection = new Collection(); $this->collection->append($taxonomy_map->findTaxonomy($find_taxonomy, $operator)->toArray()); } } $extras = []; if ($query) { foreach ($this->collection as $cpage) { foreach ($this->query as $query) { $query = trim($query); if ($this->notFound($query, $cpage, $taxonomies)) { $this->collection->remove($cpage); continue; } if ($cpage->modular()) { $this->collection->remove($cpage); $parent = $cpage->parent(); $extras[$parent->path()] = ['slug' => $parent->slug()]; } } } } if (!empty($extras)) { $this->collection->append($extras); } // use a configured sorting order if not already done if (!$new_approach) { $this->collection = $this->collection->order( $this->config->get('plugins.simplesearch.order.by'), $this->config->get('plugins.simplesearch.order.dir') ); } // if page doesn't have settings set, create a page if (!isset($page->header()->simplesearch)) { // create the search page $page = new Page; $page->init(new \SplFileInfo(__DIR__ . '/pages/simplesearch.md')); // override the template is set in the config $template_override = $this->config->get('plugins.simplesearch.template'); if ($template_override) { $page->template($template_override); } // fix RuntimeException: Cannot override frozen service "page" issue unset($this->grav['page']); $this->grav['page'] = $page; } } /** * Set needed variables to display the search results. */ public function onTwigSiteVariables() { $twig = $this->grav['twig']; if ($this->query) { $twig->twig_vars['query'] = implode(', ', $this->query); $twig->twig_vars['search_results'] = $this->collection; } if ($this->config->get('plugins.simplesearch.built_in_css')) { $this->grav['assets']->add('plugin://simplesearch/css/simplesearch.css'); } } private function notFound($query, $page, $taxonomies) { $searchable_types = ['title', 'content', 'taxonomy']; $results = true; foreach ($searchable_types as $type) { if ($type === 'title') { $result = mb_stripos(strip_tags($page->title()), $query) === false; } elseif ($type === 'taxonomy') { if ($taxonomies === false) { continue; } $page_taxonomies = $page->taxonomy(); $taxonomy_match = false; foreach ((array) $page_taxonomies as $taxonomy => $values) { // if taxonomies filter set, make sure taxonomy filter is valid if (is_array($taxonomies) && !empty($taxonomies) && !in_array($taxonomy, $taxonomies)) { continue; } $taxonomy_values = implode('|',$values); if (mb_stripos($taxonomy_values, $query) !== false) { $taxonomy_match = true; break; } } $result = !$taxonomy_match; } else { $result = mb_stripos(strip_tags($page->content()), $query) === false; } $results = $results && $result; if ($results === false ) { break; } } return $results; } }
# <API key>: true require 'spec_helper' RSpec.describe 'shared/projects/_project.html.haml' do let_it_be(:project) { create(:project) } before do allow(view).to receive(:<API key>).and_return(Gitlab::CurrentSettings.<API key>) allow(view).to receive(:can?) { true } end it 'renders creator avatar if project has a creator' do render 'shared/projects/project', use_creator_avatar: true, project: project expect(rendered).to have_selector('img.avatar') end it 'renders a generic avatar if project does not have a creator' do project.creator = nil render 'shared/projects/project', use_creator_avatar: true, project: project expect(rendered).to have_selector('.project-avatar') end end
use crate::relay_directive::RelayDirective; use graphql_ir::{ FragmentDefinition, FragmentSpread, InlineFragment, OperationDefinition, Program, ScalarField, Selection, Transformed, Transformer, VariableDefinition, }; use indexmap::map::Entry; use intern::string_key::StringKeyIndexMap; use schema::Schema; use std::{ops::RangeFull, sync::Arc}; Transform to inline fragment spreads with @relay(mask:false) pub fn mask(program: &Program) -> Program { let mut transform = Mask::new(program); transform .transform_program(program) .replace_or_else(|| program.clone()) } type JoinedArguments<'s> = StringKeyIndexMap<&'s VariableDefinition>; struct Mask<'s> { program: &'s Program, <API key>: Vec<&'s VariableDefinition>, } impl<'s> Mask<'s> { fn new(program: &'s Program) -> Self { Self { program, <API key>: vec![], } } fn <API key>(&mut self, fragment: &mut FragmentDefinition) { let mut joined_arguments = JoinedArguments::default(); for variable in &fragment.<API key> { joined_arguments.insert(variable.name.item, variable); } for arg in self.<API key>.drain(..) { match joined_arguments.entry(arg.name.item) { Entry::Vacant(entry) => { entry.insert(arg); } Entry::Occupied(mut entry) => { let prev_arg = entry.get(); if self .program .schema .is_type_subtype_of(&arg.type_, &prev_arg.type_) { entry.insert(arg); } } } } let range = RangeFull; fragment.<API key> = joined_arguments .drain(range) .map(|(_, v)| v) .cloned() .collect(); } } impl<'s> Transformer for Mask<'s> { const NAME: &'static str = "MaskTransform"; const VISIT_ARGUMENTS: bool = false; const VISIT_DIRECTIVES: bool = false; fn transform_operation( &mut self, operation: &OperationDefinition, ) -> Transformed<OperationDefinition> { let result = self.<API key>(operation); self.<API key>.clear(); result } fn transform_fragment( &mut self, fragment: &FragmentDefinition, ) -> Transformed<FragmentDefinition> { let result = self.<API key>(fragment); if self.<API key>.is_empty() { result } else { Transformed::Replace(match result { Transformed::Keep => { let mut new_fragment = fragment.clone(); self.<API key>(&mut new_fragment); new_fragment } Transformed::Replace(mut new_fragment) => { self.<API key>(&mut new_fragment); new_fragment } Transformed::Delete => { panic!("Unexpected fragment deletion in mask transform."); } }) } } fn <API key>(&mut self, spread: &FragmentSpread) -> Transformed<Selection> { if RelayDirective::<API key>(spread) { let fragment = self.program.fragment(spread.fragment.item).unwrap(); self.<API key> .extend(&fragment.<API key>); Transformed::Replace(Selection::InlineFragment(Arc::new(InlineFragment { type_condition: Some(fragment.type_condition), directives: vec![], selections: self .<API key>(&fragment.selections) .replace_or_else(|| fragment.selections.to_vec()), }))) } else { Transformed::Keep } } fn <API key>(&mut self, _field: &ScalarField) -> Transformed<Selection> { Transformed::Keep } }
#ifndef <API key> #define <API key> #include <vector> #include "base/containers/scoped_ptr_hash_map.h" #include "base/files/file_path.h" #include "base/memory/scoped_ptr.h" namespace base { class DictionaryValue; } namespace asar { class ScopedTemporaryFile; // This class represents an asar package, and provides methods to read // information from it. class Archive { public: struct FileInfo { FileInfo() : size(0), offset(0) {} bool unpacked; uint32 size; uint64 offset; }; struct Stats : public FileInfo { Stats() : is_file(true), is_directory(false), is_link(false) {} bool is_file; bool is_directory; bool is_link; }; explicit Archive(const base::FilePath& path); virtual ~Archive(); // Read and parse the header. bool Init(); // Get the info of a file. bool GetFileInfo(const base::FilePath& path, FileInfo* info); // Fs.stat(path). bool Stat(const base::FilePath& path, Stats* stats); // Fs.readdir(path). bool Readdir(const base::FilePath& path, std::vector<base::FilePath>* files); // Fs.realpath(path). bool Realpath(const base::FilePath& path, base::FilePath* realpath); // Copy the file into a temporary file, and return the new path. // For unpacked file, this method will return its real path. bool CopyFileOut(const base::FilePath& path, base::FilePath* out); base::FilePath path() const { return path_; } base::DictionaryValue* header() const { return header_.get(); } private: base::FilePath path_; uint32 header_size_; scoped_ptr<base::DictionaryValue> header_; // Cached external temporary files. base::ScopedPtrHashMap<base::FilePath, ScopedTemporaryFile> external_files_; <API key>(Archive); }; } // namespace asar #endif // <API key>
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; namespace LinqToDB.DataProvider { using Common; using Data; using Linq; using Mapping; using SqlQuery; using SqlProvider; public class BasicMerge { protected class ColumnInfo { public string Name; public ColumnDescriptor Column; } protected string ByTargetText; protected StringBuilder StringBuilder = new StringBuilder(); protected List<DataParameter> Parameters = new List<DataParameter>(); protected List<ColumnInfo> Columns; protected virtual bool IsIdentitySupported { get { return false; } } public virtual int Merge<T>(DataConnection dataConnection, Expression<Func<T,bool>> predicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName) where T : class { if (!BuildCommand(dataConnection, predicate, delete, source, tableName, databaseName, schemaName)) return 0; return Execute(dataConnection); } protected virtual bool BuildCommand<T>( DataConnection dataConnection, Expression<Func<T,bool>> deletePredicate, bool delete, IEnumerable<T> source, string tableName, string databaseName, string schemaName) where T : class { var table = dataConnection.MappingSchema.GetEntityDescriptor(typeof(T)); var sqlBuilder = dataConnection.DataProvider.CreateSqlBuilder(); Columns = table.Columns .Select(c => new ColumnInfo { Column = c, Name = (string)sqlBuilder.Convert(c.ColumnName, ConvertType.NameToQueryField) }) .ToList(); StringBuilder.Append("MERGE INTO "); sqlBuilder.ConvertTableName(StringBuilder, databaseName ?? table.DatabaseName, schemaName ?? table.SchemaName, tableName ?? table.TableName); StringBuilder .AppendLine(" Target") ; if (!BuildUsing(dataConnection, source)) return false; StringBuilder .AppendLine("ON") .AppendLine("(") ; foreach (var column in Columns.Where(c => c.Column.IsPrimaryKey)) { StringBuilder .AppendFormat("\tTarget.{0} = Source.{0} AND", column.Name) .AppendLine() ; } StringBuilder.Length -= 4 + Environment.NewLine.Length; StringBuilder .AppendLine() .AppendLine(")") ; var updateColumns = Columns.Where(c => !c.Column.IsPrimaryKey && (IsIdentitySupported && c.Column.IsIdentity || !c.Column.SkipOnUpdate)).ToList(); if (updateColumns.Count > 0) { StringBuilder .AppendLine("-- update matched rows") .AppendLine("WHEN MATCHED THEN") .AppendLine("\tUPDATE") .AppendLine("\tSET") ; var maxLen = updateColumns.Max(c => c.Name.Length); foreach (var column in updateColumns) { StringBuilder .AppendFormat("\t\t{0} ", column.Name) ; StringBuilder.Append(' ', maxLen - column.Name.Length); StringBuilder .AppendFormat("= Source.{0},", column.Name) .AppendLine() ; } StringBuilder.Length -= 1 + Environment.NewLine.Length; } var insertColumns = Columns.Where(c => IsIdentitySupported && c.Column.IsIdentity || !c.Column.SkipOnInsert).ToList(); StringBuilder .AppendLine() .AppendLine("-- insert new rows") .Append("WHEN NOT MATCHED ").Append(ByTargetText).AppendLine("THEN") .AppendLine("\tINSERT") .AppendLine("\t(") ; foreach (var column in insertColumns) StringBuilder.AppendFormat("\t\t{0},", column.Name).AppendLine(); StringBuilder.Length -= 1 + Environment.NewLine.Length; StringBuilder .AppendLine() .AppendLine("\t)") .AppendLine("\tVALUES") .AppendLine("\t(") ; foreach (var column in insertColumns) StringBuilder.AppendFormat("\t\tSource.{0},", column.Name).AppendLine(); StringBuilder.Length -= 1 + Environment.NewLine.Length; StringBuilder .AppendLine() .AppendLine("\t)") ; if (delete) { var predicate = ""; if (deletePredicate != null) { var inlineParameters = dataConnection.InlineParameters; try { dataConnection.InlineParameters = true; var q = dataConnection.GetTable<T>().Where(deletePredicate); var ctx = q.GetContext(); var sql = ctx.SelectQuery; var tableSet = new HashSet<SqlTable>(); var tables = new List<SqlTable>(); var fromTable = (SqlTable)sql.From.Tables[0].Source; new QueryVisitor().Visit(sql.From, e => { if (e.ElementType == QueryElementType.TableSource) { var et = (SelectQuery.TableSource)e; tableSet.Add((SqlTable)et.Source); tables. Add((SqlTable)et.Source); } }); var whereClause = new QueryVisitor().Convert(sql.Where, e => { if (e.ElementType == QueryElementType.SqlQuery) { } if (e.ElementType == QueryElementType.SqlField) { var fld = (SqlField)e; var tbl = (SqlTable)fld.Table; if (tbl != fromTable && tableSet.Contains(tbl)) { var tempCopy = sql.Clone(); var tempTables = new List<SelectQuery.TableSource>(); new QueryVisitor().Visit(tempCopy.From, ee => { if (ee.ElementType == QueryElementType.TableSource) tempTables.Add((SelectQuery.TableSource)ee); }); var tt = tempTables[tables.IndexOf(tbl)]; tempCopy.Select.Columns.Clear(); tempCopy.Select.Add(((SqlTable)tt.Source).Fields[fld.Name]); tempCopy.Where.SearchCondition.Conditions.Clear(); var keys = tempCopy.From.Tables[0].Source.GetKeys(true); foreach (SqlField key in keys) tempCopy.Where.Field(key).Equal.Field(fromTable.Fields[key.Name]); tempCopy.ParentSelect = sql; return tempCopy; } } return e; }).SearchCondition.Conditions.ToList(); sql.Where.SearchCondition.Conditions.Clear(); sql.Where.SearchCondition.Conditions.AddRange(whereClause); sql.From.Tables[0].Alias = "Target"; ctx.SetParameters(); var pq = (DataConnection.PreparedQuery)((IDataContext)dataConnection).SetQuery(new QueryContext { SelectQuery = sql, SqlParameters = sql.Parameters.ToArray(), }); var cmd = pq.Commands[0]; predicate = "AND " + cmd.Substring(cmd.IndexOf("WHERE") + "WHERE".Length); } finally { dataConnection.InlineParameters = inlineParameters; } } StringBuilder .AppendLine("-- delete rows that are in the target but not in the sourse") .AppendLine("WHEN NOT MATCHED BY Source {0}THEN".Args(predicate)) .AppendLine("\tDELETE") ; } return true; } class QueryContext : IQueryContext { public SelectQuery SelectQuery { get; set; } public object Context { get; set; } public SqlParameter[] SqlParameters; public List<string> QueryHints { get; set; } public SqlParameter[] GetParameters() { return SqlParameters; } } protected virtual bool BuildUsing<T>(DataConnection dataConnection, IEnumerable<T> source) { var table = dataConnection.MappingSchema.GetEntityDescriptor(typeof(T)); var sqlBuilder = dataConnection.DataProvider.CreateSqlBuilder(); var pname = sqlBuilder.Convert("p", ConvertType.<API key>).ToString(); var valueConverter = dataConnection.MappingSchema.ValueToSqlConverter; StringBuilder .AppendLine("USING") .AppendLine("(") .AppendLine("\tVALUES") ; var pidx = 0; var hasData = false; var columnTypes = table.Columns .Select(c => new SqlDataType(c.DataType, c.MemberType, c.Length, c.Precision, c.Scale)) .ToArray(); foreach (var item in source) { hasData = true; StringBuilder.Append("\t("); for (var i = 0; i < table.Columns.Count; i++) { var column = table.Columns[i]; var value = column.GetValue(dataConnection.MappingSchema, item); if (!valueConverter.TryConvert(StringBuilder, columnTypes[i], value)) { var name = pname == "?" ? pname : pname + ++pidx; StringBuilder.Append(name); Parameters.Add(new DataParameter(pname == "?" ? pname : "p" + pidx, value, column.DataType)); } StringBuilder.Append(","); } StringBuilder.Length StringBuilder.AppendLine("),"); } if (hasData) { var idx = StringBuilder.Length; while (StringBuilder[--idx] != ',') {} StringBuilder.Remove(idx, 1); StringBuilder .AppendLine(")") .AppendLine("AS Source") .AppendLine("(") ; foreach (var column in Columns) StringBuilder.AppendFormat("\t{0},", column.Name).AppendLine(); StringBuilder.Length -= 1 + Environment.NewLine.Length; StringBuilder .AppendLine() .AppendLine(")") ; } return hasData; } protected bool BuildUsing2<T>(DataConnection dataConnection, IEnumerable<T> source, string top, string fromDummyTable) { var table = dataConnection.MappingSchema.GetEntityDescriptor(typeof(T)); var sqlBuilder = dataConnection.DataProvider.CreateSqlBuilder(); var pname = sqlBuilder.Convert("p", ConvertType.<API key>).ToString(); var valueConverter = dataConnection.MappingSchema.ValueToSqlConverter; StringBuilder .AppendLine("USING") .AppendLine("(") ; var pidx = 0; var hasData = false; var columnTypes = table.Columns .Select(c => new SqlDataType(c.DataType, c.MemberType, c.Length, c.Precision, c.Scale)) .ToArray(); foreach (var item in source) { if (hasData) StringBuilder.Append(" UNION ALL").AppendLine(); StringBuilder.Append("\tSELECT "); if (top != null) StringBuilder.Append(top); for (var i = 0; i < Columns.Count; i++) { var column = Columns[i]; var value = column.Column.GetValue(dataConnection.MappingSchema, item); if (!valueConverter.TryConvert(StringBuilder, columnTypes[i], value)) { var name = pname == "?" ? pname : pname + ++pidx; StringBuilder.Append(name); Parameters.Add(new DataParameter(pname == "?" ? pname : "p" + pidx, value, column.Column.DataType)); } if (!hasData) StringBuilder.Append(" as ").Append(column.Name); StringBuilder.Append(","); } StringBuilder.Length StringBuilder.Append(' ').Append(fromDummyTable); hasData = true; } if (hasData) { StringBuilder.AppendLine(); StringBuilder .AppendLine(")") .AppendLine("Source") ; } return hasData; } protected virtual int Execute(DataConnection dataConnection) { var cmd = StringBuilder.AppendLine().ToString(); return dataConnection.Execute(cmd, Parameters.ToArray()); } } }
package hudson.plugins.warnings.parser; import java.io.IOException; import java.io.Reader; import java.io.Serializable; import java.util.Collection; import java.util.Locale; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.jvnet.localizer.Localizable; import hudson.ExtensionPoint; import hudson.plugins.analysis.util.model.FileAnnotation; import hudson.plugins.analysis.util.model.Priority; import hudson.plugins.warnings.Messages; import hudson.plugins.warnings.WarningsDescriptor; /** * Parses an input stream for compiler warnings and returns the found * warnings. If your parser is based on a regular expression you can extend * from the existing base classes {@link RegexpLineParser} or * {@link <API key>}. * * @see RegexpLineParser Parses files line by line * @see <API key> Parses files using mulit-line regular expression * @see GccParser example * @see JavacParser example * * @author Ulli Hafner * @since 4.0 */ public abstract class <API key> implements ExtensionPoint, Serializable { private static final long serialVersionUID = <API key>; private final Localizable parserName; private final Localizable linkName; private final Localizable trendName; private final String name; /** * Creates a {@link Localizable} for the specified string value. * * @param string * the string to wrap * @return localized string */ protected static Localizable localize(final String string) { return hudson.plugins.warnings.parser.Messages.<API key>(string); } /** * Creates a new instance of {@link <API key>}. * * @param parserName * name of the parser * @param linkName * name of the project action link * @param trendName * name of the trend graph */ protected <API key>(final String parserName, final String linkName, final String trendName) { this(localize(parserName), localize(linkName), localize(trendName)); } /** * Creates a new instance of {@link <API key>}. * * @param parserName * name of the parser */ protected <API key>(final String parserName) { this(localize(parserName), Messages.<API key>(), Messages.<API key>()); } /** * Creates a new instance of {@link <API key>}. * * @param parserName * name of the parser * @param linkName * name of the project action link * @param trendName * name of the trend graph */ protected <API key>(final Localizable parserName, final Localizable linkName, final Localizable trendName) { this.parserName = parserName; this.linkName = linkName; this.trendName = trendName; name = parserName.toString(Locale.ENGLISH); } /** * Parses the specified input stream for compiler warnings and returns the * found annotations. Note that the implementor of this method must not * close the given reader, this is done by the framework. * * @param reader * the reader to get the text from * @return the collection of annotations * @throws IOException * Signals that an I/O exception has occurred. * @throws <API key> * Signals that the user canceled this operation */ public abstract Collection<FileAnnotation> parse(final Reader reader) throws IOException, <API key>; /** * Gets the human readable name of this parser. This name is shown in the * configuration screen of a job. If more parsers share the same name (using * the English locale) then these parsers are considered as a group. * Configuration, visualization and reporting of parsers is always based on * the associated group. * * @return the name of parser */ public Localizable getParserName() { return parserName; } /** * Gets the human readable name of this parser. This name is shown as link * in Jenkin's project view, and as title in the project summary of the * warnings plug-in. * * @return the name of parser */ public Localizable getLinkName() { return linkName; } /** * Gets the human readable name of the trend report for this parser. * * @return the name of parser */ public Localizable getTrendName() { return trendName; } @Override public String toString() { return name; } /** * Returns whether this parser is in the specified group. * * @param group the name of the group * @return <code>true</code> if this parser is in the specified group */ public boolean isInGroup(final String group) { return name.equals(group) || getId().equalsIgnoreCase(group); } /** * Returns the group of this parser. Multiple parsers can share the same * group in order to simplify the user interface. * * @return the group of this parser */ public String getGroup() { return name; } /** * Returns the ID of this parser. Normally, there is no need to override * this method since parser matching is based on the {@code group}. This * method has been introduced to ensure backward compatibility. * * @return the ID of this parser */ protected String getId() { return name; } /** * Creates a new instance of {@link Warning} using the parser's group as * warning type. * * @param fileName * the name of the file * @param start * the first line of the line range * @param category * the warning category * @param message * the message of the warning * @return the warning */ public Warning createWarning(final String fileName, final int start, final String category, final String message) { return new Warning(fileName, start, getGroup(), category, message); } /** * Creates a new instance of {@link Warning} using the parser's group as * warning type. No category will be set. * * @param fileName * the name of the file * @param start * the first line of the line range * @param message * the message of the warning * @return the warning */ public Warning createWarning(final String fileName, final int start, final String message) { return createWarning(fileName, start, StringUtils.EMPTY, message); } /** * Creates a new instance of {@link Warning} using the parser's group as warning type. * * @param fileName * the name of the file * @param start * the first line of the line range * @param category * the warning category * @param message * the message of the warning * @param priority * the priority of the warning * @return the warning */ public Warning createWarning(final String fileName, final int start, final String category, final String message, final Priority priority) { return new Warning(fileName, start, getGroup(), category, message, priority); } /** * Creates a new instance of {@link Warning}. * * @param fileName * the name of the file * @param start * the first line of the line range * @param type * the type of warning * @param category * the warning category * @param message * the message of the warning * @param priority * the priority of the warning * @return the warning * @since 4.24 */ public Warning createWarning(final String fileName, final int start, final String type, final String category, final String message, final Priority priority) { return new Warning(fileName, start, type, category, message, priority); } /** * Creates a new instance of {@link Warning} using the parser's group as * warning type. No category will be set. * * @param fileName * the name of the file * @param start * the first line of the line range * @param message * the message of the warning * @param priority * the priority of the warning * @return the warning */ public Warning createWarning(final String fileName, final int start, final String message, final Priority priority) { return createWarning(fileName, start, StringUtils.EMPTY, message, priority); } /** * Returns the small image used for the side bar link. * * @return small image */ public String getSmallImage() { return WarningsDescriptor.SMALL_ICON_URL; } /** * Returns the large image used for the build summary. * * @return large image */ public String getLargeImage() { return WarningsDescriptor.LARGE_ICON_URL; } /** * Converts a string line number to an integer value. If the string is not a * valid line number, then 0 is returned which indicates a warning at the * top of the file. * * @param lineNumber * the line number (as a string) * @return the line number */ protected final int getLineNumber(final String lineNumber) { return convertLineNumber(lineNumber); } /** * Converts a string line number to an integer value. If the string is not a * valid line number, then 0 is returned which indicates a warning at the * top of the file. * * @param lineNumber * the line number (as a string) * @return the line number * @since 4.37 */ public static int convertLineNumber(final String lineNumber) { if (StringUtils.isNotBlank(lineNumber)) { try { return Integer.parseInt(lineNumber); } catch (<API key> exception) { // ignore and return 0 } } return 0; } /** * Escapes the characters in a {@code String} using XML entities. * * @param text the text to escape * @return the escaped text * @see StringEscapeUtils#escapeXml11 */ protected String escapeXml(final String text) { return StringEscapeUtils.escapeXml10(text); } }
.rtop,.artop{display:block} .rtop *,.artop *{display:block;height:1px;overflow:hidden;font-size:1px} .artop *{border-style: solid;border-width:0 1px} .r1,.rl1,.re1,.rel1{margin-left:5px} .r1,.rr1,.re1,.rer1{margin-right:5px} .r2,.rl2,.re2,.rel2,.ra1,.ral1{margin-left:3px} .r2,.rr2,.re2,.rer2,.ra1,.rar1{margin-right:3px} .r3,.rl3,.re3,.rel3,.ra2,.ral2,.rs1,.rsl1,.res1,.resl1{margin-left:2px} .r3,.rr3,.re3,.rer3,.ra2,.rar2,.rs1,.rsr1,.res1,.resr1{margin-right:2px} .r4,.rl4,.rs2,.rsl2,.re4,.rel4,.ra3,.ral3,.ras1,.rasl1,.res2,.resl2{margin-left:1px} .r4,.rr4,.rs2,.rsr2,.re4,.rer4,.ra3,.rar3,.ras1,.rasr1,.res2,.resr2{margin-right:1px} .rx1,.rxl1{border-left-width:5px} .rx1,.rxr1{border-right-width:5px} .rx2,.rxl2{border-left-width:3px} .rx2,.rxr2{border-right-width:3px} .re2,.rel2,.ra1,.ral1,.rx3,.rxl3,.rxs1,.rxsl1{border-left-width:2px} .re2,.rer2,.ra1,.rar1,.rx3,.rxr3,.rxs1,.rxsr1{border-right-width:2px} .rxl1,.rxl2,.rxl3,.rxl4,.rxsl1,.rxsl2,.ral1,.ral2,.ral3,.ral4,.rasl1,.rasl2{border-right-width:0} .rxr1,.rxr2,.rxr3,.rxr4,.rxsr1,.rxsr2,.rar1,.rar2,.rar3,.rar4,.rasr1,.rasr2{border-left-width:0} .r4,.rl4,.rr4,.re4,.rel4,.rer4,.ra4,.rar4,.ral4,.rx4,.rxl4,.rxr4{height:2px} .rer1,.rel1,.re1,.res1,.resl1,.resr1{border-width:1px 0 0;height:0px !important;height :1px}
require File.dirname(__FILE__) + '/../../spec_helper' require File.dirname(__FILE__) + '/fixtures/classes' describe "Kernel.respond_to?" do it "indicates if a singleton object responds to a particular message" do class KernelSpecs::Foo; def self.bar; 'done'; end; end KernelSpecs::Foo.respond_to?(:bar).should == true KernelSpecs::Foo.respond_to?(:baz).should == false end end describe "Kernel#respond_to?" do before :each do @a = KernelSpecs::A.new end it "returns false if the given method was undefined" do @a.respond_to?(:undefed_method).should == false @a.respond_to?("undefed_method").should == false end it "returns true if obj responds to the given public method" do @a.respond_to?("five").should == false @a.respond_to?(:pub_method).should == true @a.respond_to?("pub_method").should == true end it "returns true if obj responds to the given protected method" do @a.respond_to?("five", true).should == false @a.respond_to?(:protected_method, false).should == true @a.respond_to?("protected_method", false).should == true end it "returns true if obj responds to the given protected method, include_private = true" do @a.respond_to?("seven").should == false @a.respond_to?(:protected_method).should == true @a.respond_to?("protected_method").should == true end it "returns true if obj responds to the given protected method" do @a.respond_to?("seven", true).should == false @a.respond_to?(:protected_method, false).should == true @a.respond_to?("protected_method", false).should == true end it "returns true if obj responds to the given private method, include_private = true" do @a.respond_to?("six").should == false @a.respond_to?(:private_method).should == false @a.respond_to?("private_method").should == false end it "returns true if obj responds to the given private method" do @a.respond_to?("six", true).should == false @a.respond_to?(:private_method, true).should == true @a.respond_to?("private_method", true).should == true end it "indicates if an object responds to a particular message" do class KernelSpecs::Foo; def bar; 'done'; end; end KernelSpecs::Foo.new.respond_to?(:bar).should == true KernelSpecs::Foo.new.respond_to?(:<API key>).should == false end ruby_version_is "1.9" do platform_is :os => :windows do it "returns false for a method which exists but is unimplemented" do Process.methods.include?(:fork).should be_true Process.respond_to?(:fork).should be_false lambda { Process.fork }.should raise_error(NotImplementedError) end end platform_is :os => [:linux, :openbsd] do it "returns false for a method which exists but is unimplemented" do File.methods.include?(:lchmod).should be_true File.respond_to?(:lchmod).should be_false lambda { File.lchmod }.should raise_error(NotImplementedError) end end end end
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OfficeDevPnP.PartnerPack.Infrastructure.Jobs { <summary> Provides extension methods for Provisioning Jobs </summary> public static class JobExtensions { public static Stream ToJsonStream(this ProvisioningJob job) { String jsonString = JsonConvert.SerializeObject(job); Byte[] jsonBytes = System.Text.Encoding.Unicode.GetBytes(jsonString); MemoryStream jsonStream = new MemoryStream(jsonBytes); jsonStream.Position = 0; return (jsonStream); } public static Byte[] ToByteArray(this Stream stream) { long originalPosition = 0; if (stream.CanSeek) { originalPosition = stream.Position; stream.Position = 0; } try { byte[] readBuffer = new byte[40960]; int totalBytesRead = 0; int bytesRead; while ((bytesRead = stream.Read(readBuffer, totalBytesRead, readBuffer.Length - totalBytesRead)) > 0) { totalBytesRead += bytesRead; if (totalBytesRead == readBuffer.Length) { int nextByte = stream.ReadByte(); if (nextByte != -1) { byte[] temp = new byte[readBuffer.Length * 2]; Buffer.BlockCopy(readBuffer, 0, temp, 0, readBuffer.Length); Buffer.SetByte(temp, totalBytesRead, (byte)nextByte); readBuffer = temp; totalBytesRead++; } } } byte[] buffer = readBuffer; if (readBuffer.Length != totalBytesRead) { buffer = new byte[totalBytesRead]; Buffer.BlockCopy(readBuffer, 0, buffer, 0, totalBytesRead); } return buffer; } finally { if (stream.CanSeek) { stream.Position = originalPosition; } } } public static ProvisioningJob FromJsonStream(this Stream serializedJob, String jobType) { using (StreamReader sr = new StreamReader(serializedJob, Encoding.Unicode, true)) { Type targetJobType = Type.GetType(jobType, true); JsonSerializer json = new JsonSerializer(); return ((ProvisioningJob)json.Deserialize(sr, targetJobType)); } } public static Stream ToStream(this Byte[] data) { MemoryStream mem = new MemoryStream(); mem.Write(data, 0, data.Length); mem.Position = 0; return (mem); } } }
export default (theme) => ({ root: { theme.flexRowCenter, alignItems: 'center', cursor: 'pointer', height: '200px', width: '300px', margin: theme.spacing(0.5), padding: theme.spacing(1.3), overflow: 'hidden' }, newIcon: { width: '6rem', height: '6rem', transition: 'all 800ms cubic-bezier(0.25,0.1,0.25,1) 0ms', '&:hover': { color: '#757575' } } })
using System.Collections.Generic; namespace Fitbit.Models { public class WaterData { public List<WaterLog> Water { get; set; } public WaterSummary Summary { get; set; } //amount of LIQUIDS units in the selected unit system } }
package com.viesis.viescraft.common.utils.events; import com.viesis.viescraft.common.entity.airshipcolors.EntityAirshipBaseVC; import com.viesis.viescraft.init.InitAchievementsVC; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; public class <API key> { }
class Solution: """ @param A : a list of integers @param target : an integer to be searched @return : a list of length 2, [index1, index2] """ def searchRange(self, A, target): # write your code here res = [] l, r = 0, len(A) - 1 while l <= r: m = (l + r) / 2 if A[m] >= target: r = m - 1 else: l = m + 1 res.append(l) l, r = 0, len(A) - 1 while l <= r: m = (l + r) / 2 if A[m] > target: r = m - 1 else: l = l + 1 res.append(r) if res[0] > res[1]: return [-1, -1] return res
<?php namespace Fuel\Migrations; class Create_posts { public function up() { \DBUtil::create_table('posts', array( 'id' => array('constraint' => 11, 'type' => 'int', 'auto_increment' => true), 'title' => array('constraint' => 255, 'type' => 'varchar'), 'slug' => array('constraint' => 255, 'type' => 'varchar'), 'summary' => array('type' => 'text'), 'body' => array('type' => 'text'), 'user_id' => array('constraint' => 11, 'type' => 'int'), 'created_at' => array('constraint' => 11, 'type' => 'int'), 'updated_at' => array('constraint' => 11, 'type' => 'int'), ), array('id')); } public function down() { \DBUtil::drop_table('posts'); } }
'use strict'; var xml2js = require('xml2js'); var ejs = require('ejs'); var Session = require('./session'); var List = require('./list'); var WXBizMsgCrypt = require('wechat-crypto'); var tpl = ['<xml>', '<ToUserName><![CDATA[<%-toUsername%>]]></ToUserName>', '<FromUserName><![CDATA[<%-fromUsername%>]]></FromUserName>', '<CreateTime><%=createTime%></CreateTime>', '<MsgType><![CDATA[<%=msgType%>]]></MsgType>', '<% if (msgType === "news") { %>', '<ArticleCount><%=content.length%></ArticleCount>', '<Articles>', '<% content.forEach(function(item){ %>', '<item>', '<Title><![CDATA[<%-item.title%>]]></Title>', '<Description><![CDATA[<%-item.description%>]]></Description>', '<PicUrl><![CDATA[<%-item.picUrl || item.picurl || item.pic %>]]></PicUrl>', '<Url><![CDATA[<%-item.url%>]]></Url>', '</item>', '<% }); %>', '</Articles>', '<% } else if (msgType === "music") { %>', '<Music>', '<Title><![CDATA[<%-content.title%>]]></Title>', '<Description><![CDATA[<%-content.description%>]]></Description>', '<MusicUrl><![CDATA[<%-content.musicUrl || content.url %>]]></MusicUrl>', '<HQMusicUrl><![CDATA[<%-content.hqMusicUrl || content.hqUrl %>]]></HQMusicUrl>', '</Music>', '<% } else if (msgType === "voice") { %>', '<Voice>', '<MediaId><![CDATA[<%-content.mediaId%>]]></MediaId>', '</Voice>', '<% } else if (msgType === "image") { %>', '<Image>', '<MediaId><![CDATA[<%-content.mediaId%>]]></MediaId>', '</Image>', '<% } else if (msgType === "video") { %>', '<Video>', '<MediaId><![CDATA[<%-content.mediaId%>]]></MediaId>', '<Title><![CDATA[<%-content.title%>]]></Title>', '<Description><![CDATA[<%-content.description%>]]></Description>', '</Video>', '<% } else if (msgType === "<API key>") { %>', '<% if (content && content.kfAccount) { %>', '<TransInfo>', '<KfAccount><![CDATA[<%-content.kfAccount%>]]></KfAccount>', '</TransInfo>', '<% } %>', '<% } else { %>', '<Content><![CDATA[<%-content%>]]></Content>', '<% } %>', '</xml>'].join(''); var compiled = ejs.compile(tpl); var wrapTpl = '<xml>' + '<Encrypt><![CDATA[<%-encrypt%>]]></Encrypt>' + '<MsgSignature><![CDATA[<%-signature%>]]></MsgSignature>' + '<TimeStamp><%-timestamp%></TimeStamp>' + '<Nonce><![CDATA[<%-nonce%>]]></Nonce>' + '</xml>'; var encryptWrap = ejs.compile(wrapTpl); var load = function (stream, callback) { var buffers = []; stream.on('data', function (trunk) { buffers.push(trunk); }); stream.on('end', function () { callback(null, Buffer.concat(buffers)); }); stream.once('error', callback); }; /*! * xml2js */ var formatMessage = function (result) { var message = {}; if (typeof result === 'object') { for (var key in result) { if (result[key].length === 1) { var val = result[key][0]; if (typeof val === 'object') { message[key] = formatMessage(val); } else { message[key] = (val || '').trim(); } } else { message = result[key].map(formatMessage); } } } return message; }; /*! * xml */ var reply = function (content, fromUsername, toUsername) { var info = {}; var type = 'text'; info.content = content || ''; if (Array.isArray(content)) { type = 'news'; } else if (typeof content === 'object') { if (content.hasOwnProperty('type')) { type = content.type; info.content = content.content; } else { type = 'music'; } } info.msgType = type; info.createTime = new Date().getTime(); info.toUsername = toUsername; info.fromUsername = fromUsername; return compiled(info); }; var respond = function (handler) { return function (req, res, next) { var message = req.weixin; var callback = handler.getHandler(message.MsgType); res.reply = function (content) { res.writeHead(200); if (!content) { return res.end(); } var xml = reply(content, message.ToUserName, message.FromUserName); var cryptor = req.cryptor || handler.cryptor; var wrap = {}; wrap.encrypt = cryptor.encrypt(xml); wrap.nonce = parseInt((Math.random() * 100000000000), 10); wrap.timestamp = new Date().getTime(); wrap.signature = cryptor.getSignature(wrap.timestamp, wrap.nonce, wrap.encrypt); res.end(encryptWrap(wrap)); }; var done = function () { // session_wait if (message.MsgType === 'text' && req.wxsession && req.wxsession._wait) { var list = List.get(req.wxsession._wait); var handle = list.get(message.Content); var wrapper = function (message) { return handler.handle ? function(req, res) { res.reply(message); } : function (info, req, res) { res.reply(message); }; }; if (handle) { callback = typeof handle === 'string' ? wrapper(handle) : handle; } } // API if (handler.handle) { callback(req, res, next); } else { callback(message, req, res, next); } }; if (req.sessionStore) { var storage = req.sessionStore; var _end = res.end; var openid = message.FromUserName + ':' + message.ToUserName; res.end = function () { _end.apply(res, arguments); if (req.wxsession) { req.wxsession.save(); } }; res.wait = function (name, callback) { var list = List.get(name); if (list) { req.wxsession._wait = name; res.reply(list.description); } else { var err = new Error('Undefined list: ' + name); err.name = 'UndefinedListError'; res.writeHead(500); res.end(err.name); callback && callback(err); } }; res.nowait = function () { delete req.wxsession._wait; res.reply.apply(res, arguments); }; storage.get(openid, function (err, session) { if (!session) { req.wxsession = new Session(openid, req); req.wxsession.cookie = req.session.cookie; } else { req.wxsession = new Session(openid, req, session); } done(); }); } else { done(); } }; }; /** * Handler * @param {Object} config * @param {Function} handle handle * * config: * ``` * { * token: '', // Token * encodingAESKey: '', // EncodingAESKey * corpId: '', // CorpId * } * ``` */ var Handler = function (config, handle) { this.config = config; this.handlers = {}; this.handle = handle; }; /** * handler * handler * * - `text(fn)` * - `image(fn)` * - `voice(fn)` * - `video(fn)` * - `location(fn)` * - `link(fn)` * - `event(fn)` * @param {String} type handler * @param {Function} handle handle */ Handler.prototype.setHandler = function (type, fn) { this.handlers[type] = fn; return this; }; ['text', 'image', 'voice', 'video', 'location', 'link', 'event'].forEach(function (method) { Handler.prototype[method] = function (fn) { return this.setHandler(method, fn); }; }); /** * handler * @param {String} type */ Handler.prototype.getHandler = function (type) { return this.handle || this.handlers[type] || function (info, req, res, next) { next(); }; }; /** * Handler */ Handler.prototype.middlewarify = function () { var that = this; var config = this.config; that.cryptor = new WXBizMsgCrypt(config.token, config.encodingAESKey, config.corpId); var _respond = respond(this); return function (req, res, next) { var method = req.method; var signature = req.query.msg_signature; var timestamp = req.query.timestamp; var nonce = req.query.nonce; var cryptor = req.cryptor || that.cryptor; if (method === 'GET') { var echostr = req.query.echostr; if (signature !== cryptor.getSignature(timestamp, nonce, echostr)) { res.writeHead(401); res.end('Invalid signature'); return; } var result = cryptor.decrypt(echostr); // TODO corpId res.writeHead(200); res.end(result.message); } else if (method === 'POST') { load(req, function (err, buf) { if (err) { return next(err); } var xml = buf.toString('utf-8'); if (!xml) { var emptyErr = new Error('body is empty'); emptyErr.name = 'Wechat'; return next(emptyErr); } xml2js.parseString(xml, {trim: true}, function (err, result) { if (err) { err.name = 'BadMessage' + err.name; return next(err); } var xml = formatMessage(result.xml); var encryptMessage = xml.Encrypt; if (signature !== cryptor.getSignature(timestamp, nonce, encryptMessage)) { res.writeHead(401); res.end('Invalid signature'); return; } var decrypted = cryptor.decrypt(encryptMessage); var messageWrapXml = decrypted.message; if (messageWrapXml === '') { res.writeHead(401); res.end('Invalid corpid'); return; } req.weixin_xml = messageWrapXml; xml2js.parseString(messageWrapXml, {trim: true}, function (err, result) { if (err) { err.name = 'BadMessage' + err.name; return next(err); } req.weixin = formatMessage(result.xml); _respond(req, res, next); }); }); }); } else { res.writeHead(501); res.end('Not Implemented'); } }; }; /** * * * Examples: * wechat * ``` * wechat(config, function (req, res, next) {}); * * wechat(config, wechat.text(function (message, req, res, next) { * // TODO * }).location(function (message, req, res, next) { * // TODO * })); * * wechat(config) * .text(function (message, req, res, next) { * // TODO * }).location(function (message, req, res, next) { * // TODO * }).middleware(); * ``` * * * - `text`(text, req, res, next) * - `image`(image, req, res, next) * - `voice`(voice, req, res, next) * - `video`(video, req, res, next) * - `location`(location, req, res, next) * - `link`(link, req, res, next) * - `event`(event, req, res, next) * @param {Object} config * @param {Function} handle */ var middleware = function (config, handle) { if (arguments.length === 1) { return new Handler(config); } if (handle instanceof Handler) { handle.config = config; return handle.middlewarify(); } else { return new Handler(config, handle).middlewarify(); } }; ['text', 'image', 'voice', 'video', 'location', 'link', 'event'].forEach(function (method) { middleware[method] = function (fn) { return (new Handler())[method](fn); }; }); middleware.reply = reply; middleware.encryptWrap = encryptWrap; middleware.toXML = compiled; module.exports = middleware;
'use strict'; var rimraf = require('rimraf'); var expect = require('expect'); function cleanup(glob) { return function(cb) { this.timeout(20000); expect.restoreSpies(); if (!glob) { return cb(); } rimraf(glob, cb); }; } module.exports = cleanup;
package org.knowm.xchange.gemini.v1; import java.io.IOException; import java.util.List; import org.knowm.xchange.BaseExchange; import org.knowm.xchange.<API key>; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.exceptions.ExchangeException; import org.knowm.xchange.gemini.v1.service.<API key>; import org.knowm.xchange.gemini.v1.service.<API key>; import org.knowm.xchange.gemini.v1.service.<API key>; import org.knowm.xchange.gemini.v1.service.GeminiTradeService; public class GeminiExchange extends BaseExchange { @Override protected void initServices() { concludeHostParams(<API key>); this.marketDataService = new <API key>(this); this.accountService = new <API key>(this); this.tradeService = new GeminiTradeService(this); } @Override public void applySpecification(<API key> <API key>) { super.applySpecification(<API key>); concludeHostParams(<API key>); } /** Adjust host parameters depending on exchange specific parameters */ private static void concludeHostParams(<API key> <API key>) { if (<API key>.<API key>() != null) { if (<API key>.<API key>("Use_Sandbox").equals(true)) { <API key>.setSslUri("https://api.sandbox.gemini.com"); <API key>.setHost("api.sandbox.gemini.com"); } } } @Override public <API key> <API key>() { <API key> <API key> = new <API key>(this.getClass()); <API key>.setSslUri("https://api.Gemini.com/"); <API key>.setHost("api.Gemini.com"); <API key>.setPort(80); <API key>.setExchangeName("Gemini"); <API key>.<API key>("Gemini is a bitcoin exchange."); <API key>.<API key>("Use_Sandbox", false); return <API key>; } @Override public void remoteInit() throws IOException, ExchangeException { <API key> dataService = (<API key>) this.marketDataService; List<CurrencyPair> currencyPairs = dataService.getExchangeSymbols(); exchangeMetaData = GeminiAdapters.adaptMetaData(currencyPairs, exchangeMetaData); } @Override public <API key> <API key>() { return super.<API key>(); } }
<?php namespace Symfony\Component\PropertyInfo\Extractor; use Symfony\Component\PropertyInfo\<API key>; use Symfony\Component\PropertyInfo\<API key>; use Symfony\Component\PropertyInfo\<API key>; use Symfony\Component\PropertyInfo\PropertyReadInfo; use Symfony\Component\PropertyInfo\<API key>; use Symfony\Component\PropertyInfo\<API key>; use Symfony\Component\PropertyInfo\PropertyWriteInfo; use Symfony\Component\PropertyInfo\<API key>; use Symfony\Component\PropertyInfo\Type; use Symfony\Component\String\Inflector\EnglishInflector; use Symfony\Component\String\Inflector\InflectorInterface; class ReflectionExtractor implements <API key>, <API key>, <API key>, <API key>, <API key>, <API key> { /** * @internal */ public static $<API key> = ['add', 'remove', 'set']; /** * @internal */ public static $<API key> = ['get', 'is', 'has', 'can']; /** * @internal */ public static $<API key> = ['add', 'remove']; public const ALLOW_PRIVATE = 1; public const ALLOW_PROTECTED = 2; public const ALLOW_PUBLIC = 4; private const MAP_TYPES = [ 'integer' => Type::BUILTIN_TYPE_INT, 'boolean' => Type::BUILTIN_TYPE_BOOL, 'double' => Type::BUILTIN_TYPE_FLOAT, ]; private $mutatorPrefixes; private $accessorPrefixes; private $<API key>; private $<API key>; private $<API key>; private $<API key>; private $inflector; private $<API key>; private $<API key>; /** * @param string[]|null $mutatorPrefixes * @param string[]|null $accessorPrefixes * @param string[]|null $<API key> */ public function __construct(array $mutatorPrefixes = null, array $accessorPrefixes = null, array $<API key> = null, bool $<API key> = true, int $accessFlags = self::ALLOW_PUBLIC, InflectorInterface $inflector = null) { $this->mutatorPrefixes = null !== $mutatorPrefixes ? $mutatorPrefixes : self::$<API key>; $this->accessorPrefixes = null !== $accessorPrefixes ? $accessorPrefixes : self::$<API key>; $this-><API key> = null !== $<API key> ? $<API key> : self::$<API key>; $this-><API key> = $<API key>; $this-><API key> = $this->getMethodsFlags($accessFlags); $this-><API key> = $this->getPropertyFlags($accessFlags); $this->inflector = $inflector ?? new EnglishInflector(); $this-><API key> = array_merge($this-><API key>, array_diff($this->mutatorPrefixes, $this-><API key>)); $this-><API key> = array_reverse($this-><API key>); } /** * {@inheritdoc} */ public function getProperties(string $class, array $context = []): ?array { try { $reflectionClass = new \ReflectionClass($class); } catch (\ReflectionException $e) { return null; } $<API key> = $reflectionClass->getProperties(); $properties = []; foreach ($<API key> as $reflectionProperty) { if ($reflectionProperty->getModifiers() & $this-><API key>) { $properties[$reflectionProperty->name] = $reflectionProperty->name; } } foreach ($reflectionClass->getMethods($this-><API key>) as $reflectionMethod) { if ($reflectionMethod->isStatic()) { continue; } $propertyName = $this->getPropertyName($reflectionMethod->name, $<API key>); if (!$propertyName || isset($properties[$propertyName])) { continue; } if ($reflectionClass->hasProperty($<API key> = lcfirst($propertyName)) || (!$reflectionClass->hasProperty($propertyName) && !preg_match('/^[A-Z]{2,}/', $propertyName))) { $propertyName = $<API key>; } $properties[$propertyName] = $propertyName; } return $properties ? array_values($properties) : null; } /** * {@inheritdoc} */ public function getTypes(string $class, string $property, array $context = []): ?array { if (\PHP_VERSION_ID >= 70400) { try { $reflectionProperty = new \ReflectionProperty($class, $property); $type = $reflectionProperty->getType(); if (null !== $type) { return $this-><API key>($type, $reflectionProperty->getDeclaringClass()); } } catch (\ReflectionException $e) { // noop } } if ($fromMutator = $this->extractFromMutator($class, $property)) { return $fromMutator; } if ($fromAccessor = $this->extractFromAccessor($class, $property)) { return $fromAccessor; } if ( ($context['<API key>'] ?? $this-><API key>) && $fromConstructor = $this-><API key>($class, $property) ) { return $fromConstructor; } if ($fromDefaultValue = $this-><API key>($class, $property)) { return $fromDefaultValue; } return null; } /** * {@inheritdoc} */ public function isReadable(string $class, string $property, array $context = []): ?bool { if ($this->isAllowedProperty($class, $property)) { return true; } return null !== $this->getReadInfo($class, $property, $context); } /** * {@inheritdoc} */ public function isWritable(string $class, string $property, array $context = []): ?bool { if ($this->isAllowedProperty($class, $property)) { return true; } list($reflectionMethod) = $this->getMutatorMethod($class, $property); return null !== $reflectionMethod; } /** * {@inheritdoc} */ public function isInitializable(string $class, string $property, array $context = []): ?bool { try { $reflectionClass = new \ReflectionClass($class); } catch (\ReflectionException $e) { return null; } if (!$reflectionClass->isInstantiable()) { return false; } if ($constructor = $reflectionClass->getConstructor()) { foreach ($constructor->getParameters() as $parameter) { if ($property === $parameter->name) { return true; } } } elseif ($parentClass = $reflectionClass->getParentClass()) { return $this->isInitializable($parentClass->getName(), $property); } return false; } /** * {@inheritdoc} */ public function getReadInfo(string $class, string $property, array $context = []): ?PropertyReadInfo { try { $reflClass = new \ReflectionClass($class); } catch (\ReflectionException $e) { return null; } $allowGetterSetter = $context['<API key>'] ?? false; $allowMagicCall = $context['<API key>'] ?? false; $hasProperty = $reflClass->hasProperty($property); $camelProp = $this->camelize($property); $getsetter = lcfirst($camelProp); // jQuery style, e.g. read: last(), write: last($item) foreach ($this->accessorPrefixes as $prefix) { $methodName = $prefix.$camelProp; if ($reflClass->hasMethod($methodName) && ($reflClass->getMethod($methodName)->getModifiers() & $this-><API key>)) { $method = $reflClass->getMethod($methodName); return new PropertyReadInfo(PropertyReadInfo::TYPE_METHOD, $methodName, $this-><API key>($method), $method->isStatic(), false); } } if ($allowGetterSetter && $reflClass->hasMethod($getsetter) && ($reflClass->getMethod($getsetter)->getModifiers() & $this-><API key>)) { $method = $reflClass->getMethod($getsetter); return new PropertyReadInfo(PropertyReadInfo::TYPE_METHOD, $getsetter, $this-><API key>($method), $method->isStatic(), false); } if ($hasProperty && ($reflClass->getProperty($property)->getModifiers() & $this-><API key>)) { $reflProperty = $reflClass->getProperty($property); return new PropertyReadInfo(PropertyReadInfo::TYPE_PROPERTY, $property, $this-><API key>($reflProperty), $reflProperty->isStatic(), true); } if ($reflClass->hasMethod('__get') && ($reflClass->getMethod('__get')->getModifiers() & $this-><API key>)) { return new PropertyReadInfo(PropertyReadInfo::TYPE_PROPERTY, $property, PropertyReadInfo::VISIBILITY_PUBLIC, false, false); } if ($allowMagicCall && $reflClass->hasMethod('__call') && ($reflClass->getMethod('__call')->getModifiers() & $this-><API key>)) { return new PropertyReadInfo(PropertyReadInfo::TYPE_METHOD, 'get'.$camelProp, PropertyReadInfo::VISIBILITY_PUBLIC, false, false); } return null; } /** * {@inheritdoc} */ public function getWriteInfo(string $class, string $property, array $context = []): PropertyWriteInfo { try { $reflClass = new \ReflectionClass($class); } catch (\ReflectionException $e) { return null; } $allowGetterSetter = $context['<API key>'] ?? false; $allowMagicCall = $context['<API key>'] ?? false; $allowConstruct = $context['<API key>'] ?? $this-><API key>; $allowAdderRemover = $context['<API key>'] ?? true; $camelized = $this->camelize($property); $constructor = $reflClass->getConstructor(); $singulars = $this->inflector->singularize($camelized); $errors = []; if (null !== $constructor && $allowConstruct) { foreach ($constructor->getParameters() as $parameter) { if ($parameter->getName() === $property) { return new PropertyWriteInfo(PropertyWriteInfo::TYPE_CONSTRUCTOR, $property); } } } [$adderAccessName, $removerAccessName, $<API key>] = $this->findAdderAndRemover($reflClass, $singulars); if ($allowAdderRemover && null !== $adderAccessName && null !== $removerAccessName) { $adderMethod = $reflClass->getMethod($adderAccessName); $removerMethod = $reflClass->getMethod($removerAccessName); $mutator = new PropertyWriteInfo(PropertyWriteInfo::<API key>); $mutator->setAdderInfo(new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD, $adderAccessName, $this-><API key>($adderMethod), $adderMethod->isStatic())); $mutator->setRemoverInfo(new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD, $removerAccessName, $this-><API key>($removerMethod), $removerMethod->isStatic())); return $mutator; } else { $errors = array_merge($errors, $<API key>); } foreach ($this->mutatorPrefixes as $mutatorPrefix) { $methodName = $mutatorPrefix.$camelized; [$accessible, $<API key>] = $this->isMethodAccessible($reflClass, $methodName, 1); if (!$accessible) { $errors = array_merge($errors, $<API key>); continue; } $method = $reflClass->getMethod($methodName); if (!\in_array($mutatorPrefix, $this-><API key>, true)) { return new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD, $methodName, $this-><API key>($method), $method->isStatic()); } } $getsetter = lcfirst($camelized); [$accessible, $<API key>] = $this->isMethodAccessible($reflClass, $getsetter, 1); if ($allowGetterSetter && $accessible) { $method = $reflClass->getMethod($getsetter); return new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD, $getsetter, $this-><API key>($method), $method->isStatic()); } else { $errors = array_merge($errors, $<API key>); } if ($reflClass->hasProperty($property) && ($reflClass->getProperty($property)->getModifiers() & $this-><API key>)) { $reflProperty = $reflClass->getProperty($property); return new PropertyWriteInfo(PropertyWriteInfo::TYPE_PROPERTY, $property, $this-><API key>($reflProperty), $reflProperty->isStatic()); } [$accessible, $<API key>] = $this->isMethodAccessible($reflClass, '__set', 2); if ($accessible) { return new PropertyWriteInfo(PropertyWriteInfo::TYPE_PROPERTY, $property, PropertyWriteInfo::VISIBILITY_PUBLIC, false); } else { $errors = array_merge($errors, $<API key>); } [$accessible, $<API key>] = $this->isMethodAccessible($reflClass, '__call', 2); if ($allowMagicCall && $accessible) { return new PropertyWriteInfo(PropertyWriteInfo::TYPE_METHOD, 'set'.$camelized, PropertyWriteInfo::VISIBILITY_PUBLIC, false); } else { $errors = array_merge($errors, $<API key>); } if (!$allowAdderRemover && null !== $adderAccessName && null !== $removerAccessName) { $errors = array_merge($errors, [sprintf( 'The property "%s" in class "%s" can be defined with the methods "%s()" but '. 'the new value must be an array or an instance of \Traversable', $property, $reflClass->getName(), implode('()", "', [$adderAccessName, $removerAccessName]) )]); } $noneProperty = new PropertyWriteInfo(); $noneProperty->setErrors($errors); return $noneProperty; } /** * @return Type[]|null */ private function extractFromMutator(string $class, string $property): ?array { list($reflectionMethod, $prefix) = $this->getMutatorMethod($class, $property); if (null === $reflectionMethod) { return null; } $<API key> = $reflectionMethod->getParameters(); $reflectionParameter = $<API key>[0]; if (!$reflectionType = $reflectionParameter->getType()) { return null; } $type = $this-><API key>($reflectionType, $reflectionMethod->getDeclaringClass()); if (1 === \count($type) && \in_array($prefix, $this-><API key>)) { $type = [new Type(Type::BUILTIN_TYPE_ARRAY, false, null, true, new Type(Type::BUILTIN_TYPE_INT), $type[0])]; } return $type; } /** * Tries to extract type information from accessors. * * @return Type[]|null */ private function extractFromAccessor(string $class, string $property): ?array { list($reflectionMethod, $prefix) = $this->getAccessorMethod($class, $property); if (null === $reflectionMethod) { return null; } if ($reflectionType = $reflectionMethod->getReturnType()) { return $this-><API key>($reflectionType, $reflectionMethod->getDeclaringClass()); } if (\in_array($prefix, ['is', 'can', 'has'])) { return [new Type(Type::BUILTIN_TYPE_BOOL)]; } return null; } /** * Tries to extract type information from constructor. * * @return Type[]|null */ private function <API key>(string $class, string $property): ?array { try { $reflectionClass = new \ReflectionClass($class); } catch (\ReflectionException $e) { return null; } $constructor = $reflectionClass->getConstructor(); if (!$constructor) { return null; } foreach ($constructor->getParameters() as $parameter) { if ($property !== $parameter->name) { continue; } $reflectionType = $parameter->getType(); return $reflectionType ? $this-><API key>($reflectionType, $constructor->getDeclaringClass()) : null; } if ($parentClass = $reflectionClass->getParentClass()) { return $this-><API key>($parentClass->getName(), $property); } return null; } private function <API key>(string $class, string $property): ?array { try { $reflectionClass = new \ReflectionClass($class); } catch (\ReflectionException $e) { return null; } $defaultValue = $reflectionClass-><API key>()[$property] ?? null; if (null === $defaultValue) { return null; } $type = \gettype($defaultValue); return [new Type(static::MAP_TYPES[$type] ?? $type)]; } private function <API key>(\ReflectionType $reflectionType, \ReflectionClass $declaringClass): array { $types = []; $nullable = $reflectionType->allowsNull(); foreach ($reflectionType instanceof \ReflectionUnionType ? $reflectionType->getTypes() : [$reflectionType] as $type) { $phpTypeOrClass = $reflectionType instanceof \ReflectionNamedType ? $reflectionType->getName() : (string) $type; if ('null' === $phpTypeOrClass) { continue; } if (Type::BUILTIN_TYPE_ARRAY === $phpTypeOrClass) { $types[] = new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true); } elseif ('void' === $phpTypeOrClass) { $types[] = new Type(Type::BUILTIN_TYPE_NULL, $nullable); } elseif ($type->isBuiltin()) { $types[] = new Type($phpTypeOrClass, $nullable); } else { $types[] = new Type(Type::BUILTIN_TYPE_OBJECT, $nullable, $this->resolveTypeName($phpTypeOrClass, $declaringClass)); } } return $types; } private function resolveTypeName(string $name, \ReflectionClass $declaringClass): string { if ('self' === $lcName = strtolower($name)) { return $declaringClass->name; } if ('parent' === $lcName && $parent = $declaringClass->getParentClass()) { return $parent->name; } return $name; } private function isAllowedProperty(string $class, string $property): bool { try { $reflectionProperty = new \ReflectionProperty($class, $property); return $reflectionProperty->getModifiers() & $this-><API key>; } catch (\ReflectionException $e) { // Return false if the property doesn't exist } return false; } /** * Gets the accessor method. * * Returns an array with a the instance of \ReflectionMethod as first key * and the prefix of the method as second or null if not found. */ private function getAccessorMethod(string $class, string $property): ?array { $ucProperty = ucfirst($property); foreach ($this->accessorPrefixes as $prefix) { try { $reflectionMethod = new \ReflectionMethod($class, $prefix.$ucProperty); if ($reflectionMethod->isStatic()) { continue; } if (0 === $reflectionMethod-><API key>()) { return [$reflectionMethod, $prefix]; } } catch (\ReflectionException $e) { // Return null if the property doesn't exist } } return null; } /** * Returns an array with a the instance of \ReflectionMethod as first key * and the prefix of the method as second or null if not found. */ private function getMutatorMethod(string $class, string $property): ?array { $ucProperty = ucfirst($property); $ucSingulars = $this->inflector->singularize($ucProperty); $mutatorPrefixes = \in_array($ucProperty, $ucSingulars, true) ? $this-><API key> : $this-><API key>; foreach ($mutatorPrefixes as $prefix) { $names = [$ucProperty]; if (\in_array($prefix, $this-><API key>)) { $names = array_merge($names, $ucSingulars); } foreach ($names as $name) { try { $reflectionMethod = new \ReflectionMethod($class, $prefix.$name); if ($reflectionMethod->isStatic()) { continue; } // Parameter can be optional to allow things like: method(array $foo = null) if ($reflectionMethod-><API key>() >= 1) { return [$reflectionMethod, $prefix]; } } catch (\ReflectionException $e) { // Try the next prefix if the method doesn't exist } } } return null; } private function getPropertyName(string $methodName, array $<API key>): ?string { $pattern = implode('|', array_merge($this->accessorPrefixes, $this->mutatorPrefixes)); if ('' !== $pattern && preg_match('/^('.$pattern.')(.+)$/i', $methodName, $matches)) { if (!\in_array($matches[1], $this-><API key>)) { return $matches[2]; } foreach ($<API key> as $reflectionProperty) { foreach ($this->inflector->singularize($reflectionProperty->name) as $name) { if (strtolower($name) === strtolower($matches[2])) { return $reflectionProperty->name; } } } return $matches[2]; } return null; } /** * Searches for add and remove methods. * * @param \ReflectionClass $reflClass The reflection class for the given object * @param array $singulars The singular form of the property name or null * * @return array An array containing the adder and remover when found and errors */ private function findAdderAndRemover(\ReflectionClass $reflClass, array $singulars): array { if (!\is_array($this-><API key>) && 2 !== \count($this-><API key>)) { return null; } [$addPrefix, $removePrefix] = $this-><API key>; $errors = []; foreach ($singulars as $singular) { $addMethod = $addPrefix.$singular; $removeMethod = $removePrefix.$singular; [$addMethodFound, $<API key>] = $this->isMethodAccessible($reflClass, $addMethod, 1); [$removeMethodFound, $<API key>] = $this->isMethodAccessible($reflClass, $removeMethod, 1); $errors = array_merge($errors, $<API key>, $<API key>); if ($addMethodFound && $removeMethodFound) { return [$addMethod, $removeMethod, []]; } elseif ($addMethodFound && !$removeMethodFound) { $errors[] = sprintf('The add method "%s" in class "%s" was found, but the corresponding remove method "%s" was not found', $addMethod, $reflClass->getName(), $removeMethod); } elseif (!$addMethodFound && $removeMethodFound) { $errors[] = sprintf('The remove method "%s" in class "%s" was found, but the corresponding add method "%s" was not found', $removeMethod, $reflClass->getName(), $addMethod); } } return [null, null, $errors]; } /** * Returns whether a method is public and has the number of required parameters and errors. */ private function isMethodAccessible(\ReflectionClass $class, string $methodName, int $parameters): array { $errors = []; if ($class->hasMethod($methodName)) { $method = $class->getMethod($methodName); if (\ReflectionMethod::IS_PUBLIC === $this-><API key> && !$method->isPublic()) { $errors[] = sprintf('The method "%s" in class "%s" was found but does not have public access.', $methodName, $class->getName()); } elseif ($method-><API key>() > $parameters || $method-><API key>() < $parameters) { $errors[] = sprintf('The method "%s" in class "%s" requires %d arguments, but should accept only %d.', $methodName, $class->getName(), $method-><API key>(), $parameters); } else { return [true, $errors]; } } return [false, $errors]; } /** * Camelizes a given string. */ private function camelize(string $string): string { return str_replace(' ', '', ucwords(str_replace('_', ' ', $string))); } /** * Return allowed reflection method flags. */ private function getMethodsFlags(int $accessFlags): int { $methodFlags = 0; if ($accessFlags & self::ALLOW_PUBLIC) { $methodFlags |= \ReflectionMethod::IS_PUBLIC; } if ($accessFlags & self::ALLOW_PRIVATE) { $methodFlags |= \ReflectionMethod::IS_PRIVATE; } if ($accessFlags & self::ALLOW_PROTECTED) { $methodFlags |= \ReflectionMethod::IS_PROTECTED; } return $methodFlags; } /** * Return allowed reflection property flags. */ private function getPropertyFlags(int $accessFlags): int { $propertyFlags = 0; if ($accessFlags & self::ALLOW_PUBLIC) { $propertyFlags |= \ReflectionProperty::IS_PUBLIC; } if ($accessFlags & self::ALLOW_PRIVATE) { $propertyFlags |= \ReflectionProperty::IS_PRIVATE; } if ($accessFlags & self::ALLOW_PROTECTED) { $propertyFlags |= \ReflectionProperty::IS_PROTECTED; } return $propertyFlags; } private function <API key>(\ReflectionProperty $reflectionProperty): string { if ($reflectionProperty->isPrivate()) { return PropertyReadInfo::VISIBILITY_PRIVATE; } if ($reflectionProperty->isProtected()) { return PropertyReadInfo::<API key>; } return PropertyReadInfo::VISIBILITY_PUBLIC; } private function <API key>(\ReflectionMethod $reflectionMethod): string { if ($reflectionMethod->isPrivate()) { return PropertyReadInfo::VISIBILITY_PRIVATE; } if ($reflectionMethod->isProtected()) { return PropertyReadInfo::<API key>; } return PropertyReadInfo::VISIBILITY_PUBLIC; } private function <API key>(\ReflectionProperty $reflectionProperty): string { if ($reflectionProperty->isPrivate()) { return PropertyWriteInfo::VISIBILITY_PRIVATE; } if ($reflectionProperty->isProtected()) { return PropertyWriteInfo::<API key>; } return PropertyWriteInfo::VISIBILITY_PUBLIC; } private function <API key>(\ReflectionMethod $reflectionMethod): string { if ($reflectionMethod->isPrivate()) { return PropertyWriteInfo::VISIBILITY_PRIVATE; } if ($reflectionMethod->isProtected()) { return PropertyWriteInfo::<API key>; } return PropertyWriteInfo::VISIBILITY_PUBLIC; } }
#ifndef <API key> #define <API key> #include "CEGUI/falagard/Dimensions.h" #include "CEGUI/Window.h" #include "CEGUI/ColourRect.h" namespace CEGUI { //! Common base class used for renderable components within an ImagerySection. class CEGUIEXPORT <API key> { public: <API key>(); virtual ~<API key>(); /*! \brief Render this component. More correctly, the component is cached for rendering. \param srcWindow Window to use as the base for translating the component's ComponentArea into pixel values. \param modColours ColourRect describing colours that are to be modulated with the component's stored colour values to calculate a set of 'final' colour values to be used. May be 0. */ void render(Window& srcWindow, const CEGUI::ColourRect* modColours = 0, const Rectf* clipper = 0, bool clipToDisplay = false) const; /*! \brief Render this component. More correctly, the component is cached for rendering. \param srcWindow Window to use as the base for translating the component's ComponentArea into pixel values. \param baseRect Rect to use as the base for translating the component's ComponentArea into pixel values. \param modColours ColourRect describing colours that are to be modulated with the component's stored colour values to calculate a set of 'final' colour values to be used. May be 0. */ void render(Window& srcWindow, const Rectf& baseRect, const CEGUI::ColourRect* modColours = 0, const Rectf* clipper = 0, bool clipToDisplay = false) const; /*! \brief Return the ComponentArea of this component. \return ComponentArea object describing the component's current target area. */ const ComponentArea& getComponentArea() const; /*! \brief Set the conponent's ComponentArea. \param area ComponentArea object describing a new target area for the component. */ void setComponentArea(const ComponentArea& area); /*! \brief Return the ColourRect used by this component. \return ColourRect object holding the colours currently in use by this component. */ const ColourRect& getColours() const; /*! \brief Set the colours to be used by this component. \param cols ColourRect object describing the colours to be used by this component. */ void setColours(const ColourRect& cols); /*! \brief Returns the name of the property from which the colour values will be obtained, if set. \return String object holding the name of the property. */ const String& <API key>() const; /*! \brief Set the name of the property where colour values will be obtained, if set. \param property String containing the name of the property. */ void <API key>(const String& property); //! perform any processing required due to the given font having changed. virtual bool <API key>(Window& window, const Font* font) const; protected: /*! \brief Helper function to initialise a ColourRect with appropriate values according to the way the component is set up. This will try and get values from multiple places: - a property attached to \a wnd - or the integral d_colours value. */ void initColoursRect(const Window& wnd, const ColourRect* modCols, ColourRect& cr) const; //! Function to do main render caching work. virtual void render_impl(Window& srcWindow, Rectf& destRect, const CEGUI::ColourRect* modColours, const Rectf* clipper, bool clipToDisplay) const = 0; /*! \brief Writes xml for the colours to a OutStream. Will prefer property colours before explicit. \note This is intended as a helper function for sub-classes when outputting xml to a stream. \return - true if xml element was written. - false if nothing was output due to the formatting not being set (sub-class may then choose to do something else.) */ bool writeColoursXML(XMLSerializer& xml_stream) const; //! Destination area for this component. ComponentArea d_area; //! base colours to be applied when rendering the image component. ColourRect d_colours; //! name of property to fetch colours from. String <API key>; }; } #endif
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <base href="../../" /> <script src="list.js"></script> <script src="page.js"></script> <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> <h1>[name]</h1> <div class="desc"> Class for loading a [page:Texture texture]. This uses the [page:ImageLoader] internally for loading files. </div> <h2>Example</h2> <code> var texture = new THREE.TextureLoader().load( 'textures/<API key>.jpg' ); // immediately use the texture for material creation var material = new THREE.MeshBasicMaterial( { map: texture } ); </code> [example:webgl_geometry_cube geometry / cube] <h2>Example with Callbacks</h2> <code> // instantiate a loader var loader = new THREE.TextureLoader(); // load a resource loader.load( // resource URL 'textures/<API key>.jpg', // onLoad callback function ( texture ) { // in this example we create the material when the texture is loaded var material = new THREE.MeshBasicMaterial( { map: texture } ); }, // onProgress callback currently not supported undefined, // onError callback function ( err ) { console.error( 'An error happened.' ); } ); </code> Please note three.js r84 dropped support for TextureLoader progress events. For a TextureLoader that supports progress events, see [link:https://github.com/mrdoob/three.js/issues/10439#<API key> this thread]. <h2>Constructor</h2> <h3>[name]( [page:LoadingManager manager] )</h3> <div> [page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.<API key>].<br /><br /> Creates a new [name]. </div> <h2>Properties</h2> <h3>[property:String crossOrigin]</h3> <div> If set, assigns the [link:https://developer.mozilla.org/en-US/docs/Web/HTML/<API key> crossOrigin] attribute of the image to the value of *crossOrigin*, prior to starting the load. Default is *undefined*. </div> <h3>[property:LoadingManager manager]</h3> <div> The [page:LoadingManager loadingManager] the loader is using. Default is [page:<API key>]. </div> <h3>[property:String path]</h3> <div>The base path from which files will be loaded. See [page:.setPath]. Default is *undefined*.</div> <h3>[property:String withCredentials]</h3> <div> Whether the XMLHttpRequest uses credentials - see [page:.setWithCredentials]. Default is *undefined*. </div> <h2>Methods</h2> <h3>[method:Texture load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3> <div> [page:String url] — the path or URL to the file. This can also be a [link:https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs Data URI].<br /> [page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Texture texture].<br /> [page:Function onProgress] — Will be called while load progresses. The argument will be the XMLHttpRequest instance, which contains .[page:Integer total] and .[page:Integer loaded] bytes.<br /> [page:Function onError] — Will be called when load errors.<br /><br /> Begin loading from the given URL and pass the fully loaded [page:Texture texture] to onLoad. The method also returns a new texture object which can directly be used for material creation. If you do it this way, the texture may pop up in your scene once the respective loading process is finished. </div> <h3>[method:null setCrossOrigin]( [page:String value] )</h3> <div>Set the [page:.crossOrigin] attribute.</div> <h3>[method:FileLoader setPath]( [page:String path] )</h3> <div> Set the base path or URL from which to load files. This can be useful if you are loading many models from the same directory. </div> <h3>[method:FileLoader setWithCredentials]( [page:Boolean value] )</h3> Whether the XMLHttpRequest uses credentials such as cookies, authorization headers or TLS client certificates. See [link:https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials XMLHttpRequest.withCredentials].<br /> Note that this has no effect if you are loading files locally or from the same domain. <div> <h2>Source</h2> [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] </body> </html>
import { Uniform } from '../../../src/Three'; export const FXAAShader: { uniforms: { tDiffuse: Uniform; resolution: Uniform; }; vertexShader: string; fragmentShader: string; };
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http: <html> <head> <title>Minim : : Damp : : printInputs</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> </head> <body> <center> <table class="mainTable"> <tr> <td class="header"> <span class="indexheader">Minim</span><br/> <span class="indexnavigation"> <a href="index.html">core</a> | <a href="index_ugens.html">ugens</a> | <a href="index_analysis.html">analysis</a> </span> </td> <td class="border-left">&nbsp;</td> </tr> <tr> <td class="classNavigation"> <p class="mainTextName"><A href="ugen_class_ugen.html">UGen</A></p> <p class="methodName">printInputs</p> </td> <td class="mainText border-left"> <p class="memberSectionHeader">Description</p> Prints all inputs connected to this UGen (for debugging) <p class="memberSectionHeader">Signature</p> <pre>void printInputs() </pre> <p class="memberSectionHeader">Returns</p> <p>None</p> <p class="memberSectionHeader">Related</p> <p class="memberSectionHeader">Example</p> <pre>None available</pre> <p class="memberSectionHeader">Usage</p> Web & Application </td> </tr> </table> </center> </body> </html>
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; } audio, canvas, video { display: inline-block; } audio:not([controls]) { display: none; height: 0; } [hidden], template { display: none; } html { font-family: sans-serif; -ms-text-size-adjust: 100%; -<API key>: 100%; } body { margin: 0; } a { background: transparent; } a:focus { outline: thin dotted; } a:active, a:hover { outline: 0; } h1 { margin: .67em 0; font-size: 2em; } abbr[title] { border-bottom: 1px dotted; } b, strong { font-weight: bold; } dfn { font-style: italic; } hr { height: 0; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } mark { color: #000; background: #ff0; } code, kbd, pre, samp { font-family: monospace, serif; font-size: 1em; } pre { white-space: pre-wrap; } q { quotes: "\201C" "\201D" "\2018" "\2019"; } small { font-size: 80%; } sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; } sup { top: -.5em; } sub { bottom: -.25em; } img { border: 0; } svg:not(:root) { overflow: hidden; } figure { margin: 0; } fieldset { padding: .35em .625em .75em; margin: 0 2px; border: 1px solid #c0c0c0; } legend { padding: 0; border: 0; } button, input, select, textarea { margin: 0; font-family: inherit; font-size: 100%; } button, input { line-height: normal; } button, select { text-transform: none; } button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; } button[disabled], html input[disabled] { cursor: default; } input[type="checkbox"], input[type="radio"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; padding: 0; } input[type="search"] { -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; -webkit-appearance: textfield; } input[type="search"]::-<API key>, input[type="search"]::-<API key> { -webkit-appearance: none; } button::-moz-focus-inner, input::-moz-focus-inner { padding: 0; border: 0; } textarea { overflow: auto; vertical-align: top; } table { border-spacing: 0; border-collapse: collapse; } .clearfix:before, .clearfix:after, .modal-footer:before, .modal-footer:after { display: table; content: " "; } .clearfix:after, .modal-footer:after { clear: both; } .center-block { display: block; margin-right: auto; margin-left: auto; } .pull-right { float: right !important; } .pull-left { float: left !important; } .hide { display: none; } .hidden { display: none!important; } .show { display: block; } .showing { display: block!important; } .invisible { visibility: hidden; } .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .affix { position: fixed; } .with-padding { padding: 5px 12px; } @-ms-viewport { width: device-width; } .hidden { display: none !important; visibility: hidden !important; } .visible-xs, tr.visible-xs, th.visible-xs, td.visible-xs { display: none !important; } @media (max-width: 767px) { .visible-xs { display: block !important; } tr.visible-xs { display: table-row !important; } th.visible-xs, td.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-xs.visible-sm { display: block !important; } tr.visible-xs.visible-sm { display: table-row !important; } th.visible-xs.visible-sm, td.visible-xs.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-xs.visible-md { display: block !important; } tr.visible-xs.visible-md { display: table-row !important; } th.visible-xs.visible-md, td.visible-xs.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-xs.visible-lg { display: block !important; } tr.visible-xs.visible-lg { display: table-row !important; } th.visible-xs.visible-lg, td.visible-xs.visible-lg { display: table-cell !important; } } .visible-sm, tr.visible-sm, th.visible-sm, td.visible-sm { display: none !important; } @media (max-width: 767px) { .visible-sm.visible-xs { display: block !important; } tr.visible-sm.visible-xs { display: table-row !important; } th.visible-sm.visible-xs, td.visible-sm.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block !important; } tr.visible-sm { display: table-row !important; } th.visible-sm, td.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-sm.visible-md { display: block !important; } tr.visible-sm.visible-md { display: table-row !important; } th.visible-sm.visible-md, td.visible-sm.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-sm.visible-lg { display: block !important; } tr.visible-sm.visible-lg { display: table-row !important; } th.visible-sm.visible-lg, td.visible-sm.visible-lg { display: table-cell !important; } } .visible-md, tr.visible-md, th.visible-md, td.visible-md { display: none !important; } @media (max-width: 767px) { .visible-md.visible-xs { display: block !important; } tr.visible-md.visible-xs { display: table-row !important; } th.visible-md.visible-xs, td.visible-md.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-md.visible-sm { display: block !important; } tr.visible-md.visible-sm { display: table-row !important; } th.visible-md.visible-sm, td.visible-md.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-md { display: block !important; } tr.visible-md { display: table-row !important; } th.visible-md, td.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-md.visible-lg { display: block !important; } tr.visible-md.visible-lg { display: table-row !important; } th.visible-md.visible-lg, td.visible-md.visible-lg { display: table-cell !important; } } .visible-lg, tr.visible-lg, th.visible-lg, td.visible-lg { display: none !important; } @media (max-width: 767px) { .visible-lg.visible-xs { display: block !important; } tr.visible-lg.visible-xs { display: table-row !important; } th.visible-lg.visible-xs, td.visible-lg.visible-xs { display: table-cell !important; } } @media (min-width: 768px) and (max-width: 991px) { .visible-lg.visible-sm { display: block !important; } tr.visible-lg.visible-sm { display: table-row !important; } th.visible-lg.visible-sm, td.visible-lg.visible-sm { display: table-cell !important; } } @media (min-width: 992px) and (max-width: 1199px) { .visible-lg.visible-md { display: block !important; } tr.visible-lg.visible-md { display: table-row !important; } th.visible-lg.visible-md, td.visible-lg.visible-md { display: table-cell !important; } } @media (min-width: 1200px) { .visible-lg { display: block !important; } tr.visible-lg { display: table-row !important; } th.visible-lg, td.visible-lg { display: table-cell !important; } } .hidden-xs { display: block !important; } tr.hidden-xs { display: table-row !important; } th.hidden-xs, td.hidden-xs { display: table-cell !important; } @media (max-width: 767px) { .hidden-xs, tr.hidden-xs, th.hidden-xs, td.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-xs.hidden-sm, tr.hidden-xs.hidden-sm, th.hidden-xs.hidden-sm, td.hidden-xs.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-xs.hidden-md, tr.hidden-xs.hidden-md, th.hidden-xs.hidden-md, td.hidden-xs.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-xs.hidden-lg, tr.hidden-xs.hidden-lg, th.hidden-xs.hidden-lg, td.hidden-xs.hidden-lg { display: none !important; } } .hidden-sm { display: block !important; } tr.hidden-sm { display: table-row !important; } th.hidden-sm, td.hidden-sm { display: table-cell !important; } @media (max-width: 767px) { .hidden-sm.hidden-xs, tr.hidden-sm.hidden-xs, th.hidden-sm.hidden-xs, td.hidden-sm.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm, tr.hidden-sm, th.hidden-sm, td.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-sm.hidden-md, tr.hidden-sm.hidden-md, th.hidden-sm.hidden-md, td.hidden-sm.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-sm.hidden-lg, tr.hidden-sm.hidden-lg, th.hidden-sm.hidden-lg, td.hidden-sm.hidden-lg { display: none !important; } } .hidden-md { display: block !important; } tr.hidden-md { display: table-row !important; } th.hidden-md, td.hidden-md { display: table-cell !important; } @media (max-width: 767px) { .hidden-md.hidden-xs, tr.hidden-md.hidden-xs, th.hidden-md.hidden-xs, td.hidden-md.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-md.hidden-sm, tr.hidden-md.hidden-sm, th.hidden-md.hidden-sm, td.hidden-md.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md, tr.hidden-md, th.hidden-md, td.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-md.hidden-lg, tr.hidden-md.hidden-lg, th.hidden-md.hidden-lg, td.hidden-md.hidden-lg { display: none !important; } } .hidden-lg { display: block !important; } tr.hidden-lg { display: table-row !important; } th.hidden-lg, td.hidden-lg { display: table-cell !important; } @media (max-width: 767px) { .hidden-lg.hidden-xs, tr.hidden-lg.hidden-xs, th.hidden-lg.hidden-xs, td.hidden-lg.hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-lg.hidden-sm, tr.hidden-lg.hidden-sm, th.hidden-lg.hidden-sm, td.hidden-lg.hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-lg.hidden-md, tr.hidden-lg.hidden-md, th.hidden-lg.hidden-md, td.hidden-lg.hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg, tr.hidden-lg, th.hidden-lg, td.hidden-lg { display: none !important; } } .visible-print, tr.visible-print, th.visible-print, td.visible-print { display: none !important; } @media print { .visible-print { display: block !important; } tr.visible-print { display: table-row !important; } th.visible-print, td.visible-print { display: table-cell !important; } .hidden-print, tr.hidden-print, th.hidden-print, td.hidden-print { display: none !important; } } *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 10px; -<API key>: rgba(0, 0, 0, 0); } body { font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif; font-size: 13px; line-height: 1.53846154; color: #353535; background-color: #fff; } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } a { color: #18609d; text-decoration: none; -webkit-transition: all .5s cubic-bezier(.175, .885, .32, 1); -o-transition: all .5s cubic-bezier(.175, .885, .32, 1); transition: all .5s cubic-bezier(.175, .885, .32, 1); } a:hover, a:focus { color: #0e385a; text-decoration: underline; } a:focus { outline: thin dotted #333; outline: 5px auto -<API key>; outline-offset: -2px; } a.disabled, a.disabled:hover, a.disabled:focus, a[disabled], a[disabled]:hover, a[disabled]:focus { color: #aaa; text-decoration: none; cursor: default; } audio, canvas, img, svg, video { max-width: 100%; vertical-align: middle; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; } ::-moz-selection { text-shadow: none; background: #b3d4fc; } ::selection { text-shadow: none; background: #b3d4fc; } fieldset { padding: 0; margin: 0; border: 0; } textarea { resize: vertical; } ol, ul { padding-left: 20px; } .container { padding-right: 10px; padding-left: 10px; margin-right: auto; margin-left: auto; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .container:before, .container:after { display: table; content: " "; } .container:after { clear: both; } .row { margin-right: -10px; margin-left: -10px; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .row:before, .row:after { display: table; content: " "; } .row:after { clear: both; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { position: relative; min-height: 1px; padding-right: 10px; padding-left: 10px; } .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11 { float: left; } .col-xs-1 { width: 8.33333333%; } .col-xs-2 { width: 16.66666667%; } .col-xs-3 { width: 25%; } .col-xs-4 { width: 33.33333333%; } .col-xs-5 { width: 41.66666667%; } .col-xs-6 { width: 50%; } .col-xs-7 { width: 58.33333333%; } .col-xs-8 { width: 66.66666667%; } .col-xs-9 { width: 75%; } .col-xs-10 { width: 83.33333333%; } .col-xs-11 { width: 91.66666667%; } .col-xs-12 { width: 100%; } @media (min-width: 768px) { .container { max-width: 740px; } .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11 { float: left; } .col-sm-1 { width: 8.33333333%; } .col-sm-2 { width: 16.66666667%; } .col-sm-3 { width: 25%; } .col-sm-4 { width: 33.33333333%; } .col-sm-5 { width: 41.66666667%; } .col-sm-6 { width: 50%; } .col-sm-7 { width: 58.33333333%; } .col-sm-8 { width: 66.66666667%; } .col-sm-9 { width: 75%; } .col-sm-10 { width: 83.33333333%; } .col-sm-11 { width: 91.66666667%; } .col-sm-12 { width: 100%; } .col-sm-push-1 { left: 8.33333333%; } .col-sm-push-2 { left: 16.66666667%; } .col-sm-push-3 { left: 25%; } .col-sm-push-4 { left: 33.33333333%; } .col-sm-push-5 { left: 41.66666667%; } .col-sm-push-6 { left: 50%; } .col-sm-push-7 { left: 58.33333333%; } .col-sm-push-8 { left: 66.66666667%; } .col-sm-push-9 { left: 75%; } .col-sm-push-10 { left: 83.33333333%; } .col-sm-push-11 { left: 91.66666667%; } .col-sm-pull-1 { right: 8.33333333%; } .col-sm-pull-2 { right: 16.66666667%; } .col-sm-pull-3 { right: 25%; } .col-sm-pull-4 { right: 33.33333333%; } .col-sm-pull-5 { right: 41.66666667%; } .col-sm-pull-6 { right: 50%; } .col-sm-pull-7 { right: 58.33333333%; } .col-sm-pull-8 { right: 66.66666667%; } .col-sm-pull-9 { right: 75%; } .col-sm-pull-10 { right: 83.33333333%; } .col-sm-pull-11 { right: 91.66666667%; } .col-sm-offset-1 { margin-left: 8.33333333%; } .col-sm-offset-2 { margin-left: 16.66666667%; } .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.33333333%; } .col-sm-offset-5 { margin-left: 41.66666667%; } .col-sm-offset-6 { margin-left: 50%; } .col-sm-offset-7 { margin-left: 58.33333333%; } .col-sm-offset-8 { margin-left: 66.66666667%; } .col-sm-offset-9 { margin-left: 75%; } .col-sm-offset-10 { margin-left: 83.33333333%; } .col-sm-offset-11 { margin-left: 91.66666667%; } } @media (min-width: 992px) { .container { max-width: 960px; } .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11 { float: left; } .col-md-1 { width: 8.33333333%; } .col-md-2 { width: 16.66666667%; } .col-md-3 { width: 25%; } .col-md-4 { width: 33.33333333%; } .col-md-5 { width: 41.66666667%; } .col-md-6 { width: 50%; } .col-md-7 { width: 58.33333333%; } .col-md-8 { width: 66.66666667%; } .col-md-9 { width: 75%; } .col-md-10 { width: 83.33333333%; } .col-md-11 { width: 91.66666667%; } .col-md-12 { width: 100%; } .col-md-push-0 { left: auto; } .col-md-push-1 { left: 8.33333333%; } .col-md-push-2 { left: 16.66666667%; } .col-md-push-3 { left: 25%; } .col-md-push-4 { left: 33.33333333%; } .col-md-push-5 { left: 41.66666667%; } .col-md-push-6 { left: 50%; } .col-md-push-7 { left: 58.33333333%; } .col-md-push-8 { left: 66.66666667%; } .col-md-push-9 { left: 75%; } .col-md-push-10 { left: 83.33333333%; } .col-md-push-11 { left: 91.66666667%; } .col-md-pull-0 { right: auto; } .col-md-pull-1 { right: 8.33333333%; } .col-md-pull-2 { right: 16.66666667%; } .col-md-pull-3 { right: 25%; } .col-md-pull-4 { right: 33.33333333%; } .col-md-pull-5 { right: 41.66666667%; } .col-md-pull-6 { right: 50%; } .col-md-pull-7 { right: 58.33333333%; } .col-md-pull-8 { right: 66.66666667%; } .col-md-pull-9 { right: 75%; } .col-md-pull-10 { right: 83.33333333%; } .col-md-pull-11 { right: 91.66666667%; } .col-md-offset-0 { margin-left: 0; } .col-md-offset-1 { margin-left: 8.33333333%; } .col-md-offset-2 { margin-left: 16.66666667%; } .col-md-offset-3 { margin-left: 25%; } .col-md-offset-4 { margin-left: 33.33333333%; } .col-md-offset-5 { margin-left: 41.66666667%; } .col-md-offset-6 { margin-left: 50%; } .col-md-offset-7 { margin-left: 58.33333333%; } .col-md-offset-8 { margin-left: 66.66666667%; } .col-md-offset-9 { margin-left: 75%; } .col-md-offset-10 { margin-left: 83.33333333%; } .col-md-offset-11 { margin-left: 91.66666667%; } } @media (min-width: 1200px) { .container { max-width: 1160px; } .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11 { float: left; } .col-lg-1 { width: 8.33333333%; } .col-lg-2 { width: 16.66666667%; } .col-lg-3 { width: 25%; } .col-lg-4 { width: 33.33333333%; } .col-lg-5 { width: 41.66666667%; } .col-lg-6 { width: 50%; } .col-lg-7 { width: 58.33333333%; } .col-lg-8 { width: 66.66666667%; } .col-lg-9 { width: 75%; } .col-lg-10 { width: 83.33333333%; } .col-lg-11 { width: 91.66666667%; } .col-lg-12 { width: 100%; } .col-lg-push-0 { left: auto; } .col-lg-push-1 { left: 8.33333333%; } .col-lg-push-2 { left: 16.66666667%; } .col-lg-push-3 { left: 25%; } .col-lg-push-4 { left: 33.33333333%; } .col-lg-push-5 { left: 41.66666667%; } .col-lg-push-6 { left: 50%; } .col-lg-push-7 { left: 58.33333333%; } .col-lg-push-8 { left: 66.66666667%; } .col-lg-push-9 { left: 75%; } .col-lg-push-10 { left: 83.33333333%; } .col-lg-push-11 { left: 91.66666667%; } .col-lg-pull-0 { right: auto; } .col-lg-pull-1 { right: 8.33333333%; } .col-lg-pull-2 { right: 16.66666667%; } .col-lg-pull-3 { right: 25%; } .col-lg-pull-4 { right: 33.33333333%; } .col-lg-pull-5 { right: 41.66666667%; } .col-lg-pull-6 { right: 50%; } .col-lg-pull-7 { right: 58.33333333%; } .col-lg-pull-8 { right: 66.66666667%; } .col-lg-pull-9 { right: 75%; } .col-lg-pull-10 { right: 83.33333333%; } .col-lg-pull-11 { right: 91.66666667%; } .col-lg-offset-0 { margin-left: 0; } .col-lg-offset-1 { margin-left: 8.33333333%; } .col-lg-offset-2 { margin-left: 16.66666667%; } .col-lg-offset-3 { margin-left: 25%; } .col-lg-offset-4 { margin-left: 33.33333333%; } .col-lg-offset-5 { margin-left: 41.66666667%; } .col-lg-offset-6 { margin-left: 50%; } .col-lg-offset-7 { margin-left: 58.33333333%; } .col-lg-offset-8 { margin-left: 66.66666667%; } .col-lg-offset-9 { margin-left: 75%; } .col-lg-offset-10 { margin-left: 83.33333333%; } .col-lg-offset-11 { margin-left: 91.66666667%; } } p { margin: 0 0 10px; } .lead { margin-bottom: 20px; font-size: 14px; line-height: 1.4; } @media (min-width: 768px) { .lead { font-size: 19.5px; } } small, .small { font-size: 85%; } cite { font-style: normal; } .text-muted { color: #808080; } .text-muted a { color: #737373; } .text-muted a:hover, .text-muted a:active { color: #18609d; } .text-primary { color: #108bf1; } .text-primary:hover { color: #0b70c3; } .text-warning { color: #f39c11; } .text-warning:hover { color: #c77e0a; } .text-danger { color: #ee4e2f; } .text-danger:hover { color: #d83212; } .text-success { color: #2ac25f; } .text-success:hover { color: #21984a; } .text-info { color: #00c3b6; } .text-info:hover { color: #009086; } .text-important { color: #a76531; } .text-important:hover { color: #804d25; } .text-special { color: #6f5499; } .text-special:hover { color: #574278; } .text-link { color: #353535; } .text-link:hover, .text-link:active { color: #18609d; } .text-left { text-align: left; } .text-right { text-align: right; } .text-center { text-align: center; } .text-nowrap, .nobr { overflow: hidden; white-space: nowrap; } .text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ul, ol { margin-top: 0; margin-bottom: 10px; } ul ul, ol ul, ul ol, ol ol { margin-bottom: 0; } .list-unstyled { padding-left: 0; list-style: none; } dl { margin-bottom: 20px; } dt, dd { line-height: 1.53846154; } dt { font-weight: bold; } dd { margin-left: 0; } .dl-inline:before, .dl-inline:after { display: table; content: " "; } .dl-inline:after { clear: both; } .dl-inline:before, .dl-inline:after { display: table; content: " "; } .dl-inline:after { clear: both; } .dl-inline dt { display: inline-block; } .dl-inline dd { display: inline-block; padding-right: 1em; } .dl-inline dd:last-child { padding-right: 0; } @media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizontal dd { margin-left: 180px; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } .dl-horizontal dd:before, .dl-horizontal dd:after { display: table; content: " "; } .dl-horizontal dd:after { clear: both; } } blockquote { padding: 10px 20px; margin: 0 0 20px; border-left: 5px solid #e5e5e5; } blockquote p { font-size: 16.25px; font-weight: 300; line-height: 1.25; } blockquote p:last-child { margin-bottom: 0; } blockquote small { display: block; line-height: 1.53846154; color: #808080; } blockquote small:before { content: '\2014 \00A0'; } blockquote.pull-right { padding-right: 15px; padding-left: 0; border-right: 5px solid #e5e5e5; border-left: 0; } blockquote.pull-right p, blockquote.pull-right small { text-align: right; } blockquote.pull-right small:before { content: ''; } blockquote.pull-right small:after { content: '\00A0 \2014'; } blockquote:before, blockquote:after { content: ""; } h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; } h1 small, h2 small, h3 small { font-size: 65%; } h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; } h4 small, h5 small, h6 small { font-size: 75%; } h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; } h5 { font-size: 13px; } h6 { font-size: 12px; } h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: bold; line-height: 1.1; color: inherit; } h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-weight: normal; line-height: 1; color: #808080; } h1.header-dividing, h2.header-dividing, h3.header-dividing, h4.header-dividing, h5.header-dividing, h6.header-dividing { padding-bottom: 9px; border-bottom: 1px solid #e5e5e5; } .btn { display: inline-block; padding: 5px 12px; margin-bottom: 0; font-family: inherit; font-size: 13px; font-weight: normal; line-height: 1.53846154; text-align: center; white-space: nowrap; vertical-align: middle; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; background-image: none; border: 1px solid transparent; border-radius: 4px; -webkit-transition: all .8s cubic-bezier(.175, .885, .32, 1); -o-transition: all .8s cubic-bezier(.175, .885, .32, 1); transition: all .8s cubic-bezier(.175, .885, .32, 1); } .btn:focus { outline: thin dotted #333; outline: 5px auto -<API key>; outline-offset: -2px; } .btn:hover, .btn:focus { color: #353535; text-decoration: none; } .btn:active, .btn.active { background-image: none; outline: none; -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn { pointer-events: none; cursor: not-allowed; filter: alpha(opacity=65); -webkit-box-shadow: none; box-shadow: none; opacity: .65; } .btn { color: #353535; text-shadow: 0 1px 0 #fff; background-color: #f2f2f2; border-color: #d4d4d4; border-color: #ccc; } .btn:hover, .btn:focus, .btn:active, .btn.active, .open .dropdown-toggle.btn { color: #353535; background-color: #dedede; border-color: #a1a1a1; -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1); box-shadow: 0 2px 1px rgba(0, 0, 0, .1); } .btn:active, .btn.active, .open .dropdown-toggle.btn { background-image: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .btn.disabled, .btn[disabled], fieldset[disabled] .btn, .btn.disabled:hover, .btn[disabled]:hover, fieldset[disabled] .btn:hover, .btn.disabled:focus, .btn[disabled]:focus, fieldset[disabled] .btn:focus, .btn.disabled:active, .btn[disabled]:active, fieldset[disabled] .btn:active, .btn.disabled.active, .btn[disabled].active, fieldset[disabled] .btn.active { background-color: #f2f2f2; border-color: #bfbfbf; } .btn-primary { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); background-color: #108bf1; border-color: #0b6ab9; } .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { color: #fff; background-color: #0c75cc; border-color: #095ca1; -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1); box-shadow: 0 2px 1px rgba(0, 0, 0, .1); } .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-image: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .btn-primary.disabled, .btn-primary[disabled], fieldset[disabled] .btn-primary, .btn-primary.disabled:hover, .btn-primary[disabled]:hover, fieldset[disabled] .btn-primary:hover, .btn-primary.disabled:focus, .btn-primary[disabled]:focus, fieldset[disabled] .btn-primary:focus, .btn-primary.disabled:active, .btn-primary[disabled]:active, fieldset[disabled] .btn-primary:active, .btn-primary.disabled.active, .btn-primary[disabled].active, fieldset[disabled] .btn-primary.active { background-color: #108bf1; border-color: #0d7ddb; } .btn-warning { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); background-color: #f39c11; border-color: #bd780a; } .btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { color: #fff; background-color: #d1840b; border-color: #a56908; -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1); box-shadow: 0 2px 1px rgba(0, 0, 0, .1); } .btn-warning:active, .btn-warning.active, .open .dropdown-toggle.btn-warning { background-image: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .btn-warning.disabled, .btn-warning[disabled], fieldset[disabled] .btn-warning, .btn-warning.disabled:hover, .btn-warning[disabled]:hover, fieldset[disabled] .btn-warning:hover, .btn-warning.disabled:focus, .btn-warning[disabled]:focus, fieldset[disabled] .btn-warning:focus, .btn-warning.disabled:active, .btn-warning[disabled]:active, fieldset[disabled] .btn-warning:active, .btn-warning.disabled.active, .btn-warning[disabled].active, fieldset[disabled] .btn-warning.active { background-color: #f39c11; border-color: #df8e0b; } .btn-danger { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); background-color: #ee4e2f; border-color: #cf3011; } .btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { color: #fff; background-color: #e23412; border-color: #b72a0f; -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1); box-shadow: 0 2px 1px rgba(0, 0, 0, .1); } .btn-danger:active, .btn-danger.active, .open .dropdown-toggle.btn-danger { background-image: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .btn-danger.disabled, .btn-danger[disabled], fieldset[disabled] .btn-danger, .btn-danger.disabled:hover, .btn-danger[disabled]:hover, fieldset[disabled] .btn-danger:hover, .btn-danger.disabled:focus, .btn-danger[disabled]:focus, fieldset[disabled] .btn-danger:focus, .btn-danger.disabled:active, .btn-danger[disabled]:active, fieldset[disabled] .btn-danger:active, .btn-danger.disabled.active, .btn-danger[disabled].active, fieldset[disabled] .btn-danger.active { background-color: #ee4e2f; border-color: #ec3a17; } .btn-success { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); background-color: #2ac25f; border-color: #1f9046; } .btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { color: #fff; background-color: #23a04f; border-color: #1b7b3c; -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1); box-shadow: 0 2px 1px rgba(0, 0, 0, .1); } .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success { background-image: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .btn-success.disabled, .btn-success[disabled], fieldset[disabled] .btn-success, .btn-success.disabled:hover, .btn-success[disabled]:hover, fieldset[disabled] .btn-success:hover, .btn-success.disabled:focus, .btn-success[disabled]:focus, fieldset[disabled] .btn-success:focus, .btn-success.disabled:active, .btn-success[disabled]:active, fieldset[disabled] .btn-success:active, .btn-success.disabled.active, .btn-success[disabled].active, fieldset[disabled] .btn-success.active { background-color: #2ac25f; border-color: #25ad55; } .btn-info { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .2); background-color: #00c3b6; border-color: #00867d; } .btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { color: #fff; background-color: #009a90; border-color: #006c65; -webkit-box-shadow: 0 2px 1px rgba(0, 0, 0, .1); box-shadow: 0 2px 1px rgba(0, 0, 0, .1); } .btn-info:active, .btn-info.active, .open .dropdown-toggle.btn-info { background-image: none; -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); } .btn-info.disabled, .btn-info[disabled], fieldset[disabled] .btn-info, .btn-info.disabled:hover, .btn-info[disabled]:hover, fieldset[disabled] .btn-info:hover, .btn-info.disabled:focus, .btn-info[disabled]:focus, fieldset[disabled] .btn-info:focus, .btn-info.disabled:active, .btn-info[disabled]:active, fieldset[disabled] .btn-info:active, .btn-info.disabled.active, .btn-info[disabled].active, fieldset[disabled] .btn-info.active { background-color: #00c3b6; border-color: #00aa9e; } .btn-link { font-weight: normal; color: #18609d; text-shadow: none; cursor: pointer; background: none; -webkit-box-shadow: none; box-shadow: none; } .btn-link, .btn-link:active, .btn-link[disabled], fieldset[disabled] .btn-link, .btn-link:hover, .btn-link:focus { border-color: transparent; -webkit-box-shadow: none; box-shadow: none; } .btn-link:hover, .btn-link:focus { color: #0e385a; } .btn-link[disabled]:hover, fieldset[disabled] .btn-link:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:focus { color: #ddd; text-decoration: none; } .btn-lg { padding: 10px 16px; font-size: 17px; line-height: 1.25; border-radius: 4px; } .btn-sm, .btn-xs, .btn-mini { padding: 2px 8px; font-size: 12px; line-height: 1.5; border-radius: 4px; } .btn-xs, .btn-mini { padding: 1px 5px; } .btn-block { display: block; width: 100%; padding-right: 0; padding-left: 0; } .btn-block + .btn-block { margin-top: 5px; } input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block { width: 100%; } .btn .caret { margin-left: 0; } .btn-lg .caret { border-width: 5px 5px 0; border-bottom-width: 0; } .dropup .btn-lg .caret { border-width: 0 5px 5px; } [data-toggle="buttons"] > .btn > input[type="radio"], [data-toggle="buttons"] > .btn > input[type="checkbox"] { display: none; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #e5e5e5; } .label { display: inline; padding: .2em .6em .3em; font-size: 75%; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; background-color: #808080; border-radius: .25em; } .label[href]:hover, .label[href]:focus { color: #fff; background-color: #666; } .label.label-circle { color: #808080; background: none; border: 1px solid #808080; } .label[href]:hover, .label[href]:focus { color: #fff; text-decoration: none; cursor: pointer; } .label:empty { display: none; } .label-badge { display: inline-block; min-width: 10px; padding: 5px 7px; font-size: 12px; line-height: 1; border-radius: 12px; } .label-dot { display: inline-block; width: 10px; height: 10px; padding: 0; line-height: 14px; text-indent: -9999em; border-radius: 5px; } .label-dot:empty { display: inline-block; } .btn .label-badge { position: relative; top: -1px; } .nav > li > a > .label-badge, .nav > li > a > .label-dot { padding-top: 3px; padding-bottom: 3px; margin-left: 3px; } .label-primary { background-color: #108bf1; } .label-primary[href]:hover, .label-primary[href]:focus { color: #fff; background-color: #0b70c3; } .label-primary.label-circle { color: #108bf1; background: none; border: 1px solid #108bf1; } .label-success { background-color: #2ac25f; } .label-success[href]:hover, .label-success[href]:focus { color: #fff; background-color: #21984a; } .label-success.label-circle { color: #2ac25f; background: none; border: 1px solid #2ac25f; } .label-info { background-color: #00c3b6; } .label-info[href]:hover, .label-info[href]:focus { color: #fff; background-color: #009086; } .label-info.label-circle { color: #00c3b6; background: none; border: 1px solid #00c3b6; } .label-warning { background-color: #f39c11; } .label-warning[href]:hover, .label-warning[href]:focus { color: #fff; background-color: #c77e0a; } .label-warning.label-circle { color: #f39c11; background: none; border: 1px solid #f39c11; } .label-danger { background-color: #ee4e2f; } .label-danger[href]:hover, .label-danger[href]:focus { color: #fff; background-color: #d83212; } .label-danger.label-circle { color: #ee4e2f; background: none; border: 1px solid #ee4e2f; } .breadcrumb { padding: 8px 15px; margin-bottom: 20px; list-style: none; border-radius: 4px; } .breadcrumb > li { display: inline-block; } .breadcrumb > li + li:before { padding: 0 5px; color: #ccc; content: "/\00a0"; } .breadcrumb > .active { color: #ddd; } @font-face { font-family: ZenIcon; font-style: normal; font-weight: normal; src: url('../fonts/zenicon.eot?v=1.0.0'); src: url('../fonts/zenicon.eot?#iefix&v=1.0.0') format('embedded-opentype'), url('../fonts/zenicon.woff?v=1.0.0') format('woff'), url('../fonts/zenicon.ttf?v=1.0.0') format('truetype'), url('../fonts/zenicon.svg#regular?v=1.0.0') format('svg'); } [class^="icon-"], [class*=" icon-"] { font-family: ZenIcon; font-size: 14px; font-style: normal; font-weight: normal; font-variant: normal; line-height: 1; text-transform: none; speak: none; -<API key>: antialiased; -<API key>: grayscale; } .icon-lg:before, .icon-large:before { font-size: 1.33333333em; vertical-align: -10%; } a [class^="icon-"], a [class*=" icon-"] { display: inline; } .icon-2x { font-size: 28px; } .icon-3x { font-size: 42px; } .icon-4x { font-size: 56px; } .icon-5x { font-size: 70px; } .icon-white, .nav-pills > .active > a > [class^="icon-"], .nav-pills > .active > a > [class*=" icon-"], .nav-list > .active > a > [class^="icon-"], .nav-list > .active > a > [class*=" icon-"], .navbar-inverse .nav > .active > a > [class^="icon-"], .navbar-inverse .nav > .active > a > [class*=" icon-"], .dropdown-menu > li > a:hover > [class^="icon-"], .dropdown-menu > li > a:hover > [class*=" icon-"], .dropdown-menu > .active > a > [class^="icon-"], .dropdown-menu > .active > a > [class*=" icon-"], .dropdown-submenu:hover > a > [class^="icon-"], .dropdown-submenu:hover > a > [class*=" icon-"] { background-image: none; } .icon-spin { display: inline-block; -webkit-animation: spin 2s infinite linear; -o-animation: spin 2s infinite linear; animation: spin 2s infinite linear; } a .icon-spin { display: inline-block; text-decoration: none; } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); } } @-o-keyframes spin { 0% { -o-transform: rotate(0deg); } 100% { -o-transform: rotate(359deg); } } @-ms-keyframes spin { 0% { -ms-transform: rotate(0deg); } 100% { -ms-transform: rotate(359deg); } } @keyframes spin { 0% { -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); -o-transform: rotate(359deg); transform: rotate(359deg); } } .icon-rotate-90:before { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); -webkit-transform: rotate(90deg); -ms-transform: rotate(90deg); -o-transform: rotate(90deg); transform: rotate(90deg); } .icon-rotate-180:before { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); -webkit-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } .icon-rotate-270:before { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); -o-transform: rotate(270deg); transform: rotate(270deg); } .<API key>:before { -webkit-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -o-transform: scale(-1, 1); transform: scale(-1, 1); } .icon-flip-vertical:before { -webkit-transform: scale(1, -1); -ms-transform: scale(1, -1); -o-transform: scale(1, -1); transform: scale(1, -1); } a .icon-rotate-90:before, a .icon-rotate-180:before, a .icon-rotate-270:before, a .<API key>:before, a .icon-flip-vertical:before { display: inline-block; } .icon-music:before { content: "\e602"; } .icon-search:before { content: "\e603"; } .icon-envelope:before { content: "\e604"; } .icon-heart:before { content: "\e605"; } .icon-star:before { content: "\e606"; } .icon-star-empty:before { content: "\e607"; } .icon-user:before { content: "\e608"; } .icon-film:before { content: "\e609"; } .icon-th-large:before { content: "\e60a"; } .icon-th:before { content: "\e60b"; } .icon-th-list:before { content: "\e60c"; } .icon-ok:before { content: "\e60d"; } .icon-remove:before { content: "\d7"; } .icon-zoom-in:before { content: "\e60f"; } .icon-zoom-out:before { content: "\e610"; } .icon-off:before { content: "\e611"; } .icon-cog:before { content: "\e613"; } .icon-trash:before { content: "\e614"; } .icon-home:before { content: "\e615"; } .icon-file:before { content: "\e616"; } .icon-time:before { content: "\e617"; } .icon-download-alt:before { content: "\e618"; } .icon-download:before { content: "\e619"; } .icon-upload:before { content: "\e61a"; } .icon-inbox:before { content: "\e61b"; } .icon-play-circle:before { content: "\e61c"; } .icon-repeat:before { content: "\e61d"; } .icon-refresh:before { content: "\e61e"; } .icon-list-alt:before { content: "\e61f"; } .icon-lock:before { content: "\e620"; } .icon-flag:before { content: "\e621"; } .icon-headphones:before { content: "\e622"; } .icon-volume-off:before { content: "\e623"; } .icon-volume-up:before { content: "\e625"; } .icon-qrcode:before { content: "\e626"; } .icon-barcode:before { content: "\e627"; } .icon-tag:before { content: "\e628"; } .icon-tags:before { content: "\e629"; } .icon-book:before { content: "\e62a"; } .icon-bookmark:before { content: "\e62b"; } .icon-print:before { content: "\e62c"; } .icon-camera:before { content: "\e62d"; } .icon-font:before { content: "\e62e"; } .icon-bold:before { content: "\e62f"; } .icon-align-justify:before { content: "\e636"; } .icon-list:before { content: "\e637"; } .icon-picture:before { content: "\e63b"; } .icon-pencil:before { content: "\e63c"; } .icon-map-marker:before { content: "\e63d"; } .icon-adjust:before { content: "\e63e"; } .icon-tint:before { content: "\e63f"; } .icon-edit:before { content: "\e640"; } .icon-share:before { content: "\e641"; } .icon-check:before { content: "\e642"; } .icon-move:before { content: "\e643"; } .icon-step-backward:before { content: "\e644"; } .icon-fast-backward:before { content: "\e645"; } .icon-backward:before { content: "\e646"; } .icon-play:before { content: "\e647"; } .icon-pause:before { content: "\e648"; } .icon-stop:before { content: "\e649"; } .icon-forward:before { content: "\e64a"; } .icon-fast-forward:before { content: "\e64b"; } .icon-step-forward:before { content: "\e64c"; } .icon-eject:before { content: "\e64d"; } .icon-chevron-left:before { content: "\e64e"; } .icon-chevron-right:before { content: "\e64f"; } .icon-plus-sign:before { content: "\e650"; } .icon-minus-sign:before { content: "\e651"; } .icon-remove-sign:before { content: "\e652"; } .icon-ok-sign:before { content: "\e653"; } .icon-question-sign:before { content: "\e654"; } .icon-info-sign:before { content: "\e655"; } .icon-remove-circle:before { content: "\e657"; } .icon-ok-circle:before { content: "\e658"; } .icon-ban-circle:before { content: "\e659"; } .icon-arrow-left:before { content: "\e65a"; } .icon-arrow-right:before { content: "\e65b"; } .icon-arrow-up:before { content: "\e65c"; } .icon-arrow-down:before { content: "\e65d"; } .icon-share-alt:before { content: "\e65e"; } .icon-resize-full:before { content: "\e65f"; } .icon-resize-small:before { content: "\e660"; } .icon-plus:before { content: "\e661"; } .icon-minus:before { content: "\e662"; } .icon-asterisk:before { content: "\e663"; } .<API key>:before { content: "\e664"; } .icon-gift:before { content: "\e665"; } .icon-leaf:before { content: "\e666"; } .icon-eye-open:before { content: "\e668"; } .icon-eye-close:before { content: "\e669"; } .icon-warning-sign:before { content: "\e66a"; } .icon-plane:before { content: "\e66b"; } .icon-calendar:before { content: "\e66c"; } .icon-random:before { content: "\e66d"; } .icon-comment:before { content: "\e66e"; } .icon-chevron-up:before { content: "\e670"; } .icon-chevron-down:before { content: "\e671"; } .icon-shopping-cart:before { content: "\e673"; } .icon-folder-close:before { content: "\e674"; } .icon-folder-open:before { content: "\e675"; } .<API key>:before { content: "\e676"; } .<API key>:before { content: "\e677"; } .icon-bar-chart:before { content: "\e678"; } .icon-camera-retro:before { content: "\e679"; } .icon-key:before { content: "\e67a"; } .icon-cogs:before { content: "\e67b"; } .icon-comments:before { content: "\e67c"; } .icon-thumbs-up:before { content: "\e67d"; } .icon-thumbs-down:before { content: "\e67e"; } .icon-star-half:before { content: "\e67f"; } .icon-heart-empty:before { content: "\e680"; } .icon-signout:before { content: "\e681"; } .icon-pushpin:before { content: "\e683"; } .icon-external-link:before { content: "\e684"; } .icon-signin:before { content: "\e685"; } .icon-trophy:before { content: "\e686"; } .icon-upload-alt:before { content: "\e688"; } .icon-lemon:before { content: "\e689"; } .icon-phone:before { content: "\e68a"; } .icon-check-empty:before { content: "\e68b"; } .icon-bookmark-empty:before { content: "\e68c"; } .icon-phone-sign:before { content: "\e68d"; } .icon-credit:before { content: "\e690"; } .icon-rss:before { content: "\e691"; } .icon-hdd:before { content: "\e692"; } .icon-bullhorn:before { content: "\e693"; } .icon-bell:before { content: "\e694"; } .icon-certificate:before { content: "\e695"; } .icon-hand-right:before { content: "\e696"; } .icon-hand-left:before { content: "\e697"; } .icon-hand-up:before { content: "\e698"; } .icon-hand-down:before { content: "\e699"; } .<API key>:before { content: "\e69a"; } .<API key>:before { content: "\e69b"; } .<API key>:before { content: "\e69c"; } .<API key>:before { content: "\e69d"; } .icon-globe:before { content: "\e69e"; } .icon-wrench:before { content: "\e69f"; } .icon-tasks:before { content: "\e6a0"; } .icon-filter:before { content: "\e6a1"; } .icon-fullscreen:before { content: "\e6a3"; } .icon-group:before { content: "\e6a4"; } .icon-link:before { content: "\e6a5"; } .icon-cloud:before { content: "\e6a6"; } .icon-beaker:before { content: "\e6a7"; } .icon-cut:before { content: "\e6a8"; } .icon-copy:before { content: "\e6a9"; } .icon-paper-clip:before { content: "\e6aa"; } .icon-save:before { content: "\e6ab"; } .icon-sign-blank:before { content: "\e6ac"; } .icon-reorder:before { content: "\e6ad"; } .icon-list-ul:before { content: "\e6ae"; } .icon-list-ol:before { content: "\e6af"; } .icon-table:before { content: "\e6b2"; } .icon-magic:before { content: "\e6b3"; } .icon-caret-down:before { content: "\e6b8"; } .icon-caret-up:before { content: "\e6b9"; } .icon-caret-left:before { content: "\e6ba"; } .icon-caret-right:before { content: "\e6bb"; } .icon-columns:before { content: "\e6bc"; } .icon-sort:before { content: "\e6bd"; } .icon-sort-down:before { content: "\e6be"; } .icon-sort-up:before { content: "\e6bf"; } .icon-envelope-alt:before { content: "\e6c0"; } .icon-undo:before { content: "\e6c1"; } .icon-dashboard:before { content: "\e6c3"; } .icon-comment-alt:before { content: "\e6c4"; } .icon-comments-alt:before { content: "\e6c5"; } .icon-bolt:before { content: "\e6c6"; } .icon-sitemap:before { content: "\e6c7"; } .icon-umbrella:before { content: "\e6c8"; } .icon-paste:before { content: "\e6c9"; } .icon-lightbulb:before { content: "\e6ca"; } .icon-exchange:before { content: "\e6cb"; } .icon-cloud-download:before { content: "\e6cc"; } .icon-cloud-upload:before { content: "\e6cd"; } .icon-bell-alt:before { content: "\e6d1"; } .icon-coffee:before { content: "\e6d2"; } .icon-file-text-alt:before { content: "\e6d4"; } .icon-building:before { content: "\e6d5"; } .<API key>:before { content: "\e6dc"; } .<API key>:before { content: "\e6dd"; } .<API key>:before { content: "\e6de"; } .<API key>:before { content: "\e6df"; } .icon-angle-left:before { content: "\e6e0"; } .icon-angle-right:before { content: "\e6e1"; } .icon-angle-up:before { content: "\e6e2"; } .icon-angle-down:before { content: "\e6e3"; } .icon-desktop:before { content: "\e6e4"; } .icon-laptop:before { content: "\e6e5"; } .icon-tablet:before { content: "\e6e6"; } .icon-mobile:before { content: "\e6e7"; } .icon-mobile-phone:before { content: "\e6e7"; } .icon-circle-blank:before { content: "\e6e8"; } .icon-quote-left:before { content: "\e6e9"; } .icon-quote-right:before { content: "\e6ea"; } .icon-spinner:before { content: "\e6eb"; } .icon-circle:before { content: "\e6ec"; } .icon-reply:before { content: "\e6ed"; } .<API key>:before { content: "\e6ef"; } .<API key>:before { content: "\e6f0"; } .icon-expand-alt:before { content: "\e6f1"; } .icon-collapse-alt:before { content: "\e6f2"; } .icon-smile:before { content: "\e6f3"; } .icon-frown:before { content: "\e6f4"; } .icon-meh:before { content: "\e6f5"; } .icon-gamepad:before { content: "\e6f6"; } .icon-keyboard:before { content: "\e6f7"; } .icon-flag-alt:before { content: "\e6f8"; } .icon-flag-checkered:before { content: "\e6f9"; } .icon-terminal:before { content: "\e6fa"; } .icon-code:before { content: "\e6fb"; } .icon-reply-all:before { content: "\e6fc"; } .icon-star-half-full:before { content: "\e6fd"; } .icon-location-arrow:before { content: "\e6fe"; } .icon-crop:before { content: "\e6ff"; } .icon-code-fork:before { content: "\e700"; } .icon-unlink:before { content: "\e701"; } .icon-question:before { content: "\e702"; } .icon-info:before { content: "\e703"; } .icon-shield:before { content: "\e70b"; } .icon-calendar-empty:before { content: "\e70c"; } .icon-rocket:before { content: "\e70e"; } .<API key>:before { content: "\e70f"; } .<API key>:before { content: "\e710"; } .<API key>:before { content: "\e711"; } .<API key>:before { content: "\e712"; } .icon-html5:before { content: "\e713"; } .icon-anchor:before { content: "\e714"; } .icon-unlock-alt:before { content: "\e715"; } .icon-bullseye:before { content: "\e716"; } .<API key>:before { content: "\e717"; } .<API key>:before { content: "\e718"; } .icon-rss-sign:before { content: "\e719"; } .icon-play-sign:before { content: "\e71a"; } .icon-minus-sign-alt:before { content: "\e71c"; } .icon-check-minus:before { content: "\e71d"; } .icon-level-up:before { content: "\e71e"; } .icon-level-down:before { content: "\e71f"; } .icon-check-sign:before { content: "\e720"; } .icon-edit-sign:before { content: "\e721"; } .<API key>:before { content: "\e722"; } .icon-share-sign:before { content: "\e723"; } .icon-compass:before { content: "\e724"; } .icon-collapse:before { content: "\e725"; } .icon-collapse-top:before { content: "\e726"; } .icon-expand:before { content: "\e727"; } .icon-dollar:before { content: "\e728"; } .icon-yen:before { content: "\e729"; } .icon-renminbi:before { content: "\e72a"; } .icon-file2:before { content: "\e72b"; } .icon-file-text:before { content: "\e72c"; } .<API key>:before { content: "\e72d"; } .<API key>:before { content: "\e72e"; } .<API key>:before { content: "\e72f"; } .<API key>:before { content: "\e730"; } .icon-sort-by-order:before { content: "\e731"; } .<API key>:before { content: "\e732"; } .icon-thumbs-up2:before { content: "\e733"; } .icon-thumbs-down2:before { content: "\e734"; } .<API key>:before { content: "\e736"; } .icon-long-arrow-up:before { content: "\e737"; } .<API key>:before { content: "\e738"; } .<API key>:before { content: "\e739"; } .icon-apple:before { content: "\e73a"; } .icon-windows:before { content: "\e73b"; } .icon-android:before { content: "\e73c"; } .icon-linux:before { content: "\e73d"; } .icon-sun:before { content: "\e742"; } .icon-moon:before { content: "\e743"; } .icon-archive:before { content: "\e744"; } .icon-bug:before { content: "\e745"; } .icon-weibo:before { content: "\e746"; } .icon-renren:before { content: "\e747"; } .icon-qq:before { content: "\e600"; } .icon-chrome:before { content: "\e76c"; } .icon-firefox:before { content: "\e76d"; } .icon-ie:before { content: "\e76e"; } .icon-opera:before { content: "\e76f"; } .icon-safari:before { content: "\e770"; } .icon-node:before { content: "\e76a"; } .icon-layout:before { content: "\e768"; } .icon-usecase:before { content: "\e74a"; } .icon-stack:before { content: "\e769"; } .icon-branch:before { content: "\e74b"; } .icon-chat:before { content: "\e74c"; } .icon-comment-line:before { content: "\e74f"; } .icon-chat-dot:before { content: "\e750"; } .icon-cube:before { content: "\e751"; } .icon-align-left:before { content: "\e633"; } .close { float: right; font-size: 19.5px; font-weight: bold; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; filter: alpha(opacity=20); opacity: .2; } .close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; filter: alpha(opacity=50); opacity: .5; } button.close { -webkit-appearance: none; padding: 0; cursor: pointer; background: transparent; border: 0; } table { max-width: 100%; background-color: transparent; } th { text-align: left; } .table { width: 100%; margin-bottom: 20px; } .table th, .table td { padding: 8px; line-height: 1.53846154; vertical-align: top; border-bottom: 1px solid #ddd; -webkit-transition: all .3s cubic-bezier(.175, .885, .32, 1); -o-transition: all .3s cubic-bezier(.175, .885, .32, 1); transition: all .3s cubic-bezier(.175, .885, .32, 1); } .table > thead > tr > th { vertical-align: bottom; background-color: #f1f1f1; border-bottom: 1px solid #ddd; } .table-fixed { table-layout: fixed; } .table-fixed th, .table-fixed td { overflow: hidden; white-space: nowrap; } .table-fixed tfoot > tr > th, .table-fixed tfoot > tr > td, .table-fixed th.nofixed, .table-fixed td.nofixed { overflow: visible; } .table-borderless th, .table-borderless td { border: none; } .table-condensed th, .table-condensed td { padding: 5px; } .table-bordered { border: 1px solid #ddd; } .table-bordered th, .table-bordered td { border: 1px solid #ddd; } .table-striped > tbody > tr:nth-child(odd) > td, .table-striped > tbody > tr:nth-child(odd) > th { background-color: #f9f9f9; } .table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background-color: #ebf5f9; } table col[class*="col-"] { display: table-column; float: none; } table td[class*="col-"], table th[class*="col-"] { display: table-cell; float: none; } .table tr > td.active, .table tr > th.active, .table tr.active > td, .table tr.active > th { background-color: #ffebcc; } .table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th { background-color: #e5ffee; border-color: #ccffd5; } .table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr.success:hover > th { background-color: #ccffde; border-color: #b2ffc1; } .table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th { background-color: #ffeae5; border-color: #fcc; } .table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr.danger:hover > th { background-color: #ffd4cc; border-color: #ffb2b2; } .table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th { background-color: #fff5e5; border-color: #ffe3cc; } .table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr.warning:hover > th { background-color: #ffebcc; border-color: #ffd5b2; } .list-group { padding-left: 0; margin-bottom: 20px; } .list-group-item { position: relative; display: block; padding: 10px 15px; margin-bottom: -1px; background-color: #fff; border: 1px solid #ddd; } .list-group-item:first-child { <API key>: 4px; <API key>: 4px; } .list-group-item:last-child { margin-bottom: 0; <API key>: 4px; <API key>: 4px; } .list-group-item > .label-badge { float: right; } .list-group-item > .label-badge + .label-badge { margin-right: 5px; } a.list-group-item { color: #555; } a.list-group-item .<API key> { color: #333; } a.list-group-item:hover, a.list-group-item:focus { color: #353535; text-decoration: none; background-color: #ebf5f9; } .list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { z-index: 2; color: #fff; background-color: #108bf1; border-color: #108bf1; } .list-group-item.active .<API key>, .list-group-item.active:hover .<API key>, .list-group-item.active:focus .<API key> { color: inherit; } .list-group-item.active .<API key>, .list-group-item.active:hover .<API key>, .list-group-item.active:focus .<API key> { color: #e6e6e6; } .<API key> { margin-top: 0; margin-bottom: 5px; color: #333; } .<API key> { margin-bottom: 0; line-height: 1.3; } .panel { margin-bottom: 20px; background-color: #fff; border: 1px solid transparent; border-color: #ddd; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05); box-shadow: 0 1px 1px rgba(0, 0, 0, .05); } .panel > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; } .panel > .panel-heading + .panel-collapse .panel-body { border-top-color: #ddd; } .panel > .panel-footer + .panel-collapse .panel-body { border-bottom-color: #ddd; } .panel-body { padding: 15px; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel-body:before, .panel-body:after { display: table; content: " "; } .panel-body:after { clear: both; } .panel > .table { margin-bottom: 0; } .panel > .panel-body + .table { border-top: 1px solid #ddd; } .panel-heading { padding: 8px 15px; border-bottom: 1px solid transparent; <API key>: 3px; <API key>: 3px; } .panel-title { margin-top: 0; margin-bottom: 0; font-size: 15px; } .panel-title > a { color: inherit; } .panel-footer { padding: 10px 15px; background-color: #f5f5f5; border-top: 1px solid #ddd; <API key>: 3px; <API key>: 3px; } .alert { padding: 15px; margin-bottom: 20px; color: #353535; background-color: #f1f1f1; border: 1px solid transparent; border-color: #e4e4e4; border-radius: 3px; -webkit-transition: all .5s cubic-bezier(.175, .885, .32, 1); -o-transition: all .5s cubic-bezier(.175, .885, .32, 1); transition: all .5s cubic-bezier(.175, .885, .32, 1); } .alert hr { border-top-color: #d7d7d7; } .alert .alert-link { color: #1c1c1c; } .alert h4 { margin-top: 0; color: inherit; } .alert .alert-link { font-weight: bold; } .alert > p, .alert > ul { margin-bottom: 0; } .alert > p + p { margin-top: 5px; } .alert > [class*="icon-"] { float: left; margin-top: -5px; font-size: 42px; opacity: .6; -webkit-transition: opacity .3s cubic-bezier(.175, .885, .32, 1); -o-transition: opacity .3s cubic-bezier(.175, .885, .32, 1); transition: opacity .3s cubic-bezier(.175, .885, .32, 1); } .alert > [class*="icon-"] + .content { min-height: 30px; margin-left: 50px; } .alert.with-icon { display: table; width: 100%; } .alert.with-icon > [class*="icon-"], .alert.with-icon > [class*="icon-"] + .content { display: table-cell; float: none; min-height: 0; margin: 0; vertical-align: middle; } .alert.with-icon > [class*="icon-"] { width: 40px; } .alert.with-icon > [class*="icon-"] + .content { padding-left: 1em; } .alert-block { margin: 0; border-radius: 0; } .alert-dismissable { padding-right: 35px; } .alert-dismissable .close { position: relative; top: -2px; right: -21px; color: inherit; } .alert-success { color: #2ac25f; background-color: #e5ffee; border-color: #ccffd5; } .alert-success hr { border-top-color: #b2ffc1; } .alert-success .alert-link { color: #21984a; } .alert-info { color: #00c3b6; background-color: #e5fffd; border-color: #c2fff1; } .alert-info hr { border-top-color: #a8ffeb; } .alert-info .alert-link { color: #009086; } .alert-warning { color: #f39c11; background-color: #fff5e5; border-color: #ffe3cc; } .alert-warning hr { border-top-color: #ffd5b2; } .alert-warning .alert-link { color: #c77e0a; } .alert-danger { color: #ee4e2f; background-color: #ffeae5; border-color: #fcc; } .alert-danger hr { border-top-color: #ffb2b2; } .alert-danger .alert-link { color: #d83212; } .input-group { position: relative; display: table; border-collapse: separate; } .input-group[class*="col-"] { float: none; padding-right: 0; padding-left: 0; } .input-group .form-control { position: relative; z-index: 2; float: left; width: 100%; margin-bottom: 0; } .input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; } .input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; } .input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; } .input-group-addon { padding: 5px 12px; font-size: 13px; font-weight: normal; line-height: 1; color: #222; text-align: center; background-color: #e5e5e5; border: 1px solid #ccc; border-radius: 4px; } .input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; } .input-group-addon.fix-border { border-right: 0; border-left: 0; } .input-group-addon:empty, .input-group-addon.fix-padding { width: 1px; padding: 0; } .input-group-btn.fix-border > .btn { border-right: 0; border-left: 0; border-radius: 0; } .input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group > .btn, .input-group-btn:first-child > .dropdown-toggle, .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), .input-group-btn:last-child > .btn-group:not(:last-child) > .btn { <API key>: 0; <API key>: 0; } .input-group-addon:first-child { border-right: 0; } .input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group > .btn, .input-group-btn:last-child > .dropdown-toggle, .input-group-btn:first-child > .btn:not(:first-child), .input-group-btn:first-child > .btn-group:not(:first-child) > .btn { <API key>: 0; <API key>: 0; } .input-group-addon:last-child { border-left: 0; } .input-group-btn { position: relative; font-size: 0; white-space: nowrap; } .input-group-btn > .btn { position: relative; } .input-group-btn > .btn + .btn { margin-left: -1px; } .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { z-index: 2; } .input-group-btn:first-child > .btn, .input-group-btn:first-child > .btn-group { margin-right: -1px; } .input-group-btn:last-child > .btn, .input-group-btn:last-child > .btn-group { margin-left: -1px; } .input-group-lg > .form-control, .input-group-lg > .input-group-addon, .input-group-lg > .input-group-btn > .btn { height: 43px; padding: 10px 16px; font-size: 17px; line-height: 1.25; border-radius: 6px; } select.input-group-lg > .form-control, select.input-group-lg > .input-group-addon, select.input-group-lg > .input-group-btn > .btn { height: 43px; line-height: 43px; } textarea.input-group-lg > .form-control, textarea.input-group-lg > .input-group-addon, textarea.input-group-lg > .input-group-btn > .btn { height: auto; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { height: 24px; padding: 2px 8px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-group-sm > .form-control, select.input-group-sm > .input-group-addon, select.input-group-sm > .input-group-btn > .btn { height: 24px; line-height: 24px; } textarea.input-group-sm > .form-control, textarea.input-group-sm > .input-group-addon, textarea.input-group-sm > .input-group-btn > .btn { height: auto; } .input-group-addon.input-sm { padding: 2px 8px; font-size: 12px; border-radius: 3px; } .input-group-addon.input-lg { padding: 10px 16px; font-size: 17px; border-radius: 6px; } fieldset { padding: 0; margin: 0; border: 0; } legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 19.5px; line-height: inherit; color: #333; border: 0; border-bottom: 1px solid #e5e5e5; } label { display: inline-block; margin-bottom: 5px; font-weight: bold; } input[type="search"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; margin-top: 1px \9; /* IE8-9 */ line-height: normal; } input[type="file"] { display: block; } select[multiple], select[size] { height: auto; } select optgroup { font-family: inherit; font-size: inherit; font-style: inherit; } input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus { outline: thin dotted #333; outline: 5px auto -<API key>; outline-offset: -2px; } input[type="number"]::-<API key>, input[type="number"]::-<API key> { height: auto; } .form-control:-moz-placeholder { color: #808080; } .form-control::-moz-placeholder { color: #808080; } .form-control:-<API key> { color: #808080; } .form-control::-<API key> { color: #808080; } .form-control { display: block; width: 100%; height: 32px; padding: 5px 8px; font-size: 13px; line-height: 1.53846154; color: #222; vertical-align: middle; background-color: #fff; border: 1px solid #ccc; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .form-control:focus { border-color: #18609d; outline: 0; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(24, 96, 157, .6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(24, 96, 157, .6); } .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { cursor: not-allowed; background-color: #e5e5e5; } textarea.form-control { height: auto; } .form-group { margin-bottom: 15px; } .radio, .checkbox { display: block; min-height: 20px; padding-left: 20px; margin-top: 10px; margin-bottom: 10px; vertical-align: middle; } .radio label, .checkbox label { display: inline; margin-bottom: 0; font-weight: normal; cursor: pointer; } .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox input[type="checkbox"], .checkbox-inline input[type="checkbox"] { float: left; margin-left: -20px; } .radio + .radio, .checkbox + .checkbox { margin-top: -5px; } .radio-inline, .checkbox-inline { display: inline-block; padding-left: 20px; margin-bottom: 0; font-weight: normal; vertical-align: middle; cursor: pointer; } .radio-inline + .radio-inline, .checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; } input[type="radio"][disabled], input[type="checkbox"][disabled], .radio[disabled], .radio-inline[disabled], .checkbox[disabled], .checkbox-inline[disabled], fieldset[disabled] input[type="radio"], fieldset[disabled] input[type="checkbox"], fieldset[disabled] .radio, fieldset[disabled] .radio-inline, fieldset[disabled] .checkbox, fieldset[disabled] .checkbox-inline { cursor: not-allowed; } .input-sm { height: 24px; padding: 2px 8px; font-size: 12px; line-height: 1.5; border-radius: 3px; } select.input-sm { height: 24px; line-height: 24px; } textarea.input-sm { height: auto; } .input-lg { height: 43px; padding: 10px 16px; font-size: 17px; line-height: 1.25; border-radius: 6px; } select.input-lg { height: 43px; line-height: 43px; } textarea.input-lg { height: auto; } .has-warning .help-block, .has-warning .control-label { color: #f39c11; } .has-warning .form-control { border-color: #f39c11; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); } .has-warning .form-control:focus { border-color: #c77e0a; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #f8c472; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #f8c472; } .has-warning .input-group-addon { color: #f39c11; background-color: #fff5e5; border-color: #f39c11; } .has-error .help-block, .has-error .control-label { color: #ee4e2f; } .has-error .form-control { border-color: #ee4e2f; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); } .has-error .form-control:focus { border-color: #d83212; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #f69e8d; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #f69e8d; } .has-error .input-group-addon { color: #ee4e2f; background-color: #ffeae5; border-color: #ee4e2f; } .has-success .help-block, .has-success .control-label { color: #2ac25f; } .has-success .form-control { border-color: #2ac25f; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); } .has-success .form-control:focus { border-color: #21984a; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #72e098; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #72e098; } .has-success .input-group-addon { color: #2ac25f; background-color: #e5ffee; border-color: #2ac25f; } .form-control-static { padding-top: 6px; margin-bottom: 0; } .help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #757575; } @media (min-width: 768px) { .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; } .form-inline .form-control { display: inline-block; } .form-inline .radio, .form-inline .checkbox { display: inline-block; padding-left: 0; margin-top: 0; margin-bottom: 0; } .form-inline .radio input[type="radio"], .form-inline .checkbox input[type="checkbox"] { float: none; margin-left: 0; } } .form-horizontal .control-label, .form-horizontal .radio, .form-horizontal .checkbox, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { padding-top: 6px; margin-top: 0; margin-bottom: 0; } .form-horizontal .form-group { margin-right: -10px; margin-left: -10px; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } .form-horizontal .form-group:before, .form-horizontal .form-group:after { display: table; content: " "; } .form-horizontal .form-group:after { clear: both; } @media (min-width: 768px) { .form-horizontal .control-label { text-align: right; } } .required { position: relative; } .required:after { position: absolute; top: 5px; display: inline-block; font-size: 17px; color: #ee4e2f; content: '*'; } code, kdb, pre, samp { font-family: Monaco, Menlo, Consolas, "Courier New", monospace; } code { padding: 2px 4px; margin: 0 4px; font-size: 90%; color: #ee4e2f; white-space: nowrap; background-color: #f1f1f1; border: 1px solid #d7d7d7; border-radius: 4px; } pre { display: block; padding: 9.5px; margin: 0 0 10px; font-size: 12px; line-height: 1.53846154; color: #333; word-break: break-all; word-wrap: break-word; background-color: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; } pre code { padding: 0; margin: 0; font-size: inherit; color: inherit; white-space: pre-wrap; background-color: transparent; border: 0; } .pre-scrollable { max-height: 340px; overflow-y: scroll; } .com { color: #93a1a1; } .lit { color: #195f91; } .pun, .opn, .clo { color: #93a1a1; } .fun { color: #dc322f; } .str, .atv { color: #d14; } .kwd, .prettyprint .tag { color: #1e347b; } .typ, .atn, .dec, .var { color: teal; } .pln { color: #48484c; } .prettyprint { padding: 8px; background-color: #f7f7f9; } .prettyprint.linenums { -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; } /* Specify class=linenums on a pre to get line numbering */ ol.linenums li { padding-left: 12px; line-height: 20px; color: #bebec5; text-shadow: 0 1px 0 #fff; } .pager { display: inline-block; padding-left: 0; margin: 20px 0; border-radius: 4px; } .pager > li { display: inline; } .pager > li > a, .pager > li > span { position: relative; float: left; padding: 5px 12px; margin-left: -1px; line-height: 1.53846154; text-decoration: none; background-color: #fff; border: 1px solid #ddd; -webkit-transition: all .3s cubic-bezier(.175, .885, .32, 1); -o-transition: all .3s cubic-bezier(.175, .885, .32, 1); transition: all .3s cubic-bezier(.175, .885, .32, 1); } .pager > li:first-child > a, .pager > li:first-child > span { margin-left: 0; <API key>: 4px; <API key>: 4px; } .pager > li:last-child > a, .pager > li:last-child > span { <API key>: 4px; <API key>: 4px; } .pager > li > a:hover, .pager > li > span:hover, .pager > li > a:focus, .pager > li > span:focus { background-color: #e5e5e5; } .pager > .active > a, .pager > .active > span, .pager > .active > a:hover, .pager > .active > span:hover, .pager > .active > a:focus, .pager > .active > span:focus { z-index: 2; color: #fff; cursor: default; background-color: #108bf1; } .pager > .disabled > span, .pager > .disabled > span:hover, .pager > .disabled > span:focus, .pager > .disabled > a, .pager > .disabled > a:hover, .pager > .disabled > a:focus { color: #ddd; cursor: not-allowed; background-color: #fff; border-color: #ddd; } .pager-justify { display: block; } .pager-justify:before, .pager-justify:after { display: table; content: " "; } .pager-justify:after { clear: both; } .pager-justify:before, .pager-justify:after { display: table; content: " "; } .pager-justify:after { clear: both; } .pager-justify .next > a, .pager-justify .next > span { float: right; } .pager-justify .previous > a, .pager-justify .previous > span { float: left; } .nav { padding-left: 0; margin-bottom: 0; list-style: none; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav:before, .nav:after { display: table; content: " "; } .nav:after { clear: both; } .nav > .nav-heading { padding: 8px 15px; font-weight: bold; color: #808080; } .nav > li { position: relative; display: block; } .nav > li > a { position: relative; display: block; padding: 8px 15px; color: #353535; -webkit-transition: all .3s cubic-bezier(.175, .885, .32, 1); -o-transition: all .3s cubic-bezier(.175, .885, .32, 1); transition: all .3s cubic-bezier(.175, .885, .32, 1); } .nav > li > a:hover, .nav > li > a:focus { color: #0e385a; text-decoration: none; background-color: #f1f1f1; } .nav > li.disabled > a { color: #ddd; } .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { color: #ddd; text-decoration: none; cursor: not-allowed; background-color: transparent; } .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { background-color: #f1f1f1; border-color: #18609d; } .nav .open > a .caret, .nav .open > a:hover .caret, .nav .open > a:focus .caret { border-top-color: #0e385a; border-bottom-color: #0e385a; } .nav > li > a > img { max-width: none; } .nav-pills > li { float: left; } .nav-pills > li > a { border-radius: 20px; } .nav-pills > li + li { margin-left: 2px; } .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { color: #fff; background-color: #108bf1; } .nav-pills > li.active > a .caret, .nav-pills > li.active > a:hover .caret, .nav-pills > li.active > a:focus .caret { border-top-color: #fff; border-bottom-color: #fff; } .nav-primary > li { float: left; margin-left: -1px; } .nav-primary > li:first-child > a { margin-left: 0; <API key>: 4px; <API key>: 4px; } .nav-primary > li:last-child > a { <API key>: 4px; <API key>: 4px; } .nav-primary > li > a { border: 1px solid #ddd; } .nav-primary > li.active > a, .nav-primary > li.active > a:hover, .nav-primary > li.active > a:focus { color: #fff; background-color: #108bf1; border-color: #108bf1; } .nav-primary > li.active > a .caret, .nav-primary > li.active > a:hover .caret, .nav-primary > li.active > a:focus .caret { border-top-color: #fff; border-bottom-color: #fff; } .nav-secondary > li { float: left; } .nav-secondary > li > a { border-bottom: 2px solid #e5e5e5; } .nav-secondary > li.active > a, .nav-secondary > li.active > a:hover, .nav-secondary > li.active > a:focus { color: #108bf1; border-bottom-color: #108bf1; } .nav-secondary > li.active > a .caret, .nav-secondary > li.active > a:hover .caret, .nav-secondary > li.active > a:focus .caret { border-top-color: #108bf1; border-bottom-color: #108bf1; } .nav-secondary > li.nav-heading { border-bottom: 2px solid #e5e5e5; } .nav-stacked > li { float: none; } .nav-stacked > li + li { margin-top: 2px; margin-left: 0; } .nav-stacked.nav-primary > li, .nav-stacked.nav-primary > li > a { margin-left: 0; <API key>: 0; <API key>: 0; } .nav-stacked.nav-primary > li + li { margin-top: -1px; } .nav-stacked.nav-primary > li:first-child { margin-top: 0; } .nav-stacked.nav-primary > li:first-child > a, .nav-stacked.nav-primary > li:first-child.nav-heading { margin-left: 0; <API key>: 4px; <API key>: 4px; } .nav-stacked.nav-primary > li:last-child > a { <API key>: 4px; <API key>: 4px; } .nav-stacked.nav-primary > li.nav-heading { background-color: #f1f1f1; border: 1px solid #ddd; } .nav-justified { width: 100%; } .nav-justified > li { float: none; } .nav-justified > li > a { margin-bottom: 5px; text-align: center; } @media (min-width: 768px) { .nav-justified > li { display: table-cell; width: 1%; } .nav-justified > li > a { margin-bottom: 0; } .nav-justified.nav-primary > li + li > a { border-left: 0; } } .nav .caret { border-top-color: #18609d; border-bottom-color: #18609d; } .nav a:hover .caret { border-top-color: #0e385a; border-bottom-color: #0e385a; } .navbar { position: relative; z-index: 1000; min-height: 40px; margin-bottom: 20px; font-size: 14px; border: 1px solid transparent; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } .navbar:before, .navbar:after { display: table; content: " "; } .navbar:after { clear: both; } @media (min-width: 768px) { .navbar { border-radius: 4px; } } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } .navbar-header:before, .navbar-header:after { display: table; content: " "; } .navbar-header:after { clear: both; } @media (min-width: 768px) { .navbar-header { float: left; } } .navbar-collapse { max-height: 340px; padding-right: 10px; padding-left: 10px; overflow-x: visible; -<API key>: touch; border-top: 1px solid transparent; -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse:before, .navbar-collapse:after { display: table; content: " "; } .navbar-collapse:after { clear: both; } .navbar-collapse.in { overflow-y: auto; } @media (min-width: 768px) { .navbar-collapse { width: auto; border-top: 0; -webkit-box-shadow: none; box-shadow: none; } .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; } .navbar-collapse.in { overflow-y: visible; } .navbar-collapse .navbar-nav.navbar-left:first-child { margin-left: -10px; } .navbar-collapse .navbar-nav.navbar-right:last-child { margin-right: -10px; } .navbar-collapse .navbar-text:last-child { margin-right: 0; } } .container > .navbar-header, .container > .navbar-collapse { margin-right: -10px; margin-left: -10px; } @media (min-width: 768px) { .container > .navbar-header, .container > .navbar-collapse { margin-right: 0; margin-left: 0; } } .navbar-static-top { border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-static-top { border-radius: 0; } } .navbar-fixed-top, .navbar-fixed-bottom { position: fixed; right: 0; left: 0; border-width: 0 0 1px; } @media (min-width: 768px) { .navbar-fixed-top, .navbar-fixed-bottom { border-radius: 0; } } .navbar-fixed-top { top: 0; z-index: 1030; } .navbar-fixed-bottom { bottom: 0; margin-bottom: 0; } .navbar-brand { float: left; padding: 10px 10px; font-weight: bold; line-height: 20px; } .navbar-brand:hover, .navbar-brand:focus { text-decoration: none; } @media (min-width: 768px) { .navbar > .container .navbar-brand { margin-left: -10px; } } .navbar-toggle { position: relative; float: right; padding: 9px 10px; margin-top: 3px; margin-right: 10px; margin-bottom: 3px; background-color: transparent; border: 1px solid transparent; border-radius: 4px; } .navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; } .navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; } @media (min-width: 768px) { .navbar-toggle { display: none; } } .navbar-nav { margin: 5px -10px; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; } @media (max-width: 767px) { .navbar-nav .open .dropdown-menu { position: static; float: none; width: auto; margin-top: 0; background-color: transparent; border: 0; -webkit-box-shadow: none; box-shadow: none; } .navbar-nav .open .dropdown-menu > li > a, .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; } .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; } .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; } } @media (min-width: 768px) { .navbar-nav { float: left; margin: 0; } .navbar-nav > li { float: left; } .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; } .navbar-nav.nav-justified > li { float: none; } } @media (min-width: 768px) { .navbar-left { float: left !important; } .navbar-right { float: right !important; } } .navbar-nav > li > .dropdown-menu { margin-top: 0; <API key>: 0; <API key>: 0; } .navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { <API key>: 0; <API key>: 0; } .navbar-nav.pull-right > li > .dropdown-menu, .navbar-nav > li > .dropdown-menu.pull-right { right: 0; left: auto; } .navbar-btn { margin-top: 4px; margin-bottom: 4px; } .navbar-text { float: left; margin-top: 10px; margin-bottom: 10px; } @media (min-width: 768px) { .navbar-text { margin-right: 10px; margin-left: 10px; } } .navbar-default { background-color: #f7f7f7; border-color: #dedede; } .navbar-default .navbar-brand { color: #333; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #1a1a1a; background-color: transparent; } .navbar-default .navbar-text { color: #333; } .navbar-default .navbar-nav > li.nav-heading { margin-top: -6px; color: #0d0d0d; background-color: #ebebeb; } .navbar-default .navbar-nav > li > a { color: #333; } .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { color: #222; background-color: #e5e5e5; } .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { color: #ccc; background-color: transparent; } .navbar-default .navbar-toggle { border-color: #ddd; } .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background-color: #ddd; } .navbar-default .navbar-toggle .icon-bar { background-color: #ccc; } .navbar-default .navbar-collapse, .navbar-default .navbar-form { border-color: #dedede; } .navbar-default .navbar-nav > .dropdown > a:hover .caret, .navbar-default .navbar-nav > .dropdown > a:focus .caret { border-top-color: #222; border-bottom-color: #222; } .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav > .open > a .caret, .navbar-default .navbar-nav > .open > a:hover .caret, .navbar-default .navbar-nav > .open > a:focus .caret { border-top-color: #555; border-bottom-color: #555; } .navbar-default .navbar-nav > .dropdown > a .caret { border-top-color: #333; border-bottom-color: #333; } @media (max-width: 767px) { .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #333; } .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #222; background-color: #e5e5e5; } .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555; background-color: #e7e7e7; } .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #ccc; background-color: transparent; } } .navbar-default .navbar-link { color: #333; } .navbar-default .navbar-link:hover { color: #222; } .navbar-inverse { background-color: #18609d; border-color: #114571; } .navbar-inverse .navbar-brand { color: #ddd; } .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { color: #fff; background-color: transparent; } .navbar-inverse .navbar-text { color: #ddd; } .navbar-inverse .navbar-nav > li.nav-heading { margin-top: -6px; color: #b7b7b7; background-color: #145387; } .navbar-inverse .navbar-nav > li > a { color: #ddd; } .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { color: #fff; background-color: #1c71b8; } .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { color: #fff; background-color: #1e7cc9; } .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { color: #444; background-color: transparent; } .navbar-inverse .navbar-toggle { border-color: #1e7cc9; } .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { background-color: #145387; } .navbar-inverse .navbar-toggle .icon-bar { background-color: #fff; } .navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form { border-color: #134d7e; } .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { color: #fff; background-color: #1e7cc9; } .navbar-inverse .navbar-nav > .dropdown > a:hover .caret { border-top-color: #fff; border-bottom-color: #fff; } .navbar-inverse .navbar-nav > .dropdown > a .caret { border-top-color: #ddd; border-bottom-color: #ddd; } .navbar-inverse .navbar-nav > .open > a .caret, .navbar-inverse .navbar-nav > .open > a:hover .caret, .navbar-inverse .navbar-nav > .open > a:focus .caret { border-top-color: #fff; border-bottom-color: #fff; } @media (max-width: 767px) { .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #114571; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #ddd; } .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #fff; background-color: #1c71b8; } .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #fff; background-color: #1e7cc9; } .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444; background-color: transparent; } } .navbar-inverse .navbar-link { color: #ddd; } .navbar-inverse .navbar-link:hover { color: #fff; } .fade { opacity: 0; -webkit-transition: opacity .15s linear; -o-transition: opacity .15s linear; transition: opacity .15s linear; } .fade.in { opacity: 1; } .scale { -webkit-transition: all .15s linear; -o-transition: all .15s linear; transition: all .15s linear; -webkit-transform: scale(.8); -ms-transform: scale(.8); -o-transform: scale(.8); transform: scale(.8); } .scale.in { -webkit-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); transform: scale(1); } .collapse { display: none; } .collapse.in { display: block; } .collapsing { position: relative; height: 0; overflow: hidden; -webkit-transition: height .35s ease; -o-transition: height .35s ease; transition: height .35s ease; } .modal-open { overflow: hidden; } .modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; overflow: hidden; -<API key>: touch; outline: 0; } .modal.fade .modal-dialog { -webkit-transition: -webkit-transform .3s ease-out; -o-transition: -o-transform .3s ease-out; transition: transform .3s ease-out; -webkit-transform: translate3d(0, -25%, 0); transform: translate3d(0, -25%, 0); } .modal.in .modal-dialog { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .modal > .loader { display: none; } .modal.modal-loading .modal-dialog { opacity: 0; } .modal.modal-loading .loader { position: absolute; top: 35%; left: 50%; display: block; width: 80px; margin-left: -40px; font-size: 56px; color: #fff; text-align: center; } .modal-open .modal { overflow-x: hidden; overflow-y: auto; } .modal-iframe .modal-body > iframe { border-radius: 0 0 6px 6px; } .modal-dialog { position: relative; width: auto; background-color: #fff; -<API key>: padding-box; background-clip: padding-box; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; outline: 0; -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5); box-shadow: 0 3px 9px rgba(0, 0, 0, .5); } .modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; } .modal-backdrop.fade { filter: alpha(opacity=0); opacity: 0; } .modal-backdrop.in { filter: alpha(opacity=50); opacity: .5; } .modal-header { min-height: 16.53846154px; padding: 15px; border-bottom: 1px solid #e5e5e5; } .modal-header .close { margin-top: -2px; } .modal-title { margin: 0; line-height: 1.53846154; } .modal-body { position: relative; padding: 15px; } .modal-footer { padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; } .modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; } .modal-footer .btn-group .btn + .btn { margin-left: -1px; } .modal-footer .btn-block + .btn-block { margin-left: 0; } .<API key> { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; } @media (min-width: 768px) { .modal-dialog { width: 600px; margin: 30px auto; -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5); box-shadow: 0 5px 15px rgba(0, 0, 0, .5); } .modal-sm { width: 300px; } } @media (min-width: 992px) { .modal-lg { width: 900px; } } .tooltip { position: absolute; z-index: 1030; display: block; font-size: 12px; line-height: 1.4; visibility: visible; filter: alpha(opacity=0); opacity: 0; } .tooltip.in { filter: alpha(opacity=100); opacity: 1; } .tooltip.top { padding: 5px 0; margin-top: -3px; } .tooltip.right { padding: 0 5px; margin-left: 3px; } .tooltip.bottom { padding: 5px 0; margin-top: 3px; } .tooltip.left { padding: 0 5px; margin-left: -3px; } .tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; text-decoration: none; background-color: #353535; border-radius: 4px; } .tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } .tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #353535; } .tooltip.top-left .tooltip-arrow { bottom: 0; left: 5px; border-width: 5px 5px 0; border-top-color: #353535; } .tooltip.top-right .tooltip-arrow { right: 5px; bottom: 0; border-width: 5px 5px 0; border-top-color: #353535; } .tooltip.right .tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #353535; } .tooltip.left .tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #353535; } .tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #353535; } .tooltip.bottom-left .tooltip-arrow { top: 0; left: 5px; border-width: 0 5px 5px; border-bottom-color: #353535; } .tooltip.bottom-right .tooltip-arrow { top: 0; right: 5px; border-width: 0 5px 5px; border-bottom-color: #353535; } .popover { position: absolute; top: 0; left: 0; z-index: 1010; display: none; max-width: 300px; padding: 1px; text-align: left; white-space: normal; background-color: #fff; -<API key>: padding-box; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0, 0, 0, .2); border-radius: 4px; -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, .2); box-shadow: 0 5px 10px rgba(0, 0, 0, .2); } .popover.top { margin-top: -10px; } .popover.right { margin-left: 10px; } .popover.bottom { margin-top: 10px; } .popover.left { margin-left: -10px; } .popover.no-arrow.top { margin-top: 0; } .popover.no-arrow.right { margin-left: 0; } .popover.no-arrow.bottom { margin-top: 0; } .popover.no-arrow.left { margin-left: 0; } .popover-title { padding: 8px 14px; margin: 0; font-size: 13px; font-weight: normal; line-height: 18px; background-color: #f7f7f7; border-bottom: 1px solid #ebebeb; border-radius: 5px 5px 0 0; } .popover-content { padding: 9px 14px; } .popover .arrow, .popover .arrow:after { position: absolute; display: block; width: 0; height: 0; border-color: transparent; border-style: solid; } .popover .arrow { border-width: 11px; } .popover .arrow:after { content: ""; border-width: 10px; } .popover.top .arrow { bottom: -11px; left: 50%; margin-left: -11px; border-top-color: #999; border-top-color: rgba(0, 0, 0, .25); border-bottom-width: 0; } .popover.top .arrow:after { bottom: 1px; margin-left: -10px; content: " "; border-top-color: #fff; border-bottom-width: 0; } .popover.right .arrow { top: 50%; left: -11px; margin-top: -11px; border-right-color: #999; border-right-color: rgba(0, 0, 0, .25); border-left-width: 0; } .popover.right .arrow:after { bottom: -10px; left: 1px; content: " "; border-right-color: #fff; border-left-width: 0; } .popover.bottom .arrow { top: -11px; left: 50%; margin-left: -11px; border-top-width: 0; border-bottom-color: #999; border-bottom-color: rgba(0, 0, 0, .25); } .popover.bottom .arrow:after { top: 1px; margin-left: -10px; content: " "; border-top-width: 0; border-bottom-color: #fff; } .popover.left .arrow { top: 50%; right: -11px; margin-top: -11px; border-right-width: 0; border-left-color: #999; border-left-color: rgba(0, 0, 0, .25); } .popover.left .arrow:after { right: 1px; bottom: -10px; content: " "; border-right-width: 0; border-left-color: #fff; } .caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid #353535; border-right: 4px solid transparent; border-bottom: 0 dotted; border-left: 4px solid transparent; } .dropdown { position: relative; } .dropdown-toggle:focus { outline: 0; } .dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 13px; list-style: none; background-color: #fff; -<API key>: padding-box; background-clip: padding-box; border: 1px solid #cbcbcb; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175); box-shadow: 0 6px 12px rgba(0, 0, 0, .175); } .dropdown-menu.pull-right { right: 0; left: auto; } .dropdown-menu .divider { height: 1px; margin: 9px 0; overflow: hidden; background-color: #e5e5e5; } .dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.53846154; color: #353535; white-space: nowrap; } .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #fff; text-decoration: none; background-color: #108bf1; } .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { color: #fff; text-decoration: none; background-color: #108bf1; outline: 0; } .dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { color: #ddd; } .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { text-decoration: none; cursor: not-allowed; background-color: transparent; background-image: none; filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); } .open > .dropdown-menu { display: block; } .open > a { outline: 0; } .dropdown-header { display: block; padding: 3px 20px; font-size: 12px; font-weight: bold; line-height: 1.53846154; color: #808080; } .dropdown-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 990; } .pull-right > .dropdown-menu { right: 0; left: auto; } .dropup .caret, .navbar-fixed-bottom .dropdown .caret { content: ""; border-top: 0 dotted; border-bottom: 4px solid #353535; } .dropup .dropdown-menu, .navbar-fixed-bottom .dropdown .dropdown-menu { top: auto; bottom: 100%; margin-bottom: 1px; } @media (min-width: 768px) { .navbar-right .dropdown-menu { right: 0; left: auto; } } .dropdown-submenu { position: relative; } .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; margin-left: -1px; border-radius: 4px; } .dropdown-submenu:hover > .dropdown-menu { display: block; } .dropup .dropdown-submenu > .dropdown-menu { top: auto; bottom: 0; margin-top: 0; margin-bottom: -2px; border-radius: 4px; } .dropdown-submenu > a:after { display: block; float: right; width: 0; height: 0; margin-top: 5px; margin-right: -10px; content: " "; border-color: transparent; border-style: solid; border-width: 5px 0 5px 5px; border-left-color: #ccc; } .dropdown-submenu:hover > a:after { border-left-color: #fff; } .dropdown-submenu.pull-left { float: none; } .dropdown-submenu.pull-left > a { min-width: 160px; } .dropdown-submenu.pull-left > .dropdown-menu { left: -100%; border-radius: 4px; } .dropdown-submenu:hover > a, .dropdown-submenu:focus > a { color: #fff; text-decoration: none; background-color: #108bf1; } .carousel { position: relative; } .carousel-inner { position: relative; width: 100%; overflow: hidden; } .carousel-inner > .item { position: relative; display: none; -webkit-transition: .6s ease-in-out left; -o-transition: .6s ease-in-out left; transition: .6s ease-in-out left; } .carousel-inner > .item > img, .carousel-inner > .item > a > img { display: block; max-width: 100%; height: auto; line-height: 1; } .carousel-inner > .active, .carousel-inner > .next, .carousel-inner > .prev { display: block; } .carousel-inner > .active { left: 0; } .carousel-inner > .next, .carousel-inner > .prev { position: absolute; top: 0; width: 100%; } .carousel-inner > .next { left: 100%; } .carousel-inner > .prev { left: -100%; } .carousel-inner > .next.left, .carousel-inner > .prev.right { left: 0; } .carousel-inner > .active.left { left: -100%; } .carousel-inner > .active.right { left: 100%; } .carousel-control { position: absolute; top: 0; bottom: 0; left: 0; width: 15%; font-size: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); filter: alpha(opacity=50); outline: none; opacity: .5; } .carousel-control.left { background-image: -webkit-gradient(linear, 0% top, 100% top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); background-image: -<API key>(left, color-stop(rgba(0, 0, 0, .5) 0%), color-stop(rgba(0, 0, 0, .0001) 100%)); background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .5)), to(rgba(0, 0, 0, .0001))); background-image: -<API key>(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); background-repeat: repeat-x; } .carousel-control.right { right: 0; left: auto; background-image: -webkit-gradient(linear, 0% top, 100% top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); background-image: -<API key>(left, color-stop(rgba(0, 0, 0, .0001) 0%), color-stop(rgba(0, 0, 0, .5) 100%)); background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, .0001)), to(rgba(0, 0, 0, .5))); background-image: -<API key>(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); background-image: -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); background-image: linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); background-repeat: repeat-x; } .carousel-control:hover, .carousel-control:focus { color: #fff; text-decoration: none; filter: alpha(opacity=90); outline: none; opacity: .9; } .carousel-control .icon-prev, .carousel-control .icon-next, .carousel-control .icon-chevron-left, .carousel-control .icon-chevron-right { position: absolute; top: 50%; z-index: 5; display: inline-block; } .carousel-control .icon-prev, .carousel-control .icon-chevron-left { left: 50%; } .carousel-control .icon-next, .carousel-control .icon-chevron-right { right: 50%; } .carousel-control .icon-prev, .carousel-control .icon-next { width: 20px; height: 20px; margin-top: -10px; margin-left: -10px; font-family: serif; } .carousel-control .icon-prev:before { content: '\2039'; } .carousel-control .icon-next:before { content: '\203a'; } .carousel-caption { position: absolute; right: 15%; bottom: 20px; left: 15%; z-index: 10; padding-top: 20px; padding-bottom: 20px; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); } .carousel-caption .btn { text-shadow: none; } @media screen and (min-width: 768px) { .carousel-control .icon-prev, .carousel-control .icon-next { top: 40%; width: 30px; height: 30px; margin-top: -15px; margin-left: -15px; font-size: 80px; } .carousel-control .icon-prev { left: 30%; } .carousel-control .icon-next { right: 25%; } .carousel-caption { right: 20%; left: 20%; padding-bottom: 30px; } .carousel-indicators { bottom: 20px; } } .carousel-indicators { position: absolute; bottom: 10px; left: 50%; z-index: 15; width: 60%; padding-left: 0; margin-left: -30%; text-align: center; list-style: none; } .carousel-indicators li { display: inline-block; width: 10px; height: 10px; margin: 1px; text-indent: -999px; cursor: pointer; border: 1px solid #fff; border-radius: 10px; } .carousel-indicators .active { width: 12px; height: 12px; margin: 0; background-color: #fff; } .bg-default { color: #fff; background-color: #353535; } a.bg-default:hover { background-color: #1c1c1c; } .bg-primary { color: #fff; background-color: #108bf1; } a.bg-primary:hover { background-color: #0b70c3; } .bg-success { color: #fff; background-color: #2ac25f; } a.bg-success:hover { background-color: #21984a; } .bg-info { color: #fff; background-color: #00c3b6; } a.bg-info:hover { background-color: #009086; } .bg-warning { color: #fff; background-color: #f39c11; } a.bg-warning:hover { background-color: #c77e0a; } .bg-danger { color: #fff; background-color: #ee4e2f; } a.bg-danger:hover { background-color: #d83212; } .bg-important { color: #fff; background-color: #a76531; } a.bg-important:hover { background-color: #804d25; } .bg-special { color: #fff; background-color: #6f5499; } a.bg-special:hover { background-color: #574278; } .highlight-default { background-color: #f1f1f1; } a.highlight-default:hover { background-color: #d7d7d7; } .highlight-primary { background-color: #ebf5f9; } a.highlight-primary:hover { background-color: #c4e0ed; } .highlight-success { background-color: #e5ffee; } a.highlight-success:hover { background-color: #b3ffcd; } .highlight-info { background-color: #e5fffd; } a.highlight-info:hover { background-color: #b3fffa; } .highlight-warning { background-color: #fff5e5; } a.highlight-warning:hover { background-color: #ffe2b3; } .highlight-danger { background-color: #ffeae5; } a.highlight-danger:hover { background-color: #ffbfb3; } .highlight-important { background-color: #fff1e5; } a.highlight-important:hover { background-color: #ffd4b3; } .highlight-special { background-color: #efe5ff; } a.highlight-special:hover { background-color: #d0b3ff; } .article { padding: 20px; } .article > header h1, .article > header h2, .article > header h3 { line-height: 1.5; } .article > header > .abstract, .article > header > dl { padding: 10px 15px; font-size: 12px; color: #686868; background-color: #f1f1f1; border-radius: 4px; } .article > header > .abstract > p:last-child, .article > header > dl > p:last-child { margin-bottom: 0; } .article > header > dl { margin: 0; border-bottom: 1px solid #e9e9e9; } .article > header > dl.pull-right { background-color: transparent; border: none; } .article > footer { border-top: 1px dashed #d7d7d7; } .article > footer > p { padding: 10px 15px; } .article-content { padding: 20px 0; font-size: 14px; line-height: 1.78571429; } .article-content h1 { font-size: 20px; } .article-content h2 { font-size: 18px; } .article-content h3 { font-size: 16px; } .article-content h4 { margin-top: 15px; font-size: 14px; } .article-content h5 { margin-top: 15px; font-size: 13px; } .article-content h6 { margin-top: 15px; font-size: 11px; } .article-content img { margin: 10px 0; } .article-content p { margin: 0; } .article-content p > img { margin-right: 10px; } .article-content p > img[align='right'] { margin-left: 10px; } .article-content dl { padding-right: 2em; padding-left: 2em; } .article-content table { width: 100%; margin-bottom: 20px; } .article-content table th, .article-content table td { padding: 8px; line-height: 1.53846154; vertical-align: top; border-bottom: 1px solid #ddd; -webkit-transition: all .3s cubic-bezier(.175, .885, .32, 1); -o-transition: all .3s cubic-bezier(.175, .885, .32, 1); transition: all .3s cubic-bezier(.175, .885, .32, 1); } .article-content table > thead > tr > th { vertical-align: bottom; background-color: #f1f1f1; border-bottom: 1px solid #ddd; } body.article-content { padding: 8px; } .article-condensed { padding: 20px 0; } .article-condensed > header { padding: 0 20px; } .article-condensed > header > .abstract, .article-condensed > header > dl { padding: 10px 15px; margin: 0 -20px; } .article-condensed > .article-content > p, .article-condensed > .article-content > blockquote, .article-condensed > .article-content > div, .article-condensed > .article-content > ul, .article-condensed > .article-content > ol, .article-condensed > .article-content > h1, .article-condensed > .article-content > h2, .article-condensed > .article-content > h3, .article-condensed > .article-content > h4, .article-condensed > .article-content > h5, .article-condensed > .article-content > h6 { padding-right: 20px; padding-left: 20px; } .article-condensed > .article-content > ul, .article-condensed > .article-content > ol, .article-condensed > .article-content > dl { padding-left: 60px; } .article-condensed > .article-content > img { border-radius: 0; } .article-condensed > .article-content > table { border-right: none; border-left: none; } .article-condensed > .article-content > table tr > td:first-child, .article-condensed > .article-content > table tr > th:first-child { padding-left: 20px; border-left: none ; } .article-condensed > .article-content > table tr > td:last-child, .article-condensed > .article-content > table tr > th:last-child { padding-right: 20px; border-right: none; } .article-condensed > footer { border-top: 1px dashed #d7d7d7; } .article-condensed > footer > p { padding: 10px 15px; } .article-condensed > footer > .pager-justify > .previous > a { border-left: none; } .article-condensed > footer > .pager-justify > .next > a { border-right: none; } .comments > header { border-bottom: 1px solid #e5e5e5; } .comments > header > .alert { padding: 7.5px 15px; margin-bottom: -10px; } .comments > header h1, .comments > header h2, .comments > header h3 { margin: 30px 0 20px; } .comments > footer { padding-top: 10px; } .comments > footer > .reply-form > .avatar { display: block; float: left; width: 40px; height: 40px; margin-top: 10px; } .comments > footer > .reply-form > .avatar + .form { padding-left: 50px; } .comment { padding: 10px 0; border-bottom: 1px solid #e5e5e5; } .comment:before, .comment:after { display: table; content: " "; } .comment:after { clear: both; } .comment:before, .comment:after { display: table; content: " "; } .comment:after { clear: both; } .comment > .avatar, .comment > .content { display: block; } .comment > .avatar { float: left; width: 40px; height: 40px; margin-top: 10px; } .comment > .avatar + .content { padding-left: 50px; } .comment > .content > .text { padding-top: 5px; } .comment > .content > .actions > a { display: inline-block; padding-right: 5px; padding-left: 2px; color: #808080; } .comment:hover > .content > .actions > a { color: #18609d; } .comment > .comments-list { padding-top: 10px; padding-bottom: 0; padding-left: 30px; margin-left: 20px; border-left: 1px dashed #e5e5e5; } .comment > .comments-list > .comment { border: none; border-top: 1px solid #e5e5e5; } .comment > .comments-list > .comment:last-child { padding-bottom: 0; } .list { padding: 0 15px; } .list > header { padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; } .items .item { padding: 10px 0; border-bottom: 1px solid #e5e5e5; -webkit-transition: all .5s cubic-bezier(.175, .885, .32, 1); -o-transition: all .5s cubic-bezier(.175, .885, .32, 1); transition: all .5s cubic-bezier(.175, .885, .32, 1); } .items .item-heading > h6, .items .item-heading h5, .items .item-heading h4, .items .item-heading h3, .items .item-heading h2, .items .item-heading h1 { margin-top: 5px; } .items .item-content:before, .items .item-content:after { display: table; content: " "; } .items .item-content:after { clear: both; } .items .item-content:before, .items .item-content:after { display: table; content: " "; } .items .item-content:after { clear: both; } .items .item-content > .media { margin: 5px 0; } .items .item-content > .media.pull-left { margin: 0; margin-right: 8px; } .items .item-content > .media.pull-right { margin: 0; margin-left: 8px; } .items .item-footer { padding-top: 5px; } .items .item-footer > a { color: #808080; } .items-hover .item:hover { background-color: #f5f5f5; } .list-condensed { padding: 0; } .list-condensed > header, .list-condensed > footer, .list-condensed > .items > .item { padding-right: 15px; padding-left: 15px; } /*# sourceMappingURL=zui.lite.css.map */
{% if doc.members.length or doc.newMember or doc.callMember %} <section class="member-members"> <h2>Members</h2> {% if doc.newMember %} <div class="new-member"> <a id="{$ doc.newMember.name $}"></a> <code-example hideCopy="true">{$ doc.newMember.name $}{$ params.paramList(doc.newMember.parameters) | trim $}{$ params.returnType(doc.newMember.returnType) $}</code-example> {% if not doc.newMember.notYetDocumented %}{$ doc.newMember.description | marked $}{% endif %} </div> {% if doc.members.length or doc.callMember %}<hr>{% endif %} {% endif %} {% if doc.callMember %} <div class="call-member"> <a id="{$ doc.callMember.name $}"></a> <code-example hideCopy="true">{$ doc.callMember.name $}{$ params.paramList(doc.callMember.parameters) | trim $}{$ params.returnType(doc.callMember.returnType) $}</code-example> {% if not doc.callMember.notYetDocumented %}{$ doc.callMember.description | marked $}{% endif %} </div> {% if doc.members.length %}<hr>{% endif %} {% endif %} {% for member in doc.members %}{% if not member.internal %} <div class="instance-member"> <a id="{$ member.name $}"></a> <code-example hideCopy="true">{$ member.name $}{$ params.paramList(member.parameters) | trim $}{$ params.returnType(member.returnType) $}</code-example> {% if not member.notYetDocumented %}{$ member.description | marked $}{% endif %} </div> {% if not loop.last %}<hr>{% endif %} {% endif %}{% endfor %} </section> {% endif %}
#!/bin/bash FN="LRBase.Ath.eg.db_1.2.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.10/data/annotation/src/contrib/LRBase.Ath.eg.db_1.2.0.tar.gz" "https://bioarchive.galaxyproject.org/LRBase.Ath.eg.db_1.2.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-lrbase.ath.eg.db/bioconductor-lrbase.ath.eg.db_1.2.0_src_all.tar.gz" ) MD5="<API key>" # Use a staging area in the conda dir rather than temp dirs, both to avoid # manner. STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $STAGING TARBALL=$STAGING/$FN SUCCESS=0 for URL in ${URLS[@]}; do curl $URL > $TARBALL [[ $? == 0 ]] || continue # Platform-specific md5sum checks. if [[ $(uname -s) == "Linux" ]]; then if md5sum -c <<<"$MD5 $TARBALL"; then SUCCESS=1 break fi else if [[ $(uname -s) == "Darwin" ]]; then if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then SUCCESS=1 break fi fi fi done if [[ $SUCCESS != 1 ]]; then echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" printf '%s\n' "${URLS[@]}" exit 1 fi # Install and clean up R CMD INSTALL --library=$PREFIX/lib/R/library $TARBALL rm $TARBALL rmdir $STAGING
require 'rubygems' require 'nats/client' def usage puts "Usage: pub.rb <user> <pass> <subject> <msg>"; exit end user, pass, subject, msg = ARGV usage unless user and pass and subject # Default msg ||= 'Hello World' uri = "nats://#{user}:#{pass}@localhost:#{NATS::DEFAULT_PORT}" NATS.on_error { |err| puts "Server Error: #{err}"; exit! } NATS.start(:uri => uri) do NATS.publish(subject, msg) NATS.stop end puts "Published on [#{subject}] : '#{msg}'"
#ifndef <API key> #define <API key> #include "cgeGLFunctions.h" #include <list> namespace CGE { class TextureDrawer; class CGEMotionFlowFilter : public <API key> { public: CGEMotionFlowFilter(); ~CGEMotionFlowFilter(); bool init(); void setTotalFrames(int frames); void setFrameDelay(int delayFrame); void render2Texture(<API key>* handler, GLuint srcTexture, GLuint vertexBufferID); protected: virtual void pushFrame(GLuint texture); void clear(); protected: static CGEConstString paramAlphaName; std::list<GLuint> m_frameTextures; std::vector<GLuint> <API key>; FrameBuffer m_framebuffer; TextureDrawer* m_drawer; int m_width, m_height; int m_totalFrames, m_delayFrames; int m_delayedFrames; float m_dAlpha; GLint m_alphaLoc; }; class <API key> : public CGEMotionFlowFilter { public: <API key>(); // void render2Texture(<API key>* handler, GLuint srcTexture, GLuint vertexBufferID); protected: void pushFrame(GLuint texture); float m_sizeScaling, m_dSizeScaling; float m_dsMost; bool <API key>; }; } #endif /* <API key> */
package com.github.cleverage.elasticsearch; import org.elasticsearch.search.facet.Facets; import java.util.List; /** * The Class IndexResult. * * @param <T> extends Index */ public class IndexResults<T extends Index> { /** The total count. */ public long totalCount; /** * Nb result by page */ public long pageSize; /** * Number of current page */ public long pageCurrent; /** * Number of total pages */ public long pageNb; /** The results. */ public List<T> results; /** The facets. */ public Facets facets; /** * Create new Index Result * @param totalCount * @param pageSize * @param pageCurrent * @param pageNb * @param results * @param facets */ public IndexResults(long totalCount,long pageSize, long pageCurrent, long pageNb, List<T> results, Facets facets) { this.totalCount = totalCount; this.pageSize = pageSize; this.pageCurrent = pageCurrent; this.pageNb = pageNb; this.results = results; this.facets = facets; } }
(function (tree) { tree.Quoted = function (str, content, escaped, i) { this.escaped = escaped; this.value = content || ''; this.quote = str.charAt(0); this.index = i; }; tree.Quoted.prototype = { toCSS: function () { if (this.escaped) { return this.value; } else { return this.quote + this.value + this.quote; } }, eval: function (env) { var that = this; var value = this.value.replace(/`([^`]+)`/g, function (_, exp) { return new(tree.JavaScript)(exp, that.index, true).eval(env).value; }).replace(/@\{([\w-]+)\}/g, function (_, name) { var v = new(tree.Variable)('@' + name, that.index).eval(env, true); return (v instanceof tree.Quoted) ? v.value : v.toCSS(); }); return new(tree.Quoted)(this.quote + value + this.quote, value, this.escaped, this.index); }, compare: function (x) { if (!x.toCSS) { return -1; } var left = this.toCSS(), right = x.toCSS(); if (left === right) { return 0; } return left < right ? -1 : 1; } }; })(require('../tree'));
// Sprites.h // Guy Simmons, 13th February 1997. #ifndef _SPRITES_H_ #define _SPRITES_H_ #ifndef _MF_TYPES_H_ #include <MFTypes.h> #endif #define END_LINE 0x00 #define COPY_PIXELS 0x01 #define SKIP_PIXELS 0x02 #define DUPLICATE_PIXELS 0x03 #define FINISHED 0x04 typedef struct { UBYTE *SpriteData; UWORD SpriteHeight; UWORD SpriteWidth; }BSprite; extern void (*DrawBSprite)(SLONG x,SLONG y,BSprite *the_sprite); extern void (*DrawBSpriteC)(SLONG x,SLONG y,BSprite *the_sprite); extern void DrawBSpritePal16(SLONG x,SLONG y,BSprite *the_sprite,UBYTE *pal); extern void DrawBSpritePal32(SLONG x,SLONG y,BSprite *the_sprite,UBYTE *pal); extern void (*DrawMonoBSprite)(SLONG x,SLONG y,BSprite *the_sprite,ULONG colour); extern void (*DrawMonoBSpriteC)(SLONG x,SLONG y,BSprite *the_sprite,ULONG colour); extern void DrawBSpritePalC16(SLONG x,SLONG y,BSprite *the_sprite,UBYTE *pal); extern void DrawBSpritePalC32(SLONG x,SLONG y,BSprite *the_sprite,UBYTE *pal); extern void SetupBSprites(BSprite *sprite_ref,UBYTE *sprite_data); #endif
// QRCode for JavaScript // The word "QR Code" is registered trademark of // DENSO WAVE INCORPORATED var QR8bitByte = require('./QR8bitByte'); var QRUtil = require('./QRUtil'); var QRPolynomial = require('./QRPolynomial'); var QRRSBlock = require('./QRRSBlock'); var QRBitBuffer = require('./QRBitBuffer'); function QRCode(typeNumber, errorCorrectLevel) { this.typeNumber = typeNumber; this.errorCorrectLevel = errorCorrectLevel; this.modules = null; this.moduleCount = 0; this.dataCache = null; this.dataList = new Array(); } QRCode.prototype = { addData : function(data) { var newData = new QR8bitByte(data); this.dataList.push(newData); this.dataCache = null; }, isDark : function(row, col) { if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) { throw new Error(row + "," + col); } return this.modules[row][col]; }, getModuleCount : function() { return this.moduleCount; }, make : function() { // Calculate automatically typeNumber if provided is < 1 if (this.typeNumber < 1 ){ var typeNumber = 1; for (typeNumber = 1; typeNumber < 40; typeNumber++) { var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel); var buffer = new QRBitBuffer(); var totalDataCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalDataCount += rsBlocks[i].dataCount; } for (var i = 0; i < this.dataList.length; i++) { var data = this.dataList[i]; buffer.put(data.mode, 4); buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber) ); data.write(buffer); } if (buffer.getLengthInBits() <= totalDataCount * 8) break; } this.typeNumber = typeNumber; } this.makeImpl(false, this.getBestMaskPattern() ); }, makeImpl : function(test, maskPattern) { this.moduleCount = this.typeNumber * 4 + 17; this.modules = new Array(this.moduleCount); for (var row = 0; row < this.moduleCount; row++) { this.modules[row] = new Array(this.moduleCount); for (var col = 0; col < this.moduleCount; col++) { this.modules[row][col] = null;//(col + row) % 3; } } this.<API key>(0, 0); this.<API key>(this.moduleCount - 7, 0); this.<API key>(0, this.moduleCount - 7); this.<API key>(); this.setupTimingPattern(); this.setupTypeInfo(test, maskPattern); if (this.typeNumber >= 7) { this.setupTypeNumber(test); } if (this.dataCache == null) { this.dataCache = QRCode.createData(this.typeNumber, this.errorCorrectLevel, this.dataList); } this.mapData(this.dataCache, maskPattern); }, <API key> : function(row, col) { for (var r = -1; r <= 7; r++) { if (row + r <= -1 || this.moduleCount <= row + r) continue; for (var c = -1; c <= 7; c++) { if (col + c <= -1 || this.moduleCount <= col + c) continue; if ( (0 <= r && r <= 6 && (c == 0 || c == 6) ) || (0 <= c && c <= 6 && (r == 0 || r == 6) ) || (2 <= r && r <= 4 && 2 <= c && c <= 4) ) { this.modules[row + r][col + c] = true; } else { this.modules[row + r][col + c] = false; } } } }, getBestMaskPattern : function() { var minLostPoint = 0; var pattern = 0; for (var i = 0; i < 8; i++) { this.makeImpl(true, i); var lostPoint = QRUtil.getLostPoint(this); if (i == 0 || minLostPoint > lostPoint) { minLostPoint = lostPoint; pattern = i; } } return pattern; }, createMovieClip : function(target_mc, instance_name, depth) { var qr_mc = target_mc.<API key>(instance_name, depth); var cs = 1; this.make(); for (var row = 0; row < this.modules.length; row++) { var y = row * cs; for (var col = 0; col < this.modules[row].length; col++) { var x = col * cs; var dark = this.modules[row][col]; if (dark) { qr_mc.beginFill(0, 100); qr_mc.moveTo(x, y); qr_mc.lineTo(x + cs, y); qr_mc.lineTo(x + cs, y + cs); qr_mc.lineTo(x, y + cs); qr_mc.endFill(); } } } return qr_mc; }, setupTimingPattern : function() { for (var r = 8; r < this.moduleCount - 8; r++) { if (this.modules[r][6] != null) { continue; } this.modules[r][6] = (r % 2 == 0); } for (var c = 8; c < this.moduleCount - 8; c++) { if (this.modules[6][c] != null) { continue; } this.modules[6][c] = (c % 2 == 0); } }, <API key> : function() { var pos = QRUtil.getPatternPosition(this.typeNumber); for (var i = 0; i < pos.length; i++) { for (var j = 0; j < pos.length; j++) { var row = pos[i]; var col = pos[j]; if (this.modules[row][col] != null) { continue; } for (var r = -2; r <= 2; r++) { for (var c = -2; c <= 2; c++) { if (r == -2 || r == 2 || c == -2 || c == 2 || (r == 0 && c == 0) ) { this.modules[row + r][col + c] = true; } else { this.modules[row + r][col + c] = false; } } } } } }, setupTypeNumber : function(test) { var bits = QRUtil.getBCHTypeNumber(this.typeNumber); for (var i = 0; i < 18; i++) { var mod = (!test && ( (bits >> i) & 1) == 1); this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod; } for (var i = 0; i < 18; i++) { var mod = (!test && ( (bits >> i) & 1) == 1); this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod; } }, setupTypeInfo : function(test, maskPattern) { var data = (this.errorCorrectLevel << 3) | maskPattern; var bits = QRUtil.getBCHTypeInfo(data); // vertical for (var i = 0; i < 15; i++) { var mod = (!test && ( (bits >> i) & 1) == 1); if (i < 6) { this.modules[i][8] = mod; } else if (i < 8) { this.modules[i + 1][8] = mod; } else { this.modules[this.moduleCount - 15 + i][8] = mod; } } // horizontal for (var i = 0; i < 15; i++) { var mod = (!test && ( (bits >> i) & 1) == 1); if (i < 8) { this.modules[8][this.moduleCount - i - 1] = mod; } else if (i < 9) { this.modules[8][15 - i - 1 + 1] = mod; } else { this.modules[8][15 - i - 1] = mod; } } // fixed module this.modules[this.moduleCount - 8][8] = (!test); }, mapData : function(data, maskPattern) { var inc = -1; var row = this.moduleCount - 1; var bitIndex = 7; var byteIndex = 0; for (var col = this.moduleCount - 1; col > 0; col -= 2) { if (col == 6) col while (true) { for (var c = 0; c < 2; c++) { if (this.modules[row][col - c] == null) { var dark = false; if (byteIndex < data.length) { dark = ( ( (data[byteIndex] >>> bitIndex) & 1) == 1); } var mask = QRUtil.getMask(maskPattern, row, col - c); if (mask) { dark = !dark; } this.modules[row][col - c] = dark; bitIndex if (bitIndex == -1) { byteIndex++; bitIndex = 7; } } } row += inc; if (row < 0 || this.moduleCount <= row) { row -= inc; inc = -inc; break; } } } } }; QRCode.PAD0 = 0xEC; QRCode.PAD1 = 0x11; QRCode.createData = function(typeNumber, errorCorrectLevel, dataList) { var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectLevel); var buffer = new QRBitBuffer(); for (var i = 0; i < dataList.length; i++) { var data = dataList[i]; buffer.put(data.mode, 4); buffer.put(data.getLength(), QRUtil.getLengthInBits(data.mode, typeNumber) ); data.write(buffer); } // calc num max data. var totalDataCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalDataCount += rsBlocks[i].dataCount; } if (buffer.getLengthInBits() > totalDataCount * 8) { throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")"); } // end code if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) { buffer.put(0, 4); } // padding while (buffer.getLengthInBits() % 8 != 0) { buffer.putBit(false); } // padding while (true) { if (buffer.getLengthInBits() >= totalDataCount * 8) { break; } buffer.put(QRCode.PAD0, 8); if (buffer.getLengthInBits() >= totalDataCount * 8) { break; } buffer.put(QRCode.PAD1, 8); } return QRCode.createBytes(buffer, rsBlocks); } QRCode.createBytes = function(buffer, rsBlocks) { var offset = 0; var maxDcCount = 0; var maxEcCount = 0; var dcdata = new Array(rsBlocks.length); var ecdata = new Array(rsBlocks.length); for (var r = 0; r < rsBlocks.length; r++) { var dcCount = rsBlocks[r].dataCount; var ecCount = rsBlocks[r].totalCount - dcCount; maxDcCount = Math.max(maxDcCount, dcCount); maxEcCount = Math.max(maxEcCount, ecCount); dcdata[r] = new Array(dcCount); for (var i = 0; i < dcdata[r].length; i++) { dcdata[r][i] = 0xff & buffer.buffer[i + offset]; } offset += dcCount; var rsPoly = QRUtil.<API key>(ecCount); var rawPoly = new QRPolynomial(dcdata[r], rsPoly.getLength() - 1); var modPoly = rawPoly.mod(rsPoly); ecdata[r] = new Array(rsPoly.getLength() - 1); for (var i = 0; i < ecdata[r].length; i++) { var modIndex = i + modPoly.getLength() - ecdata[r].length; ecdata[r][i] = (modIndex >= 0)? modPoly.get(modIndex) : 0; } } var totalCodeCount = 0; for (var i = 0; i < rsBlocks.length; i++) { totalCodeCount += rsBlocks[i].totalCount; } var data = new Array(totalCodeCount); var index = 0; for (var i = 0; i < maxDcCount; i++) { for (var r = 0; r < rsBlocks.length; r++) { if (i < dcdata[r].length) { data[index++] = dcdata[r][i]; } } } for (var i = 0; i < maxEcCount; i++) { for (var r = 0; r < rsBlocks.length; r++) { if (i < ecdata[r].length) { data[index++] = ecdata[r][i]; } } } return data; } module.exports = QRCode;
CKEDITOR.plugins.setLang( 'toolbar', 'af', { toolbarCollapse: 'Verklein werkbalk', toolbarExpand: 'Vergroot werkbalk', toolbarGroups: { document: 'Document', clipboard: 'Clipboard/Undo', editing: 'Editing', forms: 'Forms', basicstyles: 'Basic Styles', paragraph: 'Paragraph', links: 'Links', insert: 'Insert', styles: 'Styles', colors: 'Colors', tools: 'Tools' }, toolbars: 'Editor toolbars' // MISSING });
<!DOCTYPE html> <html lang="en"> <head> <title>three.js WebGL - MDDLoader</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <link type="text/css" rel="stylesheet" href="main.css"> </head> <body> <div id="info"> <a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> - MDDLoader </div> <script type="module"> import * as THREE from '../build/three.module.js'; import { MDDLoader } from './jsm/loaders/MDDLoader.js'; var camera, scene, renderer, mixer, clock; init(); function init() { scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 0.1, 100 ); camera.position.set( 10, 10, 10 ); camera.lookAt( scene.position ); clock = new THREE.Clock(); var loader = new MDDLoader(); loader.load( 'models/mdd/cube.mdd', function ( result ) { const morphTargets = result.morphTargets; const clip = result.clip; // clip.optimize(); // optional var geometry = new THREE.BoxBufferGeometry(); geometry.morphAttributes.position = morphTargets; // apply morph targets var material = new THREE.MeshNormalMaterial( { morphTargets: true } ); var mesh = new THREE.Mesh( geometry, material ); scene.add( mesh ); mixer = new THREE.AnimationMixer( mesh ); mixer.clipAction( clip ).play(); // use clip animate(); } ); renderer = new THREE.WebGLRenderer( { antialias: true } ); renderer.setPixelRatio( window.devicePixelRatio ); renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); window.addEventListener( 'resize', onWindowResize, false ); } function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.<API key>(); renderer.setSize( window.innerWidth, window.innerHeight ); } function animate() { <API key>( animate ); var delta = clock.getDelta(); if ( mixer ) mixer.update( delta ); renderer.render( scene, camera ); } </script> </body> </html>
import React from 'react' import styled from 'styled-components' import {Flex, Image, Box} from 'rebass' import cliLogo from '../images/cli-logo.svg' import {Link} from 'gatsby' import {NavLink, BasicNavLink} from './links' import MobileSidebar from '../components/MobileSidebar' import hamburger from '../images/hamburger.svg' import hamburgerClose from '../images/hamburger-close.svg' const IS_STATIC = !!process.env.GATSBY_IS_STATIC const Container = styled(Flex)` width: 100%; border-bottom: 1px solid #86838333; position: sticky; top: 0; background-color: ${(props) => props.theme.colors.white}; z-index: 1; ` const Inner = styled(Flex)` border-top: 3px solid; border-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff) 3; margin: auto; height: 53px; padding: 0 30px; align-items: center; width: 100%; ` const Logo = styled(Image)` width: 120px; padding: 0px 5px; height: 18px; vertical-align: middle; display: inline-block; transition: opacity .5s; &:hover { opacity: .8; } ` const Links = styled.ul` display: none; @media screen and (min-width: ${(props) => props.theme.breakpoints.TABLET}) { display: block; margin-left: auto; } ` const Heart = styled(Box)` font-size: 15px; display: inline-block; ` const Hamburger = styled.button` border: none; background: center no-repeat url(${(props) => props.isOpen ? hamburgerClose : hamburger}); height: 30px; width: 30px; display: block; margin-left: auto; transition: opacity .5s; cursor: pointer; &:hover { opacity: .6; } @media screen and (min-width: ${(props) => props.theme.breakpoints.TABLET}) { display: none; } ` class Navbar extends React.Component { constructor (props) { super(props) this.state = { value: null, showMobileNav: false } this.enableBody = this.enableBody.bind(this) this.toggleNav = this.toggleNav.bind(this) } componentDidMount () { window.addEventListener('resize', () => { this.enableBody() this.setState({showMobileNav: false}) }) } <API key> () { this.enableBody() } enableBody () { window.document.<API key>('body')[0].classList.remove('disabled-body') } toggleNav () { this.setState({showMobileNav: !this.state.showMobileNav}) window.document.<API key>('body')[0].classList.toggle('disabled-body') } render () { return ( <React.Fragment> <Container> <Inner> <Link to='/'> <Heart ml={1} mr={'24px'}></Heart><Logo src={cliLogo} /> </Link> <Links> <NavLink to={`cli-commands/npm${IS_STATIC ? '/index.html' : ''}`} partiallyActive activeClassName='active-navbar-link' > docs </NavLink> <BasicNavLink href='https: </Links> <Hamburger isOpen={this.state.showMobileNav} onClick={this.toggleNav} /> </Inner> </Container> {this.state.showMobileNav && <MobileSidebar />} </React.Fragment> ) } } export default Navbar
\[\stkc{ %% UId \Rule{\Gamma \vdash \Valid} {\Gamma \vdash \Type{\UId}} \qquad %% Tag \Rule{\Gamma \vdash \Valid} {\Gamma \vdash \Bhab{\Tag{\V{s}}}{\UId}}\;\V{s} \mbox{ unique identifier} \\ %% EnumU \Rule{\Gamma \vdash \Valid} {\Gamma \vdash \Type{\EnumU}} \qquad %% EnumT \Rule{\Gamma \vdash \Bhab{\V{e}}{\EnumU}} {\Gamma \vdash \Type{\EnumT{\V{e}}}} \\ %% NilE \Rule{\Gamma \vdash \Valid} {\Gamma \vdash \Bhab{\NilE}{\EnumU}} \qquad %% ConsE \Rule{\Gamma \vdash \Bhab{\V{t}}{\UId} \quad \Gamma \vdash \Bhab{\V{e}}{\EnumU}} {\Gamma \vdash \Bhab{\ConsE{\V{t}}{\V{e}}}{\EnumU}} \\ %% Ze \Rule{\Gamma \vdash \Valid} {\Gamma \vdash \Bhab{\Ze}{\EnumT{\ConsE{\V{t}}{\V{e}}}}} \qquad %% Su \Rule{\Gamma \vdash \Bhab{\V{n}}{\EnumT{\V{e}}}} {\Gamma \vdash \Bhab{\Su{\V{n}}}{\EnumT{\ConsE{\V{t}}{\V{e}}}}} }\]
import Ember from 'ember'; export default Ember.Route.extend({ model: function() { return Ember.A([ { userName: 'jane', role: 'admin', disabledGender: false, admin: true }, { userName: 'john', role: 'guest', disabledGender: true, admin: false } ]); } });
<?php /** * @namespace */ namespace Zend\Json\Server; use Zend\Json\Server\Exception\<API key>, Zend\Json\Server\Exception\RuntimeException; class SMD { const ENV_JSONRPC_1 = 'JSON-RPC-1.0'; const ENV_JSONRPC_2 = 'JSON-RPC-2.0'; const SMD_VERSION = '2.0'; /** * Content type * @var string */ protected $_contentType = 'application/json'; /** * Content type regex * @var string */ protected $_contentTypeRegex = '#[a-z]+/[a-z][a-z-]+#i'; /** * Service description * @var string */ protected $_description; /** * Generate Dojo-compatible SMD * @var bool */ protected $_dojoCompatible = false; /** * Current envelope * @var string */ protected $_envelope = self::ENV_JSONRPC_1; /** * Allowed envelope types * @var array */ protected $_envelopeTypes = array( self::ENV_JSONRPC_1, self::ENV_JSONRPC_2, ); /** * Service id * @var string */ protected $_id; /** * Services offerred * @var array */ protected $_services = array(); /** * Service target * @var string */ protected $_target; /** * Global transport * @var string */ protected $_transport = 'POST'; /** * Allowed transport types * @var array */ protected $_transportTypes = array('POST'); /** * Set object state via options * * @param array $options * @return Zend\Json\Server\Smd */ public function setOptions(array $options) { foreach ($options as $key => $value) { $method = 'set' . ucfirst($key); if (method_exists($this, $method)) { $this->$method($value); } } return $this; } /** * Set transport * * @param string $transport * @return Zend\Json\Server\Smd */ public function setTransport($transport) { if (!in_array($transport, $this->_transportTypes)) { throw new <API key>("Invalid transport '{$transport}' specified"); } $this->_transport = $transport; return $this; } /** * Get transport * * @return string */ public function getTransport() { return $this->_transport; } /** * Set envelope * * @param string $envelopeType * @return Zend\Json\Server\Smd */ public function setEnvelope($envelopeType) { if (!in_array($envelopeType, $this->_envelopeTypes)) { throw new <API key>("Invalid envelope type '{$envelopeType}'"); } $this->_envelope = $envelopeType; return $this; } /** * Retrieve envelope * * @return string */ public function getEnvelope() { return $this->_envelope; } // Content-Type of response; default to application/json /** * Set content type * * @param string $type * @return Zend\Json\Server\Smd */ public function setContentType($type) { if (!preg_match($this->_contentTypeRegex, $type)) { throw new <API key>("Invalid content type '{$type}' specified"); } $this->_contentType = $type; return $this; } /** * Retrieve content type * * @return string */ public function getContentType() { return $this->_contentType; } /** * Set service target * * @param string $target * @return Zend\Json\Server\Smd */ public function setTarget($target) { $this->_target = (string) $target; return $this; } /** * Retrieve service target * * @return string */ public function getTarget() { return $this->_target; } /** * Set service ID * * @param string $Id * @return Zend\Json\Server\Smd */ public function setId($id) { $this->_id = (string) $id; return $this->_id; } /** * Get service id * * @return string */ public function getId() { return $this->_id; } /** * Set service description * * @param string $description * @return Zend\Json\Server\Smd */ public function setDescription($description) { $this->_description = (string) $description; return $this->_description; } /** * Get service description * * @return string */ public function getDescription() { return $this->_description; } /** * Indicate whether or not to generate Dojo-compatible SMD * * @param bool $flag * @return Zend\Json\Server\Smd */ public function setDojoCompatible($flag) { $this->_dojoCompatible = (bool) $flag; return $this; } /** * Is this a Dojo compatible SMD? * * @return bool */ public function isDojoCompatible() { return $this->_dojoCompatible; } /** * Add Service * * @param Zend\Json\Server\Smd\Service|array $service * @return void */ public function addService($service) { if ($service instanceof Smd\Service) { $name = $service->getName(); } elseif (is_array($service)) { $service = new Smd\Service($service); $name = $service->getName(); } else { throw new <API key>('Invalid service passed to addService()'); } if (array_key_exists($name, $this->_services)) { throw new RuntimeException('Attempt to register a service already registered detected'); } $this->_services[$name] = $service; return $this; } /** * Add many services * * @param array $services * @return Zend\Json\Server\Smd */ public function addServices(array $services) { foreach ($services as $service) { $this->addService($service); } return $this; } /** * Overwrite existing services with new ones * * @param array $services * @return Zend\Json\Server\Smd */ public function setServices(array $services) { $this->_services = array(); return $this->addServices($services); } /** * Get service object * * @param string $name * @return false|Zend\Json\Server\Smd\Service */ public function getService($name) { if (array_key_exists($name, $this->_services)) { return $this->_services[$name]; } return false; } /** * Return services * * @return array */ public function getServices() { return $this->_services; } /** * Remove service * * @param string $name * @return boolean */ public function removeService($name) { if (array_key_exists($name, $this->_services)) { unset($this->_services[$name]); return true; } return false; } /** * Cast to array * * @return array */ public function toArray() { if ($this->isDojoCompatible()) { return $this->toDojoArray(); } $transport = $this->getTransport(); $envelope = $this->getEnvelope(); $contentType = $this->getContentType(); $SMDVersion = self::SMD_VERSION; $service = compact('transport', 'envelope', 'contentType', 'SMDVersion'); if (null !== ($target = $this->getTarget())) { $service['target'] = $target; } if (null !== ($id = $this->getId())) { $service['id'] = $id; } $services = $this->getServices(); if (!empty($services)) { $service['services'] = array(); foreach ($services as $name => $svc) { $svc->setEnvelope($envelope); $service['services'][$name] = $svc->toArray(); } $service['methods'] = $service['services']; } return $service; } /** * Export to DOJO-compatible SMD array * * @return array */ public function toDojoArray() { $SMDVersion = '.1'; $serviceType = 'JSON-RPC'; $service = compact('SMDVersion', 'serviceType'); $target = $this->getTarget(); $services = $this->getServices(); if (!empty($services)) { $service['methods'] = array(); foreach ($services as $name => $svc) { $method = array( 'name' => $name, 'serviceURL' => $target, ); $params = array(); foreach ($svc->getParams() as $param) { $paramName = array_key_exists('name', $param) ? $param['name'] : $param['type']; $params[] = array( 'name' => $paramName, 'type' => $param['type'], ); } if (!empty($params)) { $method['parameters'] = $params; } $service['methods'][] = $method; } } return $service; } /** * Cast to JSON * * @return string */ public function toJson() { return \Zend\Json\Json::encode($this->toArray()); } /** * Cast to string (JSON) * * @return string */ public function __toString() { return $this->toJson(); } }
<?php namespace Sonata\ProductBundle\Entity; use Sonata\Component\Product\ProductInterface; class ProductSetManager extends ProductManager { /** * Deletes a product * * @param ProductInterface $productSet * @param bool $andFlush * * @throws \RuntimeException */ public function delete($productSet, $andFlush = true) { throw new \RuntimeException('A ProductSetManager cannot delete a product'); } /** * Creates an empty ProductSet instance * * @throws \RuntimeException */ public function create() { throw new \RuntimeException('A ProductSetManager cannot create a product'); } /** * Creates an empty ProductSet instance * * @param ProductInterface $productSet * @param bool $andFlush * * @throws \RuntimeException */ public function save($productSet, $andFlush = true) { throw new \RuntimeException('A ProductSetManager cannot save a product'); } }
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace Site.Areas.Conference.Pages { public partial class Conference { <summary> Register control. </summary> <remarks> Auto-generated field. To modify move field declaration from designer file to code-behind file. </remarks> protected global::System.Web.UI.WebControls.LinkButton Register; } }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Member #6 Bookmarks</title> <script> pixiv.context.userId = '6'; </script> </head> <body> <div class="_unit action-unit"> <div class="column-label"> <span class="count-badge">1234</span> </div> <nav class="column-order-menu"> <div class="pager-container"> <ul class="page-list"> <li>1</li> <li class="current">2</li> <li>3</li> </ul> <span class="next"><a rel="next"></a></span> </div> </nav> <div> <ul class="_image-items"> <li id="li_98765"> <a href="/member_illust.php?illust_id=123" class="work"><img src="http://i1.pixiv.net/img1/img/hanako/123_s.jpg" />Illust #123</a> <br> <a href="member_illust.php?id=456">Hanako</a> </li> </ul> </div> </div> <div class="_unit profile-unit"> <a href="/member.php?id=6"> <h1 class="user">Sayoko</h1> </a> </div> </body> </html>
package org.owasp.appsensor; import org.owasp.appsensor.core.AppSensorClient; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.<API key>; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.FilterType; import org.springframework.web.socket.server.standard.<API key>; // instead of @<API key>, using 3 separate annotations // so I can control exclusions for scanning - need to ignore the // client so it doesn't get loaded @Configuration @<API key> @ComponentScan(value="org.owasp.appsensor", excludeFilters = @ComponentScan.Filter(value = AppSensorClient.class, type = FilterType.ASSIGNABLE_TYPE)) public class <API key> { public static void main(String[] args) { SpringApplication.run(<API key>.class, args); } @Bean public <API key> <API key>() { return new <API key>(); } }
var util = require('util'), <API key> = require('../util/<API key>'), errors = require('../errors'), Text = require('./Text'); function Json(config) { // Avoid clobbering the global JSON object Text.call(this, config); } util.inherits(Json, Text); <API key>(Json.prototype, { contentType: 'application/json', supportedExtensions: ['.json'], isPretty: false, get parseTree() { if (!this._parseTree) { try { this._parseTree = JSON.parse(this.text); } catch (e) { var err = new errors.ParseError({message: 'Json parse error in ' + this.urlOrDescription + ': ' + e.message, asset: this}); if (this.assetGraph) { this.assetGraph.emit('warn', err); } else { throw err; } } } return this._parseTree; }, set parseTree(parseTree) { this.unload(); this._parseTree = parseTree; this.markDirty(); }, get text() { if (!('_text' in this)) { if (this._parseTree) { if (this.isPretty) { this._text = JSON.stringify(this._parseTree, undefined, ' ') + '\n'; } else { this._text = JSON.stringify(this._parseTree); } } else { this._text = this._getTextFromRawSrc(); } } return this._text; }, prettyPrint: function () { this.isPretty = true; /*jshint ignore:start*/ var parseTree = this.parseTree; // So markDirty removes this._text /*jshint ignore:end*/ this.markDirty(); return this; }, minify: function () { this.isPretty = false; /*jshint ignore:start*/ var parseTree = this.parseTree; // So markDirty removes this._text /*jshint ignore:end*/ this.markDirty(); return this; } }); // Grrr... Json.prototype.__defineSetter__('text', Text.prototype.__lookupSetter__('text')); module.exports = Json;
#include <unistd.h> #include <errno.h> #include <sys/select.h> extern "C" { #include "./LinkedList.h" #include "./LinkedList_priv.h" } #include "./test_suite.h" #include "./test_linkedlist.h" namespace hw1 { // static LLPayload_t Test_LinkedList::kOne = (LLPayload_t)1; LLPayload_t Test_LinkedList::kTwo = (LLPayload_t)2; LLPayload_t Test_LinkedList::kThree = (LLPayload_t)3; LLPayload_t Test_LinkedList::kFour = (LLPayload_t)4; LLPayload_t Test_LinkedList::kFive = (LLPayload_t)5; static unsigned int free_count = 0U; void <API key>(LLPayload_t payload) { // Do nothing but verify the payload is non-NULL and // increment the free count. ASSERT_NE(nullptr, payload); free_count++; } int <API key>(LLPayload_t p1, LLPayload_t p2) { // A comparator used to test sort. if (p1 > p2) return 1; if (p1 < p2) return -1; return 0; } TEST_F(Test_LinkedList, TestLinkedListBasic) { // Try creating a list. LinkedList llp = AllocateLinkedList(); ASSERT_NE((LinkedList) NULL, llp); ASSERT_EQ(0U, <API key>(llp)); ASSERT_EQ(NULL, llp->head); ASSERT_EQ(NULL, llp->tail); HW1Addpoints(5); // Try deleting the (empty) list. free_count = 0U; FreeLinkedList(llp, &<API key>); ASSERT_EQ(0U, free_count); llp = NULL; HW1Addpoints(5); } TEST_F(Test_LinkedList, <API key>) { // Creating a list. LinkedList llp = AllocateLinkedList(); ASSERT_NE(static_cast<LinkedList>(NULL), llp); ASSERT_EQ(0U, <API key>(llp)); ASSERT_EQ(NULL, llp->head); ASSERT_EQ(NULL, llp->tail); // Insert an element. ASSERT_TRUE(PushLinkedList(llp, kOne)); ASSERT_EQ(1U, <API key>(llp)); ASSERT_EQ(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(kOne, llp->head->payload); HW1Addpoints(10); // Delete the element. LLPayload_t payload_ptr; ASSERT_TRUE(PopLinkedList(llp, &payload_ptr)); ASSERT_EQ(kOne, payload_ptr); ASSERT_EQ(0U, <API key>(llp)); HW1Addpoints(10); // Delete the element a second time. ASSERT_FALSE(PopLinkedList(llp, &payload_ptr)); HW1Addpoints(5); // Insert two elements. ASSERT_TRUE(PushLinkedList(llp, kOne)); ASSERT_EQ(1U, <API key>(llp)); ASSERT_EQ(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(kOne, llp->head->payload); ASSERT_TRUE(PushLinkedList(llp, kTwo)); ASSERT_EQ(2U, <API key>(llp)); ASSERT_NE(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(llp->tail, llp->head->next); ASSERT_EQ(llp->head, llp->tail->prev); ASSERT_EQ(kTwo, llp->head->payload); ASSERT_EQ(kOne, llp->tail->payload); HW1Addpoints(10); // Delete the first element. ASSERT_TRUE(PopLinkedList(llp, &payload_ptr)); ASSERT_EQ(kTwo, payload_ptr); ASSERT_EQ(1U, <API key>(llp)); ASSERT_EQ(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(kOne, llp->head->payload); HW1Addpoints(10); // Delete the non-empty list. free_count = 0U; FreeLinkedList(llp, &<API key>); ASSERT_EQ(1U, free_count); llp = NULL; } TEST_F(Test_LinkedList, <API key>) { // Creating a list. LinkedList llp = AllocateLinkedList(); ASSERT_NE((LinkedList) NULL, llp); ASSERT_EQ(0U, <API key>(llp)); ASSERT_EQ(NULL, llp->head); ASSERT_EQ(NULL, llp->tail); // Insert an element. ASSERT_TRUE(AppendLinkedList(llp, kOne)); ASSERT_EQ(1U, <API key>(llp)); ASSERT_EQ(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(kOne, llp->head->payload); HW1Addpoints(5); // Delete the element. LLPayload_t payload_ptr; ASSERT_TRUE(SliceLinkedList(llp, &payload_ptr)); ASSERT_EQ(kOne, payload_ptr); ASSERT_EQ(0U, <API key>(llp)); HW1Addpoints(5); // Delete the element a second time. ASSERT_FALSE(SliceLinkedList(llp, &payload_ptr)); HW1Addpoints(5); // Insert two elements. ASSERT_TRUE(AppendLinkedList(llp, kOne)); ASSERT_EQ(1U, <API key>(llp)); ASSERT_EQ(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(kOne, llp->head->payload); ASSERT_TRUE(AppendLinkedList(llp, kTwo)); ASSERT_EQ(2U, <API key>(llp)); ASSERT_NE(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(llp->tail, llp->head->next); ASSERT_EQ(llp->head, llp->tail->prev); ASSERT_EQ(kOne, llp->head->payload); ASSERT_EQ(kTwo, llp->tail->payload); HW1Addpoints(5); // Delete the first element. ASSERT_TRUE(SliceLinkedList(llp, &payload_ptr)); ASSERT_EQ(kTwo, payload_ptr); ASSERT_EQ(1U, <API key>(llp)); ASSERT_EQ(llp->head, llp->tail); ASSERT_EQ(NULL, llp->head->prev); ASSERT_EQ(NULL, llp->tail->next); ASSERT_EQ(kOne, llp->head->payload); HW1Addpoints(5); // Delete the non-empty list. free_count = 0U; FreeLinkedList(llp, &<API key>); ASSERT_EQ(1U, free_count); llp = NULL; } TEST_F(Test_LinkedList, TestLinkedListSort) { // Creating a list. LinkedList llp = AllocateLinkedList(); ASSERT_NE((LinkedList) NULL, llp); ASSERT_EQ(0U, <API key>(llp)); ASSERT_EQ(NULL, llp->head); ASSERT_EQ(NULL, llp->tail); // Insert some elements. ASSERT_TRUE(AppendLinkedList(llp, kThree)); ASSERT_EQ(1U, <API key>(llp)); ASSERT_TRUE(AppendLinkedList(llp, kTwo)); ASSERT_EQ(2U, <API key>(llp)); ASSERT_TRUE(AppendLinkedList(llp, kOne)); ASSERT_EQ(3U, <API key>(llp)); // Sort ascending. SortLinkedList(llp, 1, &<API key>); // Verify the sort. ASSERT_EQ(kOne, llp->head->payload); ASSERT_EQ(kTwo, llp->head->next->payload); ASSERT_EQ(kThree, llp->head->next->next->payload); ASSERT_EQ(NULL, llp->head->next->next->next); // Resort descending. SortLinkedList(llp, 0, &<API key>); // Verify the sort. ASSERT_EQ(kThree, llp->head->payload); ASSERT_EQ(kTwo, llp->head->next->payload); ASSERT_EQ(kOne, llp->head->next->next->payload); ASSERT_EQ(NULL, llp->head->next->next->next); HW1Addpoints(5); // Delete the non-empty list. free_count = 0U; FreeLinkedList(llp, &<API key>); ASSERT_EQ(3U, free_count); llp = NULL; } TEST_F(Test_LinkedList, TestLLIteratorBasic) { // Create a linked list. LinkedList llp = AllocateLinkedList(); // Make sure you can't create an iterator to an empty list. ASSERT_EQ(NULL, LLMakeIterator(llp, 0)); HW1Addpoints(5); // Add some data to the list. ASSERT_TRUE(AppendLinkedList(llp, kThree)); ASSERT_TRUE(AppendLinkedList(llp, kTwo)); ASSERT_TRUE(AppendLinkedList(llp, kOne)); // Create the iterator. LLIter lli = LLMakeIterator(llp, 0); ASSERT_NE(static_cast<LLIter>(NULL), lli); ASSERT_TRUE(LLIteratorHasNext(lli)); ASSERT_FALSE(LLIteratorHasPrev(lli)); ASSERT_EQ(llp, lli->list); ASSERT_EQ(llp->head, lli->node); HW1Addpoints(5); // Navigate using the iterator. LLPayload_t payload; ASSERT_FALSE(LLIteratorPrev(lli)); ASSERT_TRUE(LLIteratorNext(lli)); <API key>(lli, &payload); ASSERT_EQ(kTwo, payload); ASSERT_TRUE(LLIteratorHasNext(lli)); ASSERT_TRUE(LLIteratorHasPrev(lli)); ASSERT_TRUE(LLIteratorNext(lli)); <API key>(lli, &payload); ASSERT_EQ(kOne, payload); ASSERT_FALSE(LLIteratorHasNext(lli)); ASSERT_TRUE(LLIteratorHasPrev(lli)); ASSERT_FALSE(LLIteratorNext(lli)); ASSERT_TRUE(LLIteratorPrev(lli)); <API key>(lli, &payload); ASSERT_EQ(kTwo, payload); HW1Addpoints(10); // Do an insert-before from the middle element. ASSERT_TRUE(<API key>(lli, kFour)); <API key>(lli, &payload); ASSERT_EQ(kTwo, payload); ASSERT_TRUE(LLIteratorPrev(lli)); <API key>(lli, &payload); ASSERT_EQ(kFour, payload); // Rewind to beginning, try insert-before. ASSERT_TRUE(LLIteratorPrev(lli)); ASSERT_FALSE(LLIteratorHasPrev(lli)); <API key>(lli, &payload); ASSERT_EQ(kThree, payload); ASSERT_TRUE(<API key>(lli, kFive)); <API key>(lli, &payload); ASSERT_EQ(kThree, payload); ASSERT_TRUE(LLIteratorPrev(lli)); ASSERT_FALSE(LLIteratorHasPrev(lli)); <API key>(lli, &payload); ASSERT_EQ(kFive, payload); HW1Addpoints(10); // The list contains 5 elements. Try a delete from the front of the list. // (i.e., delete element 1/5.) free_count = 0; LinkedListNodePtr prev, next = lli->node->next; ASSERT_TRUE(LLIteratorDelete(lli, &<API key>)); ASSERT_EQ(next, lli->node); ASSERT_EQ(NULL, lli->node->prev); ASSERT_EQ(4U, <API key>(lli->list)); ASSERT_EQ(1U, free_count); <API key>(lli, &payload); ASSERT_EQ(kThree, payload); ASSERT_FALSE(LLIteratorHasPrev(lli)); HW1Addpoints(10); // Delete the rest. // Move the iterator forward by one to test removing from the middle. // Deleting element 2/4 ASSERT_TRUE(LLIteratorNext(lli)); prev = lli->node->prev; next = lli->node->next; ASSERT_TRUE(LLIteratorDelete(lli, &<API key>)); ASSERT_EQ(3U, <API key>(lli->list)); ASSERT_EQ(next, lli->node); ASSERT_EQ(prev, lli->node->prev); // Delete from the middle. Deleting element 2/3 next = lli->node->next; prev = lli->node->prev; ASSERT_TRUE(LLIteratorDelete(lli, &<API key>)); ASSERT_EQ(2U, <API key>(lli->list)); ASSERT_EQ(next, lli->node); ASSERT_EQ(prev, lli->node->prev); // Delete from the tail position. Deleting element 2/2. prev = lli->node->prev; ASSERT_TRUE(LLIteratorDelete(lli, &<API key>)); ASSERT_EQ(1U, <API key>(lli->list)); ASSERT_EQ(NULL, lli->node->next); ASSERT_EQ(prev, lli->node); // Remove the remaining node from the list. Deleting element 1/1. ASSERT_FALSE(LLIteratorDelete(lli, &<API key>)); ASSERT_EQ(0U, <API key>(lli->list)); ASSERT_EQ(NULL, lli->node); ASSERT_EQ(5U, free_count); // Free the iterator. LLIteratorFree(lli); HW1Addpoints(5); // Free the list. FreeLinkedList(llp, &<API key>); } } // namespace hw1
declare module 'time-limit-promise' { export default function (promise: Promise<any>, timeout: number, options?: { resolveWith: any } | { rejectWith: any }): Promise<any>; }
<?php ?> <!DOCTYPE html> <html lang="en"><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <title><?php echo(getName()); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="css/bootstrap.css" rel="stylesheet"> <style> body { padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ } .footer { text-align: center; font-size: 11px; } </style> <link href="css/<API key>.css" rel="stylesheet"> <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif] <!-- Le fav and touch icons --> <link rel="shortcut icon" href="http://twitter.github.com/bootstrap/assets/ico/favicon.ico"> <link rel="<API key>" sizes="144x144" href="http://twitter.github.com/bootstrap/assets/ico/<API key>.png"> <link rel="<API key>" sizes="114x114" href="http://twitter.github.com/bootstrap/assets/ico/<API key>.png"> <link rel="<API key>" sizes="72x72" href="http://twitter.github.com/bootstrap/assets/ico/<API key>.png"> <link rel="<API key>" href="http://twitter.github.com/bootstrap/assets/ico/<API key>.png"> </head> <body> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a> <a class="brand" href="#"><?php echo(getName()); ?></a> <div class="nav-collapse"> <ul class="nav">
Copyright (c) 2016 Mycolorway Design Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// package method implements http method override // using the <API key> http header. package method import ( "errors" "net/http" ) // <API key> is a commonly used // Http header to override the method. const <API key> = "<API key>" // <API key> is a commonly used // HTML form parameter to override the method. const <API key> = "_method" var httpMethods = []string{"PUT", "PATCH", "DELETE"} // <API key> is returned when // an invalid http method was given to <API key>. var <API key> = errors.New("invalid override method") func <API key>(method string) bool { for _, m := range httpMethods { if m == method { return true } } return false } // Override checks for the <API key> header // or the HTML for parameter, `_method` // and uses (if valid) the http method instead of // Request.Method. // This is especially useful for http clients // that don't support many http verbs. // It isn't secure to override e.g a GET to a POST, // so only Request.Method which are POSTs are considered. func Override() http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method == "POST" { m := r.FormValue(<API key>) if <API key>(m) { <API key>(r, m) } m = r.Header.Get(<API key>) if <API key>(m) { r.Method = m } } }) } // <API key> overrides the http // request's method with the specified method. func <API key>(r *http.Request, method string) error { if !<API key>(method) { return <API key> } r.Header.Set(<API key>, method) return nil }
# -*- coding: utf-8 -*- from concurrent.futures import ThreadPoolExecutor from requests import Session from requests.adapters import DEFAULT_POOLSIZE, HTTPAdapter class FuturesSession(Session): def __init__(self, executor=None, max_workers=2, session=None, *args, **kwargs): """Creates a FuturesSession Notes ~~ * ProcessPoolExecutor is not supported b/c Response objects are not picklable. * If you provide both `executor` and `max_workers`, the latter is ignored and provided executor is used as is. """ super(FuturesSession, self).__init__(*args, **kwargs) if executor is None: executor = ThreadPoolExecutor(max_workers=max_workers) # set connection pool size equal to max_workers if needed if max_workers > DEFAULT_POOLSIZE: adapter_kwargs = dict(pool_connections=max_workers, pool_maxsize=max_workers) self.mount('https://', HTTPAdapter(**adapter_kwargs)) self.mount('http://', HTTPAdapter(**adapter_kwargs)) self.executor = executor self.session = session def request(self, *args, **kwargs): """Maintains the existing api for Session.request. Used by all of the higher level methods, e.g. Session.get. The background_callback param allows you to do some processing on the response in the background, e.g. call resp.json() so that json parsing happens in the background thread. """ if self.session: func = sup = self.session.request else: func = sup = super(FuturesSession, self).request background_callback = kwargs.pop('background_callback', None) if background_callback: def wrap(*args_, **kwargs_): resp = sup(*args_, **kwargs_) background_callback(self, resp) return resp func = wrap return self.executor.submit(func, *args, **kwargs) def __enter__(self): return self def __exit__(self, type, value, traceback): self.executor.shutdown()
$(document).ready(function () { var canvas = document.getElementById('canvas'), ctx = canvas.getContext('2d'), w = canvas.width, h = canvas.height, level = 1; var Food = function () { this.x = Math.floor(Math.random() * (w - snake.size) / snake.size); this.y = Math.floor(Math.random() * (h - snake.size) / snake.size); this.make = function() { ctx.fillStyle = '#1fe30d'; ctx.fillRect(this.x*snake.size, this.y*snake.size, snake.size, snake.size); }; }; // Snake object (function( snake, $, undefined ) { // Private properties var segments = [], speed = 240, length = 10, foodBin = [], eaten = 0; // Public properties snake.size = 10, snake.dir = 'right'; // Public methods snake.start = function () { for (var i = length -1; i >=0; i segments.push({x: i, y: 0}); } foodBin.push(new Food()); drawSnake(); } // Private methods function drawSnake() { ctx.clearRect(0, 0, w, h); _.each(segments, function (seg) { ctx.fillStyle = '#f5f5f5'; ctx.fillRect(seg.x * snake.size, seg.y * snake.size, snake.size, snake.size); }); _.each(foodBin, function (food) { food.make(); }); setTimeout(updateSnake, speed); }; function updateSnake() { var new_x = segments[0].x, new_y = segments[0].y; if (snake.dir == 'right') { new_x++; } else if (snake.dir == 'left') { new_x } else if (snake.dir == 'down') { new_y++; } else if (snake.dir == 'up') { new_y } checkCollision(new_x, new_y); }; function checkCollision(x, y) { var collision = false; for (var i = 1; i < segments.length; i++) { var s = segments[i]; if (s.x == x && s.y == y) { collision = true; } } if (x == -1 || y == -1 || x == w /snake.size || y == h / snake.size) { collision = true; } if (collision) { $('#help').hide(); $('#game_over').show(); } else { checkFood(x, y); } }; function checkFood(x, y) { _.each(foodBin, function (food, i) { if (food.x == x && food.y == y) { eaten++; segments.push({x: food.x, y: food.y}); foodBin.splice(i, 1); if (foodBin.length == 0) { level++; speed *= 0.75; for (var i = 0; i < level; i++) { foodBin.push(new Food); } $('#level').text('Level: ' + level); } } }); moveSnake(x, y); } function moveSnake(x, y) { var tail = segments.pop(); tail.x = x; tail.y = y; segments.unshift(tail); drawSnake(); }; }( window.snake = window.snake || {}, jQuery )); snake.start(); $('#info_tab').on('click', function() { $('#help').show(); }); $('.close').on('click', function () { $('#help').hide(); }); $(document).on('keydown', function (e) { var key = e.keyCode; if (key == 37 && snake.dir != 'right') { setTimeout(function () { snake.dir = 'left'; }, 30); } else if (key == 38 && snake.dir != 'down') { setTimeout(function () { snake.dir = 'up'; }, 30); } else if (key == 39 && snake.dir != 'left') { setTimeout(function () { snake.dir = 'right'; }, 30); } else if (key == 40 && snake.dir != 'up') { setTimeout(function () { snake.dir = 'down'; }, 30); } e.preventDefault(); }); });
<!DOCTYPE html> <html xmlns="http: <head> <meta charset="utf-8"></meta> <meta name="generator" content="JsDoc Toolkit"></meta> <title>enchant.gl.Framebuffer | JsDoc Reference</title> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"></meta> <meta name="mobileoptimized" content="0"></meta> <link rel="stylesheet" href="../css/all.css" media="all"></link> <link rel="stylesheet" href="../css/handheld.css" media="only screen and (max-width: 660px)"></link> <link rel="stylesheet" href="../css/handheld.css" media="handheld"></link> <link rel="stylesheet" href="../css/screen.css" media="screen and (min-width: 661px)"></link> <script src="../javascript/all.js"></script> <!--[if lt IE 9]> <script src="../javascript/html5.js"></script> <![endif] </head> <body> <div class="index"> <div class="menu"> <div class="indexLinks"> <a href="../index.html">Classes</a> <a href="../files.html">Files</a> </div> <h2 class="heading1">Classes</h2> <input type="text" name="classFilter" class="classFilter" id="ClassFilter" placeholder="Filter"></input> <nav> <ul class="classList" id="ClassList"> <li><a href="../symbols/_global_.html">_global_</a></li> <li><a href="../symbols/enchant.Action.html">enchant<span class='break'> </span>.<span class='break'> </span>Action</a></li> <li><a href="../symbols/enchant.ActionEventTarget.html">enchant<span class='break'> </span>.<span class='break'> </span>ActionEventTarget</a></li> <li><a href="../symbols/enchant.Avatar.html">enchant<span class='break'> </span>.<span class='break'> </span>Avatar</a></li> <li><a href="../symbols/enchant.avatar.AvatarCharacter.html">enchant<span class='break'> </span>.<span class='break'> </span>avatar<span class='break'> </span>.<span class='break'> </span>AvatarCharacter</a></li> <li><a href="../symbols/enchant.avatar.AvatarMonster.html">enchant<span class='break'> </span>.<span class='break'> </span>avatar<span class='break'> </span>.<span class='break'> </span>AvatarMonster</a></li> <li><a href="../symbols/enchant.AvatarBG.html">enchant<span class='break'> </span>.<span class='break'> </span>AvatarBG</a></li> <li><a href="../symbols/enchant.BinaryInputManager.html">enchant<span class='break'> </span>.<span class='break'> </span>BinaryInputManager</a></li> <li><a href="../symbols/enchant.BinaryInputSource.html">enchant<span class='break'> </span>.<span class='break'> </span>BinaryInputSource</a></li> <li><a href="../symbols/enchant.box2d.PhysicsWorld.html">enchant<span class='break'> </span>.<span class='break'> </span>box2d<span class='break'> </span>.<span class='break'> </span>PhysicsWorld</a></li> <li><a href="../symbols/enchant.box2d.PhySprite.html">enchant<span class='break'> </span>.<span class='break'> </span>box2d<span class='break'> </span>.<span class='break'> </span>PhySprite</a></li> <li><a href="../symbols/enchant.CanvasLayer.html">enchant<span class='break'> </span>.<span class='break'> </span>CanvasLayer</a></li> <li><a href="../symbols/enchant.CanvasScene.html">enchant<span class='break'> </span>.<span class='break'> </span>CanvasScene</a></li> <li><a href="../symbols/enchant.Class.html">enchant<span class='break'> </span>.<span class='break'> </span>Class</a></li> <li><a href="../symbols/enchant.Class.MixingRecipe.html">enchant<span class='break'> </span>.<span class='break'> </span>Class<span class='break'> </span>.<span class='break'> </span>MixingRecipe</a></li> <li><a href="../symbols/enchant.Core.html">enchant<span class='break'> </span>.<span class='break'> </span>Core</a></li> <li><a href="../symbols/enchant.Deferred.html">enchant<span class='break'> </span>.<span class='break'> </span>Deferred</a></li> <li><a href="../symbols/enchant.DOMScene.html">enchant<span class='break'> </span>.<span class='break'> </span>DOMScene</a></li> <li><a href="../symbols/enchant.DOMSound.html">enchant<span class='break'> </span>.<span class='break'> </span>DOMSound</a></li> <li><a href="../symbols/enchant.Easing.html">enchant<span class='break'> </span>.<span class='break'> </span>Easing</a></li> <li><a href="../symbols/enchant.Entity.html">enchant<span class='break'> </span>.<span class='break'> </span>Entity</a></li> <li><a href="../symbols/enchant.ENV.html">enchant<span class='break'> </span>.<span class='break'> </span>ENV</a></li> <li><a href="../symbols/enchant.Event.html">enchant<span class='break'> </span>.<span class='break'> </span>Event</a></li> <li><a href="../symbols/enchant.EventTarget.html">enchant<span class='break'> </span>.<span class='break'> </span>EventTarget</a></li> <li><a href="../symbols/enchant.Game.html">enchant<span class='break'> </span>.<span class='break'> </span>Game</a></li> <li><a href="../symbols/enchant.gl.AmbientLight.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>AmbientLight</a></li> <li><a href="../symbols/enchant.gl.Bone.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Bone</a></li> <li><a href="../symbols/enchant.gl.Buffer.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Buffer</a></li> <li><a href="../symbols/enchant.gl.Camera3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Camera3D</a></li> <li><a href="../symbols/enchant.gl.collada.<API key>.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collada<span class='break'> </span>.<span class='break'> </span><API key></a></li> <li><a href="../symbols/enchant.gl.collada.ColladaBone.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collada<span class='break'> </span>.<span class='break'> </span>ColladaBone</a></li> <li><a href="../symbols/enchant.gl.collada.ColladaMesh.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collada<span class='break'> </span>.<span class='break'> </span>ColladaMesh</a></li> <li><a href="../symbols/enchant.gl.collada.ColladaSkeleton.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collada<span class='break'> </span>.<span class='break'> </span>ColladaSkeleton</a></li> <li><a href="../symbols/enchant.gl.collada.<API key>.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collada<span class='break'> </span>.<span class='break'> </span><API key></a></li> <li><a href="../symbols/enchant.gl.collada.ColladaSprite3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collada<span class='break'> </span>.<span class='break'> </span>ColladaSprite3D</a></li> <li><a href="../symbols/enchant.gl.collision.AABB.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collision<span class='break'> </span>.<span class='break'> </span>AABB</a></li> <li><a href="../symbols/enchant.gl.collision.Bounding.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collision<span class='break'> </span>.<span class='break'> </span>Bounding</a></li> <li><a href="../symbols/enchant.gl.collision.BS.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collision<span class='break'> </span>.<span class='break'> </span>BS</a></li> <li><a href="../symbols/enchant.gl.collision.OBB.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>collision<span class='break'> </span>.<span class='break'> </span>OBB</a></li> <li><a href="../symbols/enchant.gl.DirectionalLight.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>DirectionalLight</a></li> <li><a href="../symbols/enchant.gl.Framebuffer.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Framebuffer</a></li> <li><a href="../symbols/enchant.gl.KeyFrameManager.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>KeyFrameManager</a></li> <li><a href="../symbols/enchant.gl.Light3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Light3D</a></li> <li><a href="../symbols/enchant.gl.Mesh.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Mesh</a></li> <li><a href="../symbols/enchant.gl.mmd.MAnimation.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>mmd<span class='break'> </span>.<span class='break'> </span>MAnimation</a></li> <li><a href="../symbols/enchant.gl.mmd.MMesh.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>mmd<span class='break'> </span>.<span class='break'> </span>MMesh</a></li> <li><a href="../symbols/enchant.gl.mmd.MSprite3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>mmd<span class='break'> </span>.<span class='break'> </span>MSprite3D</a></li> <li><a href="../symbols/enchant.gl.physics.PhyBox.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyBox</a></li> <li><a href="../symbols/enchant.gl.physics.PhyCapsule.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyCapsule</a></li> <li><a href="../symbols/enchant.gl.physics.PhyContainer.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyContainer</a></li> <li><a href="../symbols/enchant.gl.physics.PhyCube.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyCube</a></li> <li><a href="../symbols/enchant.gl.physics.PhyCylinder.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyCylinder</a></li> <li><a href="../symbols/enchant.gl.physics.PhyPlane.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyPlane</a></li> <li><a href="../symbols/enchant.gl.physics.PhyScene3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhyScene3D</a></li> <li><a href="../symbols/enchant.gl.physics.PhySphere.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhySphere</a></li> <li><a href="../symbols/enchant.gl.physics.PhySprite3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>PhySprite3D</a></li> <li><a href="../symbols/enchant.gl.physics.Rigid.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>Rigid</a></li> <li><a href="../symbols/enchant.gl.physics.RigidBox.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidBox</a></li> <li><a href="../symbols/enchant.gl.physics.RigidCapsule.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidCapsule</a></li> <li><a href="../symbols/enchant.gl.physics.RigidContainer.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidContainer</a></li> <li><a href="../symbols/enchant.gl.physics.RigidCube.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidCube</a></li> <li><a href="../symbols/enchant.gl.physics.RigidCylinder.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidCylinder</a></li> <li><a href="../symbols/enchant.gl.physics.RigidPlane.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidPlane</a></li> <li><a href="../symbols/enchant.gl.physics.RigidSphere.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>RigidSphere</a></li> <li><a href="../symbols/enchant.gl.physics.World.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>physics<span class='break'> </span>.<span class='break'> </span>World</a></li> <li><a href="../symbols/enchant.gl.PointLight.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>PointLight</a></li> <li><a href="../symbols/enchant.gl.Pose.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Pose</a></li> <li><a href="../symbols/enchant.gl.Quat.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Quat</a></li> <li><a href="../symbols/enchant.gl.Scene3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Scene3D</a></li> <li><a href="../symbols/enchant.gl.Shader.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Shader</a></li> <li><a href="../symbols/enchant.gl.Skeleton.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Skeleton</a></li> <li><a href="../symbols/enchant.gl.Sprite3D.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Sprite3D</a></li> <li><a href="../symbols/enchant.gl.State.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>State</a></li> <li><a href="../symbols/enchant.gl.Texture.html">enchant<span class='break'> </span>.<span class='break'> </span>gl<span class='break'> </span>.<span class='break'> </span>Texture</a></li> <li><a href="../symbols/enchant.Group.html">enchant<span class='break'> </span>.<span class='break'> </span>Group</a></li> <li><a href="../symbols/enchant.InputManager.html">enchant<span class='break'> </span>.<span class='break'> </span>InputManager</a></li> <li><a href="../symbols/enchant.InputSource.html">enchant<span class='break'> </span>.<span class='break'> </span>InputSource</a></li> <li><a href="../symbols/enchant.<API key>.html">enchant<span class='break'> </span>.<span class='break'> </span><API key></a></li> <li><a href="../symbols/enchant.KeyboardInputSource.html">enchant<span class='break'> </span>.<span class='break'> </span>KeyboardInputSource</a></li> <li><a href="../symbols/enchant.Label.html">enchant<span class='break'> </span>.<span class='break'> </span>Label</a></li> <li><a href="../symbols/enchant.LoadingScene.html">enchant<span class='break'> </span>.<span class='break'> </span>LoadingScene</a></li> <li><a href="../symbols/enchant.Map.html">enchant<span class='break'> </span>.<span class='break'> </span>Map</a></li> <li><a href="../symbols/enchant.nineleap.Core.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>Core</a></li> <li><a href="../symbols/enchant.nineleap.memory.Core.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>memory<span class='break'> </span>.<span class='break'> </span>Core</a></li> <li><a href="../symbols/enchant.nineleap.memory.HttpRequest.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>memory<span class='break'> </span>.<span class='break'> </span>HttpRequest</a></li> <li><a href="../symbols/enchant.nineleap.memory.LocalStorage.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>memory<span class='break'> </span>.<span class='break'> </span>LocalStorage</a></li> <li><a href="../symbols/enchant.nineleap.memory.MemoryWrite.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>memory<span class='break'> </span>.<span class='break'> </span>MemoryWrite</a></li> <li><a href="../symbols/enchant.nineleap.SplashScene.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>SplashScene</a></li> <li><a href="../symbols/enchant.nineleap.twitter.Core.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>twitter<span class='break'> </span>.<span class='break'> </span>Core</a></li> <li><a href="../symbols/enchant.nineleap.twitter.TwitterRequest.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>twitter<span class='break'> </span>.<span class='break'> </span>TwitterRequest</a></li> <li><a href="../symbols/enchant.nineleap.twitter.<TwitterConsumerkey>.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>twitter<span class='break'> </span>.<span class='break'> </span><TwitterConsumerkey></a></li> <li><a href="../symbols/enchant.nineleap.twitter.TwitterUserData.html">enchant<span class='break'> </span>.<span class='break'> </span>nineleap<span class='break'> </span>.<span class='break'> </span>twitter<span class='break'> </span>.<span class='break'> </span>TwitterUserData</a></li> <li><a href="../symbols/enchant.Node.html">enchant<span class='break'> </span>.<span class='break'> </span>Node</a></li> <li><a href="../symbols/enchant.ParallelAction.html">enchant<span class='break'> </span>.<span class='break'> </span>ParallelAction</a></li> <li><a href="../symbols/enchant.PhyBoxSprite.html">enchant<span class='break'> </span>.<span class='break'> </span>PhyBoxSprite</a></li> <li><a href="../symbols/enchant.PhyCircleSprite.html">enchant<span class='break'> </span>.<span class='break'> </span>PhyCircleSprite</a></li> <li><a href="../symbols/enchant.Scene.html">enchant<span class='break'> </span>.<span class='break'> </span>Scene</a></li> <li><a href="../symbols/enchant.Sprite.html">enchant<span class='break'> </span>.<span class='break'> </span>Sprite</a></li> <li><a href="../symbols/enchant.Surface.html">enchant<span class='break'> </span>.<span class='break'> </span>Surface</a></li> <li><a href="../symbols/enchant.telepathy.html">enchant<span class='break'> </span>.<span class='break'> </span>telepathy</a></li> <li><a href="../symbols/enchant.telepathy.Telepathy.html">enchant<span class='break'> </span>.<span class='break'> </span>telepathy<span class='break'> </span>.<span class='break'> </span>Telepathy</a></li> <li><a href="../symbols/enchant.telepathy.TelepathySense.html">enchant<span class='break'> </span>.<span class='break'> </span>telepathy<span class='break'> </span>.<span class='break'> </span>TelepathySense</a></li> <li><a href="../symbols/enchant.Timeline.html">enchant<span class='break'> </span>.<span class='break'> </span>Timeline</a></li> <li><a href="../symbols/enchant.Tween.html">enchant<span class='break'> </span>.<span class='break'> </span>Tween</a></li> <li><a href="../symbols/enchant.ui.APad.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>APad</a></li> <li><a href="../symbols/enchant.ui.Bar.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>Bar</a></li> <li><a href="../symbols/enchant.ui.Button.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>Button</a></li> <li><a href="../symbols/enchant.ui.LifeLabel.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>LifeLabel</a></li> <li><a href="../symbols/enchant.ui.MutableText.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>MutableText</a></li> <li><a href="../symbols/enchant.ui.Pad.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>Pad</a></li> <li><a href="../symbols/enchant.ui.ScoreLabel.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>ScoreLabel</a></li> <li><a href="../symbols/enchant.ui.TimeLabel.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>TimeLabel</a></li> <li><a href="../symbols/enchant.ui.VirtualMap.html">enchant<span class='break'> </span>.<span class='break'> </span>ui<span class='break'> </span>.<span class='break'> </span>VirtualMap</a></li> <li><a href="../symbols/enchant.WebAudioSound.html">enchant<span class='break'> </span>.<span class='break'> </span>WebAudioSound</a></li> <li><a href="../symbols/enchant.widget.Alert.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Alert</a></li> <li><a href="../symbols/enchant.widget.AlertScene.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>AlertScene</a></li> <li><a href="../symbols/enchant.widget.Button.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Button</a></li> <li><a href="../symbols/enchant.widget.Confirm.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Confirm</a></li> <li><a href="../symbols/enchant.widget.ConfirmScene.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>ConfirmScene</a></li> <li><a href="../symbols/enchant.widget.EntityGroup.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>EntityGroup</a></li> <li><a href="../symbols/enchant.widget.GestureDetector.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>GestureDetector</a></li> <li><a href="../symbols/enchant.widget.IconMenu.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>IconMenu</a></li> <li><a href="../symbols/enchant.widget.Input.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Input</a></li> <li><a href="../symbols/enchant.widget.InputCheckBox.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>InputCheckBox</a></li> <li><a href="../symbols/enchant.widget.InputScene.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>InputScene</a></li> <li><a href="../symbols/enchant.widget.InputSelectBox.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>InputSelectBox</a></li> <li><a href="../symbols/enchant.widget.InputTextArea.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>InputTextArea</a></li> <li><a href="../symbols/enchant.widget.InputTextBox.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>InputTextBox</a></li> <li><a href="../symbols/enchant.widget.LazyListItem.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>LazyListItem</a></li> <li><a href="../symbols/enchant.widget.LazyListView.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>LazyListView</a></li> <li><a href="../symbols/enchant.widget.ListElement.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>ListElement</a></li> <li><a href="../symbols/enchant.widget.ListItem.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>ListItem</a></li> <li><a href="../symbols/enchant.widget.ListItemVertical.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>ListItemVertical</a></li> <li><a href="../symbols/enchant.widget.ListView.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>ListView</a></li> <li><a href="../symbols/enchant.widget.Modal.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Modal</a></li> <li><a href="../symbols/enchant.widget.NavigationBar.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>NavigationBar</a></li> <li><a href="../symbols/enchant.widget.Ninepatch.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Ninepatch</a></li> <li><a href="../symbols/enchant.widget.Prompt.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>Prompt</a></li> <li><a href="../symbols/enchant.widget.PromptScene.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>PromptScene</a></li> <li><a href="../symbols/enchant.widget.ScrollView.html">enchant<span class='break'> </span>.<span class='break'> </span>widget<span class='break'> </span>.<span class='break'> </span>ScrollView</a></li> <li><a href="../symbols/enchant.wiiu.html">enchant<span class='break'> </span>.<span class='break'> </span>wiiu</a></li> <li><a href="../symbols/Object.html">Object</a></li> </ul> </nav> </div> <div class="fineprint" style="clear:both"> Documentation generator: <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0<br /> Template: <a href="http: Generated on: 2016-0-4 21:07 </div> </div> <div class="index indexStatic"></div> <div class="content"> <div class="innerContent"> <h1 class="classTitle"> Class <span>enchant.gl.Framebuffer</span> </h1> <div class="intro"> <p class="description summary"> </p> <ul class="summary"> <li>Defined in: <a href="../symbols/src/lang_en_plugins_gl.enchant.js.html">gl.enchant.js</a></li> </ul> </div> <div class="props"> <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class enchant.gl.Framebuffer."> <caption class="sectionTitle">Class Summary</caption> <thead> <tr> <th scope="col">Constructor Attributes</th> <th scope="col">Constructor Name and Description</th> </tr> </thead> <tbody> <tr> <td class="attributes">&nbsp;</td> <td class="nameDescription" > <div class="fixedFont"> <b><a href="../symbols/enchant.gl.Framebuffer.html#constructor">enchant.gl.Framebuffer</a></b>(width, height) </div> <div class="description">Class for controlling WebGL frame buffers</div> </td> </tr> </tbody> </table> </div> <! # METHODS SUMMARY <div class="props"> <h2 class="sectionTitle">Method Summary</h2> <table class="summaryTable" id="MethodsList" cellspacing="0" summary="A summary of the methods documented in the class enchant.gl.Framebuffer."> <thead> <tr> <th scope="col">Method Attributes</th> <th scope="col">Method Name and Description</th> </tr> </thead> <tbody> <tr class='item0' > <td class="attributes">&nbsp;</td> <td class="nameDescription"> <div class="fixedFont"><b><a href="../symbols/enchant.gl.Framebuffer.html#bind">bind</a></b>() </div> <div class="description">Bind frame buffer.</div> </td> </tr> <tr class='item1' > <td class="attributes">&nbsp;</td> <td class="nameDescription"> <div class="fixedFont"><b><a href="../symbols/enchant.gl.Framebuffer.html#destroy">destroy</a></b>() </div> <div class="description">Destroy object.</div> </td> </tr> <tr class='item2' > <td class="attributes">&nbsp;</td> <td class="nameDescription"> <div class="fixedFont"><b><a href="../symbols/enchant.gl.Framebuffer.html#unbind">unbind</a></b>() </div> <div class="description">Unbind frame buffer.</div> </td> </tr> </tbody> </table> </div> <! # EVENTS SUMMARY <! # CONSTRUCTOR DETAILS <div class="details props"> <div class="innerProps"> <h2 class="sectionTitle" id="constructor"> Class Detail </h2> <div class="fixedFont"> <b>enchant.gl.Framebuffer</b>(width, height) </div> <div class="description"> Class for controlling WebGL frame buffers </div> <dl class="detailList params"> <dt class="heading">Parameters:</dt> <dt> <span class="light fixedFont">{String}</span> <b>width</b> </dt> <dd>Frame buffer width</dd> <dt> <span class="light fixedFont">{String}</span> <b>height</b> </dt> <dd>Frame buffer height</dd> </dl> </div> </div> <! # FIELD DETAILS <! # METHOD DETAILS <div class="details props"> <div class="innerProps"> <h2 class="sectionTitle"> Method Detail </h2> <ul class="methodDetail" id="MethodDetail"> <li class='item0' > <div class="fixedFont heading" id="bind"> <span class='lighter'> </span> <b>bind</b>() </div> <div class="description"> Bind frame buffer. </div> <div class="hr"></div> </li> <li class='item1' > <div class="fixedFont heading" id="destroy"> <span class='lighter'> </span> <b>destroy</b>() </div> <div class="description"> Destroy object. </div> <div class="hr"></div> </li> <li class='item2' > <div class="fixedFont heading" id="unbind"> <span class='lighter'> </span> <b>unbind</b>() </div> <div class="description"> Unbind frame buffer. </div> </li> </ul> </div> </div> <! # EVENT DETAILS </div> </div> <script type="text/javascript"> wbos.CssTools.MediaQueryFallBack.LoadCss('../css/screen.css', '../css/handheld.css', 660) codeview.classFilter.Init() </script> </body> </html>
<?php namespace spec\Sylius\Bundle\RbacBundle\Provider; use PhpSpec\ObjectBehavior; use Sylius\Component\Rbac\Model\IdentityInterface; use Sylius\Component\Rbac\Provider\<API key>; use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Core\Authentication\Token\Storage\<API key>; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\User\UserInterface; class <API key> extends ObjectBehavior { function let(<API key> $tokenStorage) { $this->beConstructedWith($tokenStorage); } function it_is_initializable() { $this->shouldHaveType('Sylius\Bundle\RbacBundle\Provider\<API key>'); } function <API key>() { $this->shouldHaveType(<API key>::class); } function <API key>($tokenStorage) { $tokenStorage->getToken()->shouldBeCalled()->willReturn(null); $this->getIdentity()->shouldReturn(null); } function it_returns_null_if_<API key>($tokenStorage, TokenInterface $token) { $tokenStorage->getToken()->shouldBeCalled()->willReturn($token); $token->getUser()->shouldBeCalled()->willReturn(null); $this->getIdentity()->shouldReturn(null); } function it_returns_null_if_<API key>($tokenStorage, AnonymousToken $token) { $tokenStorage->getToken()->shouldBeCalled()->willReturn($token); $this->getIdentity()->shouldReturn(null); } function <API key>($tokenStorage, TokenInterface $token, IdentityInterface $user) { $tokenStorage->getToken()->shouldBeCalled()->willReturn($token); $token->getUser()->shouldBeCalled()->willReturn($user); $this->getIdentity()->shouldReturn($user); } function <API key>($tokenStorage, TokenInterface $token, UserInterface $user) { $tokenStorage->getToken()->shouldBeCalled()->willReturn($token); $token->getUser()->shouldBeCalled()->willReturn($user); $this ->shouldThrow(new \<API key>('User class must implement "Sylius\Component\Rbac\Model\IdentityInterface".')) ->duringGetIdentity() ; } }
mod directives; use super::<API key>; use crate::util::{remove_directive, replace_directive}; use common::{Diagnostic, DiagnosticsResult, NamedItem, WithLocation}; pub use directives::{DeferDirective, StreamDirective}; use graphql_ir::{ Argument, ConstantValue, Directive, Field, FragmentDefinition, FragmentSpread, InlineFragment, LinkedField, OperationDefinition, Program, ScalarField, Selection, Transformed, Transformer, Value, }; use intern::string_key::{Intern, StringKey}; use lazy_static::lazy_static; use schema::Schema; use std::{collections::HashMap, sync::Arc}; use thiserror::Error; pub struct <API key> { pub defer_name: StringKey, pub stream_name: StringKey, pub if_arg: StringKey, pub label_arg: StringKey, pub initial_count_arg: StringKey, pub <API key>: StringKey, } impl Default for <API key> { fn default() -> Self { Self { defer_name: "defer".intern(), stream_name: "stream".intern(), if_arg: "if".intern(), label_arg: "label".intern(), initial_count_arg: "initial_count".intern(), <API key>: "<API key>".intern(), } } } lazy_static! { pub static ref <API key>: <API key> = Default::default(); } pub fn <API key>(program: &Program) -> DiagnosticsResult<Program> { let mut transformer = <API key> { program, <API key>: None, labels: Default::default(), errors: Default::default(), }; let next_program = transformer.transform_program(program); if transformer.errors.is_empty() { Ok(next_program.replace_or_else(|| program.clone())) } else { Err(transformer.errors) } } struct <API key><'s> { program: &'s Program, <API key>: Option<StringKey>, labels: HashMap<StringKey, Directive>, errors: Vec<Diagnostic>, } impl <API key><'_> { fn <API key>(&mut self, document_name: StringKey) { self.<API key> = Some(document_name) } fn record_label(&mut self, label: StringKey, directive: &Directive) { let prev_directive = self.labels.get(&label); match prev_directive { Some(prev) => { self.errors.push( Diagnostic::error( ValidationMessage::<API key> { directive_name: <API key>.defer_name, }, prev.name.location, ) .annotate("related location", directive.name.location), ); } None => { self.labels.insert(label, directive.to_owned()); } }; } fn transform_defer( &mut self, spread: &FragmentSpread, defer: &Directive, ) -> Result<Transformed<Selection>, Diagnostic> { let DeferDirective { if_arg, label_arg } = DeferDirective::from(defer); if <API key>(if_arg) { return Ok(Transformed::Replace(Selection::FragmentSpread(Arc::new( FragmentSpread { directives: remove_directive(&spread.directives, defer.name.item), ..spread.clone() }, )))); } let label_value = <API key>(defer, label_arg)?; let label = label_value .unwrap_or_else(|| <API key>(spread.fragment.item, &spread.arguments)); let transformed_label = transform_label( self.<API key> .expect("We expect the parent name to be defined here."), <API key>.defer_name, label, ); self.record_label(transformed_label, defer); let next_label_value = Value::Constant(ConstantValue::String(transformed_label)); let next_label_arg = Argument { name: WithLocation { item: <API key>.label_arg, location: label_arg.map_or(defer.name.location, |arg| arg.name.location), }, value: WithLocation { item: next_label_value, location: label_arg.map_or(defer.name.location, |arg| arg.value.location), }, }; let mut next_arguments = Vec::with_capacity(2); next_arguments.push(next_label_arg); if let Some(if_arg) = if_arg { next_arguments.push(if_arg.clone()); } let next_defer = Directive { name: defer.name, arguments: next_arguments, data: None, }; Ok(Transformed::Replace(Selection::InlineFragment(Arc::new( InlineFragment { type_condition: None, directives: vec![next_defer], selections: vec![Selection::FragmentSpread(Arc::new(FragmentSpread { directives: remove_directive(&spread.directives, defer.name.item), ..spread.clone() }))], }, )))) } fn transform_stream( &mut self, linked_field: &LinkedField, stream: &Directive, ) -> Result<Transformed<Selection>, Diagnostic> { let schema_field = self.program.schema.field(linked_field.definition.item); if !schema_field.type_.is_list() { return Err(Diagnostic::error( ValidationMessage::<API key> { field_name: schema_field.name.item, }, stream.name.location, )); } let StreamDirective { if_arg, label_arg, initial_count_arg, <API key>, } = StreamDirective::from(stream); let <API key> = self.<API key>(linked_field); let get_next_selection = |directives| match <API key> { Transformed::Replace(mut selection) => { selection.set_directives(directives); Transformed::Replace(selection) } Transformed::Keep => { Transformed::Replace(Selection::LinkedField(Arc::new(LinkedField { directives, ..linked_field.clone() }))) } Transformed::Delete => Transformed::Delete, }; if <API key>(if_arg) { return Ok(get_next_selection(remove_directive( &linked_field.directives, stream.name.item, ))); } if initial_count_arg.is_none() { return Err(Diagnostic::error( ValidationMessage::<API key>, stream.name.location, )); } let label_value = <API key>(stream, label_arg)?; let label = label_value.unwrap_or_else(|| { <API key>( linked_field.alias_or_name(&self.program.schema), &linked_field.arguments, ) }); let transformed_label = transform_label( self.<API key> .expect("We expect the parent name to be defined here."), <API key>.stream_name, label, ); self.record_label(transformed_label, stream); let next_label_value = Value::Constant(ConstantValue::String(transformed_label)); let next_label_arg = Argument { name: WithLocation { item: <API key>.label_arg, location: label_arg.map_or(stream.name.location, |arg| arg.name.location), }, value: WithLocation { item: next_label_value, location: label_arg.map_or(stream.name.location, |arg| arg.value.location), }, }; let mut next_arguments = Vec::with_capacity(4); next_arguments.push(next_label_arg); if let Some(if_arg) = if_arg { next_arguments.push(if_arg.clone()); } if let Some(initial_count_arg) = initial_count_arg { next_arguments.push(initial_count_arg.clone()); } if let Some(<API key>) = <API key> { next_arguments.push(<API key>.clone()); } let next_stream = Directive { name: stream.name, arguments: next_arguments, data: None, }; Ok(get_next_selection(replace_directive( &linked_field.directives, next_stream, ))) } } impl<'s> Transformer for <API key><'s> { const NAME: &'static str = "<API key>"; const VISIT_ARGUMENTS: bool = false; const VISIT_DIRECTIVES: bool = false; fn transform_operation( &mut self, operation: &OperationDefinition, ) -> Transformed<OperationDefinition> { self.<API key>(operation.name.item); self.<API key>(operation) } fn transform_fragment( &mut self, fragment: &FragmentDefinition, ) -> Transformed<FragmentDefinition> { self.<API key>(fragment.name.item); self.<API key>(fragment) } Validates @defer is not allowed on inline fragments. fn <API key>( &mut self, inline_fragment: &InlineFragment, ) -> Transformed<Selection> { let defer_directive = inline_fragment .directives .named(<API key>.defer_name); if let Some(directive) = defer_directive { // Special case for @defer generated by <API key> if let Some(label) = directive.arguments.named(<API key>.label_arg) { if let Some(label) = label.value.item.get_string_literal() { if label.lookup().contains("$defer$") { return self.<API key>(inline_fragment); } } } self.errors.push(Diagnostic::error( ValidationMessage::<API key>, directive.name.location, )); } self.<API key>(inline_fragment) } Transform of fragment spread with @defer is delegated to `transform_defer`. fn <API key>(&mut self, spread: &FragmentSpread) -> Transformed<Selection> { let defer_directive = spread.directives.named(<API key>.defer_name); if let Some(defer) = defer_directive { match self.transform_defer(spread, defer) { Ok(transformed) => transformed, Err(err) => { self.errors.push(err); self.<API key>(spread) } } } else { self.<API key>(spread) } } Validates @stream is not allowed on scalar fields. fn <API key>(&mut self, scalar_field: &ScalarField) -> Transformed<Selection> { let stream_directive = &scalar_field .directives .named(<API key>.stream_name); if let Some(directive) = stream_directive { self.errors.push(Diagnostic::error( ValidationMessage::<API key> { field_name: scalar_field.alias_or_name(&self.program.schema), }, directive.name.location, )); } self.<API key>(scalar_field) } Transform of linked field with @stream is delegated to `transform_stream`. fn <API key>(&mut self, linked_field: &LinkedField) -> Transformed<Selection> { let stream_directive = linked_field .directives .named(<API key>.stream_name); if let Some(stream) = stream_directive { match self.transform_stream(linked_field, stream) { Ok(transformed) => transformed, Err(err) => { self.errors.push(err); self.<API key>(linked_field) } } } else { self.<API key>(linked_field) } } } fn <API key>(arg: Option<&Argument>) -> bool { if let Some(arg) = arg { matches!( arg.value.item, Value::Constant(ConstantValue::Boolean(false)) ) } else { false } } fn transform_label( parent_name: StringKey, directive_name: StringKey, label: StringKey, ) -> StringKey { format!("{}${}${}", parent_name, directive_name, label).intern() } fn <API key>( directive: &Directive, argument: Option<&Argument>, ) -> Result<Option<StringKey>, Diagnostic> { if let Some(arg) = argument { if let Some(val) = arg.value.item.get_string_literal() { Ok(Some(val)) } else { Err(Diagnostic::error( ValidationMessage::<API key> { arg_name: arg.name.item, directive_name: directive.name.item, }, directive.name.location, )) } } else { Ok(None) } } #[derive(Debug, Error)] enum ValidationMessage { #[error( "Invalid use of @{directive_name}, the provided label is not unique. Specify a unique 'label' as a literal string." )] <API key> { directive_name: StringKey }, #[error("Field '{field_name}' is not of list type, therefore cannot use @stream directive.")] <API key> { field_name: StringKey }, #[error("Invalid use of @stream, the 'initial_count' argument is required.")] <API key>, #[error( "Invalid use of @defer on an inline fragment. Relay only supports @defer on fragment spreads." )] <API key>, #[error("Invalid use of @stream on scalar field '{field_name}'")] <API key> { field_name: StringKey }, #[error( "Expected the '{arg_name}' value to @{directive_name} to be a string literal if provided." )] <API key> { arg_name: StringKey, directive_name: StringKey, }, }
/*! * \file vx_examples.h * \brief A header of example functions. * \author Erik Rainey <erik.rainey@gmail.com> * * \defgroup group_example OpenVX Examples * \brief A series of examples of how to use the OpenVX API. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <VX/vx.h> #include <VX/vx_lib_debug.h> #include <VX/vx_helper.h> int example_pipeline(int argc, char *argv[]); int example_corners(int argc, char *argv[]); int example_ar(int argc, char *argv[]); int <API key>(int argc, char *argv[]);
# coding=utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import numba from src_legacy.fourier_series.buffer.ringbuffer import Ringbuffer @numba.vectorize(nopython=True) def legendre_recursion(n, x, p1, p2): if n == 0: return 1 elif n == 1: return x else: c0 = (2*n-1)/n c1 = (n-1)/n return c0 * x * p1 - c1 * p2 class FastLegendreEval: """ Pure float-64 class for evaluation of legendre polynomials recursively. """ start_index = 0 def __init__(self, arg, max_degree): if isinstance(arg, np.ndarray): self.arg = arg self.size = self.arg.size elif isinstance(arg, float): self.arg = arg self.size = 1 else: raise ValueError() self.max_degree = max_degree # @profile def generator(self, skip=0): buffer = Ringbuffer(buffer_size=3, array_size=self.size, dtype=float, start_index=self.start_index, <API key>=None, array_margin=0) deg = self.start_index while self.max_degree is None or deg <= self.max_degree - 1: p1 = buffer[deg - 1, :] p2 = buffer[deg - 2, :] arr = legendre_recursion(deg, self.arg, p1, p2) buffer[:] = arr if skip == 0: yield deg, buffer else: skip -= 1 deg += 1
<?php namespace Webmozart\KeyValueStore\Tests; /** * @since 1.0 * * @author Bernhard Schussek <bschussek@gmail.com> * @author Titouan Galopin <galopintitouan@gmail.com> */ abstract class <API key> extends <API key> { /** * @expectedException \Webmozart\KeyValueStore\Api\ReadException */ abstract public function <API key>(); public function testCountCache() { $this->assertEquals(0, $this->store->count()); $this->store->set('foo1', 'bar'); $this->assertEquals(1, $this->store->count()); $this->store->set('foo2', 'bar'); $this->assertEquals(2, $this->store->count()); $this->store->set('foo3', 'bar'); $this->assertEquals(3, $this->store->count()); $this->store->remove('foo2'); $this->assertEquals(2, $this->store->count()); $this->store->clear(); $this->assertEquals(0, $this->store->count()); } }
'use strict'; /** * Sets up a ProjectManager * * @module aws/projectInit */ const awsProjectManager = require('./projectManager'); const makePromiseApi = require('../util').makePromiseApi; const https = require('https'); /** * @returns {Q.Promise} */ function initAwsProject(config) { const a = require('aws-sdk'); const elb = new a.ELB(config.awsCredentials); const ec2 = new a.EC2(config.awsCredentials); const ecr = new a.ECR(config.awsCredentials); const ecs = new a.ECS(config.awsCredentials); const r53 = new a.Route53(config.awsCredentials); const ddb = makePromiseApi( new a.DynamoDB(Object.assign({ httpOptions: { agent: new https.Agent({ secureProtocol: 'TLSv1_method', ciphers: 'ALL' }) } }, config.awsCredentials))); const iam = new a.IAM(config.awsCredentials); return awsProjectManager(ec2, ecs, r53, ddb, iam, ecr, elb); } module.exports = initAwsProject;
#!/bin/bash FN="RTCGA.clinical_20151101.16.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.10/data/experiment/src/contrib/RTCGA.clinical_20151101.16.0.tar.gz" "https://bioarchive.galaxyproject.org/RTCGA.clinical_20151101.16.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-rtcga.clinical/bioconductor-rtcga.clinical_20151101.16.0_src_all.tar.gz" ) MD5="<API key>" # Use a staging area in the conda dir rather than temp dirs, both to avoid # manner. STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $STAGING TARBALL=$STAGING/$FN SUCCESS=0 for URL in ${URLS[@]}; do curl $URL > $TARBALL [[ $? == 0 ]] || continue # Platform-specific md5sum checks. if [[ $(uname -s) == "Linux" ]]; then if md5sum -c <<<"$MD5 $TARBALL"; then SUCCESS=1 break fi else if [[ $(uname -s) == "Darwin" ]]; then if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then SUCCESS=1 break fi fi fi done if [[ $SUCCESS != 1 ]]; then echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" printf '%s\n' "${URLS[@]}" exit 1 fi # Install and clean up R CMD INSTALL --library=$PREFIX/lib/R/library $TARBALL rm $TARBALL rmdir $STAGING
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http: <html> <head> <title>Minim : : FFT : : LANCZOS</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="stylesheet.css" rel="stylesheet" type="text/css"> </head> <body> <center> <table class="mainTable"> <tr> <td class="header"> <span class="indexheader">Minim</span><br/> <span class="indexnavigation"> <a href="index.html">core</a> | <a href="index_ugens.html">ugens</a> | <a href="index_analysis.html">analysis</a> </span> </td> <td class="border-left">&nbsp;</td> </tr> <tr> <td class="classNavigation"> <p class="mainTextName"><A href="<API key>.html">FourierTransform</A></p> <p class="methodName">LANCZOS</p> </td> <td class="mainText border-left"> <p class="memberSectionHeader">Description</p> A constant indicating a Lanczos window should be used on sample buffers. <p class="memberSectionHeader">Signature</p> <pre>WindowFunction LANCZOS </pre> <p class="memberSectionHeader">Related</p> <A href=".html"><a href="http://en.wikipedia.org/wiki/Window_function#Lanczos_window">Lanczos window</a></A><BR> <A href="<API key>.html">WindowFunction</A><BR> <p class="memberSectionHeader">Example</p> import ddf.minim.analysis.*; import ddf.minim.*; Minim minim; AudioPlayer jingle; FFT fft; String windowName; void setup() { size(512, 200, P3D); minim = new Minim(this); jingle = minim.loadFile("jingle.mp3", 2048); jingle.loop(); // create an FFT object that has a time-domain buffer // the same size as jingle's sample buffer // note that this needs to be a power of two // and that it means the size of the spectrum // will be 512. see the online tutorial for more info. fft = new FFT(jingle.bufferSize(), jingle.sampleRate()); textFont(createFont("Arial", 16)); windowName = "Rectangular Window"; } void draw() { background(0); stroke(255); // perform a forward FFT on the samples in jingle's left buffer // note that if jingle were a MONO file, // this would be the same as using jingle.right or jingle.left fft.forward(jingle.mix); for(int i = 0; i &lt; fft.specSize(); i++) { // convert the magnitude to a DB value. // this means values will range roughly from 0 for the loudest // bands to some negative value. float bandDB = 20 * log( 2 * fft.getBand(i) / fft.timeSize() ); // so then we want to map our DB value to the height of the window // given some reasonable range float bandHeight = map( bandDB, 0, -150, 0, height ); line(i, height, i, bandHeight ); } fill(255); // keep us informed about the window being used text("The window being used is: " + windowName, 5, 20); } void keyReleased() { WindowFunction newWindow = FFT.NONE; if ( key == '1' ) { newWindow = FFT.BARTLETT; } else if ( key == '2' ) { newWindow = FFT.BARTLETTHANN; } else if ( key == '3' ) { newWindow = FFT.BLACKMAN; } else if ( key == '4' ) { newWindow = FFT.COSINE; } else if ( key == '5' ) { newWindow = FFT.GAUSS; } else if ( key == '6' ) { newWindow = FFT.HAMMING; } else if ( key == '7' ) { newWindow = FFT.HANN; } else if ( key == '8' ) { newWindow = FFT.LANCZOS; } else if ( key == '9' ) { newWindow = FFT.TRIANGULAR; } fft.window( newWindow ); windowName = newWindow.toString(); } </pre> <p class="memberSectionHeader">Usage</p> Web & Application </td> </tr> </table> </center> </body> </html>
<!-- #docregion --> <h1>Angular Router</h1> <nav> <a routerLink="/crisis-center" routerLinkActive="active">Crisis Center</a> <a routerLink="/heroes" routerLinkActive="active">Heroes</a> </nav> <div [@routeAnimation]="getAnimationData()"> <router-outlet></router-outlet> </div>
YUI.add('<API key>', function(Y) { var suite = new Y.Test.Suite("Graphics: Set Shape Fill And Stroke"), ShapeTestTemplate, parentDiv = Y.DOM.create('<div id="testdiv" style="width: 400px; height: 400px;">'), DOC = Y.config.doc; DOC.body.appendChild(parentDiv); ShapeTestTemplate = function(cfg, globalCfg) { var i; ShapeTestTemplate.superclass.constructor.apply(this); this.attrCfg = cfg; for(i in globalCfg) { if(globalCfg.hasOwnProperty(i)) { this[i] = globalCfg[i]; } } }; Y.extend(ShapeTestTemplate, Y.Test.Case, { name: "<API key>", defaultFill: { type: "linear", stops: [ {color: "#9aa"}, {color: "#eee"} ] }, setUp: function () { var startCfg = { stroke: { weight: 1, color: "#000" }, width: 40, height: 40 }, fill = this.attrCfg.fill, stroke = this.attrCfg.stroke; startCfg.fill = this.defaultFill; startCfg.type = this.attrCfg.type; graphic = new Y.Graphic({render: "#testdiv"}); this.graphic = graphic; this.shape = graphic.addShape(startCfg); if(stroke) { this.shape.set("stroke", stroke); } if(fill) { this.shape.set("fill", fill); } }, tearDown: function () { this.graphic.destroy(); Y.Event.purgeElement(DOC, false); } }); function FillAndStrokeTest() { FillAndStrokeTest.superclass.constructor.apply(this, arguments); }; Y.extend(FillAndStrokeTest, ShapeTestTemplate); var solidTest = function() { var shape = this.shape, fill = shape.get("fill"); Y.Assert.areEqual(this.fillColor, fill.color, "The fill color should be " + this.fillColor + "."); Y.Assert.areEqual(this.fillOpacity, fill.opacity, "The fill opacity should be " + this.fillOpacity + "."); }, gradientTest = function() { var shape = this.shape, fill = shape.get("fill"), stops = fill.stops, type = fill.type, len = stops.length, i = 0; for(; i < len; ++i) { if(stops[i]) { if(stops[i].offset || Y.Lang.isNumber(stops[i].offset)) { Y.Assert.areEqual(this.offset[i], stops[i].offset, "The offset should be " + this.offset[i] + "."); } Y.Assert.areEqual(this.color[i], stops[i].color, "The color should be " + this.color[i] + "."); if(stops[i].opacity || Y.Lang.isNumber(stops[i].opacity)) { Y.Assert.areEqual(this.opacity[i], stops[i].opacity, "The opacity should be " + this.opacity[i] + "."); } } } }, fillTest = function(shape, fill, stroke, props) { return new FillAndStrokeTest({ type: shape, fill: fill, stroke: stroke }, props); }, solidFill = function(shape, opacity) { return new fillTest(shape, { type: "solid", opacity: opacity, color: "#f00" }, { color: "#00f", opacity: opacity }, { fillColor: "#f00", fillOpacity: opacity, strokeColor: "#00f", strokeOpacity: opacity, test: solidTest, NAME: shape + " with solid fill with opacity of " + opacity + " for stroke and fill." }); }, gradientFill = function(shape, type, color, opacity, offset, opts, defaultFill) { var i = 0, len = color.length, stops = [], props = {}, fill, key; for(; i < len; ++i) { stops[i] = {color: color[i]}; if(opacity && Y.Lang.isNumber(opacity[i])) { stops[i].opacity = opacity[i]; } if(offset && Y.Lang.isNumber(offset[i])) { stops[i].offset = offset[i]; } } fill = { type: type, stops: stops }; if(opts) { for(key in opts) { if(opts.hasOwnProperty(key)) { props[key] = opts[key]; fill[key] = opts[key]; } } } if(color) { props.color = color; } if(opacity) { props.opacity = opacity; } if(offset) { props.offset = offset; } if(defaultFill) { props.defaultFill = defaultFill; } props.test = gradientTest; return new fillTest(shape, fill, {weight: 1, color: "#000"}, props); }, threeColors = [ "#ff0", "#f00", "#eee" ], threeOpacities = [ 0.3, 0.8, 0.2 ], threeOffsets = [ 0.2, 0.6, 0.9 ], noFill = { type: "none", color: "none" }, fourStops = { type: "linear", stops: [ {color: "#f00", opacity: 0.3, offset: 0.2}, {color: "#fc0", opacity: 0.8, offset: 0.4}, {color: "#ffe", opacity: 0.2, offset: 0.6}, {color: "#00f", opacity: 0.4, offset: 0.9} ] }, fourRadialStops = { type: "radial", stops: [ {color: "#f00", opacity: 0.3, offset: 0.2}, {color: "#fc0", opacity: 0.8, offset: 0.4}, {color: "#ffe", opacity: 0.2, offset: 0.6}, {color: "#00f", opacity: 0.4, offset: 0.9} ], r: 0.2, fx: 0.2, fy: 0.2, cx: 0.2, cy: 0.2 }, radialPointTwos = { r: 0.2, fx: 0.2, fy: 0.2, cx: 0.2, cy: 0.2 }, <API key> = { r: 0.5, fx: 0.2, fy: 0.5, cx: 0.2, cy: 0.5 }, radialPointEights = { r: 0.8, fx: 0.8, fy: 0.8, cx: 0.8, cy: 0.8 }; suite.add(solidFill("rect", 0)); suite.add(solidFill("rect", 0.1)); suite.add(solidFill("rect", 0.2)); suite.add(solidFill("rect", 0.3)); suite.add(solidFill("rect", 0.4)); suite.add(solidFill("rect", 0.5)); suite.add(solidFill("rect", 0.6)); suite.add(solidFill("rect", 0.7)); suite.add(solidFill("rect", 0.8)); suite.add(solidFill("rect", 0.9)); suite.add(solidFill("rect", 1)); suite.add(solidFill("ellipse", 0)); suite.add(solidFill("ellipse", 0.1)); suite.add(solidFill("ellipse", 0.2)); suite.add(solidFill("ellipse", 0.3)); suite.add(solidFill("ellipse", 0.4)); suite.add(solidFill("ellipse", 0.5)); suite.add(solidFill("ellipse", 0.6)); suite.add(solidFill("ellipse", 0.7)); suite.add(solidFill("ellipse", 0.8)); suite.add(solidFill("ellipse", 0.9)); suite.add(solidFill("ellipse", 1)); suite.add(solidFill("circle", 0)); suite.add(solidFill("circle", 0.1)); suite.add(solidFill("circle", 0.2)); suite.add(solidFill("circle", 0.3)); suite.add(solidFill("circle", 0.4)); suite.add(solidFill("circle", 0.5)); suite.add(solidFill("circle", 0.6)); suite.add(solidFill("circle", 0.7)); suite.add(solidFill("circle", 0.8)); suite.add(solidFill("circle", 0.9)); suite.add(solidFill("circle", 1)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null)); suite.add(gradientFill("rect", "linear", threeColors, null, null)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 45})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 45})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 45})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 90})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 90})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 90})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 135})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 135})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 135})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 180})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 180})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 180})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 225})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 225})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 225})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 270})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 270})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 270})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 315})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 315})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 315})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360})); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 360})); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 360})); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 360})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null)); suite.add(gradientFill("circle", "linear", threeColors, null, null)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 45})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 45})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 45})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 90})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 90})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 90})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 135})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 135})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 135})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 180})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 180})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 180})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 225})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 225})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 225})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 270})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 270})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 270})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 315})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 315})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 315})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360})); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 360})); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 360})); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 360})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 45})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 45})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 45})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 90})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 90})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 90})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 135})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 135})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 135})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 180})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 180})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 180})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 225})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 225})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 225})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 270})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 270})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 270})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 315})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 315})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 315})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360})); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 360})); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 360})); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 360})); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null)); suite.add(gradientFill("rect", "radial", threeColors, null, null)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, radialPointTwos)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, radialPointTwos)); suite.add(gradientFill("rect", "radial", threeColors, null, null, radialPointTwos)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, <API key>)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, <API key>)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, <API key>)); suite.add(gradientFill("rect", "radial", threeColors, null, null, <API key>)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, radialPointEights)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, radialPointEights)); suite.add(gradientFill("rect", "radial", threeColors, null, null, radialPointEights)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, radialPointTwos)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, radialPointTwos)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, radialPointTwos)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, <API key>)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, <API key>)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, <API key>)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, <API key>)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, radialPointEights)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, radialPointEights)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, radialPointEights)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null)); suite.add(gradientFill("circle", "radial", threeColors, null, null)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, radialPointTwos)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, radialPointTwos)); suite.add(gradientFill("circle", "radial", threeColors, null, null, radialPointTwos)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, <API key>)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, <API key>)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, <API key>)); suite.add(gradientFill("circle", "radial", threeColors, null, null, <API key>)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, radialPointEights)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, radialPointEights)); suite.add(gradientFill("circle", "radial", threeColors, null, null, radialPointEights)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, null, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, null, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, null, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, null, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 45}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 45}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 45}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 90}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 90}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 90}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 135}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 135}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 135}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 180}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 180}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 180}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 225}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 225}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 225}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 270}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 270}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 270}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 315}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 315}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 315}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 360}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 360}, fourStops)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 360}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, null, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, null, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, null, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, null, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 45}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 45}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 45}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 90}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 90}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 90}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 135}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 135}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 135}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 180}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 180}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 180}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 225}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 225}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 225}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 270}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 270}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 270}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 315}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 315}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 315}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 360}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 360}, fourStops)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 360}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, null, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, null, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, null, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, null, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 45}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 45}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 45}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 90}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 90}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 90}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 135}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 135}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 135}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 180}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 180}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 180}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 225}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 225}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 225}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 270}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 270}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 270}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 315}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 315}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 315}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 360}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 360}, fourStops)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 360}, fourStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, null, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, null, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, null, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, null, null, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, radialPointTwos, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, radialPointTwos, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, null, radialPointTwos, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, <API key>, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, <API key>, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, <API key>, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, null, <API key>, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, radialPointEights, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, radialPointEights, fourRadialStops)); suite.add(gradientFill("rect", "radial", threeColors, null, null, radialPointEights, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, null, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, null, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, null, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, null, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, radialPointTwos, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, radialPointTwos, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, radialPointTwos, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, <API key>, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, <API key>, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, <API key>, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, <API key>, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, radialPointEights, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, radialPointEights, fourRadialStops)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, radialPointEights, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, null, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, null, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, null, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, null, null, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, radialPointTwos, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, radialPointTwos, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, null, radialPointTwos, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, <API key>, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, <API key>, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, <API key>, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, null, <API key>, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, radialPointEights, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, radialPointEights, fourRadialStops)); suite.add(gradientFill("circle", "radial", threeColors, null, null, radialPointEights, fourRadialStops)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, null, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, null, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, null, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, null, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 45}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 45}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 45}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 90}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 90}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 90}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 135}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 135}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 135}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 180}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 180}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 180}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 225}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 225}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 225}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 270}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 270}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 270}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 315}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 315}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 315}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, threeOffsets, {rotation: 360}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, threeOpacities, null, {rotation: 360}, noFill)); suite.add(gradientFill("rect", "linear", threeColors, null, null, {rotation: 360}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, null, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, null, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, null, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, null, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 45}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 45}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 45}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 90}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 90}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 90}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 135}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 135}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 135}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 180}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 180}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 180}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 225}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 225}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 225}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 270}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 270}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 270}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 315}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 315}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 315}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, threeOffsets, {rotation: 360}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, threeOpacities, null, {rotation: 360}, noFill)); suite.add(gradientFill("ellipse", "linear", threeColors, null, null, {rotation: 360}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, null, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, null, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, null, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, null, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 45}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 45}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 45}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 45}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 90}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 90}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 90}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 90}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 135}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 135}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 135}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 135}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 180}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 180}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 180}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 180}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 225}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 225}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 225}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 225}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 270}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 270}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 270}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 270}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 315}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 315}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 315}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 315}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, threeOffsets, {rotation: 360}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, threeOffsets, {rotation: 360}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, threeOpacities, null, {rotation: 360}, noFill)); suite.add(gradientFill("circle", "linear", threeColors, null, null, {rotation: 360}, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, null, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, null, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, null, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, null, null, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, radialPointTwos, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, radialPointTwos, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, null, radialPointTwos, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, <API key>, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, <API key>, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, <API key>, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, null, <API key>, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, threeOffsets, radialPointEights, noFill)); suite.add(gradientFill("rect", "radial", threeColors, threeOpacities, null, radialPointEights, noFill)); suite.add(gradientFill("rect", "radial", threeColors, null, null, radialPointEights, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, null, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, null, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, null, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, null, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, radialPointTwos, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, radialPointTwos, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, radialPointTwos, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, <API key>, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, <API key>, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, <API key>, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, <API key>, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, threeOffsets, radialPointEights, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, threeOpacities, null, radialPointEights, noFill)); suite.add(gradientFill("ellipse", "radial", threeColors, null, null, radialPointEights, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, null, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, null, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, null, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, null, null, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, radialPointTwos, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, radialPointTwos, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, radialPointTwos, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, null, radialPointTwos, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, <API key>, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, <API key>, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, <API key>, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, null, <API key>, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, threeOffsets, radialPointEights, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, threeOffsets, radialPointEights, noFill)); suite.add(gradientFill("circle", "radial", threeColors, threeOpacities, null, radialPointEights, noFill)); suite.add(gradientFill("circle", "radial", threeColors, null, null, radialPointEights, noFill)); Y.Test.Runner.add( suite ); }, '@VERSION@' ,{requires:['graphics', 'test']});
// QQ 2069798977 // <summary> // The services. // </summary> namespace AvenLab { <summary> The services. </summary> public enum Service { <summary> </summary> OcrKingForPassages, <summary> PDF </summary> OcrKingForPDF, <summary> </summary> <API key>, <summary> </summary> OcrKingForPrice, <summary> </summary> OcrKingForNumber, <summary> </summary> OcrKingForCaptcha, <summary> </summary> BarcodeDecode, <summary> PDF </summary> PDFToImage, } }
require 'test_helper' class PageTagTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
// ViewController.h // CustomNavCPopGestureRecognizer #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
<?php namespace Payum\Core\Registry; use Payum\Core\Extension\StorageExtension; use Payum\Core\Gateway; use Payum\Core\GatewayInterface; class SimpleRegistry extends AbstractRegistry { /** * @var boolean[] */ protected $<API key>; /** * @deprecated since 1.3.3 and ill be removed in 2.x. It is here for BC * * @var bool */ protected $<API key> = true; /** * @deprecated since 1.3.3 and will be removed in 2.x. It is here for BC * * @param boolean $bool */ public function <API key>($bool) { $this-><API key> = $bool; } /** * {@inheritDoc} */ public function getGateway($name) { $gateway = parent::getGateway($name); if ($this-><API key>) { $this->addStorageToGateway($name, $gateway); } return $gateway; } /** * {@inheritDoc} */ protected function getService($id) { return $id; } /** * @deprecated since 1.3.3 and will be removed in 2.x. * * @param string $name * @param GatewayInterface $gateway */ protected function addStorageToGateway($name, GatewayInterface $gateway) { /** @var Gateway $gateway */ if (false == $gateway instanceof Gateway) { return; } if (isset($this-><API key>[$name])) { return; } foreach ($this->getStorages() as $storage) { $gateway->addExtension(new StorageExtension($storage)); } $this-><API key>[$name] = true; } }
#include <common.h> #include <malloc.h> #include <dm.h> #include <dm/platform_data/serial_sh.h> #include <asm/processor.h> #include <asm/mach-types.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/sys_proto.h> #include <asm/gpio.h> #include <asm/arch/rmobile.h> #include <asm/arch/rcar-mstp.h> #include <asm/arch/sh_sdhi.h> #include <netdev.h> #include <miiphy.h> #include <i2c.h> #include <div64.h> #include "qos.h" <API key>; #define CLK2MHZ(clk) (clk / 1000 / 1000) void s_init(void) { struct rcar_rwdt *rwdt = (struct rcar_rwdt *)RWDT_BASE; struct rcar_swdt *swdt = (struct rcar_swdt *)SWDT_BASE; u32 stc; /* Watchdog init */ writel(0xA5A5A500, &rwdt->rwtcsra); writel(0xA5A5A500, &swdt->swtcsra); /* CPU frequency setting. Set to 1.5GHz */ stc = ((1500 / CLK2MHZ(CONFIG_SYS_CLK_FREQ)) - 1) << PLL0_STC_BIT; clrsetbits_le32(PLL0CR, PLL0_STC_MASK, stc); /* QoS */ qos_init(); } #define TMU0_MSTP125 (1 << 25) #define SDHI0_MSTP314 (1 << 14) #define SDHI2_MSTP311 (1 << 11) #define SCIF0_MSTP721 (1 << 21) #define ETHER_MSTP813 (1 << 13) #define SD2CKCR 0xE615026C #define SD_97500KHZ 0x7 int board_early_init_f(void) { mstp_clrbits_le32(MSTPSR1, SMSTPCR1, TMU0_MSTP125); /* SCIF0 */ mstp_clrbits_le32(MSTPSR7, SMSTPCR7, SCIF0_MSTP721); /* ETHER */ mstp_clrbits_le32(MSTPSR8, SMSTPCR8, ETHER_MSTP813); /* SDHI */ mstp_clrbits_le32(MSTPSR3, SMSTPCR3, SDHI0_MSTP314 | SDHI2_MSTP311); /* * SD0 clock is set to 97.5MHz by default. * Set SD2 to the 97.5MHz as well. */ writel(SD_97500KHZ, SD2CKCR); return 0; } /* LSI pin pull-up control */ #define PUPR5 0xe6060114 #define PUPR5_ETH 0x3FFC0000 #define PUPR5_ETH_MAGIC (1 << 27) int board_init(void) { /* adress of boot parameters */ gd->bd->bi_boot_params = <API key> + 0x100; /* Init PFC controller */ r8a7791_pinmux_init(); /* Ether Enable */ gpio_request(GPIO_FN_ETH_CRS_DV, NULL); gpio_request(GPIO_FN_ETH_RX_ER, NULL); gpio_request(GPIO_FN_ETH_RXD0, NULL); gpio_request(GPIO_FN_ETH_RXD1, NULL); gpio_request(GPIO_FN_ETH_LINK, NULL); gpio_request(GPIO_FN_ETH_REFCLK, NULL); gpio_request(GPIO_FN_ETH_MDIO, NULL); gpio_request(GPIO_FN_ETH_TXD1, NULL); gpio_request(GPIO_FN_ETH_TX_EN, NULL); gpio_request(GPIO_FN_ETH_TXD0, NULL); gpio_request(GPIO_FN_ETH_MDC, NULL); gpio_request(GPIO_FN_IRQ0, NULL); mstp_clrbits_le32(PUPR5, PUPR5, PUPR5_ETH & ~PUPR5_ETH_MAGIC); gpio_request(GPIO_GP_5_22, NULL); /* PHY_RST */ mstp_clrbits_le32(PUPR5, PUPR5, PUPR5_ETH_MAGIC); <API key>(GPIO_GP_5_22, 0); mdelay(20); gpio_set_value(GPIO_GP_5_22, 1); udelay(1); return 0; } #define CXR24 0xEE7003C0 /* MAC address high register */ #define CXR25 0xEE7003C8 /* MAC address low register */ int board_eth_init(bd_t *bis) { #ifdef CONFIG_SH_ETHER int ret = -ENODEV; u32 val; unsigned char enetaddr[6]; ret = sh_eth_initialize(bis); if (!<API key>("ethaddr", enetaddr)) return ret; /* Set Mac address */ val = enetaddr[0] << 24 | enetaddr[1] << 16 | enetaddr[2] << 8 | enetaddr[3]; writel(val, CXR24); val = enetaddr[4] << 8 | enetaddr[5]; writel(val, CXR25); return ret; #else return 0; #endif } int board_mmc_init(bd_t *bis) { int ret = -ENODEV; #ifdef CONFIG_SH_SDHI gpio_request(GPIO_FN_SD0_DATA0, NULL); gpio_request(GPIO_FN_SD0_DATA1, NULL); gpio_request(GPIO_FN_SD0_DATA2, NULL); gpio_request(GPIO_FN_SD0_DATA3, NULL); gpio_request(GPIO_FN_SD0_CLK, NULL); gpio_request(GPIO_FN_SD0_CMD, NULL); gpio_request(GPIO_FN_SD0_CD, NULL); gpio_request(GPIO_FN_SD2_DATA0, NULL); gpio_request(GPIO_FN_SD2_DATA1, NULL); gpio_request(GPIO_FN_SD2_DATA2, NULL); gpio_request(GPIO_FN_SD2_DATA3, NULL); gpio_request(GPIO_FN_SD2_CLK, NULL); gpio_request(GPIO_FN_SD2_CMD, NULL); gpio_request(GPIO_FN_SD2_CD, NULL); /* SDHI 0 */ gpio_request(GPIO_GP_2_12, NULL); <API key>(GPIO_GP_2_12, 1); /* 1: 3.3V, 0: 1.8V */ ret = sh_sdhi_init(<API key>, 0, <API key>); if (ret) return ret; /* SDHI 2 */ gpio_request(GPIO_GP_2_26, NULL); <API key>(GPIO_GP_2_26, 1); /* 1: 3.3V, 0: 1.8V */ ret = sh_sdhi_init(<API key>, 2, 0); #endif return ret; } int dram_init(void) { gd->ram_size = <API key>; return 0; } /* porter has KSZ8041RNLI */ #define PHY_CONTROL1 0x1E #define PHY_LED_MODE 0xC0000 #define PHY_LED_MODE_ACK 0x4000 int board_phy_config(struct phy_device *phydev) { int ret = phy_read(phydev, MDIO_DEVAD_NONE, PHY_CONTROL1); ret &= ~PHY_LED_MODE; ret |= PHY_LED_MODE_ACK; ret = phy_write(phydev, MDIO_DEVAD_NONE, PHY_CONTROL1, (u16)ret); return 0; } const struct rmobile_sysinfo sysinfo = { <API key> }; void reset_cpu(ulong addr) { u8 val; i2c_set_bus_num(2); /* PowerIC connected to ch2 */ i2c_read(<API key>, 0x13, 1, &val, 1); val |= 0x02; i2c_write(<API key>, 0x13, 1, &val, 1); } static const struct sh_serial_platdata serial_platdata = { .base = SCIF0_BASE, .type = PORT_SCIF, .clk = CONFIG_P_CLK_FREQ, }; U_BOOT_DEVICE(porter_serials) = { .name = "serial_sh", .platdata = &serial_platdata, };
#ifndef DCMQRCBS_H #define DCMQRCBS_H #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ #include "dcmtk/dcmnet/dimse.h" #include "dcmtk/dcmqrdb/qrdefine.h" class <API key>; class <API key>; class DcmFileFormat; /** this class maintains the context information that is passed to the * callback function called by DIMSE_storeProvider. */ class <API key> <API key> { public: /** constructor * @param handle reference to database handle * @param options options for the Q/R service * @param s initial DIMSE status * @param ff pointer to DcmFileformat object to be used for storing the dataset * @param correctuidpadding flag indicating whether space padded UIDs should be silently corrected */ <API key>( <API key>& handle, const <API key>& options, DIC_US s, DcmFileFormat *ff, OFBool correctuidpadding) : dbHandle(handle) , options_(options) , status(s) , fileName(NULL) , dcmff(ff) , correctUIDPadding(correctuidpadding) { } /** set DIMSE status * param s new status */ void setStatus(DIC_US s) { status = s; } return current DIMSE status DIC_US getStatus() const { return status; } /** set file name under which the image should be stored * @param fn file name. String is not copied. */ void setFileName(const char *fn) { fileName = fn; } /** callback handler called by the DIMSE_storeProvider callback function. * @param progress progress state (in) * @param req original store request (in) * @param imageFileName being received into (in) * @param imageDataSet being received into (in) * @param rsp final store response (out) * @param stDetail status detail dataset (out) */ void callbackHandler( <API key> *progress, T_DIMSE_C_StoreRQ *req, char *imageFileName, DcmDataset **imageDataSet, T_DIMSE_C_StoreRSP *rsp, DcmDataset **stDetail); private: void updateDisplay(<API key> * progress); void saveImageToDB( T_DIMSE_C_StoreRQ *req, /* original store request */ const char *imageFileName, /* out */ T_DIMSE_C_StoreRSP *rsp, /* final store response */ DcmDataset **stDetail); void writeToFile( DcmFileFormat *ff, const char* fname, T_DIMSE_C_StoreRSP *rsp); void <API key>( T_DIMSE_C_StoreRQ *req, /* original store request */ const char* fname, /* filename of dataset */ DcmDataset *dataSet, /* dataset to check */ T_DIMSE_C_StoreRSP *rsp, /* final store response */ OFBool uidPadding); /* correct UID padding */ reference to database handle <API key>& dbHandle; reference to Q/R service options const <API key>& options_; current DIMSE status DIC_US status; file name under which the incoming image should be stored const char *fileName; DICOM file format into which the image is received DcmFileFormat *dcmff; flag indicating whether space padded UIDs should be silently corrected OFBool correctUIDPadding; }; #endif
// copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // and/or sell copies of the Software, and to permit persons to whom the // Software is furnished to do so, subject to the following conditions: // all copies or substantial portions of the Software. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. #import <Foundation/Foundation.h> #import "LCHandleRequest.h" @interface <API key> : NSObject <<API key>> @end
// by DotNetNuke Corporation // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // to permit persons to whom the Software is furnished to do so, subject to the following conditions: // of the Software. // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. #endregion using System; using System.Web.Mvc; using System.Web.Routing; using DotNetNuke.ComponentModel; using DotNetNuke.Tests.Utilities.Mocks; using DotNetNuke.UI.Modules; using DotNetNuke.Web.Mvc.Framework.Controllers; using DotNetNuke.Web.Mvc.Helpers; using DotNetNuke.Web.Mvc.Routing; using Moq; using NUnit.Framework; // ReSharper disable <API key> namespace DotNetNuke.Tests.Web.Mvc.Helpers { [TestFixture] public class DnnUrlHelperTests { [SetUp] public void SetUp() { <API key>.ResetContainer(); } [Test] public void <API key>() { //Act,Assert Assert.Throws<<API key>>(() => new DnnUrlHelper(null)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var viewContext = new ViewContext {Controller = mockController.Object}; //Act,Assert Assert.Throws<<API key>>(() => new DnnUrlHelper(viewContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext {Controller = mockController.Object}; //Act var helper = new DnnUrlHelper(viewContext); //Assert Assert.AreEqual(expectedContext, helper.ModuleContext); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); var mockRouteProvider = new Mock<<API key>>(); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo"); //Assert mockRouteProvider.Verify(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); var mockRouteProvider = new Mock<<API key>>(); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo", new <API key>()); //Assert mockRouteProvider.Verify(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); var mockRouteProvider = new Mock<<API key>>(); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo", "bar"); //Assert mockRouteProvider.Verify(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); var mockRouteProvider = new Mock<<API key>>(); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo", "bar", new <API key>()); //Assert mockRouteProvider.Verify(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); var mockRouteProvider = new Mock<<API key>>(); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo", new { id = 5 }); //Assert mockRouteProvider.Verify(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); var mockRouteProvider = new Mock<<API key>>(); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo", "bar", new { id = 5 }); //Assert mockRouteProvider.Verify(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)); } [Test] public void <API key>() { //Arrange var mockController = new Mock<ControllerBase>(); var mockDnnController = mockController.As<IDnnController>(); var expectedContext = new <API key>(); mockDnnController.Setup(c => c.ModuleContext).Returns(expectedContext); var viewContext = new ViewContext { Controller = mockController.Object }; var helper = new DnnUrlHelper(viewContext); <API key> routeValues = null; var mockRouteProvider = new Mock<<API key>>(); mockRouteProvider.Setup(p => p.GenerateUrl(It.IsAny<<API key>>(), expectedContext)) .Callback<<API key>, <API key>>((r, c) => routeValues = r); ComponentFactory.<API key><<API key>>(mockRouteProvider.Object); //Act helper.Action("foo", "bar", new { id = 5 }); //Assert Assert.AreEqual(3, routeValues.Values.Count); Assert.IsTrue(routeValues.ContainsKey("action")); Assert.IsTrue(routeValues.ContainsKey("controller")); Assert.IsTrue(routeValues.ContainsKey("id")); Assert.AreEqual("foo", (string)routeValues["action"]); Assert.AreEqual("bar", (string)routeValues["controller"]); Assert.AreEqual(5, (int)routeValues["id"]); } } }
require 'rouge/plugins/redcarpet' module Banzai module Filter # HTML Filter to highlight fenced code blocks class <API key> < HTML::Pipeline::Filter include Rouge::Plugins::Redcarpet def call doc.search('pre > code').each do |node| highlight_node(node) end doc end def highlight_node(node) language = node.attr('class') code = node.text begin highlighted = block_code(code, language) rescue # Gracefully handle syntax highlighter bugs/errors to ensure # users can still access an issue/comment/etc. highlighted = "<pre>#{code}</pre>" end # Replace the parent `pre` element with the entire highlighted block node.parent.replace(highlighted) end private # Override Rouge::Plugins::Redcarpet#rouge_formatter def rouge_formatter(lexer) Rouge::Formatters::HTMLGitlab.new( cssclass: "code highlight js-syntax-highlight #{lexer.tag}") end end end end
<?php namespace queryfacade; use pocketmine\plugin\PluginBase; use queryfacade\command\QueryFacadeCommand; use queryfacade\event\QueryFacadeListener; class QueryFacade extends PluginBase{ /** @var int */ private $playerCount = 0; /** @var int */ private $maxPlayerCount = 0; /** @var \pocketmine\Player[] */ private $playerList = []; /** @var string */ private $level = ""; /** @var \pocketmine\plugin\Plugin[] */ private $plugins = []; public function onEnable(){ $this->saveFiles(); $this->registerAll(); } private function saveFiles(){ if(file_exists($this->getDataFolder()."config.yml")){ if($this->getConfig()->get("version") !== $this->getDescription()->getVersion() or !$this->getConfig()->exists("version")){ $this->getServer()->getLogger()->warning("An invalid configuration file for ".$this->getDescription()->getName()." was detected."); if($this->getConfig()->getNested("plugin.autoUpdate") === true){ $this->saveResource("config.yml", true); $this->getServer()->getLogger()->warning("Successfully updated the configuration file for ".$this->getDescription()->getName()." to v".$this->getDescription()->getVersion()."."); } } } else{ $this->saveDefaultConfig(); } } private function registerAll(){ $this->getServer()->getCommandMap()->register("queryfacade", new QueryFacadeCommand($this)); $this->getServer()->getPluginManager()->registerEvents(new QueryFacadeListener($this), $this); $this->setCloakPlayerCount($this->getConfig()->getNested("query.playerCount")); $this-><API key>($this->getConfig()->getNested("query.maxPlayerCount")); $this->setCloakPlayerList($this->getConfig()->getNested("query.playerList")); $this->setCloakLevel($this->getConfig()->getNested("query.level")); $this->setCloakPlugins($this->getConfig()->getNested("query.plugins")); } /** * @return int */ public function getCloakPlayerCount(){ return $this->playerCount; } /** * @param int $count */ public function setCloakPlayerCount($count = 0){ $this->playerCount = $count; } /** * @return int */ public function <API key>(){ return $this->maxPlayerCount; } /** * @param int $count */ public function <API key>($count = 1){ $this->maxPlayerCount = $count; } /** * @return \pocketmine\Player[] */ public function getCloakPlayerList(){ return $this->playerList; } /** * @param \pocketmine\Player[] $players */ public function setCloakPlayerList(array $players){ $this->playerList = $players; } /** * @return string */ public function getCloakLevel(){ return $this->level; } /** * @param string $level */ public function setCloakLevel($level){ $this->level = $level; } /** * @return \pocketmine\plugin\Plugin[] */ public function getCloakPlugins(){ return $this->plugins; } /** * @param \pocketmine\plugin\Plugin[] $plugins */ public function setCloakPlugins(array $plugins){ $this->plugins = $plugins; } }
package integrationtest import ( "bytes" "errors" "fmt" "io" "math" "os" "testing" "time" random "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-random" context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context" "github.com/ipfs/go-ipfs/core" coreunix "github.com/ipfs/go-ipfs/core/coreunix" mock "github.com/ipfs/go-ipfs/core/mock" mocknet "github.com/ipfs/go-ipfs/p2p/net/mock" "github.com/ipfs/go-ipfs/p2p/peer" "github.com/ipfs/go-ipfs/thirdparty/unit" testutil "github.com/ipfs/go-ipfs/util/testutil" logging "github.com/ipfs/go-ipfs/vendor/<API key>/go-log" ) var log = logging.Logger("epictest") const kSeed = 1 func <API key>(t *testing.T) { conf := testutil.LatencyConfig{ NetworkLatency: 0, RoutingLatency: 0, BlockstoreLatency: 0, } if err := DirectAddCat(RandomBytes(1*unit.KB), conf); err != nil { t.Fatal(err) } } func <API key>(t *testing.T) { SkipUnlessEpic(t) conf := testutil.LatencyConfig{BlockstoreLatency: 50 * time.Millisecond} if err := AddCatPowers(conf, 128); err != nil { t.Fatal(err) } } func <API key>(t *testing.T) { SkipUnlessEpic(t) conf := testutil.LatencyConfig{NetworkLatency: 400 * time.Millisecond} if err := AddCatPowers(conf, 128); err != nil { t.Fatal(err) } } func <API key>(t *testing.T) { SkipUnlessEpic(t) conf := testutil.LatencyConfig{RoutingLatency: 400 * time.Millisecond} if err := AddCatPowers(conf, 128); err != nil { t.Fatal(err) } } func <API key>(t *testing.T) { SkipUnlessEpic(t) conf := testutil.LatencyConfig{}.NetworkNYtoSF().<API key>().RoutingSlow() if err := DirectAddCat(RandomBytes(100*1024*1024), conf); err != nil { t.Fatal(err) } } func AddCatPowers(conf testutil.LatencyConfig, megabytesMax int64) error { var i int64 for i = 1; i < megabytesMax; i = i * 2 { fmt.Printf("%d MB\n", i) if err := DirectAddCat(RandomBytes(i*1024*1024), conf); err != nil { return err } } return nil } func RandomBytes(n int64) []byte { data := new(bytes.Buffer) random.<API key>(n, data, kSeed) return data.Bytes() } func DirectAddCat(data []byte, conf testutil.LatencyConfig) error { ctx, cancel := context.WithCancel(context.Background()) defer cancel() // create network mn := mocknet.New(ctx) mn.SetLinkDefaults(mocknet.LinkOptions{ Latency: conf.NetworkLatency, // TODO add to conf. This is tricky because we want 0 values to be functional. Bandwidth: math.MaxInt32, }) adder, err := core.NewNode(ctx, &core.BuildCfg{ Online: true, Host: mock.MockHostOption(mn), }) if err != nil { return err } defer adder.Close() catter, err := core.NewNode(ctx, &core.BuildCfg{ Online: true, Host: mock.MockHostOption(mn), }) if err != nil { return err } defer catter.Close() err = mn.LinkAll() if err != nil { return err } bs1 := []peer.PeerInfo{adder.Peerstore.PeerInfo(adder.Identity)} bs2 := []peer.PeerInfo{catter.Peerstore.PeerInfo(catter.Identity)} if err := catter.Bootstrap(core.<API key>(bs1)); err != nil { return err } if err := adder.Bootstrap(core.<API key>(bs2)); err != nil { return err } added, err := coreunix.Add(adder, bytes.NewReader(data)) if err != nil { return err } readerCatted, err := coreunix.Cat(ctx, catter, added) if err != nil { return err } // verify bufout := new(bytes.Buffer) io.Copy(bufout, readerCatted) if 0 != bytes.Compare(bufout.Bytes(), data) { return errors.New("catted data does not match added data") } return nil } func SkipUnlessEpic(t *testing.T) { if os.Getenv("IPFS_EPIC_TEST") == "" { t.SkipNow() } }
.clearfix::after { clear: both; display: block; content: ""; height: 0; } .hide-by-clipping { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .fr-quick-insert { position: absolute; z-index: 2147483639; white-space: nowrap; padding-right: 5px; margin-left: -5px; -webkit-box-sizing: content-box; -moz-box-sizing: content-box; box-sizing: content-box; } .fr-quick-insert.fr-on a.fr-floating-btn svg { -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); -ms-transform: rotate(135deg); -o-transform: rotate(135deg); } .fr-quick-insert.fr-hidden { display: none; } .fr-qi-helper { position: absolute; z-index: 3; padding-left: 16px; white-space: nowrap; } .fr-qi-helper a.fr-btn.fr-floating-btn { text-align: center; display: inline-block; color: #222222; -webkit-opacity: 0; -moz-opacity: 0; opacity: 0; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -webkit-transform: scale(0); -moz-transform: scale(0); -ms-transform: scale(0); -o-transform: scale(0); } .fr-qi-helper a.fr-btn.fr-floating-btn.fr-size-1 { -webkit-opacity: 1; -moz-opacity: 1; opacity: 1; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; -webkit-transform: scale(1); -moz-transform: scale(1); -ms-transform: scale(1); -o-transform: scale(1); }
//Target /* <label> <input type="checkbox"><span class="ripple"></span><span class="check"></span> Checkbox </label> */ var builder = require('focus').component.builder; var React = require('react'); var type = require('focus').component.types; var <API key> = require('../../mixin/<API key>'); var toggleMixin = { mixins: [<API key>], /** * Get the checkbox default attributes. */ getDefaultProps: function <API key>() { return { value: undefined, label: undefined, style: {} }; }, /** * Properties validation. * @type {Object} */ propTypes: { value: type('bool'), label: type('string'), style: type('object') }, getInitialState: function() { return { isChecked: this.props.value }; }, _onChange: function onChange(event) { this.setState({ isChecked: !this.state.isChecked }); if (this.props.onChange) { this.props.onChange(event); } }, _labelClassName: function labelClassName(){ return `${this.<API key>()}`; }, /** * Get the value from the input in the DOM. */ getValue: function getValue() { return this.getDOMNode().value; }, /** * Render the Checkbox HTML. * @return {VirtualDOM} - The virtual DOM of the checkbox. */ render: function renderToggle() { return ( <div className="togglebutton form-group"> <label className={this.<API key>()}>{this.props.label ? this.props.label : ''}</label> <label className={this._labelClassName()}> <input ref='checkbox' checked={this.state.isChecked} onChange={this._onChange} type="checkbox" /> </label> </div> ); }, /** @inheritedDoc*/ <API key>: function <API key>(nextProps) { if(nextProps.value !== undefined){ this.setState({isChecked : nextProps.value}); } } }; module.exports = builder(toggleMixin);
#!/bin/bash FN="hu35ksubbprobe_2.18.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.12/data/annotation/src/contrib/hu35ksubbprobe_2.18.0.tar.gz" "https://bioarchive.galaxyproject.org/hu35ksubbprobe_2.18.0.tar.gz" "https://depot.galaxyproject.org/software/<API key>/<API key>.18.0_src_all.tar.gz" "https://depot.galaxyproject.org/software/<API key>/<API key>.18.0_src_all.tar.gz" ) MD5="<API key>" # Use a staging area in the conda dir rather than temp dirs, both to avoid # manner. STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $STAGING TARBALL=$STAGING/$FN SUCCESS=0 for URL in ${URLS[@]}; do curl $URL > $TARBALL [[ $? == 0 ]] || continue # Platform-specific md5sum checks. if [[ $(uname -s) == "Linux" ]]; then if md5sum -c <<<"$MD5 $TARBALL"; then SUCCESS=1 break fi else if [[ $(uname -s) == "Darwin" ]]; then if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then SUCCESS=1 break fi fi fi done if [[ $SUCCESS != 1 ]]; then echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" printf '%s\n' "${URLS[@]}" exit 1 fi # Install and clean up R CMD INSTALL --library=$PREFIX/lib/R/library $TARBALL rm $TARBALL rmdir $STAGING
title: Docs - Debugging layout: docs tags: ['docs','debugging','how to'] # Debugging <blockquote> <strong>Key Points</strong> <ul> <li> View the browser's console window to see Durandal's activity. </li> <li> Use <code>system.log(...)</code> or <code>system.error(...)</code> for application messages. </li> <li> Disable debug mode before releasing to production. </li> <li>Configure development cache busting.</li> </ul> </blockquote> Explanation Durandal logs much of its internal activity using it's [system.log](/documentation/api#module/system/method/log) function. It's also a great way for the application developer to add logging. It differs from a straight `console.log` in that it works correctly on every platform and output of this log is sent to the console only if debugging is enabled. You can turn debugging on manually at any time by requiring the [system](/documentation/api#module/system) module and calling [debug(true)](/documentation/api#module/system/method/debug). Likewise, you can disable debugging by passing false. > **Note:** A common technique is to turn debugging on in your main.js. You can use r.js pragmas to make debug only enable when not optimized for deploy. Here's an example of how that would work: JavaScript //>>excludeStart("build", true); system.debug(true); //>>excludeEnd("build"); _The Weyland tooling automatically defines a "build" pragma as part of its default r.js configuration._ Cache Busting During application development, make sure your browser is set up to ignore its cache or you may not get your latest JS/HTML changes. In Chrome, you can configure this through the developer tools. Check your preferred browser for a similar option. If no such option is available, then you may want to leverage RequireJS's [urlArgs](http://requirejs.org/docs/api.html#config-urlArgs) configuration option. This appends extra query string arguments to every module or view request and can be useful for cache busting. Here's what your `main.js` configuration might look like: javascript requirejs.config({ urlArgs: "bust=" + (new Date()).getTime(), paths: { 'text': '../Scripts/text', 'durandal': '../Scripts/durandal', 'plugins': '../Scripts/durandal/plugins', 'transitions': '../Scripts/durandal/transitions' } }); Be careful not to release a production application like this, as it will completely destroy the caching that is desired in production. For production, you might wish to do something like this: javascript requirejs.config({ urlArgs: "version=1.2.3", paths: { 'text': '../Scripts/text', 'durandal': '../Scripts/durandal', 'plugins': '../Scripts/durandal/plugins', 'transitions': '../Scripts/durandal/transitions' } });
* { border-radius: 0 !important; } a, a:focus, a:hover, a:active, button, button:hover { outline: 0 !important; } a:focus { text-decoration: none; } hr { margin: 30px 0; } hr.hr-xs { margin: 10px 0; } hr.hr-md { margin: 20px 0; } hr.hr-lg { margin: 40px 0; } /*Headings*/ h1 { font-size: 28px; line-height: 35px; } h2 { font-size: 24px; line-height: 33px; } h3 { font-size: 20px; line-height: 27px; } h4 { line-height: 25px; } h5 { line-height: 20px; } h6 { line-height: 18px; } h1, h2, h3, h4, h5, h6 { color: #555; margin-top: 5px; text-shadow: none; font-weight: normal; font-family: 'Open Sans', sans-serif; } h1 i, h2 i, h3 i, h4 i, h5 i, h6 i { margin-right: 5px; } /*Block Headline*/ .headline { display: block; margin: 10px 0 25px 0; border-bottom: 1px dotted #e4e9f0; } .headline h2 { font-size: 22px; } .headline h2, .headline h3, .headline h4 { margin: 0 0 -2px 0; padding-bottom: 5px; display: inline-block; border-bottom: 2px solid #72c02c; } .headline-md { margin-bottom: 15px; } .headline-md h2 { font-size: 21px; } /*Heading Options*/ .heading { text-align: center; } .heading h2 { padding: 0 12px; position: relative; display: inline-block; line-height: 34px !important; /*For Tagline Boxes*/ } .heading h2:before, .heading h2:after { content: ' '; width: 70%; position: absolute; border-width: 1px; border-color: #bbb; } .heading h2:before { right: 100%; } .heading h2:after { left: 100%; } @media (max-width: 768px) { .heading h2:before, .heading h2:after { width: 20%; } } /*Headline v1*/ .heading-v1 h2:before, .heading-v1 h2:after { top: 15px; height: 6px; border-top-style: solid; border-bottom-style: solid; } /*Headline v2*/ .heading-v2 h2:before, .heading-v2 h2:after { top: 15px; height: 6px; border-top-style: dashed; border-bottom-style: dashed; } /*Headline v3*/ .heading-v3 h2:before, .heading-v3 h2:after { top: 15px; height: 6px; border-top-style: dotted; border-bottom-style: dotted; } /*Headline v4*/ .heading-v4 h2:before, .heading-v4 h2:after { top: 17px; border-bottom-style: solid; } /*Headline v5*/ .heading-v5 h2:before, .heading-v5 h2:after { top: 17px; border-bottom-style: dashed; } /*Headline v6*/ .heading-v6 h2:before, .heading-v6 h2:after { top: 17px; border-bottom-style: dotted; } /*Heading Titles v1*/ .title-v1 { z-index: 1; position: relative; text-align: center; margin-bottom: 60px; } .title-v1 h1, .title-v1 h2 { color: #444; font-size: 28px; position: relative; margin-bottom: 15px; padding-bottom: 20px; text-transform: uppercase; font-family: 'Open Sans', sans-serif; } .title-v1 h1:after, .title-v1 h2:after { bottom: 0; left: 50%; height: 1px; width: 70px; content: " "; margin-left: -35px; position: absolute; background: #72c02c; } .title-v1 p { font-size: 17px; font-weight: 200; } /*Heading Titles v2*/ h2.title-v2 { color: #555; position: relative; margin-bottom: 30px; } h2.title-v2:after { left: 0; width: 70px; height: 2px; content: " "; bottom: -10px; background: #555; position: absolute; } h1.title-v2.title-center, h2.title-v2.title-center, h3.title-v2.title-center { text-align: center; } h1.title-v2.title-center:after, h2.title-v2.title-center:after, h3.title-v2.title-center:after { left: 50%; width: 70px; margin-left: -35px; } h1.title-light, h2.title-light, h3.title-light { color: #fff; } h2.title-light:after { background: #fff; } /*Heading Title v3*/ h1[class^="title-v3-"], h2[class^="title-v3-"], h3[class^="title-v3-"] { color: #555; } h2.title-v3-xlg { font-size: 28px; line-height: 32px; } h1.title-v3-lg, h2.title-v3-lg { font-size: 24px; line-height: 28px; } h1.title-v3-md, h2.title-v3-md { font-size: 20px; line-height: 24px; } h2.title-v3-sm, h3.title-v3-md { font-size: 18px; line-height: 24px; } h3.title-v3-md { line-height: 22px; } h3.title-v3-sm { font-size: 16px; line-height: 20px; } h2.title-v3-xs { font-size: 16px; line-height: 22px; } h3.title-v3-xs { font-size: 14px; margin-bottom: 0; } /*Headline Center*/ .headline-center { text-align: center; position: relative; } .headline-center h2 { color: #555; font-size: 24px; position: relative; margin-bottom: 20px; padding-bottom: 15px; } .headline-center h2:after { left: 50%; z-index: 1; width: 30px; height: 2px; content: " "; bottom: -5px; margin-left: -15px; text-align: center; position: absolute; background: #72c02c; } .headline-center p { /*color: #999;*/ font-size: 14px; /*padding: 0 150px;*/ } @media (max-width: 991px) { .headline-center p { padding: 0 50px; } } .headline-center.headline-light h2 { color: #fff; } .headline-center.headline-light p { color: #eee; } /*Headline Center v2*/ .headline-center-v2 { z-index: 0; text-align: center; position: relative; } .headline-center-v2 h2 { color: #555; font-size: 24px; margin-bottom: 20px; text-transform: uppercase; } .headline-center-v2 span.bordered-icon { color: #fff; padding: 0 10px; font-size: 15px; line-height: 18px; position: relative; margin-bottom: 25px; display: inline-block; } .headline-center-v2 span.bordered-icon:before, .headline-center-v2 span.bordered-icon:after { top: 8px; height: 1px; content: " "; width: 100px; background: #fff; position: absolute; } .headline-center-v2 span.bordered-icon:before { left: 100%; } .headline-center-v2 span.bordered-icon:after { right: 100%; } .headline-center-v2 p { color: #555; font-size: 14px; padding: 0 70px; } .headline-center-v2.<API key> p { color: #666; } .headline-center-v2.<API key> span.bordered-icon { color: #666; } .headline-center-v2.<API key> span.bordered-icon:before, .headline-center-v2.<API key> span.bordered-icon:after { background: #666; } /*Headline Left*/ .headline-left { position: relative; } .headline-left .headline-brd { color: #555; position: relative; margin-bottom: 25px; padding-bottom: 10px; } .headline-left .headline-brd:after { left: 1px; z-index: 1; width: 30px; height: 2px; content: " "; bottom: -5px; position: absolute; background: #72c02c; } .headline-v2 { display: block; background: #fff; padding: 1px 10px; margin: 0 0 20px 0; border-left: 2px solid #000; } .headline-v2 h2 { margin: 3px 0; font-size: 20px; font-weight: 200; } h2.heading-md { font-size: 20px; line-height: 24px; } h2.heading-sm, h3.heading-md { font-size: 18px; line-height: 24px; } h3.heading-md { line-height: 22px; } h3.heading-sm { font-size: 16px; line-height: 20px; } h2.heading-xs { font-size: 16px; line-height: 22px; } h3.heading-xs { font-size: 14px; margin-bottom: 0; } .devider.devider-dotted { border-top: 2px dotted #eee; } .devider.devider-dashed { border-top: 2px dashed #eee; } .devider.devider-db { height: 5px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; } .devider.devider-db-dashed { height: 5px; border-top: 1px dashed #ddd; border-bottom: 1px dashed #ddd; } .devider.devider-db-dotted { height: 5px; border-top: 1px dotted #ddd; border-bottom: 1px dotted #ddd; } /*Basic Tables*/ .table thead > tr > th { border-bottom: none; } @media (max-width: 768px) { .table th.hidden-sm, .table td.hidden-sm { display: none !important; } } .form-control { box-shadow: none; } .form-control:focus { border-color: #bbb; box-shadow: 0 0 2px #c9c9c9; } /*Form Spacing*/ .form-spacing .form-control { margin-bottom: 15px; } /*Form Icons*/ .input-group-addon { color: #b3b3b3; font-size: 14px; background: #fff; } .carousel-v1 .carousel-caption { left: 0; right: 0; bottom: 0; padding: 7px 15px; background: rgba(0, 0, 0, 0.7); } .carousel-v1 .carousel-caption p { color: #fff; margin-bottom: 0; } .carousel-v1 .carousel-arrow a.carousel-control { opacity: 1; font-size:30px; height:inherit; width: inherit; background: none; text-shadow: none; position: inherit; } .carousel-v1 .carousel-arrow a i { top: 50%; opacity: 0.6; background: #000; margin-top: -18px; padding: 2px 12px; position: absolute; } .carousel-v1 .carousel-arrow a i:hover { opacity: 0.8; } .carousel-v1 .carousel-arrow a.left i { left: 0; } .carousel-v1 .carousel-arrow a.right i { right: 0; } .carousel-v2 .carousel-control, .carousel-v2 .carousel-control:hover { opacity: 1; text-shadow: none; } .carousel-v2 .carousel-control.left, .carousel-v2 .carousel-control.right { top: 50%; z-index: 5; color: #eee; width: 45px; height: 45px; font-size: 30px; margin-top: -22px; position: absolute; text-align: center; display: inline-block; border: 2px solid #eee; background: rgba(0,0,0,0.1); } .carousel-v2 .carousel-control:hover { background: rgba(0,0,0,0.3); -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } .carousel-v2 .carousel-control.left { left: 20px; } .carousel-v2 .carousel-control.right { right: 20px; } .carousel-v2 .carousel-control .arrow-prev, .carousel-v2 .carousel-control .arrow-next { top: -5px; position: relative; } .carousel-v2 .carousel-control .arrow-next { right: -2px; } @media (min-width: 768px) { .carousel-indicators { bottom: 10px; } } /*Tabs v1*/ .tab-v1 .nav-tabs { border: none; background: none; border-bottom: solid 2px #72c02c; } .tab-v1 .nav-tabs a { font-size: 14px; padding: 5px 15px; } .tab-v1 .nav-tabs > .active > a, .tab-v1 .nav-tabs > .active > a:hover, .tab-v1 .nav-tabs > .active > a:focus { color: #fff; border: none; background: #72c02c; } .tab-v1 .nav-tabs > li > a { border: none; } .tab-v1 .nav-tabs > li > a:hover { color: #fff; background: #72c02c; } .tab-v1 .tab-content { padding: 10px 0; } .tab-v1 .tab-content img { margin-top: 4px; margin-bottom: 15px; } .tab-v1 .tab-content img.img-tab-space { margin-top: 7px; } /*Tabs v2*/ .tab-v2 .nav-tabs { border-bottom: none; } .tab-v2 .nav-tabs li a { padding: 9px 16px; background: none; border: none; } .tab-v2 .nav-tabs li.active a { background: #fff; padding: 7px 15px 9px; border: solid 1px #eee; border-top: solid 2px #72c02c; border-bottom: none !important; } .tab-v2 .tab-content { padding: 10px 16px; border: solid 1px #eee; } /*Tabs v3*/ .tab-v3 .nav-pills li a { color: #777; font-size: 17px; padding: 4px 8px; margin-bottom: 3px; background: #fafafa; border: solid 1px #eee; } .tab-v3 .nav-pills li a:hover, .tab-v3 .nav-pills li.active a { color: #fff; background: #72c02c; border: solid 1px #68af28; } .tab-v3 .nav-pills li i { width: 1.25em; margin-right: 5px; text-align: center; display: inline-block; } .tab-v3 .tab-content { padding: 15px; background: #fafafa; border: solid 1px #eee; } /*Accordion v1*/ .acc-v1 .panel-heading { padding: 0; box-shadow: none; } .acc-v1 .panel-heading a { display: block; font-size: 14px; padding: 5px 15px; background: #fefefe; } .acc-icon a.accordion-toggle i { color: #555; margin-right: 8px; } .acc-icon a.accordion-toggle:hover i { color: #39414c; } /*Pegination*/ .pagination li a { color: #777; padding: 5px 15px; } .pagination li a:hover { color: #fff; background: #5fb611; border-color: #5fb611; } .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus { border-color: #72c02c; background-color: #72c02c; } /*Pagination Without Space*/ .pagination-no-space .pagination { margin: 0; } /*Pager*/ .pager li > a:hover, .pager li > a:focus { color: #fff; background: #5fb611; border-color: #5fb611; } .pager.pager-v2 li > a { border: none; } .pager.pager-v2 li > a, .pager.pager-v3 li > a { -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out; } .pager.pager-v2 li > a:hover, .pager.pager-v2 li > a:focus, .pager.pager-v3 li > a:hover, .pager.pager-v3 li > a:focus { color: #fff; background: #72c02c; } /*Pager Amount*/ .pager.pager-v2 li.page-amount, .pager.pager-v3 li.page-amount { font-size: 16px; font-style: italic; } .pager.pager-v2 li.page-amount, .pager.pager-v2 li.page-amount:hover, .pager.pager-v2 li.page-amount:focus, .pager.pager-v3 li.page-amount, .pager.pager-v3 li.page-amount:hover, .pager.pager-v3 li.page-amount:focus { top: 7px; color: #777; position: relative; } /*Pager Size*/ .pager.pager-v2.pager-md li a, .pager.pager-v3.pager-md li a { font-size: 16px; padding: 8px 18px; } /*Sidebar Menu v1*/ .sidebar-nav-v1 li { padding: 0; } .sidebar-nav-v1 li a { display: block; padding: 8px 30px 8px 10px; } .sidebar-nav-v1 li a:hover { text-decoration: none; } .sidebar-nav-v1 > li.active, .sidebar-nav-v1 > li.active:hover { background: #717984; } .sidebar-nav-v1 > li.active, .sidebar-nav-v1 > li.active:hover, .sidebar-nav-v1 > li.active:focus { border-color: #ddd; } .sidebar-nav-v1 > li.active > a { color: #fff; } /*Sidebar Sub Navigation*/ .sidebar-nav-v1 li ul { padding: 0; list-style: none; } .sidebar-nav-v1 li ul, .sidebar-nav-v1 li.active ul a { background: #f8f8f8; } .sidebar-nav-v1 li ul a { color: #555; font-size: 12px; border-top: solid 1px #ddd; padding: 6px 30px 6px 17px; } .sidebar-nav-v1 ul li:hover a, .sidebar-nav-v1 ul li.active a { color: #72c02c; } /*Sidebar Badges*/ .list-group-item li > .badge { float: right; } .sidebar-nav-v1 span.badge { margin-top: 8px; margin-right: 10px; } .sidebar-nav-v1 .list-toggle > span.badge { margin-right: 25px; } .sidebar-nav-v1 ul li span.badge { margin-top: 8px; font-size: 11px; padding: 3px 5px; margin-right: 10px; } /*Sidebar List Toggle*/ .list-toggle:after { top: 7px; right: 10px; color: #777; font-size: 14px; content: "\f105"; position: absolute; font-weight: normal; display: inline-block; font-family: FontAwesome; } .list-toggle.active:after { color: #fff; content: "\f107"; } .btn { box-shadow: none; } .btn-u { border: 0; color: #fff; font-size: 14px; cursor: pointer; font-weight: 400; padding: 6px 13px; position: relative; background: #72c02c; white-space: nowrap; display: inline-block; text-decoration: none; } .btn-u:hover { color: #fff; text-decoration: none; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .btn-u.btn-block { text-align: center; } a.btn-u { /*padding: 4px 13px;*/ /*vertical-align: middle;*/ } .btn-u-sm, a.btn-u-sm { padding: 3px 12px; } .btn-u-lg, a.btn-u-lg { font-size: 18px; padding: 10px 25px; } .btn-u-xs, a.btn-u-xs { font-size: 12px; padding: 2px 12px; line-height: 18px; } /*Button Groups*/ .btn-group .dropdown-menu > li > a { padding: 3px 13px; } .btn-group > .btn-u, .btn-group-vertical > .btn-u { float: left; position: relative; } .btn-group > .btn-u:first-child { margin-left: 0; } /*For FF Only*/ @-moz-document url-prefix() { .footer-subsribe .btn-u { padding-bottom: 4px; } } @media (max-width: 768px) { @-moz-document url-prefix() { .btn-u { padding-bottom: 6px; } } } /*Buttons Color*/ .btn-u:hover, .btn-u:focus, .btn-u:active, .btn-u.active, .open .dropdown-toggle.btn-u { background: #5fb611; } .btn-u-split.dropdown-toggle { border-left: solid 1px #5fb611; } .btn-u.btn-u-blue { background: #3498db; } .btn-u.btn-u-blue:hover, .btn-u.btn-u-blue:focus, .btn-u.btn-u-blue:active, .btn-u.btn-u-blue.active, .open .dropdown-toggle.btn-u.btn-u-blue { background: #2980b9; } .btn-u.btn-u-split-blue.dropdown-toggle { border-left: solid 1px #2980b9; } .btn-u.btn-u-red { background: #e74c3c; } .btn-u.btn-u-red:hover, .btn-u.btn-u-red:focus, .btn-u.btn-u-red:active, .btn-u.btn-u-red.active, .open .dropdown-toggle.btn-u.btn-u-red { background: #c0392b; } .btn-u.btn-u-split-red.dropdown-toggle { border-left: solid 1px #c0392b; } .btn-u.btn-u-orange { background: #e67e22; } .btn-u.btn-u-orange:hover, .btn-u.btn-u-orange:focus, .btn-u.btn-u-orange:active, .btn-u.btn-u-orange.active, .open .dropdown-toggle.btn-u.btn-u-orange { background: #d35400; } .btn-u.btn-u-split-orange.dropdown-toggle { border-left: solid 1px #d35400; } .btn-u.btn-u-sea { background: #1abc9c; } .btn-u.btn-u-sea:hover, .btn-u.btn-u-sea:focus, .btn-u.btn-u-sea:active, .btn-u.btn-u-sea.active, .open .dropdown-toggle.btn-u.btn-u-sea { background: #16a085; } .btn-u.btn-u-split-sea.dropdown-toggle { border-left: solid 1px #16a085; } .btn-u.btn-u-green { background: #2ecc71; } .btn-u.btn-u-green:hover, .btn-u.btn-u-green:focus, .btn-u.btn-u-green:active, .btn-u.btn-u-green.active, .open .dropdown-toggle.btn-u.btn-u-green { background: #27ae60; } .btn-u.btn-u-split-green.dropdown-toggle { border-left: solid 1px #27ae60; } .btn-u.btn-u-yellow { background: #f1c40f; } .btn-u.btn-u-yellow:hover, .btn-u.btn-u-yellow:focus, .btn-u.btn-u-yellow:active, .btn-u.btn-u-yellow.active, .open .dropdown-toggle.btn-u.btn-u-yellow { background: #f39c12; } .btn-u.btn-u-split-yellow.dropdown-toggle { border-left: solid 1px #f39c12; } .btn-u.btn-u-default { background: #95a5a6; } .btn-u.btn-u-default:hover, .btn-u.btn-u-default:focus, .btn-u.btn-u-default:active, .btn-u.btn-u-default.active, .open .dropdown-toggle.btn-u.btn-u-default { background: #7f8c8d; } .btn-u.btn-u-split-default.dropdown-toggle { border-left: solid 1px #7f8c8d; } .btn-u.btn-u-purple { background: #9b6bcc; } .btn-u.btn-u-purple:hover, .btn-u.btn-u-purple:focus, .btn-u.btn-u-purple:active, .btn-u.btn-u-purple.active, .open .dropdown-toggle.btn-u.btn-u-purple { background: #814fb5; } .btn-u.btn-u-split-purple.dropdown-toggle { border-left: solid 1px #814fb5; } .btn-u.btn-u-aqua { background: #27d7e7; } .btn-u.btn-u-aqua:hover, .btn-u.btn-u-aqua:focus, .btn-u.btn-u-aqua:active, .btn-u.btn-u-aqua.active, .open .dropdown-toggle.btn-u.btn-u-aqua { background: #26bac8; } .btn-u.btn-u-split-aqua.dropdown-toggle { border-left: solid 1px #26bac8; } .btn-u.btn-u-brown { background: #9c8061; } .btn-u.btn-u-brown:hover, .btn-u.btn-u-brown:focus, .btn-u.btn-u-brown:active, .btn-u.btn-u-brown.active, .open .dropdown-toggle.btn-u.btn-u-brown { background: #81674b; } .btn-u.btn-u-split-brown.dropdown-toggle { border-left: solid 1px #81674b; } .btn-u.btn-u-dark-blue { background: #4765a0; } .btn-u.btn-u-dark-blue:hover, .btn-u.btn-u-dark-blue:focus, .btn-u.btn-u-dark-blue:active, .btn-u.btn-u-dark-blue.active, .open .dropdown-toggle.btn-u.btn-u-dark-blue { background: #324c80; } .btn-u.btn-u-split-dark.dropdown-toggle { border-left: solid 1px #324c80; } .btn-u.btn-u-light-green { background: #79d5b3; } .btn-u.btn-u-light-green:hover, .btn-u.btn-u-light-green:focus, .btn-u.btn-u-light-green:active, .btn-u.btn-u-light-green.active, .open .dropdown-toggle.btn-u.btn-u-light-green { background: #59b795; } .btn-u.<API key>.dropdown-toggle { border-left: solid 1px #59b795; } .btn-u.btn-u-dark { background: #555; } .btn-u.btn-u-dark:hover, .btn-u.btn-u-dark:focus, .btn-u.btn-u-dark:active, .btn-u.btn-u-dark.active, .open .dropdown-toggle.btn-u.btn-u-dark { background: #333; } .btn-u.btn-u-split-dark.dropdown-toggle { border-left: solid 1px #333; } .btn-u.btn-u-light-grey { background: #585f69; } .btn-u.btn-u-light-grey:hover, .btn-u.btn-u-light-grey:focus, .btn-u.btn-u-light-grey:active, .btn-u.btn-u-light-grey.active, .open .dropdown-toggle.btn-u.btn-u-light-grey { background: #484f58; } .btn-u.<API key>.dropdown-toggle { border-left: solid 1px #484f58; } /*Bordered Buttons*/ .btn-u.btn-brd { color: #555; /*font-weight: 200;*/ background: none; padding: 5px 13px; border: solid 1px transparent; -webkit-transition: all 0.1s ease-in-out; -moz-transition: all 0.1s ease-in-out; -o-transition: all 0.1s ease-in-out; transition: all 0.1s ease-in-out; } .btn-u.btn-brd:hover { background: none; border: solid 1px #eee; } .btn-u.btn-brd:focus { background: none; } .btn-u.btn-brd.btn-brd-hover:hover { color: #fff !important; } .btn-u.btn-brd { border-color: #72c02c; } .btn-u.btn-brd:hover { color: #5fb611; border-color: #5fb611; } .btn-u.btn-brd.btn-brd-hover:hover { background: #5fb611; } .btn-u.btn-brd.btn-u-blue { border-color: #3498db; } .btn-u.btn-brd.btn-u-blue:hover { color: #2980b9; border-color: #2980b9; } .btn-u.btn-brd.btn-u-blue.btn-brd-hover:hover { background: #2980b9; } .btn-u.btn-brd.btn-u-red { border-color: #e74c3c; } .btn-u.btn-brd.btn-u-red:hover { color: #c0392b; border-color: #c0392b; } .btn-u.btn-brd.btn-u-red.btn-brd-hover:hover { background: #c0392b; } .btn-u.btn-brd.btn-u-orange { border-color: #e67e22; } .btn-u.btn-brd.btn-u-orange:hover { color: #d35400; border-color: #d35400; } .btn-u.btn-brd.btn-u-orange.btn-brd-hover:hover { background: #d35400; } .btn-u.btn-brd.btn-u-sea { border-color: #1abc9c; } .btn-u.btn-brd.btn-u-sea:hover { color: #16a085; border-color: #16a085; } .btn-u.btn-brd.btn-u-sea.btn-brd-hover:hover { background: #16a085; } .btn-u.btn-brd.btn-u-green { border-color: #2ecc71; } .btn-u.btn-brd.btn-u-green:hover { color: #27ae60; border-color: #27ae60; } .btn-u.btn-brd.btn-u-green.btn-brd-hover:hover { background: #27ae60; } .btn-u.btn-brd.btn-u-yellow { border-color: #f1c40f; } .btn-u.btn-brd.btn-u-yellow:hover { color: #f39c12; border-color: #f39c12; } .btn-u.btn-brd.btn-u-yellow.btn-brd-hover:hover { background: #f39c12; } .btn-u.btn-brd.btn-u-default { border-color: #95a5a6; } .btn-u.btn-brd.btn-u-default:hover { color: #7f8c8d; border-color: #7f8c8d; } .btn-u.btn-brd.btn-u-default.btn-brd-hover:hover { background: #7f8c8d; } .btn-u.btn-brd.btn-u-dark { border-color: #555; } .btn-u.btn-brd.btn-u-dark:hover { color: #333; border-color: #333; } .btn-u.btn-brd.btn-u-dark.btn-brd-hover:hover { background: #333; } .btn-u.btn-brd.btn-u-light-grey { border-color: #585f69; } .btn-u.btn-brd.btn-u-light-grey:hover { color: #484f58; border-color: #484f58; } .btn-u.btn-brd.btn-u-light-grey.btn-brd-hover:hover { background: #484f58; } .btn-u.btn-brd.btn-u-purple { border-color: #9b6bcc; } .btn-u.btn-brd.btn-u-purple:hover { color: #814fb5; border-color: #814fb5; } .btn-u.btn-brd.btn-u-purple.btn-brd-hover:hover { background: #814fb5; } .btn-u.btn-brd.btn-u-aqua { border-color: #27d7e7; } .btn-u.btn-brd.btn-u-aqua:hover { color: #26bac8; border-color: #26bac8; } .btn-u.btn-brd.btn-u-aqua.btn-brd-hover:hover { background: #26bac8; } .btn-u.btn-brd.btn-u-brown { border-color: #9c8061; } .btn-u.btn-brd.btn-u-brown:hover { color: #81674b; border-color: #81674b; } .btn-u.btn-brd.btn-u-brown.btn-brd-hover:hover { background: #81674b; } .btn-u.btn-brd.btn-u-dark-blue { border-color: #4765a0; } .btn-u.btn-brd.btn-u-dark-blue:hover { color: #324c80; border-color: #324c80; } .btn-u.btn-brd.btn-u-dark-blue.btn-brd-hover:hover { background: #324c80; } .btn-u.btn-brd.btn-u-light-green { border-color: #79d5b3; } .btn-u.btn-brd.btn-u-light-green:hover { color: #59b795; border-color: #59b795; } .btn-u.btn-brd.btn-u-light-green.btn-brd-hover:hover { background: #59b795; } .btn-u.btn-brd.btn-u-light { color: #fff; border-color: #fff; } .btn-u.btn-brd.btn-u-light:hover { border-color: #fff; } .btn-u.btn-brd.btn-u-light.btn-brd-hover:hover { background: #fff; color: #555 !important; } .dropdown-show { box-shadow: 0 0 4px #eee; display: inline-block; position: relative; } /*Labels*/ span.label { font-size: 11px; font-weight: 400; padding: 4px 7px; } /*Badges*/ span.badge, .list-group-item.active>.badge { color: #fff; font-weight: 400; padding: 4px 7px; } span.label-u, span.badge-u, .list-group-item.active>.badge.badge-u { background: #72c02c; } span.label-blue, span.badge-blue, .list-group-item.active>.badge { background: #3498db; } span.label-red, span.badge-red, .list-group-item.active>.badge { background: #e74c3c; } span.label-green, span.badge-green, .list-group-item.active>.badge.badge-green { background: #2ecc71; } span.label-sea, span.badge-sea, .list-group-item.active>.badge.badge-sea { background: #1abc9c; } span.label-orange, span.badge-orange, .list-group-item.active>.badge.badge-orange { background: #e67e22; } span.label-yellow, span.badge-yellow, .list-group-item.active>.badge.badge-yellow { background: #f1c40f; } span.label-purple, span.badge-purple, .list-group-item.active>.badge.badge-purple { background: #9b6bcc; } span.label-aqua, span.badge-aqua, .list-group-item.active>.badge.badge-aqua { background: #27d7e7; } span.label-brown, span.badge-brown, .list-group-item.active>.badge.badge-brown { background: #9c8061; } span.label-dark-blue, span.badge-dark-blue, .list-group-item.active>.badge.badge-dark-blue { background: #4765a0; } span.label-light-green, span.badge-light-green, .list-group-item.active>.badge.badge-light-green { background: #79d5b3; } span.label-light, span.badge-light, .list-group-item.active>.badge.badge-light { color: #777; background: #ecf0f1; } span.label-dark, span.badge-dark, .list-group-item.active>.badge.badge-dark { background: #555; } /*Badge Lists*/ .badge-lists li { position: relative; } .badge-lists span.badge { top: -10px; right: -6px; position: absolute; } /*Badge Icons*/ .badge-lists.badge-icons span.badge { min-width: 12px; padding: 3px 6px; } .badge-lists.badge-icons i { font-size: 18px; min-width: 25px; } /*Badge Box v1*/ .badge-box-v1 a { color: #777; min-width: 40px; font-size: 18px; padding: 8px 9px; display: inline-block; border: solid 1px #eee; } /*Badge Box v2*/ .badge-box-v2 a { color: #777; font-size: 12px; padding: 10px; min-width: 70px; text-align: center; display: inline-block; border: solid 1px #eee; } .badge-box-v2 a i { font-size: 20px; } /*General Badge Box*/ .badge-box-v1 a i, .badge-box-v2 a i { display: block; margin: 1px auto 2px; } .badge-box-v1 a:hover, .badge-box-v2 a:hover { color: #555; border-color: #555; text-decoration: none; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } /*Social Icons*/ .social-icons { margin: 0; padding: 0; } .social-icons li { list-style: none; margin-right: 3px; margin-bottom: 5px; text-indent: -9999px; display: inline-block; } .social-icons li a, a.social-icon { width: 28px; height: 28px; display: block; background-position: 0 0; background-repeat: no-repeat; transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -webkit-transition: all 0.3s ease-in-out; } .social-icons li:hover a { background-position: 0 -38px; } .social-icons-color li a { opacity: 0.7; background-position: 0 -38px !important; -<API key>: hidden; /*For Chrome*/ } .social-icons-color li a:hover { opacity: 1; } .social_amazon {background: url(../img/icons/social/amazon.png) no-repeat;} .social_behance {background: url(../img/icons/social/behance.png) no-repeat;} .social_blogger {background: url(../img/icons/social/blogger.png) no-repeat;} .social_deviantart {background: url(../img/icons/social/deviantart.png) no-repeat;} .social_dribbble {background: url(../img/icons/social/dribbble.png) no-repeat;} .social_dropbox {background: url(../img/icons/social/dropbox.png) no-repeat;} .social_evernote {background: url(../img/icons/social/evernote.png) no-repeat;} .social_facebook {background: url(../img/icons/social/facebook.png) no-repeat;} .social_forrst {background: url(../img/icons/social/forrst.png) no-repeat;} .social_github {background: url(../img/icons/social/github.png) no-repeat;} .social_googleplus {background: url(../img/icons/social/googleplus.png) no-repeat;} .social_jolicloud {background: url(../img/icons/social/jolicloud.png) no-repeat;} .social_last-fm {background: url(../img/icons/social/last-fm.png) no-repeat;} .social_linkedin {background: url(../img/icons/social/linkedin.png) no-repeat;} .social_picasa {background: url(../img/icons/social/picasa.png) no-repeat;} .social_pintrest {background: url(../img/icons/social/pintrest.png) no-repeat;} .social_rss {background: url(../img/icons/social/rss.png) no-repeat;} .social_skype {background: url(../img/icons/social/skype.png) no-repeat;} .social_spotify {background: url(../img/icons/social/spotify.png) no-repeat;} .social_stumbleupon {background: url(../img/icons/social/stumbleupon.png) no-repeat;} .social_tumblr {background: url(../img/icons/social/tumblr.png) no-repeat;} .social_twitter {background: url(../img/icons/social/twitter.png) no-repeat;} .social_vimeo {background: url(../img/icons/social/vimeo.png) no-repeat;} .social_wordpress {background: url(../img/icons/social/wordpress.png) no-repeat;} .social_xing {background: url(../img/icons/social/xing.png) no-repeat;} .social_yahoo {background: url(../img/icons/social/yahoo.png) no-repeat;} .social_youtube {background: url(../img/icons/social/youtube.png) no-repeat;} .social_vk {background: url(../img/icons/social/vk.png) no-repeat;} .social_instagram {background: url(../img/icons/social/instagram.png) no-repeat;} /*Font Awesome Icon Styles*/ i.icon-custom { color: #555; width: 40px; height: 40px; font-size: 20px; line-height: 40px; margin-bottom: 5px; text-align: center; display: inline-block; border: solid 1px #555; } i.icon-sm { width: 35px; height: 35px; font-size: 16px; line-height: 35px; } i.icon-md { width: 55px; height: 55px; font-size: 22px; line-height: 55px; } i.icon-lg { width: 60px; height: 60px; font-size: 31px; line-height: 60px; margin-bottom: 10px; } i.icon-2x { font-size: 30px; } i.icon-3x { font-size: 40px; } i.icon-4x { font-size: 50px; } /*Line Icons*/ i.icon-line { font-size: 17px; } i.icon-sm.icon-line { font-size: 14px; } i.icon-md.icon-line { font-size: 22px; } i.icon-lg.icon-line { font-size: 28px; } i.icon-2x.icon-line { font-size: 27px; } i.icon-3x.icon-line { font-size: 36px; } i.icon-4x.icon-line { font-size: 47px; } /*Icon Styles For Links*/ .link-icon, .link-bg-icon { color: #555; } .link-icon:hover, .link-bg-icon:hover { border: none; text-decoration: none; } .link-icon:hover i { color: #72c02c; background: none; border: solid 1px #72c02c; } .link-bg-icon:hover i { color: #72c02c; background: #72c02c; border-color: #72c02c; color: #fff !important; } /*Icons Color*/ i.icon-color-u, i.icon-color-red, i.icon-color-sea, i.icon-color-dark, i.icon-color-grey, i.icon-color-blue, i.icon-color-green, i.icon-color-yellow, i.icon-color-orange, i.icon-color-purple, i.icon-color-aqua, i.icon-color-brown, i.<API key>, i.<API key>, i.<API key>, { background: none; } i.icon-color-u { color: #72c02c; border: solid 1px #72c02c; } i.icon-color-blue { color: #3498db; border: solid 1px #3498db; } i.icon-color-red { color: #e74c3c; border: solid 1px #e74c3c; } i.icon-color-sea { color: #1abc9c; border: solid 1px #1abc9c; } i.icon-color-green { color: #2ecc71; border: solid 1px #2ecc71; } i.icon-color-yellow { color: #f1c40f; border: solid 1px #f1c40f; } i.icon-color-orange { color: #e67e22; border: solid 1px #e67e22; } i.icon-color-grey { color: #95a5a6; border: solid 1px #95a5a6; } i.icon-color-purple { color: #9b6bcc; border: solid 1px #9b6bcc; } i.icon-color-aqua { color: #27d7e7; border: solid 1px #27d7e7; } i.icon-color-brown { color: #9c8061; border: solid 1px #9c8061; } i.<API key> { color: #4765a0; border: solid 1px #4765a0; } i.<API key> { color: #79d5b3; border: solid 1px #79d5b3; } i.icon-color-light { color: #fff; border: solid 1px #fff; } i.<API key> { color: #585f69; border: solid 1px #585f69; } /*Icons Backgroun Color*/ i.icon-bg-u, i.icon-bg-red, i.icon-bg-sea, i.icon-bg-dark, i.icon-bg-darker, i.icon-bg-grey, i.icon-bg-blue, i.icon-bg-green, i.icon-bg-yellow, i.icon-bg-orange, i.icon-bg-purple, i.icon-bg-aqua, i.icon-bg-brown, i.icon-bg-dark-blue, i.icon-bg-light-grey, i.icon-bg-light-green { color: #fff; border-color: transparent; } i.icon-bg-u { background: #72c02c; } i.icon-bg-blue { background: #3498db; } i.icon-bg-red { background: #e74c3c; } i.icon-bg-sea { background: #1abc9c; } i.icon-bg-green { background: #2ecc71; } i.icon-bg-yellow { background: #f1c40f; } i.icon-bg-orange { background: #e67e22; } i.icon-bg-grey { background: #95a5a6; } i.icon-bg-dark { background: #555; } i.icon-bg-darker { background: #333; } i.icon-bg-purple { background: #9b6bcc; } i.icon-bg-aqua { background: #27d7e7; } i.icon-bg-brown { background: #9c8061; } i.icon-bg-dark-blue { background: #4765a0; } i.icon-bg-light-green { background: #79d5b3; } i.icon-bg-light { background: #fff; border-color: transparent; } i.icon-bg-light-grey { background: #585f69; border-color: transparent; } /* Make Font Awesome icons fixed width */ .fa-fixed [class^="fa"], .fa-fixed [class*=" fa"] { width: 1.25em; text-align: center; display: inline-block; } .fa-fixed [class^="fa"].fa-lg, .fa-fixed [class*=" fa"].fa-lg { /* increased font size for fa-lg */ width: 1.5625em; } /*Content Boxes v1*/ .content-boxes-v1 { text-align: center; } .content-boxes-v1 span { display: block; margin-top: 5px; } /*Content Boxes v2*/ @media (max-width: 992px) { .content-boxes-v2, .content-boxes-v2 .text-justify { text-align: center; } .content-boxes-v2 span { display: block; margin-top: 5px; } } /*Content Boxes v3*/ .content-boxes-v3 i.icon-custom { top: 8px; float: left; position: relative; } .content-boxes-v3 .content-boxes-in-v3 { padding: 0 10px; overflow: hidden; } .content-boxes-v3 .content-boxes-in-v3 h3 { font-size: 18px; line-height: 22px; margin-bottom: 3px; text-transform: capitalize; } .content-boxes-v3 .content-boxes-in-v3 h3 a { color: #555; } /*Content Boxes Right v3*/ .content-boxes-v3.<API key> { text-align: right; } .content-boxes-v3.<API key> i.icon-custom { float: right; margin-left: 10px; } @media (max-width: 768px){ .content-boxes-v3.<API key> { text-align: inherit; } .content-boxes-v3.<API key> i.icon-custom { float: left; margin-left: 0; } } /*Content Boxes v4*/ .content-boxes-v4 h2 { color: #555; font-size: 18px; font-weight: bold; text-transform: uppercase; } .content-boxes-v4 a { color: #777; font-size: 11px; font-weight: bold; text-transform: uppercase; } .content-boxes-v4 i { width: 25px; color: #72c02c; font-size: 35px; margin-top: 10px; } .content-boxes-in-v4 { padding: 0 10px; overflow: hidden; } .content-boxes-v4-sm i { font-size: 26px; margin-top: 10px; margin-right: 5px; } /*Content Boxes v5*/ .content-boxes-v5 i { float: left; color: #999; width: 50px; height: 50px; padding: 11px; font-size: 22px; background: #eee; line-height: 28px; text-align: center; margin-right: 15px; display: inline-block; } .content-boxes-v5:hover i { color: #fff; background: #72c02c; } /*Content Boxes v6*/ .content-boxes-v6 { padding-top: 25px; text-align: center; } .content-boxes-v6 i { color: #fff; width: 90px; height: 90px; padding: 30px; font-size: 30px; line-height: 30px; position: relative; text-align: center; background: #dedede; margin-bottom: 25px; display: inline-block; } .content-boxes-v6 i:after { top: -8px; left: -8px; right: -8px; bottom: -8px; content: " "; position: absolute; border: 1px solid #dedede; border-radius: 50% !important; } .content-boxes-v6:hover i, .content-boxes-v6:hover i:after { -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } .content-boxes-v6:hover i { background: #72c02c; } .content-boxes-v6:hover i:after { border-color: #72c02c; } .service-block { padding: 20px 30px; text-align: center; margin-bottom: 20px; } .service-block p, .service-block h2 { color: #fff; } .service-block h2 a:hover{ text-decoration: none; } .service-block-light, .<API key> { background: #fafafa; border: solid 1px #eee; } .<API key>:hover { box-shadow: 0 0 8px #eee; } .service-block-light p, .service-block-light h2, .<API key> p, .<API key> h2 { color: #555; } .service-block-u { background: #72c02c; } .service-block-blue { background: #3498db; } .service-block-red { background: #e74c3c; } .service-block-sea { background: #1abc9c; } .service-block-grey { background: #95a5a6; } .<API key> { background: #f1c40f; } .<API key> { background: #e67e22; } .service-block-green { background: #2ecc71; } .<API key> { background: #9b6bcc; } .service-block-aqua { background: #27d7e7; } .service-block-brown { background: #9c8061; } .<API key> { background: #4765a0; } .<API key> { background: #79d5b3; } .service-block-dark { background: #555; } .service-block-light { background: #ecf0f1; } .funny-boxes { background: #f7f7f7; padding: 20px 20px 15px; -webkit-transition:all 0.3s ease-in-out; -moz-transition:all 0.3s ease-in-out; -o-transition:all 0.3s ease-in-out; transition:all 0.3s ease-in-out; } .funny-boxes h2 { margin-top: 0; font-size: 18px; line-height: 20px; } .funny-boxes h2 a { color: #555; } .funny-boxes p a { color: #72c02c; } .funny-boxes .funny-boxes-img li { font-size: 12px; margin-bottom: 2px; } .funny-boxes .funny-boxes-img li i { color: #72c02c; font-size: 12px; margin-right: 5px; } @media (max-width: 992px) { .funny-boxes .funny-boxes-img li { display: inline-block; } } .funny-boxes .funny-boxes-img img { margin: 5px 10px 15px 0; } .funny-boxes ul.funny-boxes-rating li { display: inline-block; } .funny-boxes ul.funny-boxes-rating li i { color: #f8be2c; cursor: pointer; font-size: 14px; } .funny-boxes ul.funny-boxes-rating li i:hover { color: #f8be2c; } /*Funny Colored Boxes*/ .funny-boxes-colored p, .funny-boxes-colored h2 a, .funny-boxes-colored .funny-boxes-img li, .funny-boxes-colored .funny-boxes-img li i { color: #fff; } /*Red Funny Box*/ .funny-boxes-red { background: #e74c3c; } /*Dark Red Funny Box*/ .funny-boxes-purple { background: #9b6bcc; } /*Blue Funny Box*/ .funny-boxes-blue { background: #3498db; } /*Grey Funny Box*/ .funny-boxes-grey { background: #95a5a6; } /*Turquoise Funny Box*/ .funny-boxes-sea { background: #1abc9c; } /*Turquoise Top Bordered Funny Box*/ .funny-boxes-top-sea { border-top: solid 2px #1abc9c; } .funny-boxes-top-sea:hover { border-top-color: #16a085; } /*Yellow Top Bordered Funny Box**/ .<API key> { border-top: solid 2px #f1c40f; } .<API key>:hover { border-top-color: #f39c12; } /*Red Top Bordered Funny Box**/ .funny-boxes-top-red { border-top: solid 2px #e74c3c; } .funny-boxes-top-red:hover { border-top-color: #c0392b; } /*Purple Top Bordered Funny Box**/ .<API key> { border-top: solid 2px #9b6bcc; } .<API key>:hover { border-top-color: #814fb5; } /*Orange Left Bordered Funny Box**/ .<API key> { border-left: solid 2px #e67e22; } .<API key>:hover { border-left-color: #d35400; } /*Green Left Bordered Funny Box**/ .<API key> { border-left: solid 2px #72c02c; } .<API key>:hover { border-left-color: #5fb611; } /*Blue Left Bordered Funny Box**/ .<API key> { border-left: solid 2px #3498db; } .<API key>:hover { border-left-color: #2980b9; } /*Dark Left Bordered Funny Box**/ .<API key> { border-left: solid 2px #555; } .<API key>:hover { border-left-color: #333; } .text-justify p { text-align: justify;} .<API key> { text-transform: uppercase;} .<API key> { text-transform: inherit !important;} .font-bold { font-weight: 600;} .font-light { font-weight: 200;} .font-normal { font-weight: 400 !important;} /*Text Dropcap*/ .dropcap { float: left; color: #72c02c; padding: 5px 0; font-size: 45px; font-weight: 200; line-height: 30px; margin: 0px 5px 0 0; } .dropcap-bg { float: left; color: #fff; padding: 7px 0; min-width: 50px; font-size: 35px; font-weight: 200; line-height: 35px; text-align: center; background: #72c02c; margin: 4px 10px 0 0; } /*Text Highlights*/ .text-highlights { color: #fff; font-weight: 200; padding: 0px 5px; background: #555; } .<API key> { background: #72c02c; } .<API key> { background: #3498db; } .text-highlights-red { background: #e74c3c; } .text-highlights-sea { background: #1abc9c; } .<API key> { background: #e67e22; } .<API key> { background: #f1c40f; } .<API key> { background: #9b6bcc; } .<API key> { background: #27d7e7; } .<API key> { background: #9c8061; } .<API key> { background: #4765a0; } .<API key> { background: #79d5b3; } /*Text Borders*/ .text-border { border-bottom: dashed 1px #555; } .text-border-default { border-color: #95a5a6; } .text-border-green { border-color: #72c02c; } .text-border-blue { border-color: #3498db; } .text-border-red { border-color: #e74c3c; } .text-border-yellow { border-color: #f1c40f; } .text-border-purple { border-color: #9b6bcc; } /*List Styles*/ .list-styles li { margin-bottom: 8px; } /*Contextual Backgrounds*/ .contex-bg p { opacity: 0.8; padding: 8px 10px; } .contex-bg p:hover { opacity: 1; } /*Blockquote*/ blockquote { padding: 5px 15px; border-left-width: 2px; } blockquote p { font-size: 14px; font-weight: 400; } blockquote h1, blockquote h2, blockquote span { font-size: 18px; margin: 0 0 8px; line-height: 24px; } /*Blockquote Styles*/ blockquote.bq-text-lg p, blockquote.bq-text-lg small { text-transform: uppercase; } blockquote.bq-text-lg p { font-size: 22px; font-weight: 300; line-height: 32px; } blockquote.text-right, blockquote.hero.text-right { border-left: none; border-right: 2px solid #eee; } blockquote.hero.text-right, blockquote.hero.text-right:hover { border-color: #555; } blockquote:hover, blockquote.text-right:hover { border-color: #72c02c; -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } blockquote.bq-dark, blockquote.bq-dark:hover { border-color: #585f69; } blockquote.bq-green { border-color: #72c02c; } /*Blockquote Hero Styles*/ blockquote.hero { border: none; padding: 18px; font-size: 16px; background: #f3f3f3; border-left: solid 2px #666; } blockquote.hero:hover { background: #eee; border-left-color: #666; } blockquote.hero.hero-dark, blockquote.hero.hero-default { border: none; } blockquote.hero.hero-dark { background: #444; } blockquote.hero.hero-dark:hover { background: #555; } blockquote.hero.hero-default { background: #72c02c; } blockquote.hero.hero-default:hover { background: #5fb611; } blockquote.hero.hero-dark p, blockquote.hero.hero-dark h2, blockquote.hero.hero-dark small, blockquote.hero.hero-default p, blockquote.hero.hero-default h2, blockquote.hero.hero-default small { color: #fff; font-weight: 200; } .tag-box { padding: 20px; background: #fff; margin-bottom: 30px; } .tag-box h2 { font-size: 20px; line-height: 25px; } .tag-box p { margin-bottom: 0; } .tag-box.tag-text-space p { margin-bottom: 10px; } /*Tag Boxes v1*/ .tag-box-v1 { border: solid 1px #eee; border-top: solid 2px #72c02c; } /*Tag Boxes v2*/ .tag-box-v2 { background: #fafafa; border: solid 1px #eee; border-left: solid 2px #72c02c; } /*Tag Boxes v3*/ .tag-box-v3 { border: solid 2px #eee; } /*Tag Boxes v4*/ .tag-box-v4 { border: dashed 1px #bbb; } /*Tag Boxes v5*/ .tag-box-v5 { margin: 20px 0; text-align: center; border: dashed 1px #ccc; } .tag-box-v5 span { color: #555; font-size: 28px; margin-bottom: 0; } /*Tag Boxes v6*/ .tag-box-v6 { background: #fafafa; border: solid 1px #eee; } /*Tag Boxes v7*/ .tag-box-v7 { border: solid 1px #eee; border-bottom: solid 2px #72c02c; } /*Testimonials*/ .testimonials { margin-bottom: 10px; } .testimonials .testimonial-info { color: #72c02c; font-size: 16px; padding: 0 15px; margin-top: 18px; } .testimonials .testimonial-info span { top: 3px; position: relative; } .testimonials .testimonial-info em { color: #777; display: block; font-size: 13px; } .testimonials .testimonial-info img { width: 60px; float: left; height: 60px; padding: 2px; margin-right: 15px; border: solid 1px #ccc; } .testimonials .testimonial-author { overflow: hidden; } .testimonials .carousel-arrow { top: -65px; position: relative; } .testimonials .carousel-arrow i { color: #777; padding: 2px; min-width: 25px; font-size: 20px; text-align: center; background: #f5f5f5; } .testimonials .carousel-arrow i:hover { color: #fff; background: #72c02c; } .testimonials .carousel-control { opacity: 1; width: 100%; text-align: right; text-shadow: none; position: absolute; filter: Alpha(opacity = 100); /*For IE*/ } .testimonials .carousel-control.left { right: 27px; left: auto; } .testimonials .carousel-control.right { right: 0px; } /*Testimonials v1*/ .testimonials.testimonials-v1 .item p { position: relative; } .testimonials.testimonials-v1 .item p:after, .testimonials.testimonials-v1 .item p:before { left: 80px; bottom: -20px; } .testimonials.testimonials-v1 .item p:after { border-top: 22px solid; border-left: 0 solid transparent; border-right: 22px solid transparent; } /*Testimonials v2*/ .testimonials.testimonials-v2 .testimonial-info { padding: 0 20px; } .testimonials.testimonials-v2 p { padding-bottom: 15px; } .testimonials.testimonials-v2 .carousel-arrow { top: -55px; } .testimonials.testimonials-v2 .item p:after, .testimonials.testimonials-v2 .item p:before { left: 8%; bottom: 45px; } .testimonials.testimonials-v2 .item p:after { border-top: 20px solid; border-left: 25px solid transparent; border-right: 0px solid transparent; } /*General Testimonials v1/v2*/ .testimonials.testimonials-v1 p, .testimonials.testimonials-v2 p { padding: 15px; font-size: 14px; font-style: italic; background: #f5f5f5; } .testimonials.testimonials-v1 .item p:after, .testimonials.testimonials-v2 .item p:after { width: 0; height: 0; content: " "; display: block; position: absolute; border-top-color: #f5f5f5; border-left-style: inset; /*FF fixes*/ border-right-style: inset; /*FF fixes*/ } /*Testimonials Backgrounds*/ .<API key> .item p, .<API key> .item p { color: #fff; font-weight: 200; } .<API key> .carousel-arrow i, .<API key> .carousel-arrow i { color: #fff; } /*Testimonials Default*/ .<API key> .item p { background: #72c02c; } .testimonials.<API key> .item p:after, .testimonials.<API key> .item p:after { border-top-color: #72c02c; } .<API key> .carousel-arrow i { background: #72c02c; } .testimonials.<API key> .carousel-arrow i:hover { background: #5fb611; } /*Testimonials Dark*/ .<API key> .item p { background: #555; } .testimonials.<API key> .item p:after, .testimonials.<API key> .item p:after { border-top-color: #555; } .<API key> .carousel-arrow i { color: #fff; background: #555; } .testimonials.<API key> .carousel-arrow i:hover { background: #333; } .testimonials.<API key> .testimonial-info { color: #555; } .panel-heading { color: #fff; padding: 5px 15px; } /*Panel Table*/ .panel .table { margin-bottom: 0; } /*Panel Unify*/ .panel-u { border-color: #72c02c; } .panel-u > .panel-heading { background: #72c02c; } /*Panel Blue*/ .panel-blue { border-color: #3498db; } .panel-blue > .panel-heading { background: #3498db; } /*Panel Red*/ .panel-red { border-color: #e74c3c; } .panel-red > .panel-heading { background: #e74c3c; } /*Panel Green*/ .panel-green { border-color: #2ecc71; } .panel-green > .panel-heading { background: #2ecc71; } /*Panel Sea*/ .panel-sea { border-color: #1abc9c; } .panel-sea > .panel-heading { background: #1abc9c; } /*Panel Orange*/ .panel-orange { border-color: #e67e22; } .panel-orange > .panel-heading { background: #e67e22; } /*Panel Yellow*/ .panel-yellow { border-color: #f1c40f; } .panel-yellow > .panel-heading { background: #f1c40f; } /*Panel Grey*/ .panel-grey { border-color: #95a5a6; } .panel-grey > .panel-heading { background: #95a5a6; } /*Panel Dark*/ .panel-dark { border-color: #555; } .panel-dark > .panel-heading { background: #555; } /*Panel Purple*/ .panel-purple { border-color: #9b6bcc; } .panel-purple > .panel-heading { background: #9b6bcc; } /*Panel Aqua*/ .panel-aqua { border-color: #27d7e7; } .panel-aqua > .panel-heading { background: #27d7e7; } /*Panel Brown*/ .panel-brown { border-color: #9c8061; } .panel-brown > .panel-heading { background: #9c8061; } /*Panel Dark Blue*/ .panel-dark-blue { border-color: #4765a0; } .panel-dark-blue > .panel-heading { background: #4765a0; } /*Panel Light Green*/ .panel-light-green { border-color: #79d5b3; } .panel-light-green > .panel-heading { background: #79d5b3; } /*Panel Default Dark*/ .panel-default-dark { border-color: #585f69; } .panel-default-dark > .panel-heading { background: #585f69; } .progress-u { box-shadow: none; } .progress-u .progress-bar { box-shadow: none; } /*progress-bar (sizes)*/ .progress-lg { height: 25px; } .progress-lg p { padding-top: 3px; } .progress-sm { height: 12px; } .progress-xs { height: 7px; } .progress-xxs { height: 3px; } /*progress-bar (colors)*/ .progress { background: #e5e5e5; } .progress-bar-u { background: #72c02c; } .progress-bar-blue { background: #3498db; } .progress-bar-orange { background: #e67e22; } .progress-bar-red { background: #e74c3c; } .progress-bar-purple { background: #9b6bcc; } .progress-bar-aqua { background: #27d7e7; } .progress-bar-brown { background: #9c8061; } .<API key> { background: #4765a0; } .<API key> { background: #79d5b3; } .progress-bar-dark { background: #555; } .progress { position: relative; } .progress .progress-bar { overflow: hidden; line-height: 20px; position: absolute; } .progress-box .progress-bar { transition: all 3s ease-in; -o-transition: all 3s ease-in; -ms-transition: all 3s ease-in; -moz-transition: all 3s ease-in; -webkit-transition: all 3s ease-in; } /*Vertical Progress Bar*/ .progress.vertical { float: left; width: 100%; height: 200px; margin-right: 20px; } .progress.vertical.bottom { position: relative; } .progress.vertical .progress-bar { height: 0; width: 100%; transition: height 3s ease; -o-transition: height 3s ease; -ms-transition: height 3s ease; -moz-transition: height 3s ease; -webkit-transition: height 3s ease; } .progress.vertical.bottom .progress-bar { bottom: 0; position: absolute; } .stars-existing { color: #72c02c; cursor: pointer; } .star-lg { font-size: 30px; } .star-sm { font-size: 25px; } .star-xs { font-size: 20px; } .star-default { font-size: 16px; } /*Images*/ img.img-bordered { padding: 3px; border: solid 1px #eee; } img.img-circle { border-radius: 50% !important; } img.image-sm { width: 50px; height: 50px; } img.image-md { width: 100px; height: 100px; } /*Responsive Video*/ .responsive-video { height: 0; padding-top: 1px; position: relative; padding-bottom: 56.25%; /*16:9*/ } .responsive-video iframe { top: 0; left: 0; width: 100%; height: 100%; position: absolute; } .tags-v1 li { margin: 0; padding: 0; } .tags-v1 li a { font-size: 13px; padding: 4px 8px; line-height: 32px; border: solid 2px #eee; border-radius: 20px !important; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .tags-v1 li a:hover { text-decoration: none; border-color: #e0e0e0; } .tags-v2 li { padding: 7px 0 7px 4px; } .tags-v2 li a { color: #555; font-size: 13px; padding: 5px 10px; border: solid 1px #bbb; } .tags-v2 li a:hover { color: #fff; background: #555; border-color: #555; text-decoration: none; -webkit-transition: all 0.2s ease-in-out; -moz-transition: all 0.2s ease-in-out; -o-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; } .list-row { padding: 0; margin-bottom: 0; list-style: none; } /*Lists v1*/ .lists-v1 li { margin-bottom: 10px; } .lists-v1 i { color: #fff; width: 15px; height: 15px; padding: 1px; font-size: 13px; margin-right: 7px; text-align: center; background: #72c02c; display: inline-block; border-radius: 50% !important; } /*Lists v2*/ .lists-v2 li { margin-bottom: 10px; } .lists-v2 i { color: #72c02c; font-size: 13px; margin-right: 7px; display: inline-block; } /*Remove the Gutter Padding from Columns*/ .no-gutter > [class*='col-'] { padding-right: 0; padding-left: 0; } .no-gutter.no-gutter-boxed { padding-right: 15px; padding-left: 15px; } .height-100 { min-height: 100px;} .height-150 { min-height: 150px;} .height-200 { min-height: 200px;} .height-250 { min-height: 250px;} .height-300 { min-height: 300px;} .height-350 { min-height: 350px;} .height-400 { min-height: 400px;} .height-450 { min-height: 450px;} .height-500 { min-height: 500px !important;} .no-padding { padding: 0 !important; } .no-margin { margin: 0; } .no-top-space { margin-top: 0 !important; padding-top: 0 !important; } .no-bottom-space { margin-bottom: 0 !important; padding-bottom: 0 !important; } .no-margin-bottom { margin-bottom: 0 !important; } .no-padding-bottom { padding-bottom: 0 !important; } .content-xs { padding-top: 20px; padding-bottom: 20px; } .content { padding-top: 40px; padding-bottom: 40px; } .content-sm { padding-top: 60px; padding-bottom: 60px; } .content-md { padding-top: 80px; padding-bottom: 80px; } .content-lg { padding-top: 100px; padding-bottom: 100px; } .space-lg-hor { padding-left: 60px; padding-right: 60px; } .space-xlg-hor { padding-left: 100px; padding-right: 100px; } .margin-bottom-5, .margin-bottom-10, .margin-bottom-15, .margin-bottom-20, .margin-bottom-25, .margin-bottom-30, .margin-bottom-35, .margin-bottom-40, .margin-bottom-45, .margin-bottom-50, .margin-bottom-55, .margin-bottom-60 { clear:both; } .margin-bottom-5 { margin-bottom:5px;} .margin-bottom-10 { margin-bottom:10px;} .margin-bottom-15 { margin-bottom:15px;} .margin-bottom-20 { margin-bottom:20px;} .margin-bottom-25 { margin-bottom:25px;} .margin-bottom-30 { margin-bottom:30px;} .margin-bottom-35 { margin-bottom:35px;} .margin-bottom-40 { margin-bottom:40px;} .margin-bottom-45 { margin-bottom:45px;} .margin-bottom-50 { margin-bottom:50px;} .margin-bottom-55 { margin-bottom:55px;} .margin-bottom-60 { margin-bottom:60px;} @media (max-width: 768px) { .sm-margin-bottom-10 { margin-bottom: 10px; } .sm-margin-bottom-20 { margin-bottom: 20px; } .sm-margin-bottom-30 { margin-bottom: 30px; } .sm-margin-bottom-40 { margin-bottom: 40px; } .sm-margin-bottom-50 { margin-bottom: 50px; } .sm-margin-bottom-60 { margin-bottom: 60px; } } @media (max-width: 992px) { .md-margin-bottom-10 { margin-bottom: 10px; } .md-margin-bottom-20 { margin-bottom: 20px; } .md-margin-bottom-30 { margin-bottom: 30px; } .md-margin-bottom-40 { margin-bottom: 40px; } .md-margin-bottom-50 { margin-bottom: 50px; } .md-margin-bottom-60 { margin-bottom: 60px; } } /*Other Spaces*/ .margin-top-20 { margin-top: 20px;} .margin-left-5 { margin-left: 5px;} .margin-left-10 { margin-left: 10px;} .margin-right-5 { margin-right: 5px;} .margin-right-10 { margin-right: 10px;} .padding-top-5 { padding-top: 5px;} .padding-left-5 { padding-left: 5px;} .color-sea { color: #1abc9c;} .color-red { color: #e74c3c;} .color-aqua { color: #27d7e7;} .color-blue { color: #3498db;} .color-grey { color: #95a5a6;} .color-dark { color: #555555;} .color-green { color: #72c02c;} .color-brown { color: #9c8061;} .color-light { color: #ffffff;} .color-orange { color: #e67e22;} .color-yellow { color: #f1c40f;} .color-green1 { color: #2ecc71;} .color-purple { color: #9b6bcc;} .color-inherit { color: inherit;} .color-dark-blue { color: #4765a0;} .color-light-grey { color: #585f69;} .color-light-green { color: #79d5b3;} .bg-color-dark, .bg-color-sea, .bg-color-red, .bg-color-aqua, .bg-color-blue, .bg-color-grey, .bg-color-light, .bg-color-green, .bg-color-brown, .bg-color-orange, .bg-color-green1, .bg-color-purple, .bg-color-dark-blue, .bg-color-light-grey, .<API key> { color: #fff; } .bg-color-white { color: #555; } .bg-color-dark { background-color: #555 !important;} .bg-color-white { background-color: #fff !important;} .bg-color-sea { background-color: #1abc9c !important;} .bg-color-red { background-color: #e74c3c !important;} .bg-color-aqua { background-color: #27d7e7 !important;} .bg-color-blue { background-color: #3498db !important;} .bg-color-grey { background-color: #95a5a6 !important;} .bg-color-light { background-color: #f7f7f7 !important;} .bg-color-green { background-color: #72c02c !important;} .bg-color-brown { background-color: #9c8061 !important;} .bg-color-orange { background-color: #e67e22 !important;} .bg-color-green1 { background-color: #2ecc71 !important;} .bg-color-purple { background-color: #9b6bcc !important;} .bg-color-dark-blue { background-color: #4765a0 !important;} .bg-color-light-grey { background-color: #585f69 !important;} .<API key> { background-color: #79d5b3 !important;} .rgba-red { background-color: rgba(231,76,60,0.8);} .rgba-blue{ background-color: rgba(52,152,219,0.8);} .rgba-aqua { background-color: rgba(39,215,231,0.8);} .rgba-yellow { background-color: rgba(241,196,15,0.8);} .rgba-default { background-color: rgba(114,192,44,0.8);} .rgba-purple { background-color: rgba(155,107,204,0.8);} /*Grey Backroud*/ .bg-grey { background: #f7f7f7; border-top: solid 1px #eee; border-bottom: solid 1px #eee; } .no-rounded { border-radius: 0 !important;} .rounded { border-radius: 4px !important;} .rounded-x { border-radius: 50% !important;} .rounded-2x { border-radius: 10px !important;} .rounded-3x { border-radius: 15px !important;} .rounded-4x { border-radius: 20px !important;} .rounded-sm { border-radius: 2px !important;} .rounded-md { border-radius: 3px !important;} .rounded-top { border-radius: 4px 4px 0 0 !important;} .rounded-left { border-radius: 4px 0 0 4px !important;} .rounded-right { border-radius: 0 4px 4px 0 !important;} .rounded-bottom { border-radius: 0 0 4px 4px !important;} .overflow-h { overflow: hidden;} .overflow-a { overflow: auto;} .overflow-hidden { overflow: hidden;} .clear-both { clear: both;} /*Display*/ .dp-none { display: none;} .dp-block { display: block;} .dp-table { display: table;} .dp-inline-block { display: inline-block;} .dp-table-cell { display: table-cell; vertical-align: middle; } /*Full Width*/ .full-width { width: 100%; } /*Equal Height Columns*/ @media (max-width: 767px) { .equal-height-column { height: auto !important; } } /*Image Classes*/ .img-width-200 { width:200px;} .lft-img-margin { margin:0 20px 5px 0;} .rgt-img-margin { margin:0 0 5px 10px;} img.img-center, .img-center img { margin-left: auto; margin-right: auto; } /*Background Light*/ .bg-light { padding: 10px 15px; margin-bottom: 10px; background: #fcfcfc; border: solid 1px #e5e5e5; } .bg-light:hover { border: solid 1px #bbb; } /*CSS3 Hover Effects*/ .hover-effect { -webkit-transition: all 0.4s ease-in-out; -moz-transition: all 0.4s ease-in-out; -o-transition: all 0.4s ease-in-out; transition: all 0.4s ease-in-out; } .<API key> { left:10px; margin-left:-10px; position:relative; -webkit-transition: all 0.8s ease-in-out; -moz-transition: all 0.8s ease-in-out; -o-transition: all 0.8s ease-in-out; -ms-transition: all 0.8s ease-in-out; transition: all 0.8s ease-in-out; } .<API key>:hover { -webkit-transform: scale(2) rotate(5deg); -moz-transform: scale(2) rotate(5deg); -o-transform: scale(2) rotate(5deg); -ms-transform: scale(2) rotate(5deg); transform: scale(2) rotate(5deg); }
# Installation > `npm install --save @types/marked` # Summary This package contains type definitions for Marked (https://github.com/chjj/marked). # Details Files were exported from https: Additional Details * Last updated: Mon, 19 Sep 2016 17:28:59 GMT * File structure: Mixed * Library Dependencies: none * Module Dependencies: none * Global values: marked # Credits These definitions were written by William Orr <https://github.com/worr>.
package play.test; import org.junit.After; import org.junit.Before; /** * Provides a server and browser to JUnit tests */ public class WithBrowser extends WithServer { protected TestBrowser browser; /** * Override this if you want to use a different browser * * @return a new test browser */ protected TestBrowser provideBrowser(int port) { return Helpers.testBrowser(port); } @Override protected void start(FakeApplication fakeApplication, int port) { super.start(fakeApplication, port); browser = provideBrowser(port); } @After public void quitBrowser() { if (browser != null) { browser.quit(); browser = null; } } }
.yui3-cssfonts body,.yui3-cssfonts{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small}.yui3-cssfonts select,.yui3-cssfonts input,.yui3-cssfonts button,.yui3-cssfonts textarea{font:99% arial,helvetica,clean,sans-serif}.yui3-cssfonts table{font-size:inherit;font:100%}.yui3-cssfonts pre,.yui3-cssfonts code,.yui3-cssfonts kbd,.yui3-cssfonts samp,.yui3-cssfonts tt{font-family:monospace;*font-size:108%;line-height:100%}#yui3-css-stamp.cssfonts-context{display:none}
using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Umbraco.Cms.Web.BackOffice.Security; namespace Umbraco.Cms.Web.BackOffice.Authorization { <summary> Ensures the resource cannot be accessed if <see cref="<API key>.HasDenyLocalLogin"/> returns true. </summary> public class <API key> : <API key><API key><<API key>> { private readonly <API key> _externalLogins; <summary> Initializes a new instance of the <see cref="<API key>"/> class. </summary> <param name="externalLogins">Provides access to <see cref="<API key>" /> instances.</param> public <API key>(<API key> externalLogins) => _externalLogins = externalLogins; <inheritdoc/> protected override Task<bool> IsAuthorized(<API key> context, <API key> requirement) => Task.FromResult(!_externalLogins.HasDenyLocalLogin()); } }
#ifndef <API key> #define <API key> #include <stdint.h> #include "webrtc/base/stringencode.h" // Define platform specific window types. #if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) typedef unsigned long Window; // Avoid include <X11/Xlib.h>. #elif defined(WEBRTC_WIN) // We commonly include win32.h in webrtc/base so just include it here. #include "webrtc/base/win32.h" // Include HWND, HMONITOR. #elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) typedef unsigned int CGWindowID; typedef unsigned int CGDirectDisplayID; #endif namespace rtc { class WindowId { public: // Define WindowT for each platform. #if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) typedef Window WindowT; #elif defined(WEBRTC_WIN) typedef HWND WindowT; #elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) typedef CGWindowID WindowT; #else typedef unsigned int WindowT; #endif static WindowId Cast(uint64_t id) { #if defined(WEBRTC_WIN) return WindowId(reinterpret_cast<WindowId::WindowT>(id)); #else return WindowId(static_cast<WindowId::WindowT>(id)); #endif } static uint64_t Format(const WindowT& id) { #if defined(WEBRTC_WIN) return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(id)); #else return static_cast<uint64_t>(id); #endif } WindowId() : id_(0) {} WindowId(const WindowT& id) : id_(id) {} // NOLINT const WindowT& id() const { return id_; } bool IsValid() const { return id_ != 0; } bool Equals(const WindowId& other) const { return id_ == other.id(); } private: WindowT id_; }; class DesktopId { public: // Define DesktopT for each platform. #if defined(WEBRTC_LINUX) && !defined(WEBRTC_ANDROID) typedef Window DesktopT; #elif defined(WEBRTC_WIN) typedef HMONITOR DesktopT; #elif defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) typedef CGDirectDisplayID DesktopT; #else typedef unsigned int DesktopT; #endif static DesktopId Cast(int id, int index) { #if defined(WEBRTC_WIN) return DesktopId(reinterpret_cast<DesktopId::DesktopT>(id), index); #else return DesktopId(static_cast<DesktopId::DesktopT>(id), index); #endif } DesktopId() : id_(0), index_(-1) {} DesktopId(const DesktopT& id, int index) // NOLINT : id_(id), index_(index) { } const DesktopT& id() const { return id_; } int index() const { return index_; } bool IsValid() const { return index_ != -1; } bool Equals(const DesktopId& other) const { return id_ == other.id() && index_ == other.index(); } private: // Id is the platform specific desktop identifier. DesktopT id_; // Index is the desktop index as enumerated by each platform. // Desktop capturer typically takes the index instead of id. int index_; }; // Window event types. enum WindowEvent { WE_RESIZE = 0, WE_CLOSE = 1, WE_MINIMIZE = 2, WE_RESTORE = 3, }; inline std::string ToString(const WindowId& window) { return ToString(window.id()); } } // namespace rtc #endif // <API key>
<!DOCTYPE html> <html> <head> <title>404 | Flatty - Flat Administration Template</title> <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'> <meta content='text/html;charset=utf-8' http-equiv='content-type'> <meta content='Flat administration template for Twitter Bootstrap. Twitter Bootstrap 3 template with Ruby on Rails support.' name='description'> <link href='assets/images/meta_icons/favicon.ico' rel='shortcut icon' type='image/x-icon'> <link href='assets/images/meta_icons/apple-touch-icon.png' rel='<API key>'> <link href='assets/images/meta_icons/<API key>.png' rel='<API key>' sizes='57x57'> <link href='assets/images/meta_icons/<API key>.png' rel='<API key>' sizes='72x72'> <link href='assets/images/meta_icons/<API key>.png' rel='<API key>' sizes='114x114'> <link href='assets/images/meta_icons/<API key>.png' rel='<API key>' sizes='144x144'> <!-- / START - page related stylesheets [optional] --> <!-- / END - page related stylesheets [optional] --> <!-- / bootstrap [required] --> <link href="assets/stylesheets/bootstrap/bootstrap.css" media="all" rel="stylesheet" type="text/css" /> <!-- / theme file [required] --> <link href="assets/stylesheets/light-theme.css" media="all" id="<API key>" rel="stylesheet" type="text/css" /> <!-- / coloring file [optional] (if you are going to use custom contrast color) --> <link href="assets/stylesheets/theme-colors.css" media="all" rel="stylesheet" type="text/css" /> <!-- / demo file [not required!] --> <link href="assets/stylesheets/demo.css" media="all" rel="stylesheet" type="text/css" /> <!--[if lt IE 9]> <script src="assets/javascripts/ie/html5shiv.js" type="text/javascript"></script> <script src="assets/javascripts/ie/respond.min.js" type="text/javascript"></script> <![endif] </head> <body class='contrast-red error contrast-background'> <div class='middle-container'> <div class='middle-row'> <div class='middle-wrapper'> <div class='<API key>'> <div class='container'> <div class='row'> <div class='col-sm-12'> <div class='text-center'> <i class='icon-question-sign'></i> 404 </div> </div> </div> </div> </div> <div class='error-container'> <div class='container'> <div class='row'> <div class='col-sm-4 col-sm-offset-4'> <h4 class='text-center title'>Ooops! We can't find what you're looking for.</h4> <p class='text-center'> <small>You can</small> </p> <form action='search_results.html' method='get'> <div class='form-group'> <div class='input-group controls-group'> <input value="" placeholder="Search..." class="form-control" name="q" type="text" /> <span class='input-group-btn'> <button class='btn' type='submit'> <i class='icon-search'></i> </button> </span> </div> </div> </form> <p class='text-center'> <small>or</small> </p> <div class='text-center'> <a class='btn btn-md btn-ablock' href='index.html'> <i class='icon-chevron-left'></i> Go back </a> </div> </div> </div> </div> </div> <div class='<API key>'> <div class='container'> <div class='row'> <div class='col-sm-12'> <div class='text-center'> <img width="121" height="31" alt="Flatty" src="assets/images/logo_lg.svg" /> </div> </div> </div> </div> </div> </div> </div> </div> <!-- / jquery [required] --> <script src="assets/javascripts/jquery/jquery.min.js" type="text/javascript"></script> <!-- / jquery mobile (for touch events) --> <script src="assets/javascripts/jquery/jquery.mobile.custom.min.js" type="text/javascript"></script> <!-- / jquery migrate (for compatibility with new jquery) [required] --> <script src="assets/javascripts/jquery/jquery-migrate.min.js" type="text/javascript"></script> <!-- / jquery ui --> <script src="assets/javascripts/jquery/jquery-ui.min.js" type="text/javascript"></script> <!-- / jQuery UI Touch Punch --> <script src="assets/javascripts/plugins/<API key>/jquery.ui.touch-punch.min.js" type="text/javascript"></script> <!-- / bootstrap [required] --> <script src="assets/javascripts/bootstrap/bootstrap.js" type="text/javascript"></script> <!-- / modernizr --> <script src="assets/javascripts/plugins/modernizr/modernizr.min.js" type="text/javascript"></script> <!-- / retina --> <script src="assets/javascripts/plugins/retina/retina.js" type="text/javascript"></script> <!-- / theme file [required] --> <script src="assets/javascripts/theme.js" type="text/javascript"></script> <!-- / demo file [not required!] --> <script src="assets/javascripts/demo.js" type="text/javascript"></script> <!-- / START - page related files and scripts [optional] --> <!-- / END - page related files and scripts [optional] --> </body> </html>
<?php get_header(); ?> <div class="col-md-9 single"> <div class="col-md-9 single-in"> <?php if (have_posts()) :?><?php while(have_posts()) : the_post(); ?> <?php $video = get_post_meta($post->ID, 'fullby_video', true ); if($video != '') {?> <div class="videoWrapper"> <div class='video-container'><iframe title='YouTube video player' width='400' height='275' src='http: </div> <?php } else if ( has_post_thumbnail() ) { ?> <?php the_post_thumbnail('single', array('class' => 'sing-cop')); ?> <?php } else { ?> <div class="row spacer-sing"> </div> <?php } ?> <div class="sing-tit-cont"> <h2 class="cat"> <?php the_category(','); ?></h2> <h1 class="sing-tit"><?php the_title(); ?></h1> <p class="meta"> <i class="fa fa-clock-o"></i> <?php the_time('d/m/Y') ?> &nbsp; <span class="post-view"> <i class="fa fa-eye"></i> <?php echo get_post_meta( get_the_ID(), '<API key>', true ); ?> lượt xem</span> <?php $video = get_post_meta($post->ID, 'fullby_video', true ); if($video != '') { ?> <i class="fa fa-video-camera"></i> Video <?php } else if (strpos($post->post_content,'[gallery') !== false) { ?> <i class="fa fa-th"></i> Gallery <?php } else {?> <?php } ?> </p> </div> <div class="sing-cont"> <div class="sing-spacer"> <?php the_content('Leggi...');?> <?php $page_data = get_page_by_path('<API key>'); function <API key>( $hook = '' ) { global $wp_filter; if( empty( $hook ) || !isset( $wp_filter[$hook] ) ) return; foreach ($wp_filter[$hook] as $key_filter) { foreach ($key_filter as $key => $value) { if (strpos($key,'filter') !== false) { remove_filter( 'the_content', $key ); } } } } <API key>( 'the_content' ); echo apply_filters('the_content', $page_data->post_content); ?> <?php wp_link_pages('pagelink=Page %'); ?> <p> <?php $post_tags = wp_get_post_tags($post->ID); if(!empty($post_tags)) {?> <span class="tag"> <i class="fa fa-tag"></i> <?php the_tags('', ', ', ''); ?> </span> <?php } ?> </p> <hr /> <div id="comments" class="hide"> <?php //comments_template(); ?> </div> </div> </div> <?php endwhile; ?> <?php else : ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> </div> <div class="col-md-3"> <div class="sec-sidebar"> <?php get_sidebar( 'secondary' ); ?> </div> </div> </div> <div class="col-md-3 sidebar"> <?php get_sidebar( 'primary' ); ?> </div> <?php get_footer(); ?>
#include <common.h> #include <asm/arch/pinmux.h> #include <asm/arch/power.h> #include <asm/arch/clock.h> #include <asm/arch/gpio.h> #include <asm/gpio.h> #include <asm/arch/cpu.h> #include <dm.h> #include <power/pmic.h> #include <power/regulator.h> #include <power/max77686_pmic.h> #include <errno.h> #include <mmc.h> #include <usb.h> #include <usb/dwc2_udc.h> #include <samsung/misc.h> #include "setup.h" <API key>; #ifdef CONFIG_BOARD_TYPES /* Odroid board types */ enum { ODROID_TYPE_U3, ODROID_TYPE_X2, ODROID_TYPES, }; void set_board_type(void) { /* Set GPA1 pin 1 to HI - enable XCL205 output */ writel(<API key>, XCL205_EN_GPIO_CON); writel(<API key>, XCL205_EN_GPIO_CON + 0x4); writel(<API key>, XCL205_EN_GPIO_CON + 0x8); writel(<API key>, XCL205_EN_GPIO_CON + 0xc); /* Set GPC1 pin 2 to IN - check XCL205 output state */ writel(<API key>, <API key>); writel(<API key>, <API key> + 0x8); /* XCL205 - needs some latch time */ sdelay(200000); /* Check GPC1 pin2 - LED supplied by XCL205 - X2 only */ if (readl(<API key>) & (1 << <API key>)) gd->board_type = ODROID_TYPE_X2; else gd->board_type = ODROID_TYPE_U3; } const char *get_board_type(void) { const char *board_type[] = {"u3", "x2"}; return board_type[gd->board_type]; } #endif #ifdef <API key> char *get_dfu_alt_system(char *interface, char *devstr) { return env_get("dfu_alt_system"); } char *get_dfu_alt_boot(char *interface, char *devstr) { struct mmc *mmc; char *alt_boot; int dev_num; dev_num = simple_strtoul(devstr, NULL, 10); mmc = find_mmc_device(dev_num); if (!mmc) return NULL; if (mmc_init(mmc)) return NULL; alt_boot = IS_SD(mmc) ? <API key> : <API key>; return alt_boot; } #endif static void board_clock_init(void) { unsigned int set, clr, clr_src_cpu, clr_pll_con0, clr_src_dmc; struct exynos4x12_clock *clk = (struct exynos4x12_clock *) <API key>(); /* * CMU_CPU clocks src to MPLL * Bit values: 0 ; 1 * MUX_APLL_SEL: FIN_PLL ; FOUT_APLL * MUX_CORE_SEL: MOUT_APLL ; SCLK_MPLL * MUX_HPM_SEL: MOUT_APLL ; SCLK_MPLL_USER_C * MUX_MPLL_USER_SEL_C: FIN_PLL ; SCLK_MPLL */ clr_src_cpu = MUX_APLL_SEL(1) | MUX_CORE_SEL(1) | MUX_HPM_SEL(1) | MUX_MPLL_USER_SEL_C(1); set = MUX_APLL_SEL(0) | MUX_CORE_SEL(1) | MUX_HPM_SEL(1) | MUX_MPLL_USER_SEL_C(1); clrsetbits_le32(&clk->src_cpu, clr_src_cpu, set); /* Wait for mux change */ while (readl(&clk->mux_stat_cpu) & <API key>) continue; /* Set APLL to 1000MHz */ clr_pll_con0 = SDIV(7) | PDIV(63) | MDIV(1023) | FSEL(1); set = SDIV(0) | PDIV(3) | MDIV(125) | FSEL(1); clrsetbits_le32(&clk->apll_con0, clr_pll_con0, set); /* Wait for PLL to be locked */ while (!(readl(&clk->apll_con0) & PLL_LOCKED_BIT)) continue; /* Set CMU_CPU clocks src to APLL */ set = MUX_APLL_SEL(1) | MUX_CORE_SEL(0) | MUX_HPM_SEL(0) | MUX_MPLL_USER_SEL_C(1); clrsetbits_le32(&clk->src_cpu, clr_src_cpu, set); /* Wait for mux change */ while (readl(&clk->mux_stat_cpu) & <API key>) continue; set = CORE_RATIO(0) | COREM0_RATIO(2) | COREM1_RATIO(5) | PERIPH_RATIO(0) | ATB_RATIO(4) | PCLK_DBG_RATIO(1) | APLL_RATIO(0) | CORE2_RATIO(0); /* * Set dividers for MOUTcore = 1000 MHz * coreout = MOUT / (ratio + 1) = 1000 MHz (0) * corem0 = armclk / (ratio + 1) = 333 MHz (2) * corem1 = armclk / (ratio + 1) = 166 MHz (5) * periph = armclk / (ratio + 1) = 1000 MHz (0) * atbout = MOUT / (ratio + 1) = 200 MHz (4) * pclkdbgout = atbout / (ratio + 1) = 100 MHz (1) * sclkapll = MOUTapll / (ratio + 1) = 1000 MHz (0) * core2out = core_out / (ratio + 1) = 1000 MHz (0) (armclk) */ clr = CORE_RATIO(7) | COREM0_RATIO(7) | COREM1_RATIO(7) | PERIPH_RATIO(7) | ATB_RATIO(7) | PCLK_DBG_RATIO(7) | APLL_RATIO(7) | CORE2_RATIO(7); clrsetbits_le32(&clk->div_cpu0, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_cpu0) & <API key>) continue; /* * For MOUThpm = 1000 MHz (MOUTapll) * doutcopy = MOUThpm / (ratio + 1) = 200 (4) * sclkhpm = doutcopy / (ratio + 1) = 200 (4) * cores_out = armclk / (ratio + 1) = 200 (4) */ clr = COPY_RATIO(7) | HPM_RATIO(7) | CORES_RATIO(7); set = COPY_RATIO(4) | HPM_RATIO(4) | CORES_RATIO(4); clrsetbits_le32(&clk->div_cpu1, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_cpu1) & <API key>) continue; /* * Set CMU_DMC clocks src to APLL * Bit values: 0 ; 1 * MUX_C2C_SEL: SCLKMPLL ; SCLKAPLL * MUX_DMC_BUS_SEL: SCLKMPLL ; SCLKAPLL * MUX_DPHY_SEL: SCLKMPLL ; SCLKAPLL * MUX_MPLL_SEL: FINPLL ; MOUT_MPLL_FOUT * MUX_PWI_SEL: 0110 (MPLL); 0111 (EPLL); 1000 (VPLL); 0(XXTI) * MUX_G2D_ACP0_SEL: SCLKMPLL ; SCLKAPLL * MUX_G2D_ACP1_SEL: SCLKEPLL ; SCLKVPLL * MUX_G2D_ACP_SEL: OUT_ACP0 ; OUT_ACP1 */ clr_src_dmc = MUX_C2C_SEL(1) | MUX_DMC_BUS_SEL(1) | MUX_DPHY_SEL(1) | MUX_MPLL_SEL(1) | MUX_PWI_SEL(15) | MUX_G2D_ACP0_SEL(1) | MUX_G2D_ACP1_SEL(1) | MUX_G2D_ACP_SEL(1); set = MUX_C2C_SEL(1) | MUX_DMC_BUS_SEL(1) | MUX_DPHY_SEL(1) | MUX_MPLL_SEL(0) | MUX_PWI_SEL(0) | MUX_G2D_ACP0_SEL(1) | MUX_G2D_ACP1_SEL(1) | MUX_G2D_ACP_SEL(1); clrsetbits_le32(&clk->src_dmc, clr_src_dmc, set); /* Wait for mux change */ while (readl(&clk->mux_stat_dmc) & <API key>) continue; /* Set MPLL to 800MHz */ set = SDIV(0) | PDIV(3) | MDIV(100) | FSEL(0) | PLL_ENABLE(1); clrsetbits_le32(&clk->mpll_con0, clr_pll_con0, set); /* Wait for PLL to be locked */ while (!(readl(&clk->mpll_con0) & PLL_LOCKED_BIT)) continue; /* Switch back CMU_DMC mux */ set = MUX_C2C_SEL(0) | MUX_DMC_BUS_SEL(0) | MUX_DPHY_SEL(0) | MUX_MPLL_SEL(1) | MUX_PWI_SEL(8) | MUX_G2D_ACP0_SEL(0) | MUX_G2D_ACP1_SEL(0) | MUX_G2D_ACP_SEL(0); clrsetbits_le32(&clk->src_dmc, clr_src_dmc, set); /* Wait for mux change */ while (readl(&clk->mux_stat_dmc) & <API key>) continue; /* CLK_DIV_DMC0 */ clr = ACP_RATIO(7) | ACP_PCLK_RATIO(7) | DPHY_RATIO(7) | DMC_RATIO(7) | DMCD_RATIO(7) | DMCP_RATIO(7); /* * For: * MOUTdmc = 800 MHz * MOUTdphy = 800 MHz * * aclk_acp = MOUTdmc / (ratio + 1) = 200 (3) * pclk_acp = aclk_acp / (ratio + 1) = 100 (1) * sclk_dphy = MOUTdphy / (ratio + 1) = 400 (1) * sclk_dmc = MOUTdmc / (ratio + 1) = 400 (1) * aclk_dmcd = sclk_dmc / (ratio + 1) = 200 (1) * aclk_dmcp = aclk_dmcd / (ratio + 1) = 100 (1) */ set = ACP_RATIO(3) | ACP_PCLK_RATIO(1) | DPHY_RATIO(1) | DMC_RATIO(1) | DMCD_RATIO(1) | DMCP_RATIO(1); clrsetbits_le32(&clk->div_dmc0, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_dmc0) & <API key>) continue; /* CLK_DIV_DMC1 */ clr = G2D_ACP_RATIO(15) | C2C_RATIO(7) | PWI_RATIO(15) | C2C_ACLK_RATIO(7) | DVSEM_RATIO(127) | DPM_RATIO(127); /* * For: * MOUTg2d = 800 MHz * MOUTc2c = 800 Mhz * MOUTpwi = 108 MHz * * sclk_g2d_acp = MOUTg2d / (ratio + 1) = 200 (3) * sclk_c2c = MOUTc2c / (ratio + 1) = 400 (1) * aclk_c2c = sclk_c2c / (ratio + 1) = 200 (1) * sclk_pwi = MOUTpwi / (ratio + 1) = 18 (5) */ set = G2D_ACP_RATIO(3) | C2C_RATIO(1) | PWI_RATIO(5) | C2C_ACLK_RATIO(1) | DVSEM_RATIO(1) | DPM_RATIO(1); clrsetbits_le32(&clk->div_dmc1, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_dmc1) & <API key>) continue; /* CLK_SRC_PERIL0 */ clr = UART0_SEL(15) | UART1_SEL(15) | UART2_SEL(15) | UART3_SEL(15) | UART4_SEL(15); /* * Set CLK_SRC_PERIL0 clocks src to MPLL * src values: 0(XXTI); 1(XusbXTI); 2(SCLK_HDMI24M); 3(SCLK_USBPHY0); * 5(SCLK_HDMIPHY); 6(SCLK_MPLL_USER_T); 7(SCLK_EPLL); * 8(SCLK_VPLL) * * Set all to SCLK_MPLL_USER_T */ set = UART0_SEL(6) | UART1_SEL(6) | UART2_SEL(6) | UART3_SEL(6) | UART4_SEL(6); clrsetbits_le32(&clk->src_peril0, clr, set); /* CLK_DIV_PERIL0 */ clr = UART0_RATIO(15) | UART1_RATIO(15) | UART2_RATIO(15) | UART3_RATIO(15) | UART4_RATIO(15); /* * For MOUTuart0-4: 800MHz * * SCLK_UARTx = MOUTuartX / (ratio + 1) = 100 (7) */ set = UART0_RATIO(7) | UART1_RATIO(7) | UART2_RATIO(7) | UART3_RATIO(7) | UART4_RATIO(7); clrsetbits_le32(&clk->div_peril0, clr, set); while (readl(&clk->div_stat_peril0) & <API key>) continue; /* CLK_DIV_FSYS1 */ clr = MMC0_RATIO(15) | MMC0_PRE_RATIO(255) | MMC1_RATIO(15) | MMC1_PRE_RATIO(255); /* * For MOUTmmc0-3 = 800 MHz (MPLL) * * DOUTmmc1 = MOUTmmc1 / (ratio + 1) = 100 (7) * sclk_mmc1 = DOUTmmc1 / (ratio + 1) = 50 (1) * DOUTmmc0 = MOUTmmc0 / (ratio + 1) = 100 (7) * sclk_mmc0 = DOUTmmc0 / (ratio + 1) = 50 (1) */ set = MMC0_RATIO(7) | MMC0_PRE_RATIO(1) | MMC1_RATIO(7) | MMC1_PRE_RATIO(1); clrsetbits_le32(&clk->div_fsys1, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_fsys1) & <API key>) continue; /* CLK_DIV_FSYS2 */ clr = MMC2_RATIO(15) | MMC2_PRE_RATIO(255) | MMC3_RATIO(15) | MMC3_PRE_RATIO(255); /* * For MOUTmmc0-3 = 800 MHz (MPLL) * * DOUTmmc3 = MOUTmmc3 / (ratio + 1) = 100 (7) * sclk_mmc3 = DOUTmmc3 / (ratio + 1) = 50 (1) * DOUTmmc2 = MOUTmmc2 / (ratio + 1) = 100 (7) * sclk_mmc2 = DOUTmmc2 / (ratio + 1) = 50 (1) */ set = MMC2_RATIO(7) | MMC2_PRE_RATIO(1) | MMC3_RATIO(7) | MMC3_PRE_RATIO(1); clrsetbits_le32(&clk->div_fsys2, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_fsys2) & <API key>) continue; /* CLK_DIV_FSYS3 */ clr = MMC4_RATIO(15) | MMC4_PRE_RATIO(255); /* * For MOUTmmc4 = 800 MHz (MPLL) * * DOUTmmc4 = MOUTmmc4 / (ratio + 1) = 100 (7) * sclk_mmc4 = DOUTmmc4 / (ratio + 1) = 100 (0) */ set = MMC4_RATIO(7) | MMC4_PRE_RATIO(0); clrsetbits_le32(&clk->div_fsys3, clr, set); /* Wait for divider ready status */ while (readl(&clk->div_stat_fsys3) & <API key>) continue; return; } static void board_gpio_init(void) { /* eMMC Reset Pin */ gpio_request(EXYNOS4X12_GPIO_K12, "eMMC Reset"); gpio_cfg_pin(EXYNOS4X12_GPIO_K12, S5P_GPIO_FUNC(0x1)); gpio_set_pull(EXYNOS4X12_GPIO_K12, S5P_GPIO_PULL_NONE); gpio_set_drv(EXYNOS4X12_GPIO_K12, S5P_GPIO_DRV_4X); /* Enable FAN (Odroid U3) */ gpio_request(EXYNOS4X12_GPIO_D00, "FAN Control"); gpio_set_pull(EXYNOS4X12_GPIO_D00, S5P_GPIO_PULL_UP); gpio_set_drv(EXYNOS4X12_GPIO_D00, S5P_GPIO_DRV_4X); <API key>(EXYNOS4X12_GPIO_D00, 1); /* OTG Vbus output (Odroid U3+) */ gpio_request(EXYNOS4X12_GPIO_L20, "OTG Vbus"); gpio_set_pull(EXYNOS4X12_GPIO_L20, S5P_GPIO_PULL_NONE); gpio_set_drv(EXYNOS4X12_GPIO_L20, S5P_GPIO_DRV_4X); <API key>(EXYNOS4X12_GPIO_L20, 0); /* OTG INT (Odroid U3+) */ gpio_request(EXYNOS4X12_GPIO_X31, "OTG INT"); gpio_set_pull(EXYNOS4X12_GPIO_X31, S5P_GPIO_PULL_UP); gpio_set_drv(EXYNOS4X12_GPIO_X31, S5P_GPIO_DRV_4X); <API key>(EXYNOS4X12_GPIO_X31); /* Blue LED (Odroid X2/U2/U3) */ gpio_request(EXYNOS4X12_GPIO_C10, "Blue LED"); <API key>(EXYNOS4X12_GPIO_C10, 0); #ifdef CONFIG_CMD_USB /* USB3503A Reference frequency */ gpio_request(EXYNOS4X12_GPIO_X30, "USB3503A RefFreq"); /* USB3503A Connect */ gpio_request(EXYNOS4X12_GPIO_X34, "USB3503A Connect"); /* USB3503A Reset */ gpio_request(EXYNOS4X12_GPIO_X35, "USB3503A Reset"); #endif } int exynos_early_init_f(void) { board_clock_init(); return 0; } int exynos_init(void) { board_gpio_init(); return 0; } int exynos_power_init(void) { const char *mmc_regulators[] = { "VDDQ_EMMC_1.8V", "VDDQ_EMMC_2.8V", "TFLASH_2.8V", NULL, }; if (<API key>(mmc_regulators, NULL, true)) pr_err("Unable to init all mmc regulators"); return 0; } #ifdef CONFIG_USB_GADGET static int s5pc210_phy_control(int on) { struct udevice *dev; int ret; ret = <API key>("VDD_UOTG_3.0V", &dev); if (ret) { pr_err("Regulator get error: %d", ret); return ret; } if (on) return regulator_set_mode(dev, OPMODE_ON); else return regulator_set_mode(dev, OPMODE_LPM); } struct dwc2_plat_otg_data s5pc210_otg_data = { .phy_control = s5pc210_phy_control, .regs_phy = <API key>, .regs_otg = <API key>, .usb_phy_ctrl = <API key>, .usb_flags = PHY0_SLEEP, }; #endif #if defined(CONFIG_USB_GADGET) || defined(CONFIG_CMD_USB) int board_usb_init(int index, enum usb_init_type init) { #ifdef CONFIG_CMD_USB struct udevice *dev; int ret; /* Set Ref freq 0 => 24MHz, 1 => 26MHz*/ /* Odroid Us have it at 24MHz, Odroid Xs at 26MHz */ if (gd->board_type == ODROID_TYPE_U3) <API key>(EXYNOS4X12_GPIO_X30, 0); else <API key>(EXYNOS4X12_GPIO_X30, 1); /* Disconnect, Reset, Connect */ <API key>(EXYNOS4X12_GPIO_X34, 0); <API key>(EXYNOS4X12_GPIO_X35, 0); <API key>(EXYNOS4X12_GPIO_X35, 1); <API key>(EXYNOS4X12_GPIO_X34, 1); /* Power off and on BUCK8 for LAN9730 */ debug("LAN9730 - Turning power buck 8 OFF and ON.\n"); ret = <API key>("VCC_P3V3_2.85V", &dev); if (ret) { pr_err("Regulator get error: %d", ret); return ret; } ret = <API key>(dev, true); if (ret) { pr_err("Regulator %s enable setting error: %d", dev->name, ret); return ret; } ret = regulator_set_value(dev, 750000); if (ret) { pr_err("Regulator %s value setting error: %d", dev->name, ret); return ret; } ret = regulator_set_value(dev, 3300000); if (ret) { pr_err("Regulator %s value setting error: %d", dev->name, ret); return ret; } #endif debug("USB_udc_probe\n"); return dwc2_udc_probe(&s5pc210_otg_data); } #endif
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Microsoft.Azure.Management.ApiManagement { using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Azure.OData; using Models; using System.Collections; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; <summary> <API key> operations. </summary> public partial interface <API key> { <summary> Lists all subscriptions of the API Management service instance. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='odataQuery'> OData parameters to apply to the operation. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.<API key>"> Thrown when unable to deserialize the response </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key><IPage<<API key>>>> <API key>(string resourceGroupName, string serviceName, ODataQuery<<API key>> odataQuery = default(ODataQuery<<API key>>), Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key><<API key>>> <API key>(string resourceGroupName, string serviceName, string sid, Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Gets the specified Subscription entity. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.<API key>"> Thrown when unable to deserialize the response </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key><<API key>,<API key>>> <API key>(string resourceGroupName, string serviceName, string sid, Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Creates or updates the subscription of specified user to the specified product. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='parameters'> Create parameters. </param> <param name='notify'> Notify change in Subscription State. - If false, do not send any email notification for change of state of subscription - If true, send email notification of change of state of subscription </param> <param name='ifMatch'> ETag of the Entity. Not required when creating an entity, but required when updating an entity. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.<API key>"> Thrown when unable to deserialize the response </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key><<API key>>> <API key>(string resourceGroupName, string serviceName, string sid, <API key> parameters, bool? notify = default(bool?), string ifMatch = default(string), Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Updates the details of a subscription specificied by its identifier. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='parameters'> Update parameters. </param> <param name='ifMatch'> ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. </param> <param name='notify'> Notify change in Subscription State. - If false, do not send any email notification for change of state of subscription - If true, send email notification of change of state of subscription </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key>> <API key>(string resourceGroupName, string serviceName, string sid, <API key> parameters, string ifMatch, bool? notify = default(bool?), Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Deletes the specified subscription. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='ifMatch'> ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key>> <API key>(string resourceGroupName, string serviceName, string sid, string ifMatch, Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Regenerates primary key of existing subscription of the API Management service instance. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key>> <API key>(string resourceGroupName, string serviceName, string sid, Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Regenerates secondary key of existing subscription of the API Management service instance. </summary> <param name='resourceGroupName'> The name of the resource group. </param> <param name='serviceName'> The name of the API Management service. </param> <param name='sid'> Subscription entity Identifier. The entity represents the association between a user and a product in API Management. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key>> <API key>(string resourceGroupName, string serviceName, string sid, Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); <summary> Lists all subscriptions of the API Management service instance. </summary> <param name='nextPageLink'> The NextLink from the previous successful call to List operation. </param> <param name='customHeaders'> The headers that will be added to request. </param> <param name='cancellationToken'> The cancellation token. </param> <exception cref="<API key>"> Thrown when the operation returned an invalid status code </exception> <exception cref="Microsoft.Rest.<API key>"> Thrown when unable to deserialize the response </exception> <exception cref="Microsoft.Rest.ValidationException"> Thrown when a required parameter is null </exception> Task<<API key><IPage<<API key>>>> <API key>(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, Cancellation<API key> = default(CancellationToken)); } }
class CreateScripts < ActiveRecord::Migration def change create_table :scripts do |t| t.string :file t.integer :jem_id t.timestamps end end end
# <API key>: true require "listen" module Jekyll module Watcher extend self # Public: Continuously watch for file changes and rebuild the site # whenever a change is detected. # If the optional site argument is populated, that site instance will be # reused and the options Hash ignored. Otherwise, a new site instance will # be instantiated from the options Hash and used. # options - A Hash containing the site configuration # site - The current site instance (populated starting with Jekyll 3.2) # (optional, default: nil) # Returns nothing. def watch(options, site = nil) ENV["<API key>"] ||= "1" if options["verbose"] site ||= Jekyll::Site.new(options) listener = build_listener(site, options) listener.start Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'" unless options["serving"] trap("INT") do listener.stop Jekyll.logger.info "", "Halting auto-regeneration." exit 0 end sleep_forever end rescue ThreadError # You pressed Ctrl-C, oh my! end private def build_listener(site, options) Listen.to( options["source"], :ignore => listen_ignore_paths(options), :force_polling => options["force_polling"], &listen_handler(site) ) end def listen_handler(site) proc do |modified, added, removed| t = Time.now c = modified + added + removed n = c.length Jekyll.logger.info "Regenerating:", "#{n} file(s) changed at #{t.strftime("%Y-%m-%d %H:%M:%S")}" c.each { |path| Jekyll.logger.info "", path["#{site.source}/".length..-1] } process(site, t) end end def normalize_encoding(obj, desired_encoding) case obj when Array obj.map { |entry| entry.encode!(desired_encoding, entry.encoding) } when String obj.encode!(desired_encoding, obj.encoding) end end def custom_excludes(options) Array(options["exclude"]).map { |e| Jekyll.sanitized_path(options["source"], e) } end def config_files(options) %w(yml yaml toml).map do |ext| Jekyll.sanitized_path(options["source"], "_config.#{ext}") end end def to_exclude(options) [ config_files(options), options["destination"], custom_excludes(options), ].flatten end # Paths to ignore for the watch option # options - A Hash of options passed to the command # Returns a list of relative paths from source that should be ignored def listen_ignore_paths(options) source = Pathname.new(options["source"]).expand_path paths = to_exclude(options) paths.map do |p| absolute_path = Pathname.new(normalize_encoding(p, options["source"].encoding)).expand_path next unless absolute_path.exist? begin relative_path = absolute_path.relative_path_from(source).to_s relative_path = File.join(relative_path, "") if absolute_path.directory? unless relative_path.start_with?("../") path_to_ignore = %r!^#{Regexp.escape(relative_path)}! Jekyll.logger.debug "Watcher:", "Ignoring #{path_to_ignore}" path_to_ignore end rescue ArgumentError # Could not find a relative path end end.compact + [%r!^\.jekyll\-metadata!] end def sleep_forever loop { sleep 1000 } end def process(site, time) begin site.process Jekyll.logger.info "", "...done in #{Time.now - time} seconds." rescue StandardError => e Jekyll.logger.warn "Error:", e.message Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information." end Jekyll.logger.info "" end end end
import { FrontSide, BackSide, DoubleSide, RGBAFormat, NearestFilter, PCFShadowMap, RGBADepthPacking, NoBlending } from '../../constants.js'; import { WebGLRenderTarget } from '../WebGLRenderTarget.js'; import { MeshDepthMaterial } from '../../materials/MeshDepthMaterial.js'; import { <API key> } from '../../materials/<API key>.js'; import { Vector4 } from '../../math/Vector4.js'; import { Vector3 } from '../../math/Vector3.js'; import { Vector2 } from '../../math/Vector2.js'; import { Matrix4 } from '../../math/Matrix4.js'; import { Frustum } from '../../math/Frustum.js'; function WebGLShadowMap( _renderer, _objects, maxTextureSize ) { var _frustum = new Frustum(), _projScreenMatrix = new Matrix4(), _shadowMapSize = new Vector2(), _maxShadowMapSize = new Vector2( maxTextureSize, maxTextureSize ), _lookTarget = new Vector3(), _lightPositionWorld = new Vector3(), _MorphingFlag = 1, _SkinningFlag = 2, <API key> = ( _MorphingFlag | _SkinningFlag ) + 1, _depthMaterials = new Array( <API key> ), _distanceMaterials = new Array( <API key> ), _materialCache = {}; var shadowSide = { 0: BackSide, 1: FrontSide, 2: DoubleSide }; var cubeDirections = [ new Vector3( 1, 0, 0 ), new Vector3( - 1, 0, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, - 1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, - 1, 0 ) ]; var cubeUps = [ new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, - 1 ) ]; var cube2DViewPorts = [ new Vector4(), new Vector4(), new Vector4(), new Vector4(), new Vector4(), new Vector4() ]; // init for ( var i = 0; i !== <API key>; ++ i ) { var useMorphing = ( i & _MorphingFlag ) !== 0; var useSkinning = ( i & _SkinningFlag ) !== 0; var depthMaterial = new MeshDepthMaterial( { depthPacking: RGBADepthPacking, morphTargets: useMorphing, skinning: useSkinning } ); _depthMaterials[ i ] = depthMaterial; var distanceMaterial = new <API key>( { morphTargets: useMorphing, skinning: useSkinning } ); _distanceMaterials[ i ] = distanceMaterial; } var scope = this; this.enabled = false; this.autoUpdate = true; this.needsUpdate = false; this.type = PCFShadowMap; this.render = function ( lights, scene, camera ) { if ( scope.enabled === false ) return; if ( scope.autoUpdate === false && scope.needsUpdate === false ) return; if ( lights.length === 0 ) return; var currentRenderTarget = _renderer.getRenderTarget(); var _state = _renderer.state; // Set GL state for depth map. _state.setBlending( NoBlending ); _state.buffers.color.setClear( 1, 1, 1, 1 ); _state.buffers.depth.setTest( true ); _state.setScissorTest( false ); // render depth map var faceCount; for ( var i = 0, il = lights.length; i < il; i ++ ) { var light = lights[ i ]; var shadow = light.shadow; var isPointLight = light && light.isPointLight; if ( shadow === undefined ) { console.warn( 'THREE.WebGLShadowMap:', light, 'has no shadow.' ); continue; } var shadowCamera = shadow.camera; _shadowMapSize.copy( shadow.mapSize ); _shadowMapSize.min( _maxShadowMapSize ); if ( isPointLight ) { var vpWidth = _shadowMapSize.x; var vpHeight = _shadowMapSize.y; // These viewports map a cube-map onto a 2D texture with the // following orientation: // xzXZ // y Y // X - Positive x direction // x - Negative x direction // Y - Positive y direction // y - Negative y direction // Z - Positive z direction // z - Negative z direction // positive X cube2DViewPorts[ 0 ].set( vpWidth * 2, vpHeight, vpWidth, vpHeight ); // negative X cube2DViewPorts[ 1 ].set( 0, vpHeight, vpWidth, vpHeight ); // positive Z cube2DViewPorts[ 2 ].set( vpWidth * 3, vpHeight, vpWidth, vpHeight ); // negative Z cube2DViewPorts[ 3 ].set( vpWidth, vpHeight, vpWidth, vpHeight ); // positive Y cube2DViewPorts[ 4 ].set( vpWidth * 3, 0, vpWidth, vpHeight ); // negative Y cube2DViewPorts[ 5 ].set( vpWidth, 0, vpWidth, vpHeight ); _shadowMapSize.x *= 4.0; _shadowMapSize.y *= 2.0; } if ( shadow.map === null ) { var pars = { minFilter: NearestFilter, magFilter: NearestFilter, format: RGBAFormat }; shadow.map = new WebGLRenderTarget( _shadowMapSize.x, _shadowMapSize.y, pars ); shadow.map.texture.name = light.name + ".shadowMap"; shadowCamera.<API key>(); } if ( shadow.isSpotLightShadow ) { shadow.update( light ); } var shadowMap = shadow.map; var shadowMatrix = shadow.matrix; _lightPositionWorld.<API key>( light.matrixWorld ); shadowCamera.position.copy( _lightPositionWorld ); if ( isPointLight ) { faceCount = 6; // for point lights we set the shadow matrix to be a translation-only matrix // equal to inverse of the light's position shadowMatrix.makeTranslation( - _lightPositionWorld.x, - _lightPositionWorld.y, - _lightPositionWorld.z ); } else { faceCount = 1; _lookTarget.<API key>( light.target.matrixWorld ); shadowCamera.lookAt( _lookTarget ); shadowCamera.updateMatrixWorld(); // compute shadow matrix shadowMatrix.set( 0.5, 0.0, 0.0, 0.5, 0.0, 0.5, 0.0, 0.5, 0.0, 0.0, 0.5, 0.5, 0.0, 0.0, 0.0, 1.0 ); shadowMatrix.multiply( shadowCamera.projectionMatrix ); shadowMatrix.multiply( shadowCamera.matrixWorldInverse ); } _renderer.setRenderTarget( shadowMap ); _renderer.clear(); // render shadow map for each cube face (if omni-directional) or // run a single pass if not for ( var face = 0; face < faceCount; face ++ ) { if ( isPointLight ) { _lookTarget.copy( shadowCamera.position ); _lookTarget.add( cubeDirections[ face ] ); shadowCamera.up.copy( cubeUps[ face ] ); shadowCamera.lookAt( _lookTarget ); shadowCamera.updateMatrixWorld(); var vpDimensions = cube2DViewPorts[ face ]; _state.viewport( vpDimensions ); } // update camera matrices and frustum _projScreenMatrix.multiplyMatrices( shadowCamera.projectionMatrix, shadowCamera.matrixWorldInverse ); _frustum.setFromMatrix( _projScreenMatrix ); // set object matrices & frustum culling renderObject( scene, camera, shadowCamera, isPointLight ); } } scope.needsUpdate = false; _renderer.setRenderTarget( currentRenderTarget ); }; function getDepthMaterial( object, material, isPointLight, lightPositionWorld, shadowCameraNear, shadowCameraFar ) { var geometry = object.geometry; var result = null; var materialVariants = _depthMaterials; var customMaterial = object.customDepthMaterial; if ( isPointLight ) { materialVariants = _distanceMaterials; customMaterial = object.<API key>; } if ( ! customMaterial ) { var useMorphing = false; if ( material.morphTargets ) { if ( geometry && geometry.isBufferGeometry ) { useMorphing = geometry.morphAttributes && geometry.morphAttributes.position && geometry.morphAttributes.position.length > 0; } else if ( geometry && geometry.isGeometry ) { useMorphing = geometry.morphTargets && geometry.morphTargets.length > 0; } } if ( object.isSkinnedMesh && material.skinning === false ) { console.warn( 'THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:', object ); } var useSkinning = object.isSkinnedMesh && material.skinning; var variantIndex = 0; if ( useMorphing ) variantIndex |= _MorphingFlag; if ( useSkinning ) variantIndex |= _SkinningFlag; result = materialVariants[ variantIndex ]; } else { result = customMaterial; } if ( _renderer.<API key> && material.clipShadows === true && material.clippingPlanes.length !== 0 ) { // in this case we need a unique material instance reflecting the // appropriate state var keyA = result.uuid, keyB = material.uuid; var materialsForVariant = _materialCache[ keyA ]; if ( materialsForVariant === undefined ) { materialsForVariant = {}; _materialCache[ keyA ] = materialsForVariant; } var cachedMaterial = materialsForVariant[ keyB ]; if ( cachedMaterial === undefined ) { cachedMaterial = result.clone(); materialsForVariant[ keyB ] = cachedMaterial; } result = cachedMaterial; } result.visible = material.visible; result.wireframe = material.wireframe; result.side = ( material.shadowSide != null ) ? material.shadowSide : shadowSide[ material.side ]; result.clipShadows = material.clipShadows; result.clippingPlanes = material.clippingPlanes; result.clipIntersection = material.clipIntersection; result.wireframeLinewidth = material.wireframeLinewidth; result.linewidth = material.linewidth; if ( isPointLight && result.<API key> ) { result.referencePosition.copy( lightPositionWorld ); result.nearDistance = shadowCameraNear; result.farDistance = shadowCameraFar; } return result; } function renderObject( object, camera, shadowCamera, isPointLight ) { if ( object.visible === false ) return; var visible = object.layers.test( camera.layers ); if ( visible && ( object.isMesh || object.isLine || object.isPoints ) ) { if ( object.castShadow && ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) ) { object.modelViewMatrix.multiplyMatrices( shadowCamera.matrixWorldInverse, object.matrixWorld ); var geometry = _objects.update( object ); var material = object.material; if ( Array.isArray( material ) ) { var groups = geometry.groups; for ( var k = 0, kl = groups.length; k < kl; k ++ ) { var group = groups[ k ]; var groupMaterial = material[ group.materialIndex ]; if ( groupMaterial && groupMaterial.visible ) { var depthMaterial = getDepthMaterial( object, groupMaterial, isPointLight, _lightPositionWorld, shadowCamera.near, shadowCamera.far ); _renderer.renderBufferDirect( shadowCamera, null, geometry, depthMaterial, object, group ); } } } else if ( material.visible ) { var depthMaterial = getDepthMaterial( object, material, isPointLight, _lightPositionWorld, shadowCamera.near, shadowCamera.far ); _renderer.renderBufferDirect( shadowCamera, null, geometry, depthMaterial, object, null ); } } } var children = object.children; for ( var i = 0, l = children.length; i < l; i ++ ) { renderObject( children[ i ], camera, shadowCamera, isPointLight ); } } } export { WebGLShadowMap };
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading; using NUnit.Framework; using Umbraco.Cms.Core; using Umbraco.Cms.Core.Events; using Umbraco.Cms.Core.Models; using Umbraco.Cms.Core.Scoping; using Umbraco.Cms.Core.Services; using Umbraco.Cms.Core.Services.Implement; using Umbraco.Cms.Tests.Common.Builders; using Umbraco.Cms.Tests.Common.Testing; using Umbraco.Cms.Tests.Integration.Testing; namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest, <API key> = true)] public class MediaServiceTests : <API key> { private IMediaService MediaService => GetRequiredService<IMediaService>(); private IMediaTypeService MediaTypeService => GetRequiredService<IMediaTypeService>(); [Test] public void <API key>() { IMediaType mediaType = MediaTypeBuilder.<API key>("test", "Test"); MediaTypeService.Save(mediaType); IMedia media = MediaBuilder.CreateSimpleMedia(mediaType, "hello", -1); media.SetValue("title", "title of mine"); media.SetValue("bodyText", "hello world"); MediaService.Save(media); // re-get media = MediaService.GetById(media.Id); media.SetValue("title", "another title of mine"); // Change a value media.SetValue("bodyText", null); // Clear a value media.SetValue("author", "new author"); // Add a value MediaService.Save(media); // re-get media = MediaService.GetById(media.Id); Assert.AreEqual("another title of mine", media.GetValue("title")); Assert.IsNull(media.GetValue("bodyText")); Assert.AreEqual("new author", media.GetValue("author")); } <summary> Used to list out all ambiguous events that will require dispatching with a name </summary> [Test] [Explicit] public void <API key>() { EventInfo[] events = MediaService.GetType().GetEvents(BindingFlags.Static | BindingFlags.Public); Type typedEventHandler = typeof(TypedEventHandler<,>); foreach (EventInfo e in events) { // only continue if this is a TypedEventHandler if (!e.EventHandlerType.IsGenericType) { continue; } Type typeDef = e.EventHandlerType.<API key>(); if (typedEventHandler != typeDef) { continue; } // get the event arg type Type eventArgType = e.EventHandlerType.<API key>[1]; Attempt<<API key>> found = EventNameExtractor.FindEvent(typeof(MediaService), eventArgType, EventNameExtractor.MatchIngNames); if (!found.Success && found.Result.Error == <API key>.Ambiguous) { Console.WriteLine($"Ambiguous event, source: {typeof(MediaService)}, args: {eventArgType}"); } } } [Test] public void <API key>() { MediaType mediaType1 = MediaTypeBuilder.<API key>("Image2"); MediaTypeService.Save(mediaType1); MediaType mediaType2 = MediaTypeBuilder.<API key>("Image3"); MediaTypeService.Save(mediaType2); for (int i = 0; i < 10; i++) { Media m1 = MediaBuilder.CreateMediaImage(mediaType1, -1); MediaService.Save(m1); Media m2 = MediaBuilder.CreateMediaImage(mediaType2, -1); MediaService.Save(m2); } IScopeProvider provider = ScopeProvider; using (provider.CreateScope()) { IEnumerable<IMedia> result = MediaService.GetPagedChildren( -1, 0, 11, out long total, provider.SqlContext.Query<IMedia>() .Where(x => new[] { mediaType1.Id, mediaType2.Id }.Contains(x.ContentTypeId)), Ordering.By("SortOrder", Direction.Ascending)); Assert.AreEqual(11, result.Count()); Assert.AreEqual(20, total); result = MediaService.GetPagedChildren( -1, 1, 11, out total, provider.SqlContext.Query<IMedia>() .Where(x => new[] { mediaType1.Id, mediaType2.Id }.Contains(x.ContentTypeId)), Ordering.By("SortOrder", Direction.Ascending)); Assert.AreEqual(9, result.Count()); Assert.AreEqual(20, total); } } [Test] public void Can_Move_Media() { // Arrange Tuple<IMedia, IMedia, IMedia, IMedia, IMedia> mediaItems = <API key>(); IMedia media = MediaService.GetById(mediaItems.Item3.Id); // Act MediaService.Move(media, mediaItems.Item2.Id); // Assert Assert.That(media.ParentId, Is.EqualTo(mediaItems.Item2.Id)); Assert.That(media.Trashed, Is.False); } [Test] public void <API key>() { // Arrange Tuple<IMedia, IMedia, IMedia, IMedia, IMedia> mediaItems = <API key>(); IMedia media = MediaService.GetById(mediaItems.Item1.Id); // Act MediaService.MoveToRecycleBin(media); // Assert Assert.That(media.ParentId, Is.EqualTo(-21)); Assert.That(media.Trashed, Is.True); } [Test] public void <API key>() { // Arrange Tuple<IMedia, IMedia, IMedia, IMedia, IMedia> mediaItems = <API key>(); IMedia media = MediaService.GetById(mediaItems.Item4.Id); // Act - moving out of recycle bin MediaService.Move(media, mediaItems.Item1.Id); IMedia mediaChild = MediaService.GetById(mediaItems.Item5.Id); // Assert Assert.That(media.ParentId, Is.EqualTo(mediaItems.Item1.Id)); Assert.That(media.Trashed, Is.False); Assert.That(mediaChild.ParentId, Is.EqualTo(mediaItems.Item4.Id)); Assert.That(mediaChild.Trashed, Is.False); } [Test] public void <API key>() { // Arrange MediaType mediaType = MediaTypeBuilder.CreateNewMediaType(); MediaTypeService.Save(mediaType); IMedia media = MediaService.CreateMedia(string.Empty, -1, Constants.Conventions.MediaTypes.VideoAlias); // Act & Assert Assert.Throws<ArgumentException>(() => MediaService.Save(media)); } // [Test] // public void <API key>() // var mediaType = MediaTypeBuilder.<API key>(); // MediaTypeService.Save(mediaType); // var media = MediaService.CreateMedia("Test", -1, Constants.Conventions.MediaTypes.VideoAlias); // MediaService.Save(media); // using (var scope = ScopeProvider.CreateScope()) // Assert.IsTrue(scope.Database.Exists<ContentXmlDto>(media.Id)); [Test] public void <API key>() { MediaType mediaType = MediaTypeBuilder.<API key>("Image2"); MediaTypeService.Save(mediaType); Media media = MediaBuilder.CreateMediaImage(mediaType, -1); MediaService.Save(media); string mediaPath = "/media/test-image.png"; IMedia resolvedMedia = MediaService.GetMediaByPath(mediaPath); Assert.IsNotNull(resolvedMedia); Assert.That(resolvedMedia.GetValue(Constants.Conventions.Media.File).ToString() == mediaPath); } [Test] public void <API key>() { MediaType mediaType = MediaTypeBuilder.<API key>("Image2"); MediaTypeService.Save(mediaType); Media media = MediaBuilder.<API key>(mediaType, -1); MediaService.Save(media); string mediaPath = "/media/test-image.png"; IMedia resolvedMedia = MediaService.GetMediaByPath(mediaPath); Assert.IsNotNull(resolvedMedia); Assert.That(resolvedMedia.GetValue(Constants.Conventions.Media.File).ToString().Contains(mediaPath)); } [Test] public void <API key>() { MediaType mediaType = MediaTypeBuilder.<API key>("Image2"); MediaTypeService.Save(mediaType); for (int i = 0; i < 10; i++) { Media c1 = MediaBuilder.CreateMediaImage(mediaType, -1); MediaService.Save(c1); } IMediaService service = MediaService; IMedia[] entities = service.GetPagedChildren(-1, 0, 6, out long total).ToArray(); Assert.That(entities.Length, Is.EqualTo(6)); Assert.That(total, Is.EqualTo(10)); entities = service.GetPagedChildren(-1, 1, 6, out total).ToArray(); Assert.That(entities.Length, Is.EqualTo(4)); Assert.That(total, Is.EqualTo(10)); } [Test] public void <API key>() { MediaType mediaType = MediaTypeBuilder.<API key>("Image2"); MediaTypeService.Save(mediaType); // Only add 9 as we also add a folder with children. for (int i = 0; i < 9; i++) { Media m1 = MediaBuilder.CreateMediaImage(mediaType, -1); MediaService.Save(m1); } MediaType mediaTypeForFolder = MediaTypeBuilder.<API key>("Folder2"); MediaTypeService.Save(mediaTypeForFolder); Media mediaFolder = MediaBuilder.CreateMediaFolder(mediaTypeForFolder, -1); MediaService.Save(mediaFolder); for (int i = 0; i < 10; i++) { Media m1 = MediaBuilder.CreateMediaImage(mediaType, mediaFolder.Id); MediaService.Save(m1); } IMediaService service = MediaService; // Children in root including the folder - not the descendants in the folder. IMedia[] entities = service.GetPagedChildren(-1, 0, 6, out long total).ToArray(); Assert.That(entities.Length, Is.EqualTo(6)); Assert.That(total, Is.EqualTo(10)); entities = service.GetPagedChildren(-1, 1, 6, out total).ToArray(); Assert.That(entities.Length, Is.EqualTo(4)); Assert.That(total, Is.EqualTo(10)); // Children in folder. entities = service.GetPagedChildren(mediaFolder.Id, 0, 6, out total).ToArray(); Assert.That(entities.Length, Is.EqualTo(6)); Assert.That(total, Is.EqualTo(10)); entities = service.GetPagedChildren(mediaFolder.Id, 1, 6, out total).ToArray(); Assert.That(entities.Length, Is.EqualTo(4)); Assert.That(total, Is.EqualTo(10)); } private Tuple<IMedia, IMedia, IMedia, IMedia, IMedia> <API key>() { // Create and Save folder-Media -> 1050 IMediaType folderMediaType = MediaTypeService.Get(1031); Media folder = MediaBuilder.CreateMediaFolder(folderMediaType, -1); MediaService.Save(folder); // Create and Save folder-Media -> 1051 Media folder2 = MediaBuilder.CreateMediaFolder(folderMediaType, -1); MediaService.Save(folder2); // Create and Save image-Media -> 1052 IMediaType imageMediaType = MediaTypeService.Get(1032); Media image = MediaBuilder.CreateMediaImage(imageMediaType, 1050); MediaService.Save(image); // Create and Save folder-Media that is trashed -> 1053 Media folderTrashed = MediaBuilder.CreateMediaFolder(folderMediaType, -21); folderTrashed.Trashed = true; MediaService.Save(folderTrashed); // Create and Save image-Media child of folderTrashed -> 1054 Media imageTrashed = MediaBuilder.CreateMediaImage(imageMediaType, folderTrashed.Id); imageTrashed.Trashed = true; MediaService.Save(imageTrashed); return new Tuple<IMedia, IMedia, IMedia, IMedia, IMedia>(folder, folder2, image, folderTrashed, imageTrashed); } } }
import app from '../../../js/app'; import { expect } from 'chai'; import { describe, it, before } from 'mocha'; import Service from '../../../js/models/listing/Service'; describe('the Service model', () => { before(function () { // creating a dummy polyglot t function, so our // model doesn't bomb. It's not critical to these // tests that it return an actual translation. app.polyglot = { t: (str) => str, }; }); it('fails validation if a name is not provided as a string', () => { const service = new Service(); service.unset('name'); service.isValid(); let valErr = service.validationError; expect(valErr && valErr.name && !!valErr.name.length || false).to.equal(true); service.set({ name: 99 }, { validate: true }); valErr = service.validationError; expect(valErr && valErr.name && !!valErr.name.length || false).to.equal(true); }); it('fails validation if an estimated delivery is not provided as a string', () => { const service = new Service(); service.unset('estimatedDelivery'); service.isValid(); let valErr = service.validationError; expect(valErr && valErr.estimatedDelivery && !!valErr.estimatedDelivery.length || false) .to.equal(true); service.set({ estimatedDelivery: 99 }, { validate: true }); valErr = service.validationError; expect(valErr && valErr.estimatedDelivery && !!valErr.estimatedDelivery.length || false) .to.equal(true); }); it('fails validation if a price is not provided as a number', () => { const service = new Service(); service.unset('price'); service.isValid(); let valErr = service.validationError; expect(valErr && valErr.price && !!valErr.price.length || false) .to.equal(true); service.set({ price: '99' }, { validate: true }); valErr = service.validationError; expect(valErr && valErr.price && !!valErr.price.length || false) .to.equal(true); }); });
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * HTTP Authentication plugin for phpMyAdmin. * NOTE: Requires PHP loaded as a Apache module. * * @package <API key> * @subpackage HTTP */ namespace PMA\libraries\plugins\auth; use PMA\libraries\plugins\<API key>; use PMA\libraries\Message; use PMA\libraries\Response; use PMA\libraries\Config; /** * Handles the HTTP authentication methods * * @package <API key> */ class AuthenticationHttp extends <API key> { /** * Displays authentication form and redirect as necessary * * @return boolean always true (no return indeed) */ public function auth() { $response = Response::getInstance(); if ($response->isAjax()) { $response->setRequestStatus(false); // reload_flag removes the token parameter from the URL and reloads $response->addJSON('reload_flag', '1'); if (defined('TESTSUITE')) { return true; } else { exit; } } return $this->authForm(); } /** * Displays authentication form * * @return boolean */ public function authForm() { if (empty($GLOBALS['cfg']['Server']['auth_http_realm'])) { if (empty($GLOBALS['cfg']['Server']['verbose'])) { $server_message = $GLOBALS['cfg']['Server']['host']; } else { $server_message = $GLOBALS['cfg']['Server']['verbose']; } $realm_message = 'phpMyAdmin ' . $server_message; } else { $realm_message = $GLOBALS['cfg']['Server']['auth_http_realm']; } $response = Response::getInstance(); // remove non US-ASCII to respect RFC2616 $realm_message = preg_replace('/[^\x20-\x7e]/i', '', $realm_message); $response->header('WWW-Authenticate: Basic realm="' . $realm_message . '"'); $response->header('HTTP/1.0 401 Unauthorized'); if (php_sapi_name() !== 'cgi-fcgi') { $response->header('status: 401 Unauthorized'); } /* HTML header */ $footer = $response->getFooter(); $footer->setMinimal(); $header = $response->getHeader(); $header->setTitle(__('Access denied!')); $header-><API key>(); $header->setBodyId('loginform'); $response->addHTML('<h1>'); $response->addHTML(sprintf(__('Welcome to %s'), ' phpMyAdmin')); $response->addHTML('</h1>'); $response->addHTML('<h3>'); $response->addHTML( Message::error( __('Wrong username/password. Access denied.') ) ); $response->addHTML('</h3>'); $response->addHTML(Config::renderFooter()); if (!defined('TESTSUITE')) { exit; } else { return false; } } /** * Gets advanced authentication settings * * @global string $PHP_AUTH_USER the username if register_globals is * on * @global string $PHP_AUTH_PW the password if register_globals is * on * * @return boolean whether we get authentication settings or not */ public function authCheck() { global $PHP_AUTH_USER, $PHP_AUTH_PW; // Grabs the $PHP_AUTH_USER variable whatever are the values of the // 'register_globals' and the 'variables_order' directives if (empty($PHP_AUTH_USER)) { if (PMA_getenv('PHP_AUTH_USER')) { $PHP_AUTH_USER = PMA_getenv('PHP_AUTH_USER'); } elseif (PMA_getenv('REMOTE_USER')) { // CGI, might be encoded, see below $PHP_AUTH_USER = PMA_getenv('REMOTE_USER'); } elseif (PMA_getenv('<API key>')) { // CGI, might be encoded, see below $PHP_AUTH_USER = PMA_getenv('<API key>'); } elseif (PMA_getenv('AUTH_USER')) { // WebSite Professional $PHP_AUTH_USER = PMA_getenv('AUTH_USER'); } elseif (PMA_getenv('HTTP_AUTHORIZATION')) { // IIS, might be encoded, see below $PHP_AUTH_USER = PMA_getenv('HTTP_AUTHORIZATION'); } elseif (PMA_getenv('Authorization')) { // FastCGI, might be encoded, see below $PHP_AUTH_USER = PMA_getenv('Authorization'); } } // Grabs the $PHP_AUTH_PW variable whatever are the values of the // 'register_globals' and the 'variables_order' directives if (empty($PHP_AUTH_PW)) { if (PMA_getenv('PHP_AUTH_PW')) { $PHP_AUTH_PW = PMA_getenv('PHP_AUTH_PW'); } elseif (PMA_getenv('REMOTE_PASSWORD')) { // Apache/CGI $PHP_AUTH_PW = PMA_getenv('REMOTE_PASSWORD'); } elseif (PMA_getenv('AUTH_PASSWORD')) { // WebSite Professional $PHP_AUTH_PW = PMA_getenv('AUTH_PASSWORD'); } } // Decode possibly encoded information (used by IIS/CGI/FastCGI) // (do not use explode() because a user might have a colon in his password if (strcmp(substr($PHP_AUTH_USER, 0, 6), 'Basic ') == 0) { $usr_pass = base64_decode(substr($PHP_AUTH_USER, 6)); if (!empty($usr_pass)) { $colon = strpos($usr_pass, ':'); if ($colon) { $PHP_AUTH_USER = substr($usr_pass, 0, $colon); $PHP_AUTH_PW = substr($usr_pass, $colon + 1); } unset($colon); } unset($usr_pass); } // sanitize username $PHP_AUTH_USER = <API key>($PHP_AUTH_USER); // User logged out -> ensure the new username is not the same $old_usr = isset($_REQUEST['old_usr']) ? $_REQUEST['old_usr'] : ''; if (! empty($old_usr) && (isset($PHP_AUTH_USER) && hash_equals($old_usr, $PHP_AUTH_USER)) ) { $PHP_AUTH_USER = ''; // -> delete user's choices that were stored in session if (!defined('TESTSUITE')) { session_destroy(); } } // Returns whether we get authentication settings or not if (empty($PHP_AUTH_USER)) { return false; } else { return true; } } /** * Set the user and password after last checkings if required * * @global array $cfg the valid servers settings * @global integer $server the id of the current server * @global string $PHP_AUTH_USER the current username * @global string $PHP_AUTH_PW the current password * * @return boolean always true */ public function authSetUser() { global $cfg, $server; global $PHP_AUTH_USER, $PHP_AUTH_PW; // Ensures valid authentication mode, 'only_db', bookmark database and // table names and relation table name are used if (! hash_equals($cfg['Server']['user'], $PHP_AUTH_USER)) { $servers_cnt = count($cfg['Servers']); for ($i = 1; $i <= $servers_cnt; $i++) { if (isset($cfg['Servers'][$i]) && ($cfg['Servers'][$i]['host'] == $cfg['Server']['host'] && hash_equals($cfg['Servers'][$i]['user'], $PHP_AUTH_USER)) ) { $server = $i; $cfg['Server'] = $cfg['Servers'][$i]; break; } } // end for } // end if $cfg['Server']['user'] = $PHP_AUTH_USER; $cfg['Server']['password'] = $PHP_AUTH_PW; // Avoid showing the password in phpinfo()'s output unset($GLOBALS['PHP_AUTH_PW']); unset($_SERVER['PHP_AUTH_PW']); $this-><API key>(); return true; } /** * User is not allowed to login to MySQL -> authentication failed * * @return bool true */ public function authFails() { $error = $GLOBALS['dbi']->getError(); if ($error && $GLOBALS['errno'] != 1045) { PMA_fatalError($error); return true; } $this->authForm(); return true; } /** * Returns URL for login form. * * @return string */ public function getLoginFormURL() { return './index.php?old_usr=' . $GLOBALS['PHP_AUTH_USER']; } }
define(['backbone'], function (Backbone) { var channel = _.extend({}, Backbone.Events); return channel; });
import React, { PropTypes, Component } from 'react'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { getFragment, getFragmentName } from 'meteor/vulcan:core'; export default function withDocument (options) { const { collection, pollInterval = 20000 } = options, queryName = options.queryName || `${collection.options.collectionName}SingleQuery`, fragment = options.fragment || getFragment(options.fragmentName), fragmentName = getFragmentName(fragment), singleResolverName = collection.options.resolvers.single && collection.options.resolvers.single.name; return graphql(gql` query ${queryName}($documentId: String, $slug: String) { ${singleResolverName}(documentId: $documentId, slug: $slug) { __typename ${fragmentName} } } ${fragment} `, { alias: 'withDocument', options(ownProps) { return { variables: { documentId: ownProps.documentId, slug: ownProps.slug }, pollInterval, // note: pollInterval can be set to 0 to disable polling (20s by default) }; }, props: returnedProps => { const { ownProps, data } = returnedProps; return { loading: data.loading, // document: Utils.convertDates(collection, data[singleResolverName]), document: data[singleResolverName], fragmentName, fragment, }; }, }); }
using System; using Microsoft.Extensions.Logging; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Extensions; namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { <summary> The default converter for all property editors that expose a JSON value type </summary> <remarks> Since this is a default (umbraco) converter it will be ignored if another converter found conflicts with this one. </remarks> [<API key>] public class JsonValueConverter : <API key> { private readonly <API key> _propertyEditors; private readonly ILogger<JsonValueConverter> _logger; string[] <API key> = new string[] { Constants.PropertyEditors.Aliases.MediaPicker3 }; <summary> Initializes a new instance of the <see cref="JsonValueConverter"/> class. </summary> public JsonValueConverter(<API key> propertyEditors, ILogger<JsonValueConverter> logger) { _propertyEditors = propertyEditors; _logger = logger; } <summary> It is a converter for any value type that is "JSON" Unless it's in the Excluded Property Editors list The new MediaPicker 3 stores JSON but we want to use its own ValueConvertor </summary> <param name="propertyType"></param> <returns></returns> public override bool IsConverter(<API key> propertyType) { return _propertyEditors.TryGet(propertyType.EditorAlias, out var editor) && editor.GetValueEditor().ValueType.InvariantEquals(ValueTypes.Json) && <API key>.Contains(propertyType.EditorAlias) == false; } public override Type <API key>(<API key> propertyType) => typeof (JToken); public override PropertyCacheLevel <API key>(<API key> propertyType) => PropertyCacheLevel.Element; public override object <API key>(IPublishedElement owner, <API key> propertyType, object source, bool preview) { if (source == null) return null; var sourceString = source.ToString(); if (sourceString.DetectIsJson()) { try { var obj = JsonConvert.DeserializeObject(sourceString); return obj; } catch (Exception ex) { _logger.LogError(ex, "Could not parse the string '{JsonString}' to a json object", sourceString); } } //it's not json, just return the string return sourceString; } // TODO: Now to convert that to XPath! } }
/*! * ignore */ 'use strict'; const assert = require('assert'); const mquery = require('mquery'); /** * Helper for multiplexing promise implementations * * @api private */ const store = { _promise: null }; /** * Get the current promise constructor * * @api private */ store.get = function() { return store._promise; }; /** * Set the current promise constructor * * @api private */ store.set = function(lib) { assert.ok(typeof lib === 'function', `mongoose.Promise must be a function, got ${lib}`); store._promise = lib; mquery.Promise = lib; }; /*! * Use native promises by default */ store.set(global.Promise); module.exports = store;