text:
#import "CCFScrollableTabView.h"
#import "CCFScrollableTabColorKeys.h"
#import "CCFScrollableTabStop.h"
#import "CCFScrollableTabScrollView.h"

#import "CCFScrollableTabScrollViewDelegate.h"
#import <QuartzCore/QuartzCore.h>

static CGFloat WindowWidth;

static CCFScrollableTabView *commonInit(CCFScrollableTabView *self) {
    CGRect adjustedFrame = CGRectMake(self.frame.origin.x, self.frame.origin.y, self.frame.size.width, 41);
    self.frame = adjustedFrame;

    [self addObserver:self forKeyPath:@"dataSource" options:NSKeyValueObservingOptionNew context:NULL];

    return self;
}

///---------------------------------------------------------------------------------------
///    Private methods and properties
///---------------------------------------------------------------------------------------
@interface CCFScrollableTabView()
- (void)_addLeftStop;
- (void)_addRightStop;
- (void)_addScrollView;
- (NSDictionary *)_colorInfo;
@end

@implementation CCFScrollableTabView
{
    CCFScrollableTabScrollView *_scrollView;
    CCFScrollableTabStop *_leftStop;
    CCFScrollableTabStop *_rightStop;
}

#pragma mark - Synthesized properties

@synthesize delegate = _delegate;
@synthesize dataSource = _dataSource;

#pragma mark - Class methods

+ (void)initialize {
    if( self == [CCFScrollableTabView class] ) {
        CGRect screenRect = [[UIScreen mainScreen] bounds];
        WindowWidth = screenRect.size.width;
    }
}

+ (Class)layerClass {
    return [CAGradientLayer class];
}

#pragma mark - Object lifecycle

- (id)initWithFrame:(CGRect)frame {

    self = [super initWithFrame:frame];
    if( !self ) return nil;

    return commonInit(self);
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if( !self ) return nil;

    return commonInit(self);
}

- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
    if( [keyPath isEqualToString:@"dataSource"] )
    {
        if( _scrollView )
            [_scrollView removeFromSuperview];
        [self _addScrollView];
        if( _leftStop )
            [_leftStop removeFromSuperview];
        [self _addLeftStop];
        if( _rightStop )
            [_rightStop removeFromSuperview];
        [self _addRightStop];

        CAGradientLayer *layer = (CAGradientLayer *)self.layer;
        NSDictionary *colorInfo = [self _colorInfo];
        UIColor *darkColor = [colorInfo objectForKey:kCCFScrollableTabDarkColor];
        UIColor *lightColor = [colorInfo objectForKey:kCCFScrollableTabLightColor];
        NSMutableArray *mutableColors = [NSMutableArray arrayWithCapacity:2];
        [mutableColors addObject:(id)lightColor.CGColor];
        [mutableColors addObject:(id)darkColor.CGColor];
        layer.colors = mutableColors;
    }
}

- (void)_addLeftStop {
    CGRect leftRect = CGRectMake(CGRectGetMinX(self.bounds), CGRectGetMinY(self.bounds), 27, 41);
    _leftStop = [[CCFScrollableTabStop alloc] initWithFrame:leftRect colorInfo:[self _colorInfo] side:CCFScrollableTabStopLeft];
    _leftStop.delegate = self;
    [self addSubview:_leftStop];
}

- (void)_addRightStop {
    CGRect rightRect = CGRectMake(CGRectGetMaxX(self.bounds)-27, CGRectGetMinY(self.bounds), 27, 41);
    _rightStop = [[CCFScrollableTabStop alloc] initWithFrame:rightRect colorInfo:[self _colorInfo] side:CCFScrollableTabStopRight];
    _rightStop.delegate = self;
    [self addSubview:_rightStop];
}

- (void)_addScrollView {
    NSArray *titles = [_dataSource titlesInScrollableTabView:self];
    _scrollView = [[CCFScrollableTabScrollView alloc] initWithFrame:self.bounds titles:titles colorInfo:[self _colorInfo]];
    _scrollView.tabDelegate = self;
    _scrollView.delegate = self;
    [self addSubview:_scrollView];
}

- (NSDictionary *)_colorInfo {
    NSMutableDictionary *mutableColorInfo = [NSMutableDictionary dictionaryWithCapacity:3];
    [mutableColorInfo setObject:[_dataSource textColorInScrollableTabView:self] forKey:kCCFScrollableTabTextColor];
    [mutableColorInfo setObject:[_dataSource lightColorInScrollableTabView:self] forKey:kCCFScrollableTabLightColor];
    [mutableColorInfo setObject:[_dataSource darkColorInScrollableTabView:self] forKey:kCCFScrollableTabDarkColor];
    return mutableColorInfo;
}

#pragma mark - Public

- (void)setSelectedItemIndex:(NSInteger)index {
    [_delegate scrollableTabView:self didSelectItemAtIndex:index];
    [_scrollView setSelectedIndex:index];
}

#pragma mark - UIScrollViewDelegate

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
    CGPoint offset = scrollView.contentOffset;
    if( offset.x <= 0 )
        _leftStop.hidden = YES;
    else
        _leftStop.hidden = NO;
    if( offset.x + WindowWidth >= _scrollView.contentSize.width )
        _rightStop.hidden = YES;
    else
        _rightStop.hidden = NO;
}

#pragma mark - CCFScrollableTabScrollViewDelegate

- (void)scrollableTabScrollView:(CCFScrollableTabScrollView *)scrollView didSelectItemAtIndex:(NSInteger)index {
    //  pass the selection up the chain
    [_delegate scrollableTabView:self didSelectItemAtIndex:index];
}

#pragma mark - CCFScrollableTabStopDelegate

- (void)tabStopDidReceiveTouch:(CCFScrollableTabStop *)tabStop {
    CGPoint offset = _scrollView.contentOffset;
    CGFloat xOffset;
    if( tabStop.side == CCFScrollableTabStopLeft ) {
        xOffset = offset.x - 50.0;
        if( xOffset < 0 )
            xOffset = 0;
        offset = CGPointMake(xOffset - 50.0, 0.0);
    }

    else
    {
        xOffset = offset.x + 50.0;
        if( xOffset + WindowWidth > _scrollView.contentSize.width )
            xOffset = _scrollView.contentSize.width - WindowWidth;
        offset = CGPointMake(xOffset, 0.0);
    }

    [_scrollView setContentOffset:offset animated:YES];
}

#pragma mark - UI interactions

@end


text:
namespace TestWeb.Backend
{
    using NServiceBus;

	/*
		This class configures this endpoint as a Server. More information about how to configure the NServiceBus host
		can be found here: http://particular.net/articles/the-nservicebus-host
	*/
	public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, UsingTransport<RabbitMQ>
	{
    }
}

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

        <title>Fullscreen() Unit Tester</title>

            This tests adding listeners to the player and responding to events. Video should play on FF, Chrome, Safari, and Opera but will fail in IE.

Result

            Running...

HTML code


text:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace DataMesh.AR.UI
{

    public class GazeEventReceiver : MonoBehaviour
    {

        public GameObject receiver;

        public System.Action<GameObject> cbTap;
        public System.Action<GameObject> cbEnter;
        public System.Action<GameObject> cbExit;

        void OnTapOnObject()
        {
            if (receiver != null)
            {
                receiver.SendMessage("OnTapOnObject", SendMessageOptions.DontRequireReceiver);
            }
            if (cbTap != null)
                cbTap(gameObject);
        }

        void OnGazeEnterObject()
        {
            if (receiver != null)
            {
                receiver.SendMessage("OnGazeEnterObject", SendMessageOptions.DontRequireReceiver);
            }
            if (cbEnter != null)
                cbEnter(gameObject);
        }

        void OnGazeExitObject()
        {
            if (receiver != null)
            {
                receiver.SendMessage("OnGazeExitObject", SendMessageOptions.DontRequireReceiver);
            }
            if (cbExit != null)
                cbExit(gameObject);
        }
    }

}


text:
namespace notifier {

// Redirect valid for 5 minutes.
static const int kRedirectTimeoutMinutes = 5;

Login::Login(Delegate* delegate,
             const buzz::XmppClientSettings& user_settings,
             const ConnectionOptions& options,
             const scoped_refptr<net::URLRequestContextGetter>&
                request_context_getter,
             const ServerList& servers,
             bool try_ssltcp_first,
             const std::string& auth_mechanism)
    : delegate_(delegate),
      login_settings_(new LoginSettings(user_settings,
                                        options,
                                        request_context_getter,
                                        servers,
                                        try_ssltcp_first,
                                        auth_mechanism)),
      redirect_port_(0) {
  net::NetworkChangeNotifier::AddIPAddressObserver(this);
  ResetReconnectState();
}

Login::~Login() {
  net::NetworkChangeNotifier::RemoveIPAddressObserver(this);
}

void Login::StartConnection() {
  // If there is a server redirect, use it.
  if (base::Time::Now() <
      (redirect_time_ +
       base::TimeDelta::FromMinutes(kRedirectTimeoutMinutes))) {
    // Override server/port with redirect values.
    DCHECK_NE(redirect_port_, 0);
    net::HostPortPair server_override(redirect_server_, redirect_port_);
    login_settings_->set_server_override(server_override);
  } else {
    login_settings_->clear_server_override();
  }

  VLOG(1) << "Starting connection...";

  single_attempt_.reset(new SingleLoginAttempt(login_settings_.get(), this));
}

void Login::UpdateXmppSettings(const buzz::XmppClientSettings& user_settings) {
  *(login_settings_->modifiable_user_settings()) = user_settings;
}

void Login::OnConnect(base::WeakPtr<talk_base::Task> base_task) {
  ResetReconnectState();
  delegate_->OnConnect(base_task);
}

void Login::OnNeedReconnect() {
  TryReconnect();
}

void Login::OnRedirect(const std::string& redirect_server, int redirect_port) {
  DCHECK_NE(redirect_port_, 0);

  redirect_time_ = base::Time::Now();
  redirect_server_ = redirect_server;
  redirect_port_ = redirect_port;

  // Drop the current connection, and start the login process again.
  StartConnection();
}

void Login::OnIPAddressChanged() {
  VLOG(1) << "Detected IP address change";
  // Reconnect in 1 to 9 seconds (vary the time a little to try to
  // avoid spikey behavior on network hiccups).
  reconnect_interval_ = base::TimeDelta::FromSeconds(base::RandInt(1, 9));
  TryReconnect();
}

void Login::ResetReconnectState() {
  reconnect_interval_ =
      base::TimeDelta::FromSeconds(base::RandInt(5, 25));
  reconnect_timer_.Stop();
}

void Login::TryReconnect() {
  DCHECK_GT(reconnect_interval_.InSeconds(), 0);
  single_attempt_.reset();
  reconnect_timer_.Stop();
  VLOG(1) << "Reconnecting in "
          << reconnect_interval_.InSeconds() << " seconds";
  reconnect_timer_.Start(
      reconnect_interval_, this, &Login::DoReconnect);
  delegate_->OnDisconnect();
}

void Login::DoReconnect() {
  // Double reconnect time up to 30 minutes.
  const base::TimeDelta kMaxReconnectInterval =
      base::TimeDelta::FromMinutes(30);
  reconnect_interval_ *= 2;
  if (reconnect_interval_ > kMaxReconnectInterval)
    reconnect_interval_ = kMaxReconnectInterval;
  VLOG(1) << "Reconnecting...";
  StartConnection();
}

}  // namespace notifier


text:
var refresh_time = 0;

function design(id) {
  return document.getElementById(id).value;
}

function render(f, r) {
  var g, y;
  g = document.querySelector('griddles-ui-card');
  var api = g.apis;
  refresh_time++;
  g.cardWidth = design("cardWidth");
  g.cardMarginBottom = design("cardMarginBottom");
  g.streamMarginLeft = design("streamMarginLeft");
  g.streamMarginRight = design("streamMarginRight");
  g.streamPaddingTop = design("streamPaddingTop");
  g.numberReadAtOnce = design("numberReadAtOnce");
  g.displayFromTopLeftToBottomRight = design("displayFromTopLeftToBottomRight");
  console.log(design("type"));
  for(var i = 0; i < 200; i++) {
    var card = api.makeCard(null, 'T', design("type"));
        card = api.makeCard(card, 'R', design("borderRadius"));
        card = api.makeCard(card, 'P', design("paperColor"));
        card = api.makeCard(card, 'H', design("height"));
        card = api.makeCard(card, 'I', design("insert"));
        card = api.makeCard(card, 'S', design("shadowDepth"));
        card = api.makeCard(card, 'C', design("content"));
        if(f == 'refresh') {
          var str = 'Refreshed ' + refresh_time;
          card = api.makeCard(card, 'C', str);
        }
    $('griddles-ui-card').append(card);
  }
  g.cards = {};
  g.query = 'render-' + r;
}

function griddlesAppInit() {
  render('init', Math.random() * 1000);
}

function toggleDialog(id) {
    var dialog = document.querySelector('#' + id);
    dialog.toggle();
}

document.getElementById('btn_refresh').addEventListener('click', function() {
  render('refresh', Math.random() * 1000);
}, false);

document.getElementById('btn_settings').addEventListener('click', function() {
  toggleDialog('dialog_settings');
}, false);

document.getElementById('dialog_btn_done').addEventListener('click', function() {
  render('init', Math.random() * 1000);
}, false);


text:
export * from './side-sheet.module';
export * from './side-sheet.config';
export * from './side-sheet.content-directives';
export * from './side-sheet-ref';
export * from './side-sheet';


text:
package org.apache.axis2.sample.addressing.service;

import org.apache.axis2.sample.addressing.types.Employee;

public class AddressingService {

    public Employee echoEmployee(Employee employee){
        return employee;
    }
}


text:
<?php

declare(strict_types=1);

namespace Knp\DoctrineBehaviors\Tests\ORM\Sluggable;

use Doctrine\Persistence\ObjectRepository;
use Knp\DoctrineBehaviors\Tests\AbstractBehaviorTestCase;
use Knp\DoctrineBehaviors\Tests\Fixtures\Entity\Sluggable\SluggableEntity;
use Knp\DoctrineBehaviors\Tests\Fixtures\Entity\Sluggable\SluggableWithoutRegenerateEntity;

final class SluggableWithoutRegenerateTest extends AbstractBehaviorTestCase
{
    /**
     * @var ObjectRepository<SluggableWithoutRegenerateEntity>
     */
    private ObjectRepository $sluggableWithoutRegenerateRepository;

    protected function setUp(): void
    {
        parent::setUp();

        $this->sluggableWithoutRegenerateRepository = $this->entityManager->getRepository(
            SluggableWithoutRegenerateEntity::class
        );
    }

    public function testSlugLoading(): void
    {
        $entity = new SluggableWithoutRegenerateEntity();
        $entity->setName('The name');

        $this->entityManager->persist($entity);
        $this->entityManager->flush();

        $id = $entity->getId();
        $this->assertNotNull($id);

        $this->entityManager->clear();

        /** @var SluggableEntity $entity */
        $entity = $this->sluggableWithoutRegenerateRepository->find($id);

        $this->assertNotNull($entity);
        $this->assertSame('the-name', $entity->getSlug());
    }

    public function testNotUpdatedSlug(): void
    {
        $sluggableWithoutRegenerateEntity = new SluggableWithoutRegenerateEntity();
        $sluggableWithoutRegenerateEntity->setName('The name');

        $this->entityManager->persist($sluggableWithoutRegenerateEntity);
        $this->entityManager->flush();

        $this->assertSame('the-name', $sluggableWithoutRegenerateEntity->getSlug());

        $sluggableWithoutRegenerateEntity->setName('The name 2');

        $this->entityManager->persist($sluggableWithoutRegenerateEntity);
        $this->entityManager->flush();

        $this->assertSame('the-name', $sluggableWithoutRegenerateEntity->getSlug());
    }
}


text:
package com.google.template.soy.soytree;

import com.google.template.soy.soytree.SoyNode.SoyStatementNode;
import com.google.template.soy.soytree.SoyNode.SplitLevelTopNode;

/**
 * Node representing an 'if' statement.
 *
 * <p> Important: Do not use outside of Soy code (treat as superpackage-private).
 *
 * @author Kai Huang
 */
public class IfNode extends AbstractParentSoyNode<SoyNode>
    implements SplitLevelTopNode<SoyNode>, SoyStatementNode {

  /**
   * @param id The id for this node.
   */
  public IfNode(String id) {
    super(id);
  }

  @Override public String toSourceString() {
    StringBuilder sb = new StringBuilder();
    // Note: The first IfCondNode takes care of generating the 'if' tag.
    appendSourceStringForChildren(sb);
    sb.append("{/if}");
    return sb.toString();
  }

}


text:
#region Header
// Copyright (c) 2013 Hans Wolff
//
// 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.
#endregion

using System;
using System.Diagnostics;
using System.Threading;

namespace Simple.MailServer
{
    [DebuggerDisplay("{Connection}")]
    public class BaseSession : IHaveIdleTimeSpan, ICanDisconnect, IDisposable
    {
        public bool Active { get; protected set; }
        public bool Disconnected { get; protected set; }

        public BaseConnection Connection { get; private set; }
        public event EventHandler<SessionEventArgs> OnSessionDisconnected = (s, e) => { };

        public object Tag { get; set; }

        protected readonly Stopwatch Stopwatch = Stopwatch.StartNew();

        public TimeSpan GetIdleTime()
        {
            return Stopwatch.Elapsed;
        }

        internal BaseSession(BaseConnection connection)
        {
            Active = true;
            Connection = connection;
        }

        public void UpdateActivity()
        {
            Stopwatch.Restart();
        }

        public void Disconnect()
        {
            if (!Disconnected)
            {
                Disconnected = true;
                Active = false;
                if (Connection != null)
                    Connection.Disconnect();
                OnSessionDisconnected(this, new SessionEventArgs(this));
            }
        }

        #region Dispose
        private bool _disposed;
        private readonly object _disposeLock = new object();

        /// <summary>
        /// Inheritable dispose method
        /// </summary>
        /// <param name="disposing">true, suppress GC finalizer call</param>
        protected virtual void Dispose(bool disposing)
        {
            lock (_disposeLock)
            {
                if (!_disposed)
                {
                    _disposed = true;
                    if (disposing) GC.SuppressFinalize(this);
                }
            }
        }

        /// <summary>
        /// Free resources being used
        /// </summary>
        public void Dispose()
        {
            Dispose(true);
        }

        /// <summary>
        /// Destructor
        /// </summary>
        ~BaseSession()
        {
            Dispose(false);
        }
        #endregion
    }
}


text:
package io.github.jbalancer.node.discoverer;

import io.github.jbalancer.node.Node;

import java.util.List;

public interface Discoverer {

    /**
     * Discovers list of {@link Node} for balancing based on provided balancer id.
     *
     * If method throws exception or returns empty list fallback/initial nodes of balancer are used.
     * Method should return null if no changes discovered.
     *
     * @param balancerId unique identifier of balancer
     * @return list of discovered {@link Node}
     */
    List<Node> discover(String balancerId);
}


text:
/* QScheme.m - Noel Cower */

#import "QScheme.h"
#import "QSchemeRule.h"
#import "NSFilters.h"
#import "NSColor+QHexColor.h"
#import "aux.h"

static
BOOL
isBaseRuleDictionary(NSDictionary *rule);

static
NSDictionary *
getBaseRuleDictionary(NSArray *settings);

static
NSArray *
getRulesDictionaries(NSArray *settings);

static id (^const copyRuleBlock)(id) = ^(id obj) {
  return [obj copy];
};

static id (^const convertPListToRuleBlock)(id) = ^id(id obj) {
  return [[QSchemeRule alloc] initWithPropertyList:obj];
};

static BOOL (^const indexOfBaseRulesDictTest)(id, NSUInteger, BOOL *) =
  ^(id obj, NSUInteger index, BOOL *stop) {
    return isBaseRuleDictionary(obj);
  };

static
BOOL
isBaseRuleDictionary(NSDictionary *rule)
{
  return
       [rule isKindOfClass:[NSDictionary class]]
    && 1 == [rule count]
    && nil != rule[@"settings"];
}

static
NSDictionary *
getBaseRuleDictionary(NSArray *settings)
{
  const NSUInteger index =
    [settings indexOfObjectPassingTest:indexOfBaseRulesDictTest];

  if (index != NSNotFound) {
    return settings[index];
  }

  return nil;
}

static
NSArray *
getRulesDictionaries(NSArray *settings)
{
  return [settings rejectedBy:^BOOL(id obj) {
    return isBaseRuleDictionary(obj);
  }];
}

@interface QScheme ()

@property (copy, readwrite) NSUUID *uuid;

@end

@implementation QScheme

- (id)init
{
  if ((self = [super init])) {
    NSColor *black = [NSColor.blackColor forScheme];
    NSColor *noColor = [[NSColor colorWithWhite:0.0 alpha:0.0] forScheme];

    self.foregroundColor = black;
    self.backgroundColor = [NSColor.whiteColor forScheme];

    self.lineHighlightColor =
      [[NSColor colorWithWhite:0.0f alpha:0.07f] forScheme];

    self.selectionColor =
      [[NSColor selectedTextBackgroundColor] forScheme];
    self.selectionBorderColor =
      [self.selectionColor colorWithAlphaComponent:0.0f];
    self.inactiveSelectionColor =
      [self.selectionColor colorWithAlphaComponent:0.5f];

    self.invisiblesColor =
      [[NSColor colorWithWhite:0.75f alpha:1.0f] forScheme];

    self.caretColor = black;

    self.gutterBGColor = noColor;
    self.gutterFGColor = noColor;

    self.findHiliteBGColor = noColor;
    self.findHiliteFGColor = noColor;

    self.uuid = [NSUUID UUID];
    self.rules = @[];
  }

  return self;
}

- (id)initWithPropertyList:(NSDictionary *)plist
{
  static dispatch_queue_t conversion_queue = nil;
  static dispatch_once_t onceToken;
  dispatch_once(&onceToken, ^{
    conversion_queue = dispatch_queue_create(
      "net.spifftastic.schemer.convert",
      DISPATCH_QUEUE_CONCURRENT
      );
  });

  if ((self = [self init])) {
    NSDictionary *baseRules = getBaseRuleDictionary(plist[@"settings"]);
    NSArray *rules = getRulesDictionaries(plist[@"settings"]);

    if (!baseRules || !baseRules[@"settings"]) {
      return nil;
    }

    NSDictionary *settings = baseRules[@"settings"];

    self.foregroundColor =
      [colorSetting(settings, @"foreground", self.foregroundColor)
       colorWithAlphaComponent:1.0];

    self.backgroundColor =
      [colorSetting(settings, @"background", self.backgroundColor)
       colorWithAlphaComponent:1.0];

    self.lineHighlightColor =
      colorSetting(settings, @"lineHighlight", self.lineHighlightColor);

    self.selectionColor =
      colorSetting(settings, @"selection", self.selectionColor);

    self.selectionBorderColor =
      colorSetting(settings, @"selectionBorder", self.selectionBorderColor);

    self.inactiveSelectionColor =
      colorSetting(settings, @"inactiveSelection", self.inactiveSelectionColor);

    self.invisiblesColor =
      colorSetting(settings, @"invisibles", self.invisiblesColor);

    self.caretColor = colorSetting(settings, @"caret", self.caretColor);

    self.gutterFGColor =
      colorSetting(settings, @"gutterForeground", self.gutterFGColor);

    self.gutterBGColor =
      colorSetting(settings, @"gutter", self.gutterBGColor);

    self.findHiliteFGColor =
      colorSetting(settings, @"findHighlightForeground", self.findHiliteFGColor);

    self.findHiliteBGColor =
      colorSetting(settings, @"findHighlight", self.findHiliteBGColor);

    self.rules =
      [rules mappedTo:convertPListToRuleBlock queue:conversion_queue stride:16];

    NSString *uuidString = baseRules[@"uuid"];
    if (uuidString) {
      NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:uuidString];
      if (uuid) {
        self.uuid = uuid;
      } else {
        NSLog(@"%@ is an invalid UUID, generating a new one.", uuidString);
      }
    }
  }

  return self;
}

- (id)initWithScheme:(QScheme *)scheme
{
  if ((self = [self init]) && scheme) {
    self.foregroundColor        = scheme.foregroundColor;
    self.backgroundColor        = scheme.backgroundColor;
    self.lineHighlightColor     = scheme.lineHighlightColor;
    self.selectionColor         = scheme.selectionColor;
    self.selectionBorderColor   = scheme.selectionBorderColor;
    self.inactiveSelectionColor = scheme.inactiveSelectionColor;
    self.invisiblesColor        = scheme.invisiblesColor;
    self.caretColor             = scheme.caretColor;
    self.rules                  = [scheme.rules mappedTo:copyRuleBlock];
    self.uuid                   = scheme.uuid;
  }
  return self;
}

- (id)copyWithZone:(NSZone *)zone
{
  return [[self.class alloc] initWithScheme:self];
}

- (NSDictionary *)toPropertyList
{
  NSMutableDictionary *plist = [NSMutableDictionary new];

  plist[@"uuid"] = self.uuid.UUIDString;

  NSMutableArray *baseRules =
    [NSMutableArray arrayWithCapacity:[self.rules count] + 1];

  NSMutableDictionary *settings =
    [NSMutableDictionary dictionaryWithCapacity:8];

  settings[@"foreground"] = [self.foregroundColor toHexColorString];
  settings[@"background"] =
    [[self.backgroundColor colorWithAlphaComponent:1.0] toHexColorString];

  putColorIfVisible(settings, @"lineHighlight", self.lineHighlightColor);
  putColorIfVisible(settings, @"selection", self.selectionColor);
  putColorIfVisible(settings, @"selectionBorder", self.selectionBorderColor);
  putColorIfVisible(settings, @"inactiveSelection", self.inactiveSelectionColor);
  putColorIfVisible(settings, @"invisibles", self.invisiblesColor);
  putColorIfVisible(settings, @"caret", self.caretColor);
  putColorIfVisible(settings, @"gutterForeground", self.gutterFGColor);
  putColorIfVisible(settings, @"gutter", self.gutterBGColor);
  putColorIfVisible(settings, @"findHighlightForeground", self.findHiliteFGColor);
  putColorIfVisible(settings, @"findHighlight", self.findHiliteBGColor);

  [baseRules addObject:@{ @"settings": settings }];

  for (QSchemeRule *rule in self.rules) {
    [baseRules addObject:[rule toPropertyList]];
  }

  plist[@"settings"] = baseRules;

  return plist;
}

@end


text:
package com.azure.resourcemanager.peering.implementation;

import com.azure.core.util.Context;
import com.azure.resourcemanager.peering.fluent.models.PeeringRegisteredPrefixInner;
import com.azure.resourcemanager.peering.models.PeeringRegisteredPrefix;
import com.azure.resourcemanager.peering.models.PrefixValidationState;
import com.azure.resourcemanager.peering.models.ProvisioningState;

public final class PeeringRegisteredPrefixImpl
    implements PeeringRegisteredPrefix, PeeringRegisteredPrefix.Definition, PeeringRegisteredPrefix.Update {
    private PeeringRegisteredPrefixInner innerObject;

    private final com.azure.resourcemanager.peering.PeeringManager serviceManager;

    public String id() {
        return this.innerModel().id();
    }

    public String name() {
        return this.innerModel().name();
    }

    public String type() {
        return this.innerModel().type();
    }

    public String prefix() {
        return this.innerModel().prefix();
    }

    public PrefixValidationState prefixValidationState() {
        return this.innerModel().prefixValidationState();
    }

    public String peeringServicePrefixKey() {
        return this.innerModel().peeringServicePrefixKey();
    }

    public String errorMessage() {
        return this.innerModel().errorMessage();
    }

    public ProvisioningState provisioningState() {
        return this.innerModel().provisioningState();
    }

    public PeeringRegisteredPrefixInner innerModel() {
        return this.innerObject;
    }

    private com.azure.resourcemanager.peering.PeeringManager manager() {
        return this.serviceManager;
    }

    private String resourceGroupName;

    private String peeringName;

    private String registeredPrefixName;

    public PeeringRegisteredPrefixImpl withExistingPeering(String resourceGroupName, String peeringName) {
        this.resourceGroupName = resourceGroupName;
        this.peeringName = peeringName;
        return this;
    }

    public PeeringRegisteredPrefix create() {
        this.innerObject =
            serviceManager
                .serviceClient()
                .getRegisteredPrefixes()
                .createOrUpdateWithResponse(
                    resourceGroupName, peeringName, registeredPrefixName, this.innerModel(), Context.NONE)
                .getValue();
        return this;
    }

    public PeeringRegisteredPrefix create(Context context) {
        this.innerObject =
            serviceManager
                .serviceClient()
                .getRegisteredPrefixes()
                .createOrUpdateWithResponse(
                    resourceGroupName, peeringName, registeredPrefixName, this.innerModel(), context)
                .getValue();
        return this;
    }

    PeeringRegisteredPrefixImpl(String name, com.azure.resourcemanager.peering.PeeringManager serviceManager) {
        this.innerObject = new PeeringRegisteredPrefixInner();
        this.serviceManager = serviceManager;
        this.registeredPrefixName = name;
    }

    public PeeringRegisteredPrefixImpl update() {
        return this;
    }

    public PeeringRegisteredPrefix apply() {
        this.innerObject =
            serviceManager
                .serviceClient()
                .getRegisteredPrefixes()
                .createOrUpdateWithResponse(
                    resourceGroupName, peeringName, registeredPrefixName, this.innerModel(), Context.NONE)
                .getValue();
        return this;
    }

    public PeeringRegisteredPrefix apply(Context context) {
        this.innerObject =
            serviceManager
                .serviceClient()
                .getRegisteredPrefixes()
                .createOrUpdateWithResponse(
                    resourceGroupName, peeringName, registeredPrefixName, this.innerModel(), context)
                .getValue();
        return this;
    }

    PeeringRegisteredPrefixImpl(
        PeeringRegisteredPrefixInner innerObject, com.azure.resourcemanager.peering.PeeringManager serviceManager) {
        this.innerObject = innerObject;
        this.serviceManager = serviceManager;
        this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
        this.peeringName = Utils.getValueFromIdByName(innerObject.id(), "peerings");
        this.registeredPrefixName = Utils.getValueFromIdByName(innerObject.id(), "registeredPrefixes");
    }

    public PeeringRegisteredPrefix refresh() {
        this.innerObject =
            serviceManager
                .serviceClient()
                .getRegisteredPrefixes()
                .getWithResponse(resourceGroupName, peeringName, registeredPrefixName, Context.NONE)
                .getValue();
        return this;
    }

    public PeeringRegisteredPrefix refresh(Context context) {
        this.innerObject =
            serviceManager
                .serviceClient()
                .getRegisteredPrefixes()
                .getWithResponse(resourceGroupName, peeringName, registeredPrefixName, context)
                .getValue();
        return this;
    }

    public PeeringRegisteredPrefixImpl withPrefix(String prefix) {
        this.innerModel().withPrefix(prefix);
        return this;
    }
}


text:
title: "Festa del Fusillo"
date: 2009-08-11 18:32
---
Am Sonntag ging es hinauf zum Festa del Fusillo in Mercato Cilento. Quasi einem Fest der Nudel. Gespannt was uns erwarten würde, fuhren wir rechtzeitig los. Die Fahrt ging rund eine halbe Stunde über eine kleine kurvenreiche Bergstrasse.

<!--more-->

{% include wetty/picture_left.html img="2009-08-08-Kampanien/DSCF2163.JPG" alt="Kampanien" class="left" %}

Kurz vor acht erreichten wir das Ziel. Vor einem Hotel war für zahlreiche Gäste eingedeckt. Das Fest ging allerdings erst um 20:00 Uhr los, also vertraten wir uns noch etwas die Beine.

Für 8€ gab es ein Menu, dass aus einer Portion Nudel, einem Hühnerschlegel und Pommes Frites bestand. Die Flasche Wasser kam auf 1,50€ und die Flasche Wein auf 3€. Wir nahmen das Menu und setzen uns gleich mal an einen der langen Tische.

Zur musikalischen Unterhaltung spielte eine Band, die bekannte Melodien wie "Marina, Marina, Marina" schmetterte. Sie war so laut, das man sich selbst mit seinem Tischnachbar gegenüber so gut wie nicht unterhalten konnte.

Da das Ort auf gut 600m liegt und die Sonne hier bereits um 20 Uhr unter geht, wurde es recht empfindlich kalt, zumal wir in kurzen Klamotten unterwegs waren. Wir machten uns daher nach dem Essen direkt wieder auf den Heimweg.

Auf der Fahrt zurück lotste uns das Navi irgendwie falsch. Es hatte uns auf der herfahrt schon etliche Serpentinen als Abzweige genannt, wo keine waren. Jedenfalls dauert es so gut eine Stunde, bis wir wieder in der Villa Edwige ankamen.


text:
<?php

/**
 * This file is part of the FOSCommentBundle package.
 *
 * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace FOS\CommentBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

/**
 * Configures the DI container for CommentBundle.
 *
 * @author Thibault Duplessis <thibault.duplessis@gmail.com>
 */
class FOSCommentExtension extends Extension
{
    /**
     * Loads and processes configuration to configure the Container.
     *
     * @throws InvalidArgumentException
     * @param  array                    $configs
     * @param  ContainerBuilder         $container
     * @return void
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

        if (!in_array(strtolower($config['db_driver']), array('mongodb', 'orm'))) {
            throw new \InvalidArgumentException(sprintf('Invalid db driver "%s".', $config['db_driver']));
        }
        $loader->load(sprintf('%s.xml', $config['db_driver']));

        foreach (array('events', 'form', 'twig', 'sorting') as $basename) {
            $loader->load(sprintf('%s.xml', $basename));
        }

        // only load acl services if acl is enabled for the project
        if (array_key_exists('acl', $config)) {
            $this->loadAcl($container, $config);
        }

        $container->setParameter('fos_comment.template.engine', $config['template']['engine']);

        $container->setParameter('fos_comment.model.comment.class', $config['class']['model']['comment']);
        $container->setParameter('fos_comment.model.thread.class', $config['class']['model']['thread']);

        if (array_key_exists('vote', $config['class']['model'])) {
            $container->setParameter('fos_comment.model.vote.class', $config['class']['model']['vote']);
        }

        $container->setParameter('fos_comment.model_manager_name', $config['model_manager_name']);

        // handle the MongoDB document manager name in a specific way as it does not have a registry to make it easy
        // TODO: change it if https://github.com/symfony/DoctrineMongoDBBundle/pull/31 is merged
        if ('mongodb' === $config['db_driver']) {
            if (null === $config['model_manager_name']) {
                $container->setAlias('fos_comment.document_manager', new Alias('doctrine.odm.mongodb.document_manager', false));
            } else {
                $container->setAlias('fos_comment.document_manager', new Alias(sprintf('doctrine.odm.%s_mongodb.document_manager', $config['model_manager_name']), false));
            }
        }

        $container->setParameter('fos_comment.form.comment.type', $config['form']['comment']['type']);
        $container->setParameter('fos_comment.form.comment.name', $config['form']['comment']['name']);

        $container->setParameter('fos_comment.form.thread.type', $config['form']['thread']['type']);
        $container->setParameter('fos_comment.form.thread.name', $config['form']['thread']['name']);

        $container->setParameter('fos_comment.form.commentable_thread.type', $config['form']['commentable_thread']['type']);
        $container->setParameter('fos_comment.form.commentable_thread.name', $config['form']['commentable_thread']['name']);

        $container->setParameter('fos_comment.form.delete_comment.type', $config['form']['delete_comment']['type']);
        $container->setParameter('fos_comment.form.delete_comment.name', $config['form']['delete_comment']['name']);

        $container->setParameter('fos_comment.form.vote.type', $config['form']['vote']['type']);
        $container->setParameter('fos_comment.form.vote.name', $config['form']['vote']['name']);

        $container->setParameter('fos_comment.sorting_factory.default_sorter', $config['service']['sorting']['default']);

        $container->setAlias('fos_comment.form_factory.comment', $config['service']['form_factory']['comment']);
        $container->setAlias('fos_comment.form_factory.commentable_thread', $config['service']['form_factory']['commentable_thread']);
        $container->setAlias('fos_comment.form_factory.delete_comment', $config['service']['form_factory']['delete_comment']);
        $container->setAlias('fos_comment.form_factory.thread', $config['service']['form_factory']['thread']);
        $container->setAlias('fos_comment.form_factory.vote', $config['service']['form_factory']['vote']);

        if (isset($config['service']['spam_detection'])) {
            $loader->load('spam_detection.xml');
            $container->setAlias('fos_comment.spam_detection.comment', $config['service']['spam_detection']['comment']);
        }

        if (isset($config['service']['markup'])) {
            $container->setAlias('fos_comment.markup', new Alias($config['service']['markup'], false));
            $loader->load('markup.xml');
        }

        $container->setAlias('fos_comment.manager.thread', $config['service']['manager']['thread']);
        $container->setAlias('fos_comment.manager.comment', $config['service']['manager']['comment']);
        $container->setAlias('fos_comment.manager.vote', $config['service']['manager']['vote']);
    }

    protected function loadAcl(ContainerBuilder $container, array $config)
    {
        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('acl.xml');

        foreach (array(1 => 'create', 'view', 'edit', 'delete') as $index => $perm) {
            $container->getDefinition('fos_comment.acl.comment.roles')->replaceArgument($index, $config['acl_roles']['comment'][$perm]);
            $container->getDefinition('fos_comment.acl.thread.roles')->replaceArgument($index, $config['acl_roles']['thread'][$perm]);
            $container->getDefinition('fos_comment.acl.vote.roles')->replaceArgument($index, $config['acl_roles']['vote'][$perm]);
        }

        $container->setAlias('fos_comment.acl.thread', $config['service']['acl']['thread']);
        $container->setAlias('fos_comment.acl.comment', $config['service']['acl']['comment']);
        $container->setAlias('fos_comment.acl.vote', $config['service']['acl']['vote']);
    }
}


text:
val movies =
  <movies>
    <movie genre="action">Pirates of the Caribbean</movie>
    <movie genre="fairytale">Edward Scissorhands</movie>
    <short>Jack Jack Attack</short>
    <short>Geri's Game </short>
  </movies>

println(movies.text)

val movieNodes = movies \ "movie"

println(movieNodes(0))
println(movieNodes(0) \ "@genre")

println("All movies: ")

(movies \ "_").foreach { movie =>
  movie match {
    case <movie>{movieName}</movie> => println(movieName)
    case <short>{shortName}</short> => println(shortName + " (short)")
  }
}


text:
package org.jerlang.erts.emulator.op;

import org.jerlang.Module;
import org.jerlang.Process;
import org.jerlang.erts.emulator.Instruction;
import org.jerlang.erts.erlang.Error;
import org.jerlang.type.Float;
import org.jerlang.type.List;
import org.jerlang.type.Term;

/**
 *
 */
public class Fsub {

    public static Term execute(Process proc, Module m, Instruction i, List params) {
        Term s1 = i.arg(1);
        Term s2 = i.arg(2);
        Term dst = i.arg(3);

        if (s1.isFRegister() && s2.isFRegister() && dst.isFRegister()) {
            Float f1 = proc.getFR(s1.toRegisterIndex().toInt());
            Float f2 = proc.getFR(s2.toRegisterIndex().toInt());
            proc.setFR(dst.toRegisterIndex(), f1.subtract(f2));
            return null;
        } else {
            throw new Error("Not implemented: " + i);
        }
    }

}


text:
<?php
Yii::setAlias('@common', dirname(__DIR__));
Yii::setAlias('@frontend', dirname(dirname(__DIR__)) . '/frontend');
Yii::setAlias('@backend', dirname(dirname(__DIR__)) . '/backend');
Yii::setAlias('@console', dirname(dirname(__DIR__)) . '/console');
Yii::setAlias('@book', dirname(dirname(__DIR__)) . '/book');
Yii::setAlias('@bookadmin', dirname(dirname(__DIR__)) . '/bookadmin');
//Yii::setAlias('@yeesoft', dirname(dirname(__DIR__)) . '/vendor/yeesoft');


text:
<project
	xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>configuration-action</artifactId>
	<packaging>jar</packaging>

	<parent>
		<groupId>blade</groupId>
		<artifactId>parent.bnd.bundle.plugin</artifactId>
		<version>1.0.0</version>
		<relativePath>../../parent.bnd.bundle.plugin</relativePath>
	</parent>

	<dependencies>
		<dependency>
			<groupId>com.liferay.portal</groupId>
			<artifactId>com.liferay.portal.kernel</artifactId>
			<version>2.0.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>com.liferay</groupId>
			<artifactId>com.liferay.portal.configuration.metatype</artifactId>
			<version>2.0.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.portlet</groupId>
			<artifactId>portlet-api</artifactId>
			<version>2.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.0.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.service.component.annotations</artifactId>
			<version>1.3.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>biz.aQute.bnd</groupId>
			<artifactId>biz.aQute.bndlib</artifactId>
			<version>3.5.0</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<finalName>com.liferay.blade.configuration.action-${project.version}</finalName>
	</build>

</project>


text:
test_description='git blame encoding conversion'
. ./test-lib.sh

. "$TEST_DIRECTORY"/t8005/utf8.txt
. "$TEST_DIRECTORY"/t8005/euc-japan.txt
. "$TEST_DIRECTORY"/t8005/sjis.txt

test_expect_success 'setup the repository' '
	# Create the file
	echo "UTF-8 LINE" > file &&
	git add file &&
	git commit --author "$UTF8_NAME <utf8@localhost>" -m "$UTF8_MSG" &&

	echo "EUC-JAPAN LINE" >> file &&
	git add file &&
	git config i18n.commitencoding eucJP &&
	git commit --author "$EUC_JAPAN_NAME <euc-japan@localhost>" -m "$EUC_JAPAN_MSG" &&

	echo "SJIS LINE" >> file &&
	git add file &&
	git config i18n.commitencoding SJIS &&
	git commit --author "$SJIS_NAME <sjis@localhost>" -m "$SJIS_MSG"
'

cat >expected <<EOF
author $SJIS_NAME
summary $SJIS_MSG
author $SJIS_NAME
summary $SJIS_MSG
author $SJIS_NAME
summary $SJIS_MSG
EOF

test_expect_success !MINGW \
	'blame respects i18n.commitencoding' '
	git blame --incremental file | \
		egrep "^(author|summary) " > actual &&
	test_cmp actual expected
'

cat >expected <<EOF
author $EUC_JAPAN_NAME
summary $EUC_JAPAN_MSG
author $EUC_JAPAN_NAME
summary $EUC_JAPAN_MSG
author $EUC_JAPAN_NAME
summary $EUC_JAPAN_MSG
EOF

test_expect_success !MINGW \
	'blame respects i18n.logoutputencoding' '
	git config i18n.logoutputencoding eucJP &&
	git blame --incremental file | \
		egrep "^(author|summary) " > actual &&
	test_cmp actual expected
'

cat >expected <<EOF
author $UTF8_NAME
summary $UTF8_MSG
author $UTF8_NAME
summary $UTF8_MSG
author $UTF8_NAME
summary $UTF8_MSG
EOF

test_expect_success !MINGW \
	'blame respects --encoding=UTF-8' '
	git blame --incremental --encoding=UTF-8 file | \
		egrep "^(author|summary) " > actual &&
	test_cmp actual expected
'

cat >expected <<EOF
author $SJIS_NAME
summary $SJIS_MSG
author $EUC_JAPAN_NAME
summary $EUC_JAPAN_MSG
author $UTF8_NAME
summary $UTF8_MSG
EOF

test_expect_success !MINGW \
	'blame respects --encoding=none' '
	git blame --incremental --encoding=none file | \
		egrep "^(author|summary) " > actual &&
	test_cmp actual expected
'

test_done


text:
Image Resizing and caching for ASP.Net core middleware.
For more detail visit http://wanderlustcoder.com/blog/2017/07/19/image-resizing-and-disk-caching-in-aspnet-core
## Getting started
### Run unit test under test directory to see the concepts and ideas on how the ImageProvider works.
### The WebSample only return `Hello world` for all urls except for the ones that maps to the images url.
In my example `http://localhost:57734/images/Test1~small.jpg` will return Test1.jpg in the small size
Makes sure that you have images available for this, the startup will try and copy Test1 to Test5 from a resource directory 4 paths up from the current image dir if they do not exist `..\..\..\..\EO4Codong.Imaging.Resources\Images\` (you can also download this repository)

### The image Provider register by default these sizes, but you can register your own
```
 new Size() {Name="original",MaxX=0,MaxY=0}, //use 0 not to change the original size, this is also registered under the original size and will return the image as is
 new Size() {Name="original-cached",MaxX=0,MaxY=0}, //this return the original size, but it wil go through the resizing process which in most cases result in a smaller file size for the same image size, the compression algorithm used seem to compress more/beter, use the test cases to compare size. Test1.jpg in my example reduced from 14MB to 2.5MB using the same size
 new Size() {Name="xlarge",MaxX=1900,MaxY=1200 },
 new Size() {Name="large",MaxX=1024,MaxY=768 },
 new Size() {Name="medium",MaxX=800,MaxY=600 },
 new Size() {Name="small",MaxX=300,MaxY=240 },
 new Size() {Name="thumbnail",MaxX=160,MaxY=160 }
```


text:
  Croce est
       un village
       situé dans le département de Haute-Corse en Corse. Elle comptait 83 habitants en 2008.

La ville offre quelques  aménagements, elle dispose, entre autres, de un terrain de sport.

Si vous envisagez de emmenager à Croce, vous pourrez facilement trouver une maison à vendre.

Le nombre de logements, à Croce, était réparti en 2011 en 15 appartements et 83 maisons soit
 un marché relativement équilibré.

À proximité de Croce sont positionnées géographiquement les villes de
Campana à 2 km, 23 habitants,
Quercitello située à 1 km, 52 habitants,
Nocario à 1 km, 54 habitants,
Poggio-Marinaccio localisée à 2 km, 24 habitants,
La Porta localisée à 1 km, 242 habitants,
Ficaja localisée à 1 km, 49 habitants,
 entre autres. De plus, Croce est située à seulement 16 km de Borgo.


text:
import os

class Filesystem:

    name = "Filesystem Server"

    def __init__(self,kernel):
        self.kernel = kernel

        self.reps = []

        self.add_rep('home',self.kernel.home_path)

    def add_rep(self,name,rep):
        self.reps.append((name,rep))

    def expand(self,path):
        for rep in self.reps:
            path = path.replace('{'+rep[0]+'}',rep[1])
        return path

    def set_dir(self,path):
        os.chdir(self.expand(path))

    def get_dir(self):
        return os.getcwd()

    def open(self,path,mode='r'):
        return open(self.expand(path),mode)

    def is_dir(self,path):
        return os.path.isdir(self.expand(path))

    def is_file(self,path):
        return os.path.isfile(self.expand(path))

    def join(self,a,*p):
        return os.path.join(a,*p)

    def split(self,path):
        return os.path.split(self.expand(path))

    def split_ext(self,path):
        return os.path.splitext(self.expand(path))

    def list(self,path):
        return os.listdir(self.expand(path))

APPLICATION = []
SERVICE     = {'fs':Filesystem}


text:
class CellsController < ApplicationController
  def with_layout
    model = Struct.new(:title).new("Dashboard")
    render cell(Artist::Cell::Dashboard, model), layout: false
  end

  def without_layout
    model = Struct.new(:title).new("Dashboard")
    render cell(Artist::Cell::Dashboard, model, layout: false), layout: false # FIXME: this still renders the cell's layout.
  end

  # override controller-wide layout in {#cell}.
  def with_explicit_layout
    model = Struct.new(:title).new("Dashboard")
    render cell(Artist::Cell::Dashboard, model, layout: Artist::Cell::DarkLayout), layout: false
  end

  #@ model-less, model can be skipped.
  def new
    render cell(Artist::Cell::New)
  end

  private

  def options_for_cell(_model, _options)
    {
      layout: Artist::Cell::Layout
    }
  end
end


text:
#ifndef VISLIB_SYSTEMEXCEPTION_H_INCLUDED
#define VISLIB_SYSTEMEXCEPTION_H_INCLUDED
#if (defined(_MSC_VER) && (_MSC_VER > 1000))
#pragma once
#endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)) */
#if defined(_WIN32) && defined(_MANAGED)
#pragma managed(push, off)
#endif /* defined(_WIN32) && defined(_MANAGED) */

#include "vislib/Exception.h"
#include "vislib/sys/SystemMessage.h"
#include "vislib/types.h"

namespace vislib {
namespace sys {

/**
 * This exception class represents a system error. It is instantiated with
 * a system error code and retrieves the error message from the system.
 *
 * @author Christoph Mueller (christoph.mueller@vis.uni-stuttgart.de)
 */
class SystemException : public Exception {

public:
    /**
     * Ctor.
     *
     * @param errorCode A system dependent error code.
     * @param file      The file the exception was thrown in.
     * @param line      The line the exception was thrown in.
     */
    SystemException(const DWORD errorCode, const char* file, const int line);

    /**
     * Create a SystemException with the current error code retrieved using
     * ::GetLastError().
     *
     * @param file The file the exception was thrown in.
     * @param line The line the exception was thrown in.
     */
    SystemException(const char* file, const int line);

    /**
     * Create a clone of 'rhs'.
     *
     * @param rhs The object to be cloned.
     */
    SystemException(const SystemException& rhs);

    /** Dtor. */
    virtual ~SystemException(void);

    /**
     * Answer the system dependent error code associated with this
     * exception.
     *
     * @return The system error code.
     */
    inline DWORD GetErrorCode(void) const {
        return this->sysMsg.GetErrorCode();
    }

    /**
     * Answer the file the exception description text. Behaves like
     * Exception::GetMsgA.
     *
     * @return The exception message.
     */
    virtual const char* GetMsgA(void) const;

    /**
     * Answer the file the exception description text. Behaves like
     * Exception::GetMsgW.
     *
     * @return The exception message.
     */
    virtual const wchar_t* GetMsgW(void) const;

    /**
     * Assignment operator.
     *
     * @param rhs The right hand side operand.
     *
     * @return *this.
     */
    SystemException& operator=(const SystemException& rhs);

private:
    /**
     * The system message for the error code. This member is used instead
     * of Exception::msg.
     */
    SystemMessage sysMsg;
};

} /* end namespace sys */
} /* end namespace vislib */

#if defined(_WIN32) && defined(_MANAGED)
#pragma managed(pop)
#endif /* defined(_WIN32) && defined(_MANAGED) */
#endif /* VISLIB_SYSTEMEXCEPTION_H_INCLUDED */


text:
require 'ebay/types/extended_product_finder_id'
require 'ebay/types/characteristics_set'

module Ebay # :nodoc:
  module Types # :nodoc:
    # == Attributes
    #  boolean_node :best_offer_enabled, 'BestOfferEnabled', 'true', 'false', :optional => true
    #  boolean_node :auto_pay_enabled, 'AutoPayEnabled', 'true', 'false', :optional => true
    #  boolean_node :b2_bvat_enabled, 'B2BVATEnabled', 'true', 'false', :optional => true
    #  boolean_node :catalog_enabled, 'CatalogEnabled', 'true', 'false', :optional => true
    #  text_node :category_id, 'CategoryID', :optional => true
    #  numeric_node :category_level, 'CategoryLevel', :optional => true
    #  text_node :category_name, 'CategoryName', :optional => true
    #  text_node :category_parent_id, 'CategoryParentID', :optional => true
    #  text_node :category_parent_name, 'CategoryParentName', :optional => true
    #  boolean_node :product_search_page_available, 'ProductSearchPageAvailable', 'true', 'false', :optional => true
    #  array_node :product_finder_ids, 'ProductFinderIDs', :class => ExtendedProductFinderID, :default_value => []
    #  array_node :characteristics_sets, 'CharacteristicsSets', :class => CharacteristicsSet, :default_value => []
    #  boolean_node :expired, 'Expired', 'true', 'false', :optional => true
    #  boolean_node :intl_autos_fixed_cat, 'IntlAutosFixedCat', 'true', 'false', :optional => true
    #  boolean_node :leaf_category, 'LeafCategory', 'true', 'false', :optional => true
    #  boolean_node :virtual, 'Virtual', 'true', 'false', :optional => true
    #  numeric_node :num_of_items, 'NumOfItems', :optional => true
    #  boolean_node :seller_guarantee_eligible, 'SellerGuaranteeEligible', 'true', 'false', :optional => true
    #  boolean_node :orpa, 'ORPA', 'true', 'false', :optional => true
    #  boolean_node :orra, 'ORRA', 'true', 'false', :optional => true
    #  boolean_node :lsd, 'LSD', 'true', 'false', :optional => true
    #  text_node :keywords, 'Keywords', :optional => true
    class Category
      include XML::Mapping
      include Initializer
      root_element_name 'Category'
      boolean_node :best_offer_enabled, 'BestOfferEnabled', 'true', 'false', :optional => true
      boolean_node :auto_pay_enabled, 'AutoPayEnabled', 'true', 'false', :optional => true
      boolean_node :b2_bvat_enabled, 'B2BVATEnabled', 'true', 'false', :optional => true
      boolean_node :catalog_enabled, 'CatalogEnabled', 'true', 'false', :optional => true
      text_node :category_id, 'CategoryID', :optional => true
      numeric_node :category_level, 'CategoryLevel', :optional => true
      text_node :category_name, 'CategoryName', :optional => true
      text_node :category_parent_id, 'CategoryParentID', :optional => true
      text_node :category_parent_name, 'CategoryParentName', :optional => true
      boolean_node :product_search_page_available, 'ProductSearchPageAvailable', 'true', 'false', :optional => true
      array_node :product_finder_ids, 'ProductFinderIDs', :class => ExtendedProductFinderID, :default_value => []
      array_node :characteristics_sets, 'CharacteristicsSets', :class => CharacteristicsSet, :default_value => []
      boolean_node :expired, 'Expired', 'true', 'false', :optional => true
      boolean_node :intl_autos_fixed_cat, 'IntlAutosFixedCat', 'true', 'false', :optional => true
      boolean_node :leaf_category, 'LeafCategory', 'true', 'false', :optional => true
      boolean_node :virtual, 'Virtual', 'true', 'false', :optional => true
      numeric_node :num_of_items, 'NumOfItems', :optional => true
      boolean_node :seller_guarantee_eligible, 'SellerGuaranteeEligible', 'true', 'false', :optional => true
      boolean_node :orpa, 'ORPA', 'true', 'false', :optional => true
      boolean_node :orra, 'ORRA', 'true', 'false', :optional => true
      boolean_node :lsd, 'LSD', 'true', 'false', :optional => true
      text_node :keywords, 'Keywords', :optional => true
    end
  end
end


text:
package org.artifactory.webapp.wicket.page.build.tabs.diff;

import org.apache.wicket.markup.html.panel.Panel;
import org.artifactory.common.wicket.behavior.CssClass;
import org.artifactory.common.wicket.util.SetEnableVisitor;

/**
 * @author Shay Yaakov
 */
public class DisabledBuildDiffTabPanel extends BaseBuildDiffTabPanel {

    public DisabledBuildDiffTabPanel(String id) {
        super(id, null);
        add(new CssClass("disabled-panel"));

        setEnabled(false);
        visitChildren(new SetEnableVisitor(false));
    }

    @Override
    protected Panel getArtifactsDiffListPanel(String id) {
        artifactsDiffListPanel = new DisabledArtifactsDiffListPanel(id);
        return artifactsDiffListPanel;
    }

    @Override
    protected Panel getDependenciesDiffListPanel(String id) {
        dependenciesDiffListPanel = new DisabledDependenciesDiffListPanel(id);
        return dependenciesDiffListPanel;
    }

    @Override
    protected Panel getEnvDiffListPanel(String id) {
        envDiffListPanel = new DisabledPropertiesDiffListPanel(id);
        return envDiffListPanel;
    }
}


text:
Require this package in your composer.json and update composer. This will download the package and the dompdf + fontlib libraries also.

    "barryvdh/laravel-dompdf": "0.5.*"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

    'Barryvdh\DomPDF\ServiceProvider',

You can optionally use the facade for shorter code. Add this to your facades:

    'PDF' => 'Barryvdh\DomPDF\Facade',

You can create a new DOMPDF instance and load a HTML string, file or view name. You can save it to a file, or stream (show in browser) or download.

    $pdf = App::make('dompdf');
    $pdf->loadHTML('
Test
');
    return $pdf->stream();

Or use the facade:

    $pdf = PDF::loadView('pdf.invoice', $data);
    return $pdf->download('invoice.pdf');

You can chain the methods:

    return PDF::loadFile(public_path().'/myfile.html')->save('/path-to/my_stored_file.pdf')->stream('download.pdf');

You can change the orientation and paper size, and hide or show errors (by default, errors are shown when debug is on)

    PDF::loadHTML($html)->setPaper('a4')->setOrientation('landscape')->setWarnings(false)->save('myfile.pdf')

If you need the output as a string, you can get the rendered PDF with the output() function, so you can save/output it yourself.

You can copy the config-file (`config/dompdf.php`) to your local config to change some settings (default paper etc).
You can also use your ConfigProvider to set certain keys.

### Tip: UTF-8 support
In your templates, set the UTF-8 Metatag:

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

### License

This DOMPDF Wrapper for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)


text:
#import <XCTest/XCTest.h>

@interface BBAAuthResponseMapperTests : XCTestCase

@end


text:
layout: post
date: 2018-01-04
title: "Lucas Anderi Conceito Colecao Style 10"
category: Lucas Anderi
tags: [Lucas Anderi]
---
### Lucas Anderi Conceito Colecao Style 10
Just **$439.99**
###

BRANDS	Lucas Anderi

Buy it: [https://www.readybrides.com/en/lucas-anderi/44637-lucas-anderi-conceito-colecao-style-10.html](https://www.readybrides.com/en/lucas-anderi/44637-lucas-anderi-conceito-colecao-style-10.html)


text:
All URIs are relative to *https://api.electioapp.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getQuotes**](QuotesApi.md#getQuotes) | **POST** /quotes | Get delivery option quotes

# **getQuotes**
> \ChrisHemmings\Electio\Client\Model\QuotesResponse getQuotes($electio_api_version, $allocation)

Get delivery option quotes

Get delivery option quotes

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Ocp-Apim-Subscription-Key
$config = ChrisHemmings\Electio\Configuration::getDefaultConfiguration()->setApiKey('Ocp-Apim-Subscription-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ChrisHemmings\Electio\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Ocp-Apim-Subscription-Key', 'Bearer');

$apiInstance = new ChrisHemmings\Electio\Api\QuotesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$electio_api_version = "1.1"; // string | Electio API Version
$allocation = new \ChrisHemmings\Electio\Client\Model\DeliveryOptionsRequest(); // \ChrisHemmings\Electio\Client\Model\DeliveryOptionsRequest | Consignment to create

try {
    $result = $apiInstance->getQuotes($electio_api_version, $allocation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QuotesApi->getQuotes: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **electio_api_version** | **string**| Electio API Version | [default to 1.1]
 **allocation** | [**\ChrisHemmings\Electio\Client\Model\DeliveryOptionsRequest**](../Model/DeliveryOptionsRequest.md)| Consignment to create | [optional]

### Return type

[**\ChrisHemmings\Electio\Client\Model\QuotesResponse**](../Model/QuotesResponse.md)

### Authorization

[Ocp-Apim-Subscription-Key](../../README.md#Ocp-Apim-Subscription-Key)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)


text:
<attributemap>
    <attribute name='id'    path='//documents/document/id'             mode='first'  comp='false' />
    <attribute name='title' path='//documents/document/title'          mode='first'  comp='false' />
    <attribute name='langs' path='//documents/document/languages/lang' mode='multi'  comp='false' />
    <attribute name='type'  path='//documents/document/type'           mode='first'  comp='false' />
</attributemap>


text:
<!DOCTYPE html>

  <meta charset="utf-8" />
  <title>Flatkit - HTML Version | Bootstrap 4 Web App Kit with AngularJS</title>
  <meta name="description" content="Admin, Dashboard, Bootstrap, Bootstrap 4, Angular, AngularJS" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimal-ui" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-barstyle" content="black-translucent">
  <link rel="apple-touch-icon" href="../assets/images/logo.png">
  <meta name="apple-mobile-web-app-title" content="Flatkit">

  <meta name="mobile-web-app-capable" content="yes">
  <link rel="shortcut icon" sizes="196x196" href="../assets/images/logo.png">

  <link rel="stylesheet" href="../assets/animate.css/animate.min.css" type="text/css" />
  <link rel="stylesheet" href="../assets/font-awesome/css/font-awesome.min.css" type="text/css" />
  <link rel="stylesheet" href="../assets/material-design-icons/material-design-icons.css" type="text/css" />

  <link rel="stylesheet" href="../assets/bootstrap/dist/css/bootstrap.min.css" type="text/css" />

  <link rel="stylesheet" href="../assets/styles/app.css" type="text/css" />

  <link rel="stylesheet" href="../assets/styles/font.css" type="text/css" />

Options

          Button options extended from bootstrap buttons

Colors

            <button class="btn btn-fw white">White</button>
            <button class="btn btn-fw primary">Primary</button>
            <button class="btn btn-fw accent">Accent</button>
            <button class="btn btn-fw warn">Warn</button>
            <button class="btn btn-fw success">Success</button>
            <button class="btn btn-fw info">Info</button>
            <button class="btn btn-fw warning">Warning</button>
            <button class="btn btn-fw danger">Danger</button>
            <button class="btn btn-fw dark">Dark</button>
            <button class="btn btn-fw black">Black</button>
            <button class="btn btn-fw" disabled>Disabled</button>

Size

            <button class="btn btn-sm white">btn-sm</button>
            <button class="btn white">btn</button>
            <button class="btn btn-lg white">btn-lg</button>

Rounded

            <button class="btn rounded white">Rounded</button>
            <button class="btn rounded white p-x-md">More padding</button>

Outline

            <button class="btn btn-outline b-primary text-primary">Primary</button>
            <button class="btn btn-outline b-info text-info">Info</button>
            <button class="btn btn-outline b-success text-success">success</button>
            <button class="btn btn-outline b-warning text-warning">warning</button>
            <button class="btn btn-outline b-danger text-danger">danger</button>
            <button class="btn btn-outline b-accent text-accent">accent</button>
            <button class="btn btn-outline b-warn text-warn">warn</button>
            <button class="btn btn-outline b-black text-black">Black</button>

            <button class="btn btn-outline rounded b-primary text-primary">Primary</button>
            <button class="btn btn-outline rounded b-info text-info">Info</button>
            <button class="btn btn-outline rounded b-success text-success">success</button>
            <button class="btn btn-outline rounded b-warning text-warning">warning</button>
            <button class="btn btn-outline rounded b-danger text-danger">danger</button>
            <button class="btn btn-outline rounded b-accent text-accent">accent</button>
            <button class="btn btn-outline rounded b-warn text-warn">warn</button>
            <button class="btn btn-outline rounded b-primary text-primary b-2x">b-2x</button>

Block button

            <button class="btn white btn-lg btn-block"> Block button with icon</button>

            <button class="btn info btn-block"> Block button with icon</button>

Icon

            <button class="btn btn-icon white">

            </button>
            <button class="btn btn-icon white">

            </button>
            <button class="btn btn-icon btn-rounded btn-info">

            </button>
            <button class="btn btn-icon btn-rounded btn-danger">

            </button>

App

                Available on the
                App Store

                Get it on
                Google Play

Groups

          Buttons group

              <button type="button" class="btn btn-outline b-info">Left</button>
              <button type="button" class="btn btn-outline b-info">Middle</button>
              <button type="button" class="btn btn-outline b-info">Right</button>

              <button type="button" class="btn btn-sm info active">Left</button>
              <button type="button" class="btn btn-sm info">Middle</button>
              <button type="button" class="btn btn-sm info">Right</button>

Vertical

            <button type="button" class="btn white">Top</button>
            <button type="button" class="btn white">Middle</button>
            <button type="button" class="btn white">Bottom</button>

Nested

            <button type="button" class="btn white">1</button>
            <button type="button" class="btn btn-info">2</button>
            <button type="button" class="btn white">3</button>

              <button type="button" class="btn white" data-toggle="dropdown">
                Dropdown
              </button>

Action

Another action

Something else here

Separated link

Multiple

              <button type="button" class="btn white">1</button>
              <button type="button" class="btn white">2</button>
              <button type="button" class="btn white active">3</button>
              <button type="button" class="btn white">4</button>

              <button type="button" class="btn white">5</button>
              <button type="button" class="btn white">6</button>
              <button type="button" class="btn white">7</button>

              <button type="button" class="btn white">8</button>

Material buttons

          Material design style buttons

Flat button

              <button class="md-btn md-flat m-b-sm w-xs">Default</button>
              <button class="md-btn md-flat m-b-sm w-xs text-primary">Primary</button>
              <button class="md-btn md-flat m-b-sm w-xs text-accent">Accent</button>
              <button class="md-btn md-flat m-b-sm w-xs text-warn">Warn</button>
              <button class="md-btn md-flat m-b-sm w-xs text-success">Success</button>
              <button class="md-btn md-flat m-b-sm w-xs text-warning">Warning</button>
              <button class="md-btn md-flat m-b-sm w-xs text-danger">Danger</button>
              <button class="md-btn md-flat m-b-sm w-xs text-danger" disabled>Disabled</button>

Raised button

              <button class="md-btn md-raised m-b-sm w-xs white">White</button>
              <button class="md-btn md-raised m-b-sm w-xs indigo">Indigo</button>
              <button class="md-btn md-raised m-b-sm w-xs pink">Pink</button>
              <button class="md-btn md-raised m-b-sm w-xs blue">Blue</button>
              <button class="md-btn md-raised m-b-sm w-xs green">Green</button>

              <button class="md-btn md-raised m-b-sm w-xs orange">Orange</button>
              <button class="md-btn md-raised m-b-sm w-xs red">Red</button>
              <button class="md-btn md-raised m-b-sm w-xs purple">Purple</button>
              <button class="md-btn md-raised m-b-sm w-xs red" disabled>Disabled</button>

Icon

              <button class="md-btn md-fab m-b-sm white">add</button>
              <button class="md-btn md-fab m-b-sm indigo">search</button>
              <button class="md-btn md-fab m-b-sm pink">phone</button>
              <button class="md-btn md-fab m-b-sm blue">dialpad</button>
              <button class="md-btn md-fab m-b-sm grey" disabled>flight</button>

      create


text:
{{customer.benefit}}

				   {% if customer.caseflags == 'ucb' %}
UCB
  {% endif %}

Name{{customer.name}}
				  Nino{{customer.nino}}

Details

				  {% if customer.appointment.time %}

{{customer.appointment.time}}

				  {% endif%}
				    {% if data['capDay']  and customer.status == 'Booked' %}

{{capDay}}/{{capMonth}}/2019

				    {% else %}

{{customer.appointment.date}}

				  {% endif%}

{{customer.appointment.type}}

				    {% if customer.appointment.requirement
					 %}

Requirements

				   {% if customer.appointment.requirement == 'taxi' %}

Taxi - Booked

				  {% endif%}
				  {% if customer.appointment.requirement == 'interpreter' %}

Interpreter: {{customer.appointment.interpreter}} - Booked

				  {% endif%}
				   {% if customer.appointment.requirement == 'audio' %}

Audio recording

				  {% endif%}
				     {% if customer.appointment.requirement == 'accessible'%}

Accessible room

				  {% endif%}
				  {% if customer.appointment.requirement == 'gender' %}

Same gender hcp

				  {% endif%}

				   {% endif%}

				    {% if customer.history or customer.appointment.dna
					 %}

History

				  {% if customer.status == 'Booked' and customer.appointment.dna %}

Previous DNA

				  {% endif %}
				   {% if customer.history.senthome == 'sent home' %}

Skillset change

Previously sent home

				  {% endif%}
				   {% if customer.history.inbound == 'inbound' %}

Inbound contact:
{{ 'Do MMMM YYYY' | baseDate(15)}}

				  {% endif%}
				  {% if customer.history.inbound == 'inbound' %}

Outbound contact:
{{ 'Do MMMM YYYY' | baseDate(19)}}

				  {% endif%}

				   {% endif%}

{{customer.referral.type}}

				  {% if customer.status == 'Ready to book' and customer.referral.edtarget %}

DNA rebooking target: {{customer.referral.edtarget}} days remaining

				  {% endif %}
				  {% if customer.status == 'Booked' and customer.referral.type =='New referral' %}

SLA target: {{customer.sla}} days remaining

				    {% endif %}


text:
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace CloudWatchEvents
{
namespace Model
{

  /**
   *
Contains the parameters needed for you to provide custom input to a target
   * based on one or more pieces of data extracted from the event.

See
   * Also:
   AWS
   * API Reference

   */
  class AWS_CLOUDWATCHEVENTS_API InputTransformer
  {
  public:
    InputTransformer();
    InputTransformer(Aws::Utils::Json::JsonView jsonValue);
    InputTransformer& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline const Aws::Map<Aws::String, Aws::String>& GetInputPathsMap() const{ return m_inputPathsMap; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline bool InputPathsMapHasBeenSet() const { return m_inputPathsMapHasBeenSet; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline void SetInputPathsMap(const Aws::Map<Aws::String, Aws::String>& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap = value; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline void SetInputPathsMap(Aws::Map<Aws::String, Aws::String>&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap = std::move(value); }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& WithInputPathsMap(const Aws::Map<Aws::String, Aws::String>& value) { SetInputPathsMap(value); return *this;}

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& WithInputPathsMap(Aws::Map<Aws::String, Aws::String>&& value) { SetInputPathsMap(std::move(value)); return *this;}

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(const Aws::String& key, const Aws::String& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, value); return *this; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(Aws::String&& key, const Aws::String& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(std::move(key), value); return *this; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(const Aws::String& key, Aws::String&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, std::move(value)); return *this; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(Aws::String&& key, Aws::String&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(std::move(key), std::move(value)); return *this; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(const char* key, Aws::String&& value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, std::move(value)); return *this; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(Aws::String&& key, const char* value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(std::move(key), value); return *this; }

    /**
     *
Map of JSON paths to be extracted from the event. You can then insert these
     * in the template in InputTemplate to produce the output you want to
     * be sent to the target.

 InputPathsMap is an array key-value
     * pairs, where each value is a valid JSON path. You can have as many as 100
     * key-value pairs. You must use JSON dot notation, not bracket notation.

     *
The keys cannot start with "Amazon Web Services."

     */
    inline InputTransformer& AddInputPathsMap(const char* key, const char* value) { m_inputPathsMapHasBeenSet = true; m_inputPathsMap.emplace(key, value); return *this; }

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline const Aws::String& GetInputTemplate() const{ return m_inputTemplate; }

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline bool InputTemplateHasBeenSet() const { return m_inputTemplateHasBeenSet; }

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline void SetInputTemplate(const Aws::String& value) { m_inputTemplateHasBeenSet = true; m_inputTemplate = value; }

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline void SetInputTemplate(Aws::String&& value) { m_inputTemplateHasBeenSet = true; m_inputTemplate = std::move(value); }

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline void SetInputTemplate(const char* value) { m_inputTemplateHasBeenSet = true; m_inputTemplate.assign(value); }

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline InputTransformer& WithInputTemplate(const Aws::String& value) { SetInputTemplate(value); return *this;}

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline InputTransformer& WithInputTemplate(Aws::String&& value) { SetInputTemplate(std::move(value)); return *this;}

    /**
     *
Input template where you specify placeholders that will be filled with the
     * values of the keys from InputPathsMap to customize the data sent to
     * the target. Enclose each InputPathsMaps value in brackets:
     * <value> The InputTemplate must be valid JSON.

If
     * InputTemplate is a JSON object (surrounded by curly braces), the
     * following restrictions apply:

The placeholder cannot be used as
     * an object key.

The following example shows the syntax for
     * using InputPathsMap and InputTemplate.

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state <status>"

 }

To have the
     * InputTemplate include quote marks within a JSON string, escape each
     * quote marks with a slash, as in the following example:

     * "InputTransformer":

 {

     * "InputPathsMap": {"instance": "$.detail.instance","status":
     * "$.detail.status"},

 "InputTemplate": "<instance> is
     * in state \"<status>\""

 }

The
     * InputTemplate can also be valid JSON with varibles in quotes or
     * out, as in the following example:

  "InputTransformer":

     *
 {

 "InputPathsMap": {"instance":
     * "$.detail.instance","status": "$.detail.status"},

     * "InputTemplate": '{"myInstance": <instance>,"myStatus":
     * "<instance> is in state \"<status>\""}'

     * }

     */
    inline InputTransformer& WithInputTemplate(const char* value) { SetInputTemplate(value); return *this;}

  private:

    Aws::Map<Aws::String, Aws::String> m_inputPathsMap;
    bool m_inputPathsMapHasBeenSet;

    Aws::String m_inputTemplate;
    bool m_inputTemplateHasBeenSet;
  };

} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws