text:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Runtime.Serialization;

    namespace Softv.Entities
    {
    /// <summary>
    /// Class                   : Softv.Entities.NoClienteEntity.cs
    /// Generated by            : Class Generator (c) 2014
    /// Description             : NoCliente entity
    /// File                    : NoClienteEntity.cs
    /// Creation date           : 14/06/2016
    /// Creation time           : 10:34 a. m.
    ///</summary>
    [DataContract]
    [Serializable]
    public class NoClienteEntity : BaseEntity
    {
    #region Attributes

      /// <summary>
      /// Property Id
      /// </summary>
      [DataMember]
      public int? Id { get; set; }
      /// <summary>
      /// Property IdLlamada
      /// </summary>
      [DataMember]
      public int? IdLlamada { get; set; }
      /// <summary>
      /// Property Nombre
      /// </summary>
      [DataMember]
      public int? IdConexion { get; set; }
      /// <summary>
      /// Property Nombre
      /// </summary>
      [DataMember]
      public String Nombre { get; set; }
      /// <summary>
      /// Property Direccion
      /// </summary>
      [DataMember]
      public String Direccion { get; set; }
      /// <summary>
      /// Property Telefono
      /// </summary>
      [DataMember]
      public String Telefono { get; set; }
      /// <summary>
      /// Property Celular
      /// </summary>
      [DataMember]
      public String Celular { get; set; }
      /// <summary>
      /// Property Email
      /// </summary>
      [DataMember]
      public String Email { get; set; }

      [DataMember]
      public int? MotivoLlamada { get; set; }

    #endregion
    }
    }


text:
<?php

namespace Rcm\Validator;

use Rcm\Entity\Site;
use Rcm\Service\LayoutManager;
use Zend\Validator\AbstractValidator;

class MainLayout extends AbstractValidator
{
    /**
     * MAIN_LAYOUT
     */
    const MAIN_LAYOUT = 'pageTemplate';

    /**
     * @var array
     */
    protected $messageTemplates
        = [
            self::MAIN_LAYOUT => "'%value%' is not a valid layout."
        ];

    /**
     * @var \Rcm\Entity\Site
     */
    protected $currentSite;

    /**
     * @var \Rcm\Service\LayoutManager
     */
    protected $layoutManager;

    /**
     * Constructor
     *
     * @param Site          $currentSite   Rcm Current Site
     * @param LayoutManager $layoutManager Rcm Layout Manager
     */
    public function __construct(
        Site $currentSite,
        LayoutManager $layoutManager
    ) {
        $this->currentSite = $currentSite;
        $this->layoutManager = $layoutManager;

        parent::__construct();
    }

    /**
     * Is the layout valid?
     *
     * @param string $value Page to validate
     *
     * @return bool
     */
    public function isValid($value)
    {
        $this->setValue($value);

        if (!$this->layoutManager->isLayoutValid($this->currentSite, $value)) {
            $this->error(self::MAIN_LAYOUT);

            return false;
        }

        return true;
    }
}

redpajama_set_name: RedPajamaGithub


text:
@**
* Yobi, Project Hosting SW
*
* Copyright 2014 NAVER Corp.
* http://yobi.io
*
* @author Deokhong Kim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**@
@(org:Organization)

@import utils.TemplateHelper._
@import utils.JodaDateUtil

@getPopupTitle = { @if(User.enrolled(org)) { @Messages("organization.you.want.to.be.a.member", org.name) } else { @Messages("organization.you.may.want.to.be.a.member", org.name) } }
@getRequestUrl = { @if(User.enrolled(org)) { @routes.EnrollOrganizationApp.cancelEnroll(org.name) } else { @routes.EnrollOrganizationApp.enroll(org.name) } }
@getClassName = { @if(User.enrolled(org)) { yobicon-removefriend } else { yobicon-addfriend } }
@getEnrollmentButtonTitle = { @if(User.enrolled(org)) { @Messages("button.cancel.enrollment") } else { @Messages("button.new.enrollment") } }
@getEnrollmentHelp = { @if(User.enrolled(org)) { @Messages("organization.member.enrollment.help.after") } else { @Messages("organization.member.enrollment.help.before") } }

                    group@org.name

            @if(OrganizationUser.isGuest(org, UserApp.currentUser)) {

                    <button class="ybtn ybtn-small @if(User.enrolled(org)) { ybtn-info } dropdown-toggle" type="button" data-toggle="dropdown">
                         @Messages("organization.member.enrollment.title")
                    </button>

@getPopupTitle

                            @getEnrollmentHelp

                                @getEnrollmentButtonTitle

            }


text:
package xworker.task.segment.impl;

import java.util.concurrent.Callable;

import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.util.UtilData;

import xworker.task.segment.Range;
import xworker.task.segment.SegmentTask;

public class RangeCallable implements Callable<Boolean>{
	ActionContext actionContext;
	Thing thing;
	Range range;
	SegmentTask task;

	public RangeCallable(Thing thing, ActionContext actionContext){
		this.thing = thing;
		this.actionContext = actionContext;

		this.range = actionContext.getObject("range");
		this.task = actionContext.getObject("task");
	}

	@Override
	public Boolean call() throws Exception {
		return UtilData.isTrue(thing.doAction("doRange", actionContext, "range", range, "task", task));
	}

	public static RangeCallable run(ActionContext actionContext){
		Thing self = actionContext.getObject("self");

		return new RangeCallable(self, actionContext);
	}
}


text:
package spark.embeddedserver;

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

import spark.embeddedserver.jetty.EmbeddedJettyFactory;
import spark.route.Routes;
import spark.staticfiles.StaticFilesConfiguration;

/**
 * Holds and uses the factories for creating different Embedded servers.
 */
public class EmbeddedServers {

    // Default alternatives.
    public enum Identifiers {
        JETTY
    }

    private static Map<Object, EmbeddedServerFactory> factories = new HashMap<>();

    public static void initialize() {
        if (!factories.containsKey(Identifiers.JETTY)) {
            add(Identifiers.JETTY, new EmbeddedJettyFactory());
        }
    }

    public static Identifiers defaultIdentifier() {
        return Identifiers.JETTY;
    }

    /**
     * Creates an embedded server of type corresponding to the provided identifier.
     *
     * @param identifier               the identifier
     * @param routeMatcher             the route matcher
     * @param staticFilesConfiguration the static files configuration object
     * @param multipleHandlers         true if other handlers exist
     * @return the created EmbeddedServer object
     */
    public static EmbeddedServer create(Object identifier,
                                        Routes routeMatcher,
                                        StaticFilesConfiguration staticFilesConfiguration,
                                        boolean multipleHandlers) {

        EmbeddedServerFactory factory = factories.get(identifier);

        if (factory != null) {
            return factory.create(routeMatcher, staticFilesConfiguration, multipleHandlers);
        } else {
            throw new RuntimeException("No embedded server matching the identifier");
        }
    }

    /**
     * Adds an Embedded server factory for the provided identifier.
     *
     * @param identifier the identifier
     * @param factory    the factory
     */
    public static void add(Object identifier, EmbeddedServerFactory factory) {
        factories.put(identifier, factory);
    }

}


text:
<?php
namespace Apps\Common\Models;

class CosOnlineAppointment extends \PhalconPlus\Database\Model{
	public $id;
	public $online_product_id;
	public $product_name;
	public $appointment_time;
	public $set_man;
	public $set_man_id;
	public $is_buy;
	public $product_use_num;
	public $product_rest_num;
	public $tel;
	public $set_time;
	public $appointment_state;
	public $remark;
	public $technician;
	public $technician_id;
	public $technician_num;
	public $shop_id;
	public $shop_name;
	public $state;

	public function getSource()
	{
		return 'cos_online_appointment';
	}

	public static function find($parameters = null)
	{
		return parent::find($parameters);
	}

	public static function findFirst($parameters = null)
	{
		return parent::findFirst($parameters);
	}

	public function columnMap()
	{
		return array(
				'id' => 'id',
				'online_product_id' => 'online_product_id',
				'product_name' => 'product_name',
				'appointment_time' => 'appointment_time',
				'set_man' => 'set_man',
				'set_man_id' => 'set_man_id',
				'is_buy' => 'is_buy',
				'product_use_num' => 'product_use_num',
				'product_rest_num' => 'product_rest_num',
				'tel' => 'tel',
				'set_time' => 'set_time',
				'appointment_state' => 'appointment_state',
				'remark' => 'remark',
				'technician' => 'technician',
				'technician_id' => 'technician_id',
				'technician_num' => 'technician_num',
				'shop_id' => 'shop_id',
				'shop_name' => 'shop_name',
				'state' => 'state',
		        'type'=>'type',
		);
	}
	public function defaultColumns()
	{
		return [
				'id',
				'state'
		];
	}

}


text:
import ItemCooldown from 'game/ItemCooldown';

const Weapon = function() {
   var self = this,
      m_id,
      m_strName,
      m_weaponImplementation,
      m_world,
      m_cooldown;

   self.getId = function() {
      return m_id;
   };

   self.getName = function() {
      return m_strName;
   };

   self.setCooldownObserver = function(observer) {
      m_cooldown.setObserver(observer);
   };

   self.activate = function(iX, iY) {
      var bCooldown = m_cooldown.testItemReady(),
         bCanUse = m_weaponImplementation.canUse(iX, iY);

      if (bCooldown && bCanUse) {
         if (m_cooldown.tryUseItem()) {
            m_weaponImplementation.useWeapon(iX, iY);
         }
      }
   };

   self.upgrade = function(upgrade) {
      var weaponModInfo = upgrade.weaponModInfo;
      if (weaponModInfo.name) {
         m_strName = weaponModInfo.name;
      }

      if (weaponModInfo.cooldown) {
         m_cooldown.setCooldownTime(weaponModInfo.cooldown);
      }

      m_weaponImplementation.upgrade(upgrade);
   };

   self.initialize = function(world, iWeaponId, weaponImplentation) {
      m_id = iWeaponId;

      var item = world.getItemManager().getItemById(iWeaponId);

      m_world = world;

      m_strName = item.name;

      m_weaponImplementation = weaponImplentation;

      m_cooldown = new ItemCooldown();
      m_cooldown.initialize(world, item.cooldown);
   };
};

export default Weapon;


text:
using System;
using MoonSharp.Interpreter.Interop.StandardDescriptors.HardwiredDescriptors;

namespace MoonSharp.Interpreter.Interop.RegistrationPolicies
{
	/// <summary>
	/// The default registration policy used by MoonSharp unless explicitely replaced.
	/// Deregistrations are allowed, but registration of a new descriptor are not allowed
	/// if a descriptor is already registered for that type.
	///
	/// Automatic type registration is disabled.
	/// </summary>
	public class DefaultRegistrationPolicy : IRegistrationPolicy
	{
		/// <summary>
		/// Called to handle the registration or deregistration of a type descriptor. Must return the type descriptor to be registered, or null to remove the registration.
		/// </summary>
		/// <param name="newDescriptor">The new descriptor, or null if this is a deregistration.</param>
		/// <param name="oldDescriptor">The old descriptor, or null if no descriptor was previously registered for this type.</param>
		/// <returns></returns>
		public IUserDataDescriptor HandleRegistration(IUserDataDescriptor newDescriptor, IUserDataDescriptor oldDescriptor)
		{
			if (newDescriptor == null)
				return null;
			else
				return oldDescriptor ?? newDescriptor;
		}

		/// <summary>
		/// Allows type automatic registration for the specified type.
		/// NOTE: automatic type registration is NOT recommended.
		/// </summary>
		/// <param name="type">The type.</param>
		/// <returns>
		/// True to register the type automatically, false otherwise.
		/// </returns>
		public virtual bool AllowTypeAutoRegistration(Type type)
		{
			return false;
		}
	}
}


text:
package io.paradoxical.cassieq.factories;

import io.paradoxical.cassieq.dataAccess.interfaces.AccountRepository;
import io.paradoxical.cassieq.dataAccess.interfaces.MessageRepository;
import io.paradoxical.cassieq.dataAccess.interfaces.MonotonicRepository;
import io.paradoxical.cassieq.dataAccess.interfaces.PointerRepository;
import lombok.Data;

@Data
public class DataContext {

    private final AccountRepository accountRepository;

}


text:
import math
import os
import shutil
import tempfile
import uuid

import sympy as sym
import numpy as np
from scipy.special import binom

from pycompilation import compile_link_import_py_ext
_template_base = os.path.dirname(__file__) + "/external_lib_sundials_integrate_serial_template"
with open(_template_base + ".c89") as ifh:
    template_integrate_serial_c89 = ifh.read()
with open(_template_base + ".pyx") as ifh:
    template_integrate_serial_pyx = ifh.read()

class ODEsys:

    def __init__(self, rhs, ny, nparams):
        self.t = sym.Symbol("t", real=True)
        self.y = tuple(sym.Symbol("y%d" % i, real=True) for i in range(ny))
        self.p = tuple(sym.Symbol("p%d" % i, real=True) for i in range(nparams))
        self.f = tuple(rhs(self.t, self.y, self.p))
        assert len(self.f) == len(self.y), 'f is dy/dt'
        self.j = sym.Matrix(len(self.y), 1, self.f).jacobian(self.y)
        self.uid = uuid.uuid4().hex[:10]

    def generate_sources(self, build_dir):
        self.mod_name = 'ode_c_%s' % self.uid
        idxs = list(range(len(self.f)))
        subs = {}
        subs.update({s: sym.Symbol('y[%d]' % i) for i, s in enumerate(self.y)})
        subs.update({s: sym.Symbol('p[%d]' % i) for i, s in enumerate(self.p)})
        f_exprs = ['out[%d] = %s;' % (i, sym.ccode(self.f[i].xreplace(subs)))
                   for i in idxs]
        j_col_defs = ['realtype * const col_%d = SM_COLUMN_D(J, %d);' % (ci, ci)
                      for ci in idxs]
        j_exprs = ['col_%d[%d] = %s;' % (ci, ri, self.j[ri, ci].xreplace(subs))
                   for ci in idxs for ri in idxs if self.j[ri, ci] != 0]
        ctx = dict(
            func='\n    '.join(f_exprs + ['return 0;']),
            dense_jac='\n    '.join(j_col_defs + j_exprs + ['return 0;']),
        )
        sources = {
            build_dir + '/integrate_serial_%s.c' % self.uid: template_integrate_serial_c89 % ctx,
            build_dir + '/%s.pyx' % self.mod_name: template_integrate_serial_pyx % {'uid': self.uid}
        }
        for pth, content in sources.items():
            with open(pth, 'wt') as fh:
                fh.write(content)
        return list(sources.keys())

def analytic1(i, p, a):
    assert i > 0 and p >= 0 and a > 0
    return binom(p+i-1, p) * a**(i-1) * (a+1)**(-i-p)

def decay_dydt_factory(ny):
    # Generates a callback for evaluating a dydt-callback for
    # a chain of len(k) + 1 species with len(k) decays
    # with corresponding decay constants k

    def dydt(t, y, p):
        assert len(y) == ny and len(p) == ny-1
        exprs = []
        for idx in range(ny):
            expr = 0
            curr_key = idx
            prev_key = idx - 1
            if idx < ny-1:
                expr -= y[curr_key]*p[curr_key]
            if idx > 0:
                expr += y[prev_key]*p[prev_key]
            exprs.append(expr)
        return exprs
    return dydt

def get_special_chain(n, p, a):
    assert n > 1 and p >= 0 and a > 0
    y0 = np.zeros(n)
    y0[0] = 1
    k = [(i+p+1)*math.log(a+1) for i in range(n-1)]
    dydt = decay_dydt_factory(n)

    def check(vals, atol, rtol, forgiveness=1):
        # Check solution vs analytic reference:
        for i in range(n-1):
            val = vals[i]
            ref = analytic1(i+1, p, a)
            diff = val - ref
            acceptance = (atol + abs(ref)*rtol)*forgiveness
            assert abs(diff) < acceptance

    return y0, k, ODEsys(dydt, n, n-1), check

def main(verbose=False, clean=False, rtol=1e-8, atol=1e-8,
         libs="sundials_nvecserial,sundials_cvode,sundials_sunlinsollapackdense,lapack,m"):
    if verbose:
        import logging
        logging.basicConfig(level=logging.DEBUG)
        logger = logging.getLogger(__file__)
    else:
        logger = False

    build_dir = tempfile.mkdtemp('external_lib_sundials')

    npa = (7, 1, 5)
    y0, params, odesys, check = get_special_chain(*npa)
    source_files = odesys.generate_sources(build_dir)

    mod = compile_link_import_py_ext(
        source_files, build_dir=build_dir, logger=logger,
        include_dirs=[np.get_include()], options=("debug", "warn", "pic"),
        libraries=libs.split(','))
    tout = np.linspace(0, 1)
    yout, info = mod.solve_ivp(np.asarray(tout, dtype=np.float64),
                               np.asarray(y0, dtype=np.float64),
                               np.atleast_1d(np.asarray(params, dtype=np.float64)),
                               abstol=np.atleast_1d(np.asarray(atol, dtype=np.float64)),
                               reltol=rtol)
    assert info["status"] == 0 and info["num_steps"] > 5 and info["num_dls_jac_evals"] > 0
    forgive = 5  # relax analytic tolerances from those of solver
    check(yout[-1, :], atol, rtol, forgive)

    if clean:
        shutil.rmtree(build_dir)
    else:
        print("build files left in: {}".format(build_dir))

if __name__ == '__main__':
    import argh
    argh.dispatch_command(main)


text:
Error: {{errorMsg}}

uSync

                    {{tab.name}}

History

Config

About

                            (uSync.BackOffice {{settings.backOfficeVersion}})

                                (uSync.Core {{settings.coreVersion}})

                                    {{settings.addOns}}

Import / Export

                            Perfom import and exports of your stuff - these actions are
                            processed against the files in {{settings.settings.Folder}}

                                <button class="btn btn-info" ng-click="report()" ng-disabled="reporting">Report</button>
                                Find out what will change if you import

                                <button class="btn btn-success" ng-click="import(false)" ng-disabled="reporting">Import</button>
                                Import on the things that have changed

                                <button class="btn btn-mini btn-warning" ng-click="import(true)" ng-disabled="reporting">Full Import</button>
                                Import everything (even if it's the same)

                                <button class="btn btn-mini btn-inverse" ng-click="export()" ng-disabled="reporting">Full Export</button>
                                Export everything to disk (wipes current folder)

                                    <input type="checkbox" ng-model="deleteActionFile" /> also delete the action file (should I?))

                                <button class="btn btn-mini btn-default" ng-click="loadActions()">view uSync Actions</button>
                                uSync Actions track things like deletes

{{reportName}} Processed {{changes.length}} items, {{getChangeCount(changes)}} Changes

                                        show 'no change' items <input ng-model="showNoChange" type="checkbox" class="form-control" no-Dirty-Check>

 0">

                                        Name
                                        Type
                                        Change

                                            {{change.Name}}
                                            {{getChangeName(change.Change)}}
                                            {{getTypeName(change.ItemType)}}

                                                {{change.Message}}

                                                <button ng-show="change.Details != null && change.Details.length > 0"
                                                        ng-click="showDetail(change)" class="btn btn-mini">
                                                    Details
                                                </button>

 0" ng-show="change.showDetail">

Changes for : {{change.Name}} ({{getTypeName(change.ItemType)}})

                                                            Action
                                                            Path
                                                            Name
                                                            Old Value
                                                            New Value

                                                            {{getDetailChange(detail.Change)}}
                                                            {{detail.Path}}
                                                            {{detail.Name}}
                                                            {{getDetailValue(detail.OldVal)}}
                                                            {{getDetailValue(detail.NewVal)}}

uSync Actions

                        uSync stores actions (like, deletes, and renames of certain types) in a seperate file (uSyncActions.config),
                        this lets usync handle the bits that are more than changes of properties.

                        Sometimes you can end up with orphand, actions in the action file; they usally do no harm, but if you want
                        you can remove them here.

                                Name
                                Action
                                Type
                                Key (Guid)

                                {{action.Name}}
                                {{action.Action}}
                                {{action.TypeName}}
                                {{action.Key}}
                                <button class="btn btn-mini" ng-click="removeAction(action.Name, action.TypeName)">Remove</button>

                            uSync logs each successful run in ~/app_data/temp/usync, to clear the history
                            just delete these files.
                            <button class="btn btn-mini btn-danger" ng-click="clearHistory()">Clear History</button>

 0" class="alert alert-info">Removed {{historyCleared}} history files

                                    Name
                                    Changes
                                    Sync Type
                                    Date

                                    {{item.name}}
                                    {{getChangeCount(item.actions)}}
                                    {{item.type}}
                                    {{item.date}}

                                        <button class="btn btn-mini" ng-click="item.showDetail = !item.showDetail">Details</button>

                                                Name
                                                Type
                                                Change
                                                Message

                                                {{change.Name}}
                                                {{getTypeName(change.ItemType)}}
                                                {{getChangeName(change.Change)}}
                                                {{change.Message}}

                            uSync.ContentEdition is installed. Content and Media Handlers can now import and export content, as part of
                            a standard sync.

Setup

Choose how uSync behaves on your site

                                <input type="radio" ng-model="uSyncMode" value="auto" />
                                Auto Sync Run import at startup, save changes to disk when they occur

                                <input type="radio" ng-model="uSyncMode" value="target" />
                                Sync Target Will run import at startup only

                                <input type="radio" ng-model="uSyncMode" value="source" />
                                Sync Source Don't import but save any changes that are made to disk

                                <input type="radio" ng-model="uSyncMode" value="manual" />
                                Manual Sync
                                    No automatic imports or saves.
                                    (whay not try uSync.Snapshots?)

                                <input type="radio" ng-model="uSyncMode" value="other" enabled="false" />
                                Other Some other weird setup - see your usyncBackOffice.config

                                <button class="btn btn-default" ng-click="updateSettings()">Save Settings</button>

Handlers [Group: {{settings.settings.HandlerGroup}}]

                            Installed handlers, that actually do all the work of getting things to and from disk. You
                            can turn handlers on and off in the uSyncBackoffice.config file.

                        Loaded Handlers.

                            There may be more handlers in the config, but these are the ones uSync has loaded.

{{handler}}

                    uSync is written and developed by Jumoo, and is compleatly
                    free and open source.

                            You're version of uSync is unlicenced.
                            It doesn't stop anything from working, but you can make yourself feel better with a
                            goodwill licence, and it will
                            make this warning go away.

You are licenced, we like you. :)

Getting Help

                            There are a number of places you can go to get help with usync.

uSync Forums on our.umbraco.org

                            The forums are the best place to go to get answers, not least because
                            other people beyond Kevin might answer them

                                uSync Forums on our.umbraco.org

uSync GitHub Repository

                            If you want to get underneath the hood, and look at the code, then
                            the github repo is the place to look.

                            uSync on github

Complex Stuff via Jumoo

                            If you have some complex weired requirements, that you think uSync could
                            do but doesn't then drop us a line.

                            We are always willing to look at adding new features, and we are not
                            immune to doing some bespoke paid for extensions if you really need them.

                            Contact Us

Helping uSync

                            uSync is a compleatly open source project, and you can contribute to it
                            in a number of ways.

Submit Code

                            If you want to add a cool feature or just fix that annoying bug, you can
                            do it yourself!.

                            uSync on github

                            Go look at the uSync github repositiroy, fork it, do some code stuff and
                            submit a pull request. We'll merge it in and put it in the next release.

Submit bugs

                            If most of that sounded like a forign language, or if you can't be bothered
                            with it. you can still submit bugs to our issue tracker.

                            Submit an issue

                            We will work with you to get to the bottom of whats going on, and more than
                            likely we'll fix the issue for you.


text:
<?php

$engine = require dirname(__DIR__).DIRECTORY_SEPARATOR.'bootstrap.php';

$app = $engine->start()->getApp();
$app->run();


text:
package com.alibaba.otter.manager.biz.config.canal.dal;

import com.alibaba.otter.manager.biz.common.basedao.GenericDAO;
import com.alibaba.otter.manager.biz.config.canal.dal.dataobject.CanalDO;

/**
 * @author sarah.lij 2012-7-25 下午05:05:37
 */
public interface CanalDAO extends GenericDAO<CanalDO> {

    public CanalDO findByName(String name);
}


text:
package io.github.joseerodrigues.utils.dbutil.helper;

import java.util.*;
import java.util.Map.Entry;

public class SQLStatementHelper {

	private StringBuilder query = null;
	private List<String> paramsSql = new ArrayList<>();
	private Map<String, Integer> paramsInSql = new HashMap<>();
	private List<Object> paramValues = new ArrayList<>();

	public SQLStatementHelper(String sql){

		this.query = new StringBuilder(sql);
	}

	public void addParam(String paramString, Object paramValue){
		paramsSql.add(paramString);
		paramValues.add(paramValue);
	}

	public void addInParam(String paramString, Set<String> paramValues){
		paramsInSql.put(paramString, paramValues.size());

		this.paramValues.addAll(paramValues);
	}

	private StringBuilder genSQLQuery(StringBuilder sqlQuery, List<String> paramsSql) {

		if (paramsSql == null || paramsSql.isEmpty()){
			return sqlQuery;
		}

		for (int i = 0, s = paramsSql.size(); i < s; i++){

			String param = paramsSql.get(i);

			sqlQuery.append(param);

			if (i < s - 1){
				sqlQuery.append(" AND ");
			}
		}

		// tratar dos params in

		for (Entry<String, Integer> entry : paramsInSql.entrySet()){

			String param = entry.getKey();
			int nParams = entry.getValue();
			sqlQuery.append(" AND ").append(param).append(" IN (");

			for (int i = 0; i < nParams; i++){

				sqlQuery.append("?");

				if (i < nParams - 1){
					sqlQuery.append(",");
				}
			}
			sqlQuery.append(")");
		}

		return sqlQuery;
	}

	public StringBuilder getSQLQuery(){
		return genSQLQuery(this.query, this.paramsSql);
	}

	public Object[] getParamValues(){
		return this.paramValues.toArray();
	}

}


text:
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline; }

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block; }

body {
  line-height: 1; }

ol, ul {
  list-style: none; }

blockquote, q {
  quotes: none; }

blockquote:before, blockquote:after {
  content: '';
  content: none; }

q:before, q:after {
  content: '';
  content: none; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

img {
  display: block; }

body, html {
  font-family: 'Lato', sans-serif; }

a {
  text-decoration: none;
  color: inherit; }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Navigation/style.css */#navigation {
  position: fixed;
  z-index: 100;
  top: 0px;
  left: 0px;
  height: 50px;
  width: 100%;
  text-align: center;
  transition: all .2s;
  color: white; }
  #navigation.mode-light {
    background: rgba(255, 255, 255, 0.9);
    color: black; }
    #navigation.mode-light .icon {
      fill: black; }
  #navigation.mode-dark {
    background: rgba(0, 0, 0, 0.5);
    color: white; }
    #navigation.mode-dark .icon {
      fill: white; }
  #navigation.no-background {
    background: none;
    border: none; }
  #navigation > .logo {
    display: inline-block;
    float: left;
    margin-left: 10px; }
    #navigation > .logo > a > img {
      display: block;
      margin: 10px;
      width: 25px; }
  #navigation .list {
    list-style: none;
    display: inline-block;
    margin: 0px;
    padding: 0px; }
  #navigation > .navigation {
    display: inline-block;
    margin-right: -126px; }
    #navigation > .navigation > ul > li {
      display: inline-block;
      margin: 15px 10px;
      font-size: 14px; }
  #navigation > .links {
    display: inline-block;
    float: right;
    margin-right: 10px; }
    #navigation > .links > li {
      display: inline-block;
      margin: 15px 5px; }
      #navigation > .links > li > a > span > svg {
        height: 15px; }
  @media (max-width: 600px) {
    #navigation > .links {
      display: none; }
    #navigation > .navigation {
      margin-right: 0px; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Svg/style.css */body > .content {
  margin: 50px 10%;
  text-align: center; }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/HomepageHeader/style.css */body > .homepage-header-container > .homepage-header {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  max-height: 600px;
  overflow: hidden; }
  body > .homepage-header-container > .homepage-header > * {
    transition: all .2s; }
  body > .homepage-header-container > .homepage-header > .background-image {
    width: 100%; }
  body > .homepage-header-container > .homepage-header > .content {
    width: 100%;
    position: absolute;
    text-align: center;
    top: 0px;
    left: 0px;
    max-height: 600px;
    overflow: hidden;
    font-size: 2em;
    color: white;
    text-align: center; }
    body > .homepage-header-container > .homepage-header > .content > .text {
      margin-top: 100px; }
      body > .homepage-header-container > .homepage-header > .content > .text > .intro {
        font-size: .8em; }
      body > .homepage-header-container > .homepage-header > .content > .text > .fill {
        margin-top: 20px;
        font-size: 1.2em;
        width: 100%;
        display: inline-block; }
      body > .homepage-header-container > .homepage-header > .content > .text > a > .button {
        margin-top: 50px; }
  @media (max-width: 300px) {
    body > .homepage-header-container > .homepage-header > .content .button {
      margin-top: 15px !important; } }
  @media (max-width: 500px) {
    body > .homepage-header-container > .homepage-header > .content {
      font-size: 1.4em; }
      body > .homepage-header-container > .homepage-header > .content > .text {
        margin-top: 15%; }
      body > .homepage-header-container > .homepage-header > .content .button {
        margin-top: 30px !important; } }
  @media (min-width: 500px) and (max-width: 600px) {
    body > .homepage-header-container > .homepage-header > .content {
      font-size: 1.8em; }
      body > .homepage-header-container > .homepage-header > .content > .text {
        margin-top: 100px; }
        body > .homepage-header-container > .homepage-header > .content > .text > .name {
          margin-top: 20px;
          font-size: 1em;
          width: 100%;
          display: inline-block; } }
  @media (min-width: 1200px) {
    body > .homepage-header-container > .homepage-header > .background-image {
      margin-top: -20%; } }
  @media (min-width: 1400px) {
    body > .homepage-header-container > .homepage-header > .background-image {
      margin-top: -30%; } }

body > .homepage-header-container > .overlay {
  position: relative;
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.5);
  margin-top: -200px;
  text-align: center; }
  body > .homepage-header-container > .overlay > * {
    transition: all .2s; }
  body > .homepage-header-container > .overlay > .section {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.6);
    display: inline-block;
    margin: 20px;
    padding: 0px 20px; }
    body > .homepage-header-container > .overlay > .section > .icon {
      min-height: 40px;
      background: red; }
      body > .homepage-header-container > .overlay > .section > .icon > img {
        margin: 30px auto 20px auto; }
    body > .homepage-header-container > .overlay > .section > .title {
      width: 100%;
      display: inline-block;
      color: rgba(0, 0, 0, 0.8);
      font-size: 18px; }
    body > .homepage-header-container > .overlay > .section > .subtitle {
      width: 100%;
      display: inline-block;
      font-size: 13px;
      margin-top: 5px;
      color: #4A90E2; }
  @media (max-width: 800px) {
    body > .homepage-header-container > .overlay {
      margin-top: 0px;
      height: auto;
      margin: 0px;
      padding: 0px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
      body > .homepage-header-container > .overlay > .section {
        width: 33%;
        padding: 0px;
        margin: 0px; } }
  @media (max-width: 500px) {
    body > .homepage-header-container > .overlay {
      height: auto; }
      body > .homepage-header-container > .overlay > .section {
        height: auto;
        margin: 0px 0px 20px 0px; }
        body > .homepage-header-container > .overlay > .section .icon > img {
          width: 40%; }
        body > .homepage-header-container > .overlay > .section > .title {
          font-size: 15px; }
        body > .homepage-header-container > .overlay > .section > .subtitle {
          font-size: 12px; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Button/style.css */.button {
  background: #4A90E2;
  width: auto;
  border-radius: 25px;
  font-size: 13px;
  font-weight: normal;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 20px;
  color: white; }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Content/style.css */body > .content {
  margin: 20px auto 50px auto;
  padding: 0px 30px;
  text-align: center;
  box-sizing: border-box;
  max-width: 840px; }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Title/style.css */h1 {
  font-size: 23px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.9);
  padding: 25px 25px 15px 25px;
  text-align: left;
  max-width: 840px;
  margin: 0px auto; }
  h1 > .description {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.5);
    margin-left: 10px; }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Showcase/style.css *//* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/ProjectTile/style.css */.tile-container {
  margin: 0px auto;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  -webkit-column-count: 1;
  -webkit-column-gap: 0; }
  @media (max-width: 540px) {
    .tile-container {
      -webkit-column-count: 1;
      width: 100%; } }
  @media (min-width: 540px) and (max-width: 820px) {
    .tile-container {
      -webkit-column-count: 2;
      width: 540px; } }
  @media (min-width: 820px) {
    .tile-container {
      -webkit-column-count: 3;
      width: 820px; } }

.project-tile {
  width: 250px;
  margin: 10px;
  background: white;
  max-width: 300px;
  background-size: 100%;
  background-position: center center;
  border: 2px solid rgba(0, 0, 0, 0.1);
  display: inline-block;
  color: rgba(0, 0, 0, 0.8);
  text-align: center; }
  .project-tile.no-border {
    border: none; }
  .project-tile.mode-light {
    color: white; }
    .project-tile.mode-light .category {
      border-color: white; }
  .project-tile .category {
    line-height: 27px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    margin: 20px 0px;
    display: inline-block;
    padding: 0px 0px 5px 0px;
    font-size: 12px; }
  .project-tile .button {
    margin-bottom: 30px; }
  .project-tile .text .title {
    font-size: 20px;
    text-align: left;
    margin: 20px 20px 0px 20px; }
  .project-tile .text .subtitle {
    font-size: 15px;
    text-align: left;
    margin: 10px 20px 20px 20px;
    opacity: .8; }
  @media (max-width: 540px) {
    .project-tile {
      width: 80%; } }
  @media (min-width: 540px) and (max-width: 820px) {
    .project-tile {
      width: default; } }
  @media (min-width: 820px) {
    .project-tile {
      width: default; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Line/style.css */.line {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  max-width: 840px;
  margin: 0px auto; }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/SocialMediaBar/style.css */.social-media-bar {
  width: 100%;
  height: 40px;
  padding: 40px 0px;
  text-align: center; }
  .social-media-bar span {
    display: inline-block;
    margin: 0px 10px; }
  .social-media-bar svg {
    height: 40px; }
  @media (max-width: 600px) {
    .social-media-bar svg {
      width: 20px; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Me/style.css */body > .me {
  width: 100%;
  max-width: 700px;
  height: 226px;
  margin: 60px auto; }
  body > .me > .image {
    float: left;
    margin-right: 40px; }
    body > .me > .image > img {
      border-radius: 2px;
      display: inline-block; }
  body > .me > .title {
    font-size: 20px;
    padding: 20px 0px 10px 0px; }
  body > .me > .subtitle {
    font-size: 15px;
    padding: 0px 0px 20px 0px;
    opacity: .7; }
  body > .me > .description {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: .5px; }
  body > .me .button {
    margin-right: 10px; }
  body > .me a {
    margin-top: 5px; }
  body > .me svg {
    height: 20px;
    margin: 0px 0px -5px 10px; }
  @media (max-width: 750px) {
    body > .me {
      text-align: center;
      height: auto;
      width: 80%; }
      body > .me .image {
        display: inline-block;
        text-align: center;
        float: none;
        width: 100%;
        margin: 0px 0px 30px 0px; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Footer/style.css */body > .footer {
  width: 100%;
  min-height: 10%;
  background-position: bottom center;
  background-size: 100%;
  margin-top: 40px;
  opacity: .8;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden; }
  @media (max-width: 550px) {
    body > .footer.with-tiles {
      background-size: auto 100%; } }
  body > .footer.with-tiles .project-tile {
    border: 5px solid white;
    background: rgba(0, 0, 0, 0.4);
    height: 300px !important;
    margin: 20px;
    padding: 0px;
    display: inline-table; }
    body > .footer.with-tiles .project-tile .text {
      height: 40%; }
    @media (max-width: 910px) {
      body > .footer.with-tiles .project-tile:nth-child(3) {
        display: none; } }
    @media (max-width: 610px) {
      body > .footer.with-tiles .project-tile:nth-child(2) {
        display: none; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Header/style.css */body > .header-container {
  overflow: hidden; }
  body > .header-container > .header {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    max-height: 500px;
    overflow: hidden; }
    body > .header-container > .header > * {
      transition: all .2s; }
    body > .header-container > .header > .background-image {
      width: 100%; }
    @media (min-width: 1200px) {
      body > .header-container > .header > .background-image {
        margin-top: -20%; } }
    @media (min-width: 1400px) {
      body > .header-container > .header > .background-image {
        margin-top: -30%; } }
  body > .header-container > .overlay {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: -300px;
    text-align: center; }
    body > .header-container > .overlay > * {
      transition: all .2s; }
    @media (max-width: 700px) {
      body > .header-container > .overlay {
        height: 200px;
        margin-top: -200px; } }
    @media (max-width: 400px) {
      body > .header-container > .overlay {
        height: 150px;
        margin-top: -150px; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Paragraph/style.css */.paragraph {
  text-align: left;
  box-sizing: border-box; }
  .paragraph > .split {
    box-sizing: border-box;
    display: inline-block;
    width: 50%;
    padding: 20px; }
  @media (max-width: 800px) {
    .paragraph > .split {
      width: 100%; } }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Roadmap/style.css */.roadmap {
  margin: 40px 0px 20px 0px; }
  .roadmap > .time {
    margin: 20px;
    font-size: 15px;
    line-height: 30px; }
    .roadmap > .time > .bold {
      font-weight: bold; }
  .roadmap > .step {
    width: 80px;
    display: inline-block;
    margin: 20px 0px;
    text-align: left; }
    .roadmap > .step > .graphic > .dot {
      width: 18px;
      height: 18px;
      border-radius: 20px;
      border: 1px solid rgba(0, 0, 0, 0.5);
      display: inline-block; }
      .roadmap > .step > .graphic > .dot.done {
        border: none;
        width: 20px;
        height: 20px;
        background: url(/assets/icons/done.svg); }
    .roadmap > .step > .graphic > .line {
      width: 30px;
      height: 1px;
      background: rgba(0, 0, 0, 0.3);
      display: inline-block;
      margin: 0px 0px 9px 0px; }
      .roadmap > .step > .graphic > .line.hide {
        background: rgba(0, 0, 0, 0.1); }
    .roadmap > .step > .label {
      position: relative;
      font-size: 14px;
      margin-top: 10px;
      text-align: center;
      color: rgba(0, 0, 0, 0.8); }
/* /Users/dannyvanderjagt/Github/portfolio/.cache/ui/Iphone/style.css */.iphone {
  background-size: 100%;
  display: inline-block; }
  .iphone > img {
    display: block; }
  .iphone.size-1 {
    width: 100px;
    height: 180px; }
    .iphone.size-1 > img {
      width: 64px;
      margin: 33px 0px 0px 21px; }
  .iphone.size-2 {
    width: 152px;
    height: 255px; }
    .iphone.size-2 > img {
      width: 97px;
      margin: 50px 0px 0px 32px; }
  .iphone.size-3 {
    width: 200px;
    height: 350px;
    margin-bottom: -10px; }
    .iphone.size-3 > img {
      width: 128px;
      margin: 66px 0px 0px 42px; }
  .iphone.size-4 {
    width: 300px;
    height: 550px;
    margin-bottom: -45px; }
    .iphone.size-4 > img {
      width: 194px;
      margin: 98px 0px 0px 62px; }
/* /Users/dannyvanderjagt/Github/portfolio/pages/project/style.scss */.bar {
  position: relative;
  width: 100%;
  height: 20%;
  background: rgba(255, 0, 0, 0.5);
  margin-top: -20%;
  max-height: 600px; }

.project_test_header_image {
  display: inline-block;
  height: 100%;
  max-height: 300px; }
  @media (max-width: 400px) {
    .project_test_header_image {
      margin: 0px; } }

.project_test_header_text {
  display: inline-block;
  height: 60%;
  max-height: 200px;
  margin: 0px 0px 50px 50px; }
  @media (max-width: 400px) {
    .project_test_header_text {
      display: none; } }


text:
package de.tomgrill.gdxtwitter.core.tests.stubs;

public class SupportFragmentStub {

}


text:
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System.Collections.Generic;
using Microsoft.Azure.Common.Authentication;
using Microsoft.Azure.Common.Authentication.Models;
using Microsoft.Azure.Management.HDInsight;
using Microsoft.Azure.Management.HDInsight.Models;

namespace Microsoft.Azure.Commands.HDInsight.Models
{
    public class AzureHdInsightManagementClient
    {
        public AzureHdInsightManagementClient(AzureContext context)
        {
            HdInsightManagementClient = AzureSession.ClientFactory.CreateClient<HDInsightManagementClient>(context, AzureEnvironment.Endpoint.ResourceManager);
        }

        /// <summary>
        /// Parameterless constructor for mocking
        /// </summary>
        public AzureHdInsightManagementClient() { }

        private IHDInsightManagementClient HdInsightManagementClient { get; set; }

        public virtual ClusterGetResponse CreateNewCluster(string resourceGroupName, string clusterName, ClusterCreateParameters parameters)
        {
            return HdInsightManagementClient.Clusters.Create(resourceGroupName, clusterName, parameters);
        }

        public virtual List<Cluster> GetCluster(string resourceGroupName, string clusterName)
        {
            var result = new List<Cluster>();
            if (string.IsNullOrEmpty(resourceGroupName) && string.IsNullOrEmpty(clusterName))
            {
                result.AddRange(ListClusters().Clusters);
            }
            else if (string.IsNullOrEmpty(clusterName))
            {
                result.AddRange(ListClusters(resourceGroupName).Clusters);
            }
            else if (string.IsNullOrEmpty(resourceGroupName))
            {
                return result;
            }
            else
            {
                var getresponse = Get(resourceGroupName, clusterName);
                if (getresponse != null)
                {
                    result.Add(getresponse.Cluster);
                }
            }
            return result;
        }

        public virtual ClusterListResponse ListClusters()
        {
            return HdInsightManagementClient.Clusters.List();
        }

        public virtual ClusterListResponse ListClusters(string resourceGroupName)
        {
            return HdInsightManagementClient.Clusters.ListByResourceGroup(resourceGroupName);
        }

        public virtual ClusterGetResponse Get(string resourceGroupName, string clusterName)
        {
            return HdInsightManagementClient.Clusters.Get(resourceGroupName, clusterName);
        }

        public virtual HDInsightLongRunningOperationResponse ResizeCluster(string resourceGroupName, string clusterName, ClusterResizeParameters resizeParams)
        {
            return HdInsightManagementClient.Clusters.Resize(resourceGroupName, clusterName, resizeParams);
        }

        public virtual ClusterGetResponse DeleteCluster(string resourceGroupName, string clusterName)
        {
            return HdInsightManagementClient.Clusters.Delete(resourceGroupName, clusterName);
        }

        public virtual HDInsightLongRunningOperationResponse ConfigureHttp(string resourceGroupName, string clusterName, HttpSettingsParameters httpSettings)
        {
            return HdInsightManagementClient.Clusters.ConfigureHttpSettings(resourceGroupName, clusterName, httpSettings);
        }

        public virtual HttpConnectivitySettings GetConnectivitySettings(string resourceGroupName, string clusterName)
        {
            return HdInsightManagementClient.Clusters.GetConnectivitySettings(resourceGroupName, clusterName);
        }

        public virtual HDInsightLongRunningOperationResponse ConfigureRdp(string resourceGroupName, string clusterName, RDPSettingsParameters rdpSettings)
        {
            return HdInsightManagementClient.Clusters.ConfigureRdpSettings(resourceGroupName, clusterName, rdpSettings);
        }

        public virtual CapabilitiesResponse GetCapabilities(string location)
        {
            return HdInsightManagementClient.Clusters.GetCapabilities(location);
        }

        public virtual IDictionary<string, string> GetClusterConfigurations(string resourceGroupName, string clusterName, string configurationName)
        {
            Dictionary<string, string> properties = new Dictionary<string, string>();

            if (string.IsNullOrWhiteSpace(resourceGroupName) ||
                string.IsNullOrWhiteSpace(clusterName) ||
                string.IsNullOrWhiteSpace(configurationName))
            {
                return properties;
            }

            return HdInsightManagementClient.Clusters.GetClusterConfigurations(
                resourceGroupName,
                clusterName,
                configurationName).Configuration;
        }
    }
}


text:
#pragma once
#include <aws/databrew/GlueDataBrew_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <aws/databrew/model/EncryptionMode.h>
#include <aws/databrew/model/JobType.h>
#include <aws/databrew/model/LogSubscription.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/databrew/model/RecipeReference.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/databrew/model/JobSample.h>
#include <aws/databrew/model/Output.h>
#include <aws/databrew/model/DataCatalogOutput.h>
#include <aws/databrew/model/DatabaseOutput.h>
#include <aws/databrew/model/ValidationConfiguration.h>
#include <utility>

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

  /**
   *
Represents all of the attributes of a DataBrew job.

See Also:

   * AWS API
   * Reference

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

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline const Aws::String& GetAccountId() const{ return m_accountId; }

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline Job& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline Job& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}

    /**
     *
The ID of the Amazon Web Services account that owns the job.

     */
    inline Job& WithAccountId(const char* value) { SetAccountId(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline Job& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline Job& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the user who created the job.

     */
    inline Job& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}

    /**
     *
The date and time that the job was created.

     */
    inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }

    /**
     *
The date and time that the job was created.

     */
    inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }

    /**
     *
The date and time that the job was created.

     */
    inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }

    /**
     *
The date and time that the job was created.

     */
    inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }

    /**
     *
The date and time that the job was created.

     */
    inline Job& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}

    /**
     *
The date and time that the job was created.

     */
    inline Job& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}

    /**
     *
A dataset that the job is to process.

     */
    inline const Aws::String& GetDatasetName() const{ return m_datasetName; }

    /**
     *
A dataset that the job is to process.

     */
    inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }

    /**
     *
A dataset that the job is to process.

     */
    inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }

    /**
     *
A dataset that the job is to process.

     */
    inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }

    /**
     *
A dataset that the job is to process.

     */
    inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }

    /**
     *
A dataset that the job is to process.

     */
    inline Job& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}

    /**
     *
A dataset that the job is to process.

     */
    inline Job& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}

    /**
     *
A dataset that the job is to process.

     */
    inline Job& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline const Aws::String& GetEncryptionKeyArn() const{ return m_encryptionKeyArn; }

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline void SetEncryptionKeyArn(const Aws::String& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = value; }

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline void SetEncryptionKeyArn(Aws::String&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::move(value); }

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline void SetEncryptionKeyArn(const char* value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn.assign(value); }

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline Job& WithEncryptionKeyArn(const Aws::String& value) { SetEncryptionKeyArn(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline Job& WithEncryptionKeyArn(Aws::String&& value) { SetEncryptionKeyArn(std::move(value)); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of an encryption key that is used to protect
     * the job output. For more information, see Encrypting
     * data written by DataBrew jobs

     */
    inline Job& WithEncryptionKeyArn(const char* value) { SetEncryptionKeyArn(value); return *this;}

    /**
     *
The encryption mode for the job, which can be one of the following:

     *

 SSE-KMS - Server-side encryption with keys managed by
     * KMS.

 SSE-S3 - Server-side encryption with keys
     * managed by Amazon S3.

     */
    inline const EncryptionMode& GetEncryptionMode() const{ return m_encryptionMode; }

    /**
     *
The encryption mode for the job, which can be one of the following:

     *

 SSE-KMS - Server-side encryption with keys managed by
     * KMS.

 SSE-S3 - Server-side encryption with keys
     * managed by Amazon S3.

     */
    inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; }

    /**
     *
The encryption mode for the job, which can be one of the following:

     *

 SSE-KMS - Server-side encryption with keys managed by
     * KMS.

 SSE-S3 - Server-side encryption with keys
     * managed by Amazon S3.

     */
    inline void SetEncryptionMode(const EncryptionMode& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = value; }

    /**
     *
The encryption mode for the job, which can be one of the following:

     *

 SSE-KMS - Server-side encryption with keys managed by
     * KMS.

 SSE-S3 - Server-side encryption with keys
     * managed by Amazon S3.

     */
    inline void SetEncryptionMode(EncryptionMode&& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = std::move(value); }

    /**
     *
The encryption mode for the job, which can be one of the following:

     *

 SSE-KMS - Server-side encryption with keys managed by
     * KMS.

 SSE-S3 - Server-side encryption with keys
     * managed by Amazon S3.

     */
    inline Job& WithEncryptionMode(const EncryptionMode& value) { SetEncryptionMode(value); return *this;}

    /**
     *
The encryption mode for the job, which can be one of the following:

     *

 SSE-KMS - Server-side encryption with keys managed by
     * KMS.

 SSE-S3 - Server-side encryption with keys
     * managed by Amazon S3.

     */
    inline Job& WithEncryptionMode(EncryptionMode&& value) { SetEncryptionMode(std::move(value)); return *this;}

    /**
     *
The unique name of the job.

     */
    inline const Aws::String& GetName() const{ return m_name; }

    /**
     *
The unique name of the job.

     */
    inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }

    /**
     *
The unique name of the job.

     */
    inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }

    /**
     *
The unique name of the job.

     */
    inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }

    /**
     *
The unique name of the job.

     */
    inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }

    /**
     *
The unique name of the job.

     */
    inline Job& WithName(const Aws::String& value) { SetName(value); return *this;}

    /**
     *
The unique name of the job.

     */
    inline Job& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}

    /**
     *
The unique name of the job.

     */
    inline Job& WithName(const char* value) { SetName(value); return *this;}

    /**
     *
The job type of the job, which must be one of the following:

     *
 PROFILE - A job to analyze a dataset, to determine its size,
     * data types, data distribution, and more.

 RECIPE
     * - A job to apply one or more transformations to a dataset.

     */
    inline const JobType& GetType() const{ return m_type; }

    /**
     *
The job type of the job, which must be one of the following:

     *
 PROFILE - A job to analyze a dataset, to determine its size,
     * data types, data distribution, and more.

 RECIPE
     * - A job to apply one or more transformations to a dataset.

     */
    inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }

    /**
     *
The job type of the job, which must be one of the following:

     *
 PROFILE - A job to analyze a dataset, to determine its size,
     * data types, data distribution, and more.

 RECIPE
     * - A job to apply one or more transformations to a dataset.

     */
    inline void SetType(const JobType& value) { m_typeHasBeenSet = true; m_type = value; }

    /**
     *
The job type of the job, which must be one of the following:

     *
 PROFILE - A job to analyze a dataset, to determine its size,
     * data types, data distribution, and more.

 RECIPE
     * - A job to apply one or more transformations to a dataset.

     */
    inline void SetType(JobType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }

    /**
     *
The job type of the job, which must be one of the following:

     *
 PROFILE - A job to analyze a dataset, to determine its size,
     * data types, data distribution, and more.

 RECIPE
     * - A job to apply one or more transformations to a dataset.

     */
    inline Job& WithType(const JobType& value) { SetType(value); return *this;}

    /**
     *
The job type of the job, which must be one of the following:

     *
 PROFILE - A job to analyze a dataset, to determine its size,
     * data types, data distribution, and more.

 RECIPE
     * - A job to apply one or more transformations to a dataset.

     */
    inline Job& WithType(JobType&& value) { SetType(std::move(value)); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline Job& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline Job& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the user who last modified the job.

     */
    inline Job& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}

    /**
     *
The modification date and time of the job.

     */
    inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }

    /**
     *
The modification date and time of the job.

     */
    inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }

    /**
     *
The modification date and time of the job.

     */
    inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }

    /**
     *
The modification date and time of the job.

     */
    inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }

    /**
     *
The modification date and time of the job.

     */
    inline Job& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}

    /**
     *
The modification date and time of the job.

     */
    inline Job& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}

    /**
     *
The current status of Amazon CloudWatch logging for the job.

     */
    inline const LogSubscription& GetLogSubscription() const{ return m_logSubscription; }

    /**
     *
The current status of Amazon CloudWatch logging for the job.

     */
    inline bool LogSubscriptionHasBeenSet() const { return m_logSubscriptionHasBeenSet; }

    /**
     *
The current status of Amazon CloudWatch logging for the job.

     */
    inline void SetLogSubscription(const LogSubscription& value) { m_logSubscriptionHasBeenSet = true; m_logSubscription = value; }

    /**
     *
The current status of Amazon CloudWatch logging for the job.

     */
    inline void SetLogSubscription(LogSubscription&& value) { m_logSubscriptionHasBeenSet = true; m_logSubscription = std::move(value); }

    /**
     *
The current status of Amazon CloudWatch logging for the job.

     */
    inline Job& WithLogSubscription(const LogSubscription& value) { SetLogSubscription(value); return *this;}

    /**
     *
The current status of Amazon CloudWatch logging for the job.

     */
    inline Job& WithLogSubscription(LogSubscription&& value) { SetLogSubscription(std::move(value)); return *this;}

    /**
     *
The maximum number of nodes that can be consumed when the job processes
     * data.

     */
    inline int GetMaxCapacity() const{ return m_maxCapacity; }

    /**
     *
The maximum number of nodes that can be consumed when the job processes
     * data.

     */
    inline bool MaxCapacityHasBeenSet() const { return m_maxCapacityHasBeenSet; }

    /**
     *
The maximum number of nodes that can be consumed when the job processes
     * data.

     */
    inline void SetMaxCapacity(int value) { m_maxCapacityHasBeenSet = true; m_maxCapacity = value; }

    /**
     *
The maximum number of nodes that can be consumed when the job processes
     * data.

     */
    inline Job& WithMaxCapacity(int value) { SetMaxCapacity(value); return *this;}

    /**
     *
The maximum number of times to retry the job after a job run fails.

     */
    inline int GetMaxRetries() const{ return m_maxRetries; }

    /**
     *
The maximum number of times to retry the job after a job run fails.

     */
    inline bool MaxRetriesHasBeenSet() const { return m_maxRetriesHasBeenSet; }

    /**
     *
The maximum number of times to retry the job after a job run fails.

     */
    inline void SetMaxRetries(int value) { m_maxRetriesHasBeenSet = true; m_maxRetries = value; }

    /**
     *
The maximum number of times to retry the job after a job run fails.

     */
    inline Job& WithMaxRetries(int value) { SetMaxRetries(value); return *this;}

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline const Aws::Vector<Output>& GetOutputs() const{ return m_outputs; }

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline void SetOutputs(const Aws::Vector<Output>& value) { m_outputsHasBeenSet = true; m_outputs = value; }

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline void SetOutputs(Aws::Vector<Output>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline Job& WithOutputs(const Aws::Vector<Output>& value) { SetOutputs(value); return *this;}

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline Job& WithOutputs(Aws::Vector<Output>&& value) { SetOutputs(std::move(value)); return *this;}

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline Job& AddOutputs(const Output& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }

    /**
     *
One or more artifacts that represent output from running the job.

     */
    inline Job& AddOutputs(Output&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; }

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline const Aws::Vector<DataCatalogOutput>& GetDataCatalogOutputs() const{ return m_dataCatalogOutputs; }

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline bool DataCatalogOutputsHasBeenSet() const { return m_dataCatalogOutputsHasBeenSet; }

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline void SetDataCatalogOutputs(const Aws::Vector<DataCatalogOutput>& value) { m_dataCatalogOutputsHasBeenSet = true; m_dataCatalogOutputs = value; }

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline void SetDataCatalogOutputs(Aws::Vector<DataCatalogOutput>&& value) { m_dataCatalogOutputsHasBeenSet = true; m_dataCatalogOutputs = std::move(value); }

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline Job& WithDataCatalogOutputs(const Aws::Vector<DataCatalogOutput>& value) { SetDataCatalogOutputs(value); return *this;}

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline Job& WithDataCatalogOutputs(Aws::Vector<DataCatalogOutput>&& value) { SetDataCatalogOutputs(std::move(value)); return *this;}

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline Job& AddDataCatalogOutputs(const DataCatalogOutput& value) { m_dataCatalogOutputsHasBeenSet = true; m_dataCatalogOutputs.push_back(value); return *this; }

    /**
     *
One or more artifacts that represent the Glue Data Catalog output from
     * running the job.

     */
    inline Job& AddDataCatalogOutputs(DataCatalogOutput&& value) { m_dataCatalogOutputsHasBeenSet = true; m_dataCatalogOutputs.push_back(std::move(value)); return *this; }

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline const Aws::Vector<DatabaseOutput>& GetDatabaseOutputs() const{ return m_databaseOutputs; }

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline bool DatabaseOutputsHasBeenSet() const { return m_databaseOutputsHasBeenSet; }

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline void SetDatabaseOutputs(const Aws::Vector<DatabaseOutput>& value) { m_databaseOutputsHasBeenSet = true; m_databaseOutputs = value; }

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline void SetDatabaseOutputs(Aws::Vector<DatabaseOutput>&& value) { m_databaseOutputsHasBeenSet = true; m_databaseOutputs = std::move(value); }

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline Job& WithDatabaseOutputs(const Aws::Vector<DatabaseOutput>& value) { SetDatabaseOutputs(value); return *this;}

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline Job& WithDatabaseOutputs(Aws::Vector<DatabaseOutput>&& value) { SetDatabaseOutputs(std::move(value)); return *this;}

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline Job& AddDatabaseOutputs(const DatabaseOutput& value) { m_databaseOutputsHasBeenSet = true; m_databaseOutputs.push_back(value); return *this; }

    /**
     *
Represents a list of JDBC database output objects which defines the output
     * destination for a DataBrew recipe job to write into.

     */
    inline Job& AddDatabaseOutputs(DatabaseOutput&& value) { m_databaseOutputsHasBeenSet = true; m_databaseOutputs.push_back(std::move(value)); return *this; }

    /**
     *
The name of the project that the job is associated with.

     */
    inline const Aws::String& GetProjectName() const{ return m_projectName; }

    /**
     *
The name of the project that the job is associated with.

     */
    inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }

    /**
     *
The name of the project that the job is associated with.

     */
    inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }

    /**
     *
The name of the project that the job is associated with.

     */
    inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }

    /**
     *
The name of the project that the job is associated with.

     */
    inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }

    /**
     *
The name of the project that the job is associated with.

     */
    inline Job& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}

    /**
     *
The name of the project that the job is associated with.

     */
    inline Job& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}

    /**
     *
The name of the project that the job is associated with.

     */
    inline Job& WithProjectName(const char* value) { SetProjectName(value); return *this;}

    /**
     *
A set of steps that the job runs.

     */
    inline const RecipeReference& GetRecipeReference() const{ return m_recipeReference; }

    /**
     *
A set of steps that the job runs.

     */
    inline bool RecipeReferenceHasBeenSet() const { return m_recipeReferenceHasBeenSet; }

    /**
     *
A set of steps that the job runs.

     */
    inline void SetRecipeReference(const RecipeReference& value) { m_recipeReferenceHasBeenSet = true; m_recipeReference = value; }

    /**
     *
A set of steps that the job runs.

     */
    inline void SetRecipeReference(RecipeReference&& value) { m_recipeReferenceHasBeenSet = true; m_recipeReference = std::move(value); }

    /**
     *
A set of steps that the job runs.

     */
    inline Job& WithRecipeReference(const RecipeReference& value) { SetRecipeReference(value); return *this;}

    /**
     *
A set of steps that the job runs.

     */
    inline Job& WithRecipeReference(RecipeReference&& value) { SetRecipeReference(std::move(value)); return *this;}

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline Job& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline Job& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}

    /**
     *
The unique Amazon Resource Name (ARN) for the job.

     */
    inline Job& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline const Aws::String& GetRoleArn() const{ return m_roleArn; }

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline Job& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline Job& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}

    /**
     *
The Amazon Resource Name (ARN) of the role to be assumed for this job.

     */
    inline Job& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}

    /**
     *
The job's timeout in minutes. A job that attempts to run longer than this
     * timeout period ends with a status of TIMEOUT.

     */
    inline int GetTimeout() const{ return m_timeout; }

    /**
     *
The job's timeout in minutes. A job that attempts to run longer than this
     * timeout period ends with a status of TIMEOUT.

     */
    inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }

    /**
     *
The job's timeout in minutes. A job that attempts to run longer than this
     * timeout period ends with a status of TIMEOUT.

     */
    inline void SetTimeout(int value) { m_timeoutHasBeenSet = true; m_timeout = value; }

    /**
     *
The job's timeout in minutes. A job that attempts to run longer than this
     * timeout period ends with a status of TIMEOUT.

     */
    inline Job& WithTimeout(int value) { SetTimeout(value); return *this;}

    /**
     *
Metadata tags that have been applied to the job.

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

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }

    /**
     *
Metadata tags that have been applied to the job.

     */
    inline Job& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }

    /**
     *
A sample configuration for profile jobs only, which determines the number of
     * rows on which the profile job is run. If a JobSample value isn't
     * provided, the default value is used. The default value is CUSTOM_ROWS for the
     * mode parameter and 20,000 for the size parameter.

     */
    inline const JobSample& GetJobSample() const{ return m_jobSample; }

    /**
     *
A sample configuration for profile jobs only, which determines the number of
     * rows on which the profile job is run. If a JobSample value isn't
     * provided, the default value is used. The default value is CUSTOM_ROWS for the
     * mode parameter and 20,000 for the size parameter.

     */
    inline bool JobSampleHasBeenSet() const { return m_jobSampleHasBeenSet; }

    /**
     *
A sample configuration for profile jobs only, which determines the number of
     * rows on which the profile job is run. If a JobSample value isn't
     * provided, the default value is used. The default value is CUSTOM_ROWS for the
     * mode parameter and 20,000 for the size parameter.

     */
    inline void SetJobSample(const JobSample& value) { m_jobSampleHasBeenSet = true; m_jobSample = value; }

    /**
     *
A sample configuration for profile jobs only, which determines the number of
     * rows on which the profile job is run. If a JobSample value isn't
     * provided, the default value is used. The default value is CUSTOM_ROWS for the
     * mode parameter and 20,000 for the size parameter.

     */
    inline void SetJobSample(JobSample&& value) { m_jobSampleHasBeenSet = true; m_jobSample = std::move(value); }

    /**
     *
A sample configuration for profile jobs only, which determines the number of
     * rows on which the profile job is run. If a JobSample value isn't
     * provided, the default value is used. The default value is CUSTOM_ROWS for the
     * mode parameter and 20,000 for the size parameter.

     */
    inline Job& WithJobSample(const JobSample& value) { SetJobSample(value); return *this;}

    /**
     *
A sample configuration for profile jobs only, which determines the number of
     * rows on which the profile job is run. If a JobSample value isn't
     * provided, the default value is used. The default value is CUSTOM_ROWS for the
     * mode parameter and 20,000 for the size parameter.

     */
    inline Job& WithJobSample(JobSample&& value) { SetJobSample(std::move(value)); return *this;}

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline const Aws::Vector<ValidationConfiguration>& GetValidationConfigurations() const{ return m_validationConfigurations; }

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline bool ValidationConfigurationsHasBeenSet() const { return m_validationConfigurationsHasBeenSet; }

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline void SetValidationConfigurations(const Aws::Vector<ValidationConfiguration>& value) { m_validationConfigurationsHasBeenSet = true; m_validationConfigurations = value; }

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline void SetValidationConfigurations(Aws::Vector<ValidationConfiguration>&& value) { m_validationConfigurationsHasBeenSet = true; m_validationConfigurations = std::move(value); }

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline Job& WithValidationConfigurations(const Aws::Vector<ValidationConfiguration>& value) { SetValidationConfigurations(value); return *this;}

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline Job& WithValidationConfigurations(Aws::Vector<ValidationConfiguration>&& value) { SetValidationConfigurations(std::move(value)); return *this;}

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline Job& AddValidationConfigurations(const ValidationConfiguration& value) { m_validationConfigurationsHasBeenSet = true; m_validationConfigurations.push_back(value); return *this; }

    /**
     *
List of validation configurations that are applied to the profile job.

     */
    inline Job& AddValidationConfigurations(ValidationConfiguration&& value) { m_validationConfigurationsHasBeenSet = true; m_validationConfigurations.push_back(std::move(value)); return *this; }

  private:

    Aws::String m_accountId;
    bool m_accountIdHasBeenSet;

    Aws::String m_createdBy;
    bool m_createdByHasBeenSet;

    Aws::Utils::DateTime m_createDate;
    bool m_createDateHasBeenSet;

    Aws::String m_datasetName;
    bool m_datasetNameHasBeenSet;

    Aws::String m_encryptionKeyArn;
    bool m_encryptionKeyArnHasBeenSet;

    EncryptionMode m_encryptionMode;
    bool m_encryptionModeHasBeenSet;

    Aws::String m_name;
    bool m_nameHasBeenSet;

    JobType m_type;
    bool m_typeHasBeenSet;

    Aws::String m_lastModifiedBy;
    bool m_lastModifiedByHasBeenSet;

    Aws::Utils::DateTime m_lastModifiedDate;
    bool m_lastModifiedDateHasBeenSet;

    LogSubscription m_logSubscription;
    bool m_logSubscriptionHasBeenSet;

    int m_maxCapacity;
    bool m_maxCapacityHasBeenSet;

    int m_maxRetries;
    bool m_maxRetriesHasBeenSet;

    Aws::Vector<Output> m_outputs;
    bool m_outputsHasBeenSet;

    Aws::Vector<DataCatalogOutput> m_dataCatalogOutputs;
    bool m_dataCatalogOutputsHasBeenSet;

    Aws::Vector<DatabaseOutput> m_databaseOutputs;
    bool m_databaseOutputsHasBeenSet;

    Aws::String m_projectName;
    bool m_projectNameHasBeenSet;

    RecipeReference m_recipeReference;
    bool m_recipeReferenceHasBeenSet;

    Aws::String m_resourceArn;
    bool m_resourceArnHasBeenSet;

    Aws::String m_roleArn;
    bool m_roleArnHasBeenSet;

    int m_timeout;
    bool m_timeoutHasBeenSet;

    Aws::Map<Aws::String, Aws::String> m_tags;
    bool m_tagsHasBeenSet;

    JobSample m_jobSample;
    bool m_jobSampleHasBeenSet;

    Aws::Vector<ValidationConfiguration> m_validationConfigurations;
    bool m_validationConfigurationsHasBeenSet;
  };

} // namespace Model
} // namespace GlueDataBrew
} // namespace Aws


text:
<?php

namespace DoctrineModule\Authentication\Storage;

use Doctrine\Common\Persistence\Mapping\ClassMetadataFactory;
use Doctrine\Common\Persistence\ObjectRepository as DoctrineRepository;
use Zend\Authentication\Storage\StorageInterface;

/**
 * This class implements StorageInterface and allow to save the result of an authentication against an object repository
 *
 * @license MIT
 * @link    http://www.doctrine-project.org/
 * @since   0.5.0
 * @author  Michaël Gallego <mic.gallego@gmail.com>
 */
class ObjectRepository implements StorageInterface
{
    /**
     * @var DoctrineRepository
     */
    protected $objectRepository;

    /**
     * Metadata factory
     *
     * @var ClassMetadataFactory
     */
    protected $metadataFactory;

    /**
     * @var StorageInterface
     */
    protected $storage;

    /**
     * @param DoctrineRepository     $objectRepository
     * @param ClassMetadataFactory   $metadataFactory
     * @param StorageInterface       $storage
     */
    public function __construct(DoctrineRepository $objectRepository, ClassMetadataFactory $metadataFactory, StorageInterface $storage)
    {
        $this->objectRepository = $objectRepository;
        $this->storage          = $storage;
        $this->metadataFactory  = $metadataFactory;
    }

    /**
     * @return bool
     */
    public function isEmpty()
    {
        return $this->storage->isEmpty();
    }

    /**
     * This function assumes that the storage only contains identifier values (which is the case if
     * the ObjectRepository authentication adapter is used).
     *
     * @return null|object
     */
    public function read()
    {
        if (($identity = $this->storage->read())) {
            return $this->objectRepository->find($identity);
        }

        return null;
    }

    /**
     * @param  object $identity
     * @return void
     */
    public function write($identity)
    {
        $metadataInfo     = $this->metadataFactory->getMetadataFor(get_class($identity));
        $identifierValues = $metadataInfo->getIdentifierValues($identity);

        $this->storage->write($identifierValues);
    }

    /**
     * @return void
     */
    public function clear()
    {
        $this->storage->clear();
    }
}


text:
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package git4idea.checkout;

import com.intellij.dvcs.DvcsRememberedInputs;
import com.intellij.dvcs.ui.CloneDvcsDialog;
import com.intellij.openapi.project.Project;
import git4idea.GitUtil;
import git4idea.GitVcs;
import git4idea.commands.Git;
import git4idea.commands.GitCommandResult;
import git4idea.remote.GitRememberedInputs;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.File;

/**
 * @deprecated deprecated in favour of {@link com.intellij.util.ui.cloneDialog.VcsCloneDialog}
 */
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated(forRemoval = true)
public class GitCloneDialog extends CloneDvcsDialog {
  private final @NotNull Git myGit;

  public GitCloneDialog(@NotNull Project project) {
    this(project, null);
  }

  public GitCloneDialog(@NotNull Project project, @Nullable String defaultUrl) {
    super(project, GitVcs.DISPLAY_NAME.get(), GitUtil.DOT_GIT, defaultUrl);
    myGit = Git.getInstance();
  }

  @Override
  protected @NotNull TestResult test(@NotNull String url) {
    GitCommandResult result = myGit.lsRemote(myProject, new File("."), url);
    return result.success() ? TestResult.SUCCESS : new TestResult(result.getErrorOutputAsJoinedString());
  }

  @Override
  protected @NotNull DvcsRememberedInputs getRememberedInputs() {
    return GitRememberedInputs.getInstance();
  }

  @Override
  protected String getDimensionServiceKey() {
    return "GitCloneDialog";
  }
}