text:
function Deployer_project_init() {
	attempt 'create a new project'

	# Set the path var.
	path="$1"

	# if path is not absolute, create it
	# in the current directory as that is what is expected
	cd $(pwd)

	# Check if path is given.
	if [[ -z "$path" ]]; then
		warning 'Path not given, assuming the selected project.'
		path=$localProjectLocation
	fi

	# Check if path and clone is given, if $2 is provided then $1 is the repo url.
	if [[ ! -z "$2" ]]; then
		perform 'Clone repo'
		git clone "$path" "$2"
		performed
		cd "$2"
		perform 'Make sure master branch is checked out'
		git checkout master
		performed
		perform "run the project init command"
		deployer_run_semicolon_delimited_commands "$projectInit" true true
		performed
	elif [[ -d "$path" ]]; then
		warning 'Unable to instantiate new project, path already exists'
		perform "run the project init command"
		echo "$projectInit"
		deployer_run_semicolon_delimited_commands "$projectInit" true true
		performed
		return
	else
		perform 'Create project folder'
		mkdir -p "$path"
		performed

		cd "$path"
	fi

	deployer_init
	deployer_use

	info 'New project created: '$(pwd)
}

function Deployer_project_destroy() {
	warning 'About to destroy project'

	warning 'Select a project'
	deployer_project_location
	echo
	cat -n $projectsLog
	readUser 'Enter project number: '

	project=$(awk "NR==$input" $projectsLog)

	if [[ -z $project ]]; then
		error "Could not find project number $input"

		return
	fi

	# Confirm removal of project
	echo -n "Are you sure you want to destroy the project [$project]? [y/n]: "
	answer=$(userChoice)
	if [[ $answer != 'Y' ]]; then
		return 1
	fi
	echo
	echo

	# Get project path
	projectPath=$(echo $project | awk -F'] - ' '{print $2}')

	# Delete line from the projects file
	perform 'remove project from log'
	sed -i".bk" -e "$input"d "$projectsLog"
	performed

	# Delete project from local system
	perform 'Remove project if exists'
	if [[ -d $projectPath ]]; then
		rm -rf $projectPath
	fi
	performed

	info 'Project Destroyed'
}

function Deployer_project_remove() {
	warning 'remove project'

	warning 'Select a project'
	deployer_project_location
	echo
	cat -n $projectsLog
	readUser 'Enter project number: '

	project=$(awk "NR==$input" $projectsLog)

	if [[ -z $project ]]; then
		error "Could not find project number $input"

		return
	fi

	# Confirm removal of project
	echo -n "Are you sure you want to unmanage the project [$project]? This will not remove it from your system, use project:destroy for that. [y/n]: "
	answer=$(userChoice)
	if [[ $answer != 'Y' ]]; then
		return 1
	fi
	echo
	echo

	# Get project path
	projectPath=$(echo $project | awk -F'] - ' '{print $2}')

	# Delete line from the projects file
	perform 'remove project from log'
	sed -i".bk" -e "$input"d "$projectsLog"
	performed

	info 'Project not managed by deployer'
}

function deployer_select_project() {
	warning 'Select a project'
	deployer_project_location
    if [[ -z $1 ]]; then
	    echo
	    cat -n $projectsLog
	    readUser 'Enter project number: '
    else
        input=$1
    fi

    project=$(awk "NR==$input" $projectsLog)

	if [[ -z $project ]]; then
		error "Could not find project number $input"

		return
	fi

	projectPath=$(echo $project | awk -F'] - ' '{print $2}')

	if [[ ! -d $projectPath ]]; then
		error 'Project not found!'
		# perform 'Remove entry from projects file'
		# sed -i'.bk' -e "$input"d "$projectsLog"
		# performed

		return
	fi

	cd "$projectPath"
	deployer_manage
	echo
	gray "Project set to: "
	info "[$(deployer_FolderNameFromPath $projectPath)] >>> $projectPath"
}

function Deployer_project_update() {
	cd "$localProjectLocation"
	branch=$(getCurrentBranchName)
	attempt "update current branch: $branch"

	if [[ $branch == 'master' ]]; then
		perform 'Update master branch'
		git pull
	else
		perform 'checkout and update master branch'
		git checkout master
		git pull

		if [[ $? != 0 ]]; then
			error 'Unable to update...'

			return
		fi
		performed

		perform "checkout $branch and merge master"
		git checkout $branch
		git merge master
	fi

	performed
}

function Deployer_project_save() {
	cd "$localProjectLocation"
	attempt 'save project'
	branch=$(getCurrentBranchName)
	deployer_project_location
	commitMessage="$1"

	if [[ $allowSaveToMaster == false && $branch == 'master' ]]; then
		error 'allowSaveToMaster is set to false, cannot save to master branch. Please create another branch and save again'

		return
	fi

	if [[ ! -z $testStart ]]; then
		Deployer_project_test
	fi

	if [[ -z $remote ]]; then
    	remote='origin'
    fi

    info 'Push to remote channel: '$remote

	changes=$(git status -s)
	if [[ -z $changes ]]; then
		warning 'No changes detected'
		unpushed=$(git log --branches --not --remotes --simplify-by-decoration --decorate --oneline --abbrev-commit)
		result=$?
		if [[ ! -z $unpushed ]]; then
			info 'Unpushed Commit(s)'
			git log --branches --not --remotes --simplify-by-decoration --decorate --oneline --abbrev-commit
			printForRead 'You have unpushed commits, would you like to push them? [Y/N]: '
			if [[ $(userChoice) == 'Y' ]]; then
				echo
				perform 'Push local changes'
				$(git push $remote $branch)
				result=$?
			fi
			echo
		fi
		if [[ $result != 0 ]]; then
			error 'There was an error, please review and re-run this command'
			return
		fi

		printForRead 'deploy current branch? [Y/N]: '
		if [[ $(userChoice) != 'Y' ]]; then
			return
		fi
		echo
		currentBranch=$(git rev-parse --abbrev-ref HEAD)
		deployer_deploy $currentBranch

		return
	fi
    perform 'Add all files for commit'
	git add --all
	performed
	perform 'Show branch/files'
	git status -sb

	if [[ $showDiffBeforeSave == true ]]; then
		git diff --cached
	fi

	if [[ -z "$commitMessage" ]]; then
		readUser 'Please enter commit message: '
		commitMessage="$input"
	fi

	git commit -m "$input"

    # Add the commit info to the commits.log
    if [[ ! -f "$DEPLOYER_LOCATION"/../logs/project-commits.log ]]; then
    	touch "$DEPLOYER_LOCATION"/../logs/project-commits.log
   	fi
    formattedCommit="[$(date '+%d-%m-%Y %H:%M:%S')]::[$(deployer_FolderNameFromPath $localProjectLocation)] $input"
    echo $formattedCommit >> "$DEPLOYER_LOCATION"/../logs/project-commits.log

   	echo "$commit"
	perform 'Push changes'
	output=$(git push $remote $branch)
	if [[ $(echo $?) != 0 ]]; then
		error 'Unable to push, aborting...'
		return
	fi
	performed

	if [[ -z $sshServer ]]; then
		warning 'sshServer not set, will not deploy'
		return
	fi

	currentBranch=$(git rev-parse --abbrev-ref HEAD)
	deployer_deploy $currentBranch
}

function Deployer_project_diff() {
	warning "showing diff on project"
	cd "$localProjectLocation"
	git diff $1
}

function Deployer_project_checkout() {
	cd "$localProjectLocation"

	if [[ -z $1 ]]; then
		warning 'Showing branches'
		git branch -av && git tag -n1

		return
	fi

	warning "Checking out $1"
	if [[ $(git branch -av | grep $1) == '' ]]; then
		info 'New branch checkout'
		git checkout master
		if [[ $? != 0 ]]; then
			error 'Unable to checkout, an error should be visible above'
			return
		fi
		git checkout -b $1
	else
		info 'Existing branch checkout'
		# Check if there are any changes on branch, if so stash them and re-apply later
		changes=$(git status -s)
		if [[ ! -z $changes ]]; then
			perform_command_local 'Stash current changes' 'git stash' 'Unable to stash changes'
		fi

		perform_command_local "Checkout $1" "git checkout $1" "Unable to checkout branch $1"

		if [[ ! -z $changes ]]; then
			perform_command_local 'Re-apply stashed changes' 'git stash apply' 'Unable to apply stashed changes'
		fi
	fi
}

function Deployer_project_search() {
	info "Search for branch locally: $*"

	Deployer_project_checkout | grep -i "$*"
}

function Deployer_project_status() {
	warning "Show status of project"
	cd "$localProjectLocation"
	git status -sb
}

function Deployer_project_merge() {
	warning "Merging branch $1"

	if [[ $(git branch --list $1) == '' ]]; then
		error 'Branch not found'
		return
	fi

	git merge $1
}

function deployer_local_edit_project() {
	if [[ -z "$editor" ]]; then
		warning 'Editor not configured, using vim'
		editor='vim'
	fi

	$editor "$localProjectLocation"
}

function Deployer_local_run() {
	if [[ ! -d "$localProjectLocation" ]]; then
		return
	fi

	if [[ -z "$@" ]]; then
		# load libs
		if [[ -z "$localProjectLocation" ]]; then
			warning "Project Location >>> Please set project location to use deployer"
			return
		fi

		echo $(deployer_project_location)
		Deployer_project_status

		return
	fi

	warning 'Running command on local project'
	cd "$localProjectLocation"
	"$@"
}

function deployer_project_location() {
	folder=$(deployer_FolderNameFromPath "$localProjectLocation")
	echo "Project [$folder] >>> $localProjectLocation"
	echo
}

function deployer_open_dir() {
	if [[ -z "$localProjectLocation" ]]; then
		error 'localProjectLocation var is not set in config file'
	else
		open $localProjectLocation
	fi
}

function deployer_open_web() {
	if [[ ! -z "$webURL" ]]; then
		open $webURL
	else
		error "Value for 'webURL' not specified in config"
	fi
}

function Deployer_project_test() {
	warning 'Run test command'

	if [[ -z $testStart ]]; then
		error 'No command to run'
	else
		cd "$localProjectLocation"
		deployer_run_semicolon_delimited_commands "$testStart" true
	fi
}

function deployer_dev() {
	if [[ -z $devStart ]]; then
		warning 'Nothing todo...'
		return
	fi

	cd "$localProjectLocation"
	deployer_run_semicolon_delimited_commands "$devStart" false
}

function Deployer_project_list() {
	attempt 'show contents of project dir'
	cd "$localProjectLocation"
	info $(pwd)/"$1"

	if [[ -d $(pwd)/"$1" ]]; then
		if [[ ! -z $1 ]]; then
			ls -la "$1"
		else
			ls -la
		fi
	elif [[ -f $(pwd)/"$1" ]]; then
		cat $(pwd)/"$1"
	else
		error "$(pwd)/$1 not found"
	fi
}


text:
title: En-têtes HTTP de Protection
---

To protect the application against some (!) common attacks, FoalTS sets by default various HTTP headers. These can be overrided in the `HttpResponse` objects.

> Note that this is not a silver bullet, it is just a little help.

| Header name | Value |
| --- | --- |
| `Strict-Transport-Security` | `max-age=15552000; includeSubDomains` |
| `X-Content-Type-Options` | `nosniff` |
| `X-Frame-Options` | `SAMEORIGIN` |
| `X-XSS-Protection` | `1; mode=block` |

redpajama_set_name: RedPajamaGithub


text:
@interface ViewController () {
    NSNumber *_number;
}

@property (nonatomic, strong) NSArray *numberStyleArray;
@property (nonatomic, strong) NSArray *formattersArray;

@property (nonatomic, strong) NSMutableArray *changeFormattersArray;

@end

@implementation ViewController

- (NSArray *)numberStyleArray {
    if(!_numberStyleArray) {
        _numberStyleArray = @[@"No", @"Decimal", @"Currency", @"Percent", @"Scientific", @"SpellOut",@"Decimal",@"Decimal",@"Decimal",@"Decimal"];
    }
    return _numberStyleArray;
}

- (NSArray *)formattersArray {
    if (!_formattersArray) {
        NSNumberFormatter *noStyleFormatter = [[NSNumberFormatter alloc] init];
        NSNumberFormatter *decimalFormatter = [[NSNumberFormatter alloc] init];
        NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];
        NSNumberFormatter *percentFormatter = [[NSNumberFormatter alloc] init];
        NSNumberFormatter *scientificFormatter = [[NSNumberFormatter alloc] init];
        NSNumberFormatter *spellOutFormatter = [[NSNumberFormatter alloc] init];

        NSNumberFormatter *noStyleFormatter2 = [[NSNumberFormatter alloc] init];

        NSNumberFormatter *noStyleFormatter3 = [[NSNumberFormatter alloc] init];

        NSNumberFormatter *noStyleFormatter4 = [[NSNumberFormatter alloc] init];

        NSNumberFormatter *noStyleFormatter5 = [[NSNumberFormatter alloc] init];

        //设置样式
        noStyleFormatter.numberStyle = kCFNumberFormatterNoStyle;
        decimalFormatter.numberStyle = NSNumberFormatterDecimalStyle;
        currencyFormatter.numberStyle = NSNumberFormatterCurrencyStyle;
        percentFormatter.numberStyle = NSNumberFormatterPercentStyle;
        scientificFormatter.numberStyle = NSNumberFormatterScientificStyle;
        spellOutFormatter.numberStyle = NSNumberFormatterSpellOutStyle;

        noStyleFormatter2.numberStyle = NSNumberFormatterDecimalStyle;
        noStyleFormatter3.numberStyle = NSNumberFormatterDecimalStyle;
        noStyleFormatter4.numberStyle = NSNumberFormatterDecimalStyle;
        noStyleFormatter5.numberStyle = NSNumberFormatterDecimalStyle;

          _formattersArray   = @[noStyleFormatter,
                             decimalFormatter,
                             currencyFormatter,
                             percentFormatter,
                             scientificFormatter,
                             spellOutFormatter,
                             noStyleFormatter2,
                             noStyleFormatter3,
                             noStyleFormatter4,
                             noStyleFormatter5];

    }
    return _formattersArray;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    _number = @(-12345.709123);
    self.changeFormattersArray = [[NSMutableArray alloc] initWithArray:self.formattersArray copyItems:YES];
    UINib *nib = [UINib nibWithNibName:@"showCell" bundle:nil];
    [self.tableView registerNib:nib forCellReuseIdentifier:@"121"];
    self.tableView.rowHeight = 110;
    self.tableView.tableFooterView = [UIView new];

}

#pragma mark - Table View Data Source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return [self.numberStyleArray count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     NSInteger row = indexPath.row;
       showCell *cell = [tableView dequeueReusableCellWithIdentifier:@"121"];
    //获取样式
    NSString *showStyle = [NSString stringWithFormat:@"NSNumberFormatter%@Style",self.numberStyleArray[indexPath.row]];

    NSNumberFormatter *formatter = self.formattersArray[row];
    NSNumberFormatter *changeFormatter = self.changeFormattersArray[row];

    NSString *originStrig = [formatter stringFromNumber:_number];
    NSString *formaterTitle;
    NSString *changeString;
    //根据不同的cell,设置样式
    if (row == 0) {
        //小数位最少保留10位小数
        formaterTitle = @"小数位最少保留10位小数";
        changeFormatter.minimumFractionDigits = 10;
         changeString = [changeFormatter stringFromNumber:_number];
    }else if (row == 1) {
       //如果是负数的时候的前缀 用这个字符串代替默认的"-"号
        formaterTitle = @"负数时更改- 前缀";
        changeFormatter.negativePrefix = @"负数";
        changeString = [changeFormatter stringFromNumber:_number];
    }else if (row == 2) {
    //接收的货币分组分隔符 只有currencyFormatter下才有用(默认是,改成//)
        formaterTitle = @"更改货币分组分隔符";
        changeFormatter.currencyGroupingSeparator = @"//";
        changeString = [changeFormatter stringFromNumber:_number];
    }else if (row == 3) {
       //将12.3生成12.3%
        formaterTitle = @"将12.3变成成12.3%并更改百分比符号";
        //缩放因子,你可以将一个数缩放指定比例,然后给其添加后缀
        changeFormatter.multiplier = @1.0f;
        //接收器用来表示百分比符号的字符串。(默认是%,改成%%)
        changeFormatter.percentSymbol = @"百分之";
        //最少保留2位小数点
        changeFormatter.minimumFractionDigits = 2;
        changeString = [changeFormatter stringFromNumber:@(12.3)];
    }else if (row == 4) {
        //接收器用来表示指数符号的字符串 (默认是E)。
        formaterTitle = @"改变指数符号E的样式";
        changeFormatter.exponentSymbol = @"ee";
       changeString = [changeFormatter stringFromNumber:_number];
    }else if (row == 5) {
        //将数值0改成零
        formaterTitle = @"更改数值0的样式";
         changeFormatter.zeroSymbol = @"零";
       changeString = [changeFormatter stringFromNumber:@(0)];
    }else if (row == 6) {
        //更改小数点样式
       formaterTitle = @"更改小数点样式";
      changeFormatter.decimalSeparator = @"。";
       changeString = [changeFormatter stringFromNumber:_number];
    }else if (row == 7) {
       formaterTitle = @"更改数字分割";
       //数字分割的尺寸 就比如数字越多1234 为了方便就分割开 1,234(这个分割的大小是3) 从后往前数
           changeFormatter.groupingSize = 2;
        //一些区域允许较大的数字的另一个分组大小的规范。例如,有些地方可能代表一个数字如61,242,378.46(在美国)作为6,12, 42378.46。在这种情况下,二次分组大小(覆盖小数点最远的数字组)为2
        //小数点前的(大于零的部分),先从右往左分割groupSize的,如果剩余的在按照secondaryGroupingSize的大小来分
        changeFormatter.secondaryGroupingSize = 1;
        changeString = [changeFormatter stringFromNumber:_number];
    }else if (row == 8) {
        formaterTitle = @"更改数字宽度";
        // 格式宽度 出来的数据占位是15个 例如是 123,45.6 格式宽度就是 8
        changeFormatter.formatWidth = 15;
        //填充符 有时候格式宽度够宽,不够就用填充符*填充
            changeFormatter.paddingCharacter = @"*";
        //填充符的位置
        changeFormatter.paddingPosition = kCFNumberFormatterPadAfterSuffix;
        changeString = [changeFormatter stringFromNumber:_number];
    }else if ( row == 9) {
        formaterTitle = @"更改数字舍入方式";
        // 舍入方式
        changeFormatter.roundingMode = NSNumberFormatterRoundHalfUp;
        // 舍入值 比如以1为进位值   123456.58 变为 123457
        changeFormatter.roundingIncrement = @1;
        changeString = [changeFormatter stringFromNumber:_number];
    }
    [cell setCell:showStyle originValue:originStrig formaterTitle:formaterTitle changeFormater:changeString];
    if (row %2 == 0) {
        cell.backgroundColor = [UIColor greenColor];
    }else {
        cell.backgroundColor = [UIColor whiteColor];
    }

    return cell;

}

@end


text:
package org.axonframework.commandhandling.disruptor;

import org.axonframework.commandhandling.CommandBus;
import org.axonframework.commandhandling.CommandHandler;
import org.axonframework.commandhandling.CommandMessage;
import org.axonframework.commandhandling.GenericCommandMessage;
import org.axonframework.commandhandling.SimpleCommandBus;
import org.axonframework.domain.DomainEventStream;
import org.axonframework.domain.GenericDomainEventMessage;
import org.axonframework.domain.SimpleDomainEventStream;
import org.axonframework.eventsourcing.EventSourcedEntity;
import org.axonframework.eventsourcing.annotation.AbstractAnnotatedAggregateRoot;
import org.axonframework.eventstore.EventStore;
import org.axonframework.repository.Repository;
import org.axonframework.unitofwork.UnitOfWork;

import java.util.Collection;
import java.util.Collections;
import java.util.UUID;

/**
 * Benchmark test created to compare
 *
 * @author Allard Buijze
 */
public class CommandHandlingBenchmark {

    private static final UUID aggregateIdentifier = UUID.randomUUID();

    public static void main(String[] args) {
        CommandBus cb = new SimpleCommandBus();

        InMemoryEventStore eventStore = new InMemoryEventStore();
        eventStore.appendInitialEvent("test", new SimpleDomainEventStream(new GenericDomainEventMessage<SomeEvent>(
                aggregateIdentifier, 0, new SomeEvent())));

        final MyAggregate myAggregate = new MyAggregate(aggregateIdentifier);
        Repository<MyAggregate> repository = new Repository<MyAggregate>() {
            @Override
            public MyAggregate load(Object aggregateIdentifier, Long expectedVersion) {
                throw new UnsupportedOperationException("Not implemented yet");
            }

            @Override
            public MyAggregate load(Object aggregateIdentifier) {
                return myAggregate;
            }

            @Override
            public void add(MyAggregate aggregate) {
                throw new UnsupportedOperationException("Not implemented yet");
            }
        };
        cb.subscribe(String.class.getName(), new MyCommandHandler(repository));
//        new AnnotationCommandHandlerAdapter(new MyCommandHandler(repository), cb).subscribe();

        long COMMAND_COUNT = 5 * 1000 * 1000;
        cb.dispatch(GenericCommandMessage.asCommandMessage("ready,"));
        long t1 = System.currentTimeMillis();
        for (int t = 0; t < COMMAND_COUNT; t++) {
            cb.dispatch(GenericCommandMessage.asCommandMessage("go!"));
        }
        long t2 = System.currentTimeMillis();
        System.out.println(String.format("Just did %d commands per second", ((COMMAND_COUNT * 1000) / (t2 - t1))));
    }

    private static class MyAggregate extends AbstractAnnotatedAggregateRoot<UUID> {

        private final UUID identifier;

        protected MyAggregate() {
            this(UUID.randomUUID());
        }

        protected MyAggregate(UUID identifier) {
            this.identifier = identifier;
        }

        @Override
        public UUID getIdentifier() {
            return identifier;
        }

        public void doSomething() {
            apply(new SomeEvent());
        }

        @Override
        protected Collection<EventSourcedEntity> getChildEntities() {
            return Collections.emptyList();
        }
    }

    private static class SomeEvent {

    }

    private static class MyCommandHandler implements CommandHandler<String> {

        private final Repository<MyAggregate> repository;

        public MyCommandHandler(Repository<MyAggregate> repository) {
            this.repository = repository;
        }

        @Override
        public Object handle(CommandMessage<String> command, UnitOfWork unitOfWork) throws Throwable {
            repository.load(aggregateIdentifier).doSomething();
            return null;
        }
    }

    private static class InMemoryEventStore implements EventStore {

        private DomainEventStream storedEvents;

        public void appendInitialEvent(String type, DomainEventStream events) {
            storedEvents = events;
        }

        @Override
        public void appendEvents(String type, DomainEventStream events) {
//            while (events.hasNext()) {
//                storedEvents.add(events.next());
//            }
        }

        @Override
        public DomainEventStream readEvents(String type, Object identifier) {
            System.out.println(".");
            return storedEvents;
        }
    }
}


text:
- In an empty region of a domain with editing rights.

## Steps
Press 'n' key to advance step by step

### Step 1
- Still life FBX model
- ![](./ExpectedImage_00000.png)
### Step 2
- Clean up after test


text:
// Load .env for development environments
require('dotenv')().load();

var keystone = require('keystone');

/**
 * Application Initialisation
 */
console.log("keystone.js started");
keystone.init({

	'name': 'Visual intelligence',
	'brand': 'Demo',

	'favicon': 'public/favicon.ico',
	'less': 'public',
	'static': 'public',

	'views': 'templates/views',
	'view engine': 'jade',

	'auto update': true,
	'mongo': process.env.MONGO_URI || process.env.MONGOLAB_URI || 'mongodb://shridhar.malagi@clariontechnologies.co.in:Clarion~1@ds047911.mongolab.com:47911/heroku_app34312707',

	'session': true,
	'auth': true,
	'user model': 'User',
	'cookie secret': process.env.COOKIE_SECRET || 'demo',

	'ga property': process.env.GA_PROPERTY,
	'ga domain': process.env.GA_DOMAIN,

	'chartbeat property': process.env.CHARTBEAT_PROPERTY,
	'chartbeat domain': process.env.CHARTBEAT_DOMAIN

});

require('./models');

keystone.set('locals', {
	_: require('underscore'),
	env: keystone.get('env'),
	utils: keystone.utils,
	editable: keystone.content.editable,
	ga_property: keystone.get('ga property'),
	ga_domain: keystone.get('ga domain'),
	chartbeat_property: keystone.get('chartbeat property'),
	chartbeat_domain: keystone.get('chartbeat domain')
});

keystone.set('routes', require('./routes'));

keystone.set('cloudinary config', { cloud_name: 'clarion', api_key: '958126136135894', api_secret: 'hwf2l0DwEJaDtMZyEi7BTF34U58' });
// or
keystone.set('cloudinary config', 'cloudinary://api_key:api_secret@cloud_name' );

// optional, will prefix all built-in tags with 'keystone_'
keystone.set('cloudinary prefix', 'keystone');

// optional, will prefix each image public_id with [{prefix}]/{list.path}/{field.path}/
keystone.set('cloudinary folders', true);

// optional, will force cloudinary to serve images over https
keystone.set('cloudinary secure', true);

keystone.set('mandrill api key', '_nmfkAwalFdbxh_1dgarHQ');
keystone.set('mandrill username', 'arati.nankar@planetria.com');

keystone.set('nav', {
	'posts': ['posts', 'post-comments', 'post-categories'],
	'galleries': 'galleries',
	'enquiries': 'enquiries',
	'users': 'users',
	'field-tests': 'things'
});

keystone.start();


text:
package net.swiftos.common.model.entity;

import net.swiftos.common.model.bean.ErrorResponse;
import net.swiftos.common.model.bean.FailureEntity;

/**
 * Created by ganyao on 2017/5/16.
 */

public abstract class BaseAsyncCallback<T> implements AsyncCallback<T> {

    @Override
    public void onFailure(FailureEntity failure) {

    }

    @Override
    public Object getTag() {
        return null;
    }

    @Override
    public void onComplete() {

    }

    @Override
    public void onError(ErrorResponse error) {

    }

    @Override
    public void onDone(Object tag) {

    }
}


text:
package fi.fenhua.android.badminton.scoreboard;

import java.util.List;

class Game {
    String title;

    Game(String title) {
        this.title = title;
    }
}


text:
<?php

use Illuminate\Database\Seeder;

class CustomerInboxTableSeeder extends Seeder {

	/**
	 * Auto generated seed file
	 *
	 * @return void
	 */
	public function run()
	{
		\DB::table('customer_inbox')->delete();

	}

}


text:
<?php

namespace Api\Status\Models;

use App\Database\Eloquent\Model;
use App\Traits\Uuids;

class Status extends Model
{
    use Uuids;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'statuses';

    var $primaryKey = 'status_uuid';

    var $incrementing = false;

    var $guarded = ['status_uuid', 'created_at', 'updated_at'];
    //var $fillable = ['token_type', 'token', 'token_class', 'user_uuid'];
}


text:
<?php

namespace directapi\services\ads\models;

use directapi\components\constraints as DirectApiAssert;
use directapi\components\Model;
use Symfony\Component\Validator\Constraints as Assert;

class MobileAppAdAdd extends Model
{
    /**
     * @var string
     * @Assert\NotBlank()
     * @Assert\Length(
     *      max = 33
     * )
     */
    public $Title;

    /**
     * @var string
     * @Assert\NotBlank()
     * @Assert\Length(
     *      max = 75
     * )
     */
    public $Text;

    /**
     * @var string
     * @Assert\Length(
     *      max = 1024
     * )
     */
    public $TrackingUrl;

    /**
     * @var MobileAppAdFeatureItem[]
     * @DirectApiAssert\ArrayOf(type="directapi\services\ads\MobileAppAdFeatureItem")
     */
    public $Features;

    /**
     * @var \directapi\services\ads\enum\AgeLabelEnum
     * @DirectApiAssert\IsEnum(type="directapi\services\ads\enum\AgeLabelEnum")
     */
    public $AgeLabel;

    /**
     * @var \directapi\services\ads\enum\MobileAppAdActionEnum
     * @Assert\NotBlank()
     * @DirectApiAssert\IsEnum(type="directapi\services\ads\enum\MobileAppAdActionEnum")
     */
    public $Action;

    /**
     * @var string
     */
    public $AdImageHash;
}


text:
extern crate serde_derive;

#[derive(Deserialize)] //~ ERROR: proc-macro derive panicked
#[serde(field_identifier)]
enum F {
    A,
    Other(String), //~^^^^ HELP: `Other` must be the last variant
    B,
}

fn main() {}


text:
require 'minitest/spec'

describe_recipe 'ruby::default' do
  include MiniTest::Chef::Resources
  include MiniTest::Chef::Assertions

  it 'uninstalls ruby-enterprise' do
    package('ruby-enterprise').wont_be_installed
  end

  it 'installs ruby' do
    file('/usr/local/bin/ruby').must_exist
  end

  it 'must be the right version' do
    assert_match node['ruby']['version'], `/usr/local/bin/ruby -v`.chomp
  end
end


text:
<?php
/**
 * Created by PhpStorm.
 * User: chain.wu
 * Date: 2017/3/21
 * Time: 15:05
 */

namespace DTS\eBaySDK\Trading\Services;

use DTS\eBaySDK\Trading\Types\GetSellerEventsRequestType;

class GetSellerEvents
{
    protected static $_convertObject;
    private static function setModTimeFrom($time)
    {
        self::$_convertObject->ModTimeFrom = $time;
    }

    private static function setModTimeTo($time)
    {
        self::$_convertObject->ModTimeTo = $time;
    }

    private static function setDetailLevel($type)
    {
        self::$_convertObject->DetailLevel = $type;
    }
    /*private static function setStartTimeFrom($time)
    {
        self::$_convertObject->StartTimeFrom = $time;
    }*/
    public static function convert($object)
    {
        self::$_convertObject = new GetSellerEventsRequestType();
        if(is_array($object)){
            foreach($object as $k=>$v){
                $fun = 'set'.ucfirst($k);
                if(method_exists(__CLASS__,$fun)){
                    self::$fun($v);
                }
            }
        }
        return self::$_convertObject;
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MyCantinaCore.UI.Services
{
    public interface IEmailSender
    {
        Task SendEmailAsync(string email, string subject, string message);
    }
}


text:
package com.yxy.chukonu.spark.streaming;

import java.util.List;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.spark.Partition;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.function.VoidFunction;
import org.apache.spark.storage.StorageLevel;
import org.apache.spark.streaming.Durations;
import org.apache.spark.streaming.api.java.JavaReceiverInputDStream;
import org.apache.spark.streaming.api.java.JavaStreamingContext;

/**
 * Hello world!
 *
 */
public class DataReceiver
{

    public static void main( String[] args ) {

    	System.setProperty("hadoop.home.dir", DataReceiver.class.getClassLoader().getResource("").getPath());
    	Logger.getLogger("org.apache.spark").setLevel(Level.ERROR) ;

    	// Create a local StreamingContext with two working thread and batch interval of 1 second
    	SparkConf conf = new SparkConf().setAppName("NetworkWordCount");
    	conf.setMaster("local[2]") ;

    	//Retreving Streaming Context from Spark Conf
    	JavaStreamingContext streamCtx = new JavaStreamingContext(conf, Durations.milliseconds(500));

    	//specify Stream type, here we use TCP socket as text stream
    	//setup listener on specific machine, receive data and store them into RAM,
    	//if out of RAM capacity, the data will be stored to HD.
    	//then, data will be transformed to DStream
    	JavaReceiverInputDStream<String> lines = streamCtx.socketTextStream("localhost", 9087, StorageLevel.MEMORY_AND_DISK_SER_2()) ;

    	lines.foreachRDD(new VoidFunction<JavaRDD<String>>(){
			private static final long serialVersionUID = 1L;

			@Override
			public void call(JavaRDD<String> rdd) throws Exception {
				for(String str : rdd.collect()){
					System.out.println(str+ " ");
				}
				System.out.println("---------------------------------");
			}

    	});

    	//init streaming context
    	streamCtx.start();

    	try {
			streamCtx.awaitTermination();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }
}


text:
var farm = (function () {
    var formNumber = "V04";
    var bShowPickerAutomatically = "false";

    return {
        initInlinePicker: function (btnShowPickerId, isSearchButtonReadOnly, isShowPickerAutomatically, pickerWrapId) {
            bShowPickerAutomatically = isShowPickerAutomatically;
            var btnShowPicker = $("#" + btnShowPickerId);
            if (isSearchButtonReadOnly.toString().toLowerCase() == 'true') {
                btnShowPicker.attr('disabled', 'disabled');
            } else {
                btnShowPicker.removeAttr('disabled');
            }

            $("#" + pickerWrapId + ":has(.requiredField)").addClass('requiredField');

            if (isShowPickerAutomatically.toString().toLowerCase() == 'true') {
                farm.showSearchPicker();
            }
        },

        showSearchPicker: function () {
            var pickerUrl = bvUrls.getFarmPickerUrl();
            var title = EIDSS.BvMessages['titleSelectFarm'];
            searchPicker.show(pickerUrl, title, formNumber);
        },

        onSearchPickerSelectSuccess: function (name) {
            bvGrid.reloadById(name);
            if ($("input[type='hidden'][name='Address']").length > 0) {
                var id = $("input[type='hidden'][name='Address']")[0].value;
                comboBoxFacade.reloadReferenceComboBox2WithoutClearValue("Address_" + id + "_*", 'Region');
                comboBoxFacade.reloadReferenceComboBox2WithoutClearValue("Address_" + id + "_*", 'Rayon');
                comboBoxFacade.reloadReferenceComboBox2WithoutClearValue("Address_" + id + "_*", 'Settlement');
            }
        },

        onSearchPickerSelect: function () {
            var selectedItemId = searchPicker.getSelectedIds();
            if (selectedItemId) {
                var idfarm = $("input[type='hidden'][name$='idfRootFarm']");
                var idfarmEditing = idfarm.val();
                if (idfarmEditing != selectedItemId) {
                    var asFarms = $("input[type='hidden'][name$='ASFarms']");
                    if (asFarms.length > 0) {
                        var asFarmsList = asFarms.val();
                        var arrFarmsList = asFarmsList.split(',');
                        for (var i = 0; i < arrFarmsList.length; i++) {
                            if (arrFarmsList[i].length > 0) {
                                var arrFarm = arrFarmsList[i].split('=');
                                var idFarmRoot = arrFarm[0];
                                var idFarm = arrFarm[1];
                                if (idFarmRoot == selectedItemId) {
                                    var asFKey = $("input[type='hidden'][name$='ASFKey']").val();
                                    var asFName = $("input[type='hidden'][name$='ASFName']").val();
                                    var asFdetails = $("input[type='hidden'][name$='ASFdetails']").val();
                                    searchPicker.closePicker();
                                    if (asFdetails == "true") {
                                        asSession.RedirectToFarmDetails(idFarm, asFKey, asFName);
                                    } else {
                                        asSession.RedirectToFarmSummary(idFarm, asFKey, asFName);
                                    }
                                    return;
                                }
                            }
                        }
                    }

                    idfarm.val(selectedItemId);
                    formRefresher.setOnChangedSuccess(farm.onSearchPickerSelectSuccess, 'FarmTree');
                    formRefresher.onFieldChanged(idfarm.attr('name'), selectedItemId);
                }
                searchPicker.closePicker();
            } else {
                searchPicker.closePicker();
            }
        },

        closePicker: function (showInInternalWindow, propertyName) {
            searchPicker.closePicker(showInInternalWindow, propertyName);
            if (bShowPickerAutomatically.toString().toLowerCase() == 'true') {
                detailPage.close();
            }
        },

    };
})();


text:
from unittest import TestCase
from plugins.telnet_plugin import Plugin
import socket

class TestTelnetPlugin(TestCase):
    PORT = 8888
    ORM = {"table": {
        'tableName': "test_table1",
        "column": {
            "name": "ip",
            "type": "TEXT"
        }
    }}

    def SetUp(self):
        pass

    def TearDown(self):
        pass

    def test_plugin_run(self, passed_socket, session):
        result = 8888
        self.assertEquals(passed_socket.port, result, 'Test Passed')
        self.assertRaises(IOError, lambda: Plugin().run('Closed Connection Passed'))
        # test is error is thrown, not sure how
        # test a session, use mock

        plugin = Plugin()
        username = 'some_username'
        passed_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        passed_socket.connect(('localhost', plugin.get_port()))
        # It asks for a username and tests if it's the same.(I hope)
        passed_socket.sendall(username)
        un_returned = passed_socket.recv(64)
        self.assertEquals(username, un_returned, 'Test Passed')

        # passes a password and check if it's returned(i think this is the logic)
        password = 'some_password'
        passed_socket.sendall(password)
        password2 = passed_socket.recv(64)
        self.assertEquals(password, password2, 'Test Passed')
        passed_socket.close()

    def test_port(self):
        return self.PORT

    def test_orm(self):
        ip_result = ''
        self.assertEquals(self.ORM, ip_result, True)
        return self.ORM

    def test_geo_ip(self):
        geo_result = ''
        self.assertEquals(self.get_geo_ip(), geo_result, True)
        return self.get_geo_ip()


text:
'use strict';

define([
  'content-editable-chunk',
  'jasmine-jquery'
], function(ContentEditableChunk, jasmineJquery) {

  describe('ContentEditableChunk', function () {
    var chunk;
    var content = 'Hey buddy!';

    beforeEach(function () {
      chunk = new ContentEditableChunk({
        initialHtml: content
      });
    });

    it('loads up a-ok', function () {

    });

    it('politely greets', function () {
      expect(chunk.getHtml()).toEqual(content);
    });

  });
});


text:
/* @import url("platform:/plugin/hydrograph.ui.theme/css/e4-dark.css"); Bug 430052 */
@import url("platform:/plugin/hydrograph.ui.theme/css/dark/e4-dark_basestyle.css");
/*@import url("platform:/plugin/hydrograph.ui.theme/css/dark/e4-dark_globalstyle.css"); *//* Remove this to have ONLY the main IDE shell dark */
/*@import url("platform:/plugin/hydrograph.ui.theme/css/dark/e4-dark_partstyle.css");*/

Tree {
	/**
	 * See Bug 434201: Dark theme: tree must respect the foreground color for items arrows
	 */
	swt-tree-arrows-color:#000000;
	swt-tree-arrows-mode: triangle;  /* triangle or square */

	/* See Bug 434309: Customize the tree/table selection to work properly
	 * with the dark theme.
	 *
	 * Note that the selection foreground is a bit lighter than the regular
	 * foreground because our background is also a bit lighter in this case.
	 */
	swt-selection-foreground-color: #fcfcf9;
	swt-selection-background-color: #4081bd;
	swt-hot-background-color: #f7eeeb;
	swt-selection-border-color: #7F7D68;
	swt-hot-border-color: #545454;
}

CustomFigureCanvas > Composite {
  /* actual values */
  background-color: #4081bd;
  background-image: none;
  color: #000000;
  font-family: "Segoe UI";
  font-size: 9;
  font-style: normal;
  font-weight: normal;
  swt-background-mode: none;
  text-transform: none;
  visibility: visible;
}

.MTrimmedWindow.topLevel {
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    margin-right: 3px;
}

.MPartStack, .MPart {
    font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
}

.MPartStack {
    swt-tab-renderer: url('bundleclass://org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
    swt-selected-tab-fill: '#org-eclipse-ui-workbench-INACTIVE_TAB_BG_START' '#org-eclipse-ui-workbench-INACTIVE_TAB_BG_END' 100%; /* title background for selected tab */
    swt-unselected-tabs-color: '#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_START' '#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_END' 100% 100%; /* title background for unselected tab */
    swt-outer-keyline-color: '#org-eclipse-ui-workbench-INACTIVE_TAB_OUTER_KEYLINE_COLOR'; /* border color for whole tabs container */
    swt-inner-keyline-color: '#org-eclipse-ui-workbench-INACTIVE_TAB_INNER_KEYLINE_COLOR';
    swt-tab-outline: '#org-eclipse-ui-workbench-INACTIVE_TAB_OUTLINE_COLOR'; /* border color for selected tab */
    padding: 0px 2px 2px;
    swt-shadow-visible: false;
    swt-mru-visible: true;
    swt-corner-radius: 16px;
}

.MPartStack.active {
    swt-selected-tab-fill: '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_START' '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END' 100%; /* title background for selected tab */
    swt-unselected-tabs-color: '#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_START' '#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_END' 100% 100%; /* title background for unselected tab */
    swt-outer-keyline-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_OUTER_KEYLINE_COLOR'; /* border color for whole tabs container */
    swt-inner-keyline-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_INNER_KEYLINE_COLOR';
    swt-tab-outline: '#org-eclipse-ui-workbench-ACTIVE_TAB_OUTLINE_COLOR'; /* border color for selected tab */
}

.MPartStack.active.noFocus {
    swt-selected-tabs-fill: #000000;
}

.MPartStack.empty {
    swt-unselected-tabs-color: '#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_START' #4F5456 #4F5456 99% 100%; /* title background for unselected tab */
    swt-tab-outline: #000000; /* border color for selected tab */
    swt-outer-keyline-color: #f4eae0; /* border color for whole tabs container */
}

.MPart.busy {
    font-style: italic;
}

.MPart.highlighted {
    font-weight: bold;
}

CTabItem,
CTabItem CLabel {
    background-color: '#org-eclipse-ui-workbench-INACTIVE_TAB_BG_END'; /* HACK for background of CTabFolder inner Toolbars */
    color: #ffffff;
}
CTabItem:selected,
CTabItem:selected CLabel {
    color: #ffffff;
}

.MPartStack.active > CTabItem,
.MPartStack.active > CTabItem CLabel {
    background-color: '#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END'; /* HACK for background of CTabFolder inner Toolbars */
    color: '#org-eclipse-ui-workbench-ACTIVE_TAB_UNSELECTED_TEXT_COLOR';
}
.MPartStack.active > CTabItem:selected,
.MPartStack.active > CTabItem:selected CLabel {
    color: '#org-eclipse-ui-workbench-ACTIVE_TAB_SELECTED_TEXT_COLOR';
}

.MPartStack.active.noFocus > CTabItem:selected {
    color: '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_SELECTED_TEXT_COLOR';
}

CTabItem.busy {
    color: #888888;
}

.MToolControl.TrimStack {
    /*frame-image:  url(./gtkTSFrame.png);*/
    handle-image:  url(./dragHandle.png);
    frame-cuts: 5px 1px 5px 16px;
}

.MToolBar.Draggable {
    handle-image:  url(./dragHandle.png);
}

.MToolControl.Draggable {
    handle-image:  url(./dragHandle.png);
}

.DragFeedback {
    background-color: COLOR-WIDGET-NORMAL-SHADOW;
}

.ModifiedDragFeedback {
    background-color: #4176AF;
}

/*main window background*/
.MTrimmedWindow {
    /*background-color: #316594;*/
    /*background-color: #375e81;*/
    background-color: #42719a;
}

/*main window background end*/
.MTrimBar {
    background-color: #4081bd;
}

CTabFolder.MArea .MPartStack,CTabFolder.MArea .MPartStack.active {
    swt-shadow-visible: false;
}

CTabFolder Tree, CTabFolder Canvas {
    background-color: #f7eeeb;
    color: #000000;
}
.MPartStack.active Tree,
.MPartStack.active CTabFolder Canvas {
    background-color: #f7eeeb;
    color: #000000;
}

/* ####################### Top Toolbar ########################## */

#org-eclipse-ui-main-toolbar, #PerspectiveSwitcher {
    eclipse-perspective-keyline-color: #585858;
    background-color: #315575 #315575 100%; /*draggable line bg color*/
    handle-image: none;
    color: #EBE8E4;
}

/*#org-eclipse-ui-main-toolbar, #PerspectiveSwitcher {
    eclipse-perspective-keyline-color: #585858;
    background-color: #dfeaeb #dfeaeb 100%;
    handle-image: none;
}*/

/* ##################### Bottom Status Bar ####################### */

#org-eclipse-ui-StatusLine,
#org-eclipse-ui-ProgressBar,
#org-eclipse-ui-ProgressBar Canvas {
    color: #CCCCCC;
}
#org-eclipse-ui-StatusLine CLabel {
    color: #BDBAB7;
}

StatusLine, ImageBasedFrame{
    color: #BDBAB7;
}

/* ####################### CSS for .MParts ####################### */

/* Make the content of the Form brighter because the color of
   the font of some widgets is hard-coded to be black on Window */

.MPart Form,
.MPart Form Sash,
.MPart Form Label,
.MPart Form Section,
.MPart Form FormText,
.MPart Form Link,
.MPart Form Hyperlink,
.MPart Form ImageHyperlink,
.MPart Form Button,
.MPart Form Group,
.MPart Form SashForm,
.MPart Form LayoutComposite,
.MPart Form ScrolledPageBook,
.MPart Form DependenciesComposite,
.MPart Form ListEditorComposite,
.MPart Form Text[style~='SWT.READ_ONLY'],
.MPart Form > LayoutComposite > LayoutComposite > ToolBar,
.MPart Form DependenciesComposite > SashForm > Section > *, /* Section > DependenciesComposite$... */
.MPart LayoutComposite > * > LayoutComposite > Section > LayoutComposite > *, /*LayoutComposite > MasterDetailBlock$... > LayoutComposite > Section > LayoutComposite > ExtensionsSection$...*/
.MPartStack.active .MPart Form,
.MPartStack.active .MPart Form Sash,
.MPartStack.active .MPart Form Label,
.MPartStack.active .MPart Form Section,
.MPartStack.active .MPart Form FormText,
.MPartStack.active .MPart Form Link,
.MPartStack.active .MPart Form Hyperlink,
.MPartStack.active .MPart Form ImageHyperlink,
.MPartStack.active .MPart Form Button,
.MPartStack.active .MPart Form Group,
.MPartStack.active .MPart Form SashForm,
.MPartStack.active .MPart Form LayoutComposite,
.MPartStack.active .MPart Form ScrolledPageBook,
.MPartStack.active .MPart Form DependenciesComposite,
.MPartStack.active .MPart Form ListEditorComposite,
.MPartStack.active .MPart Form Text[style~='SWT.READ_ONLY'],
.MPartStack.active .MPart Form > LayoutComposite > LayoutComposite > ToolBar,
.MPartStack.active .MPart Form DependenciesComposite > SashForm > Section > *, /* Section > DependenciesComposite$... */
.MPartStack.active .MPart LayoutComposite > * > LayoutComposite > Section > LayoutComposite > * /*LayoutComposite > MasterDetailBlock$... > LayoutComposite > Section > LayoutComposite > ExtensionsSection$...*/ {
    background-color: #4f5355;
    color: #f4f7f7;
}
#org-eclipse-help-ui-HelpView Form,
#org-eclipse-help-ui-HelpView Form Sash,
#org-eclipse-help-ui-HelpView Form Label,
#org-eclipse-help-ui-HelpView Form Section,
#org-eclipse-help-ui-HelpView Form FormText,
#org-eclipse-help-ui-HelpView Form Hyperlink,
#org-eclipse-help-ui-HelpView Form Button,
#org-eclipse-help-ui-HelpView Form Group,
#org-eclipse-help-ui-HelpView Form LayoutComposite,
#org-eclipse-help-ui-HelpView Form ScrolledPageBook,
#org-eclipse-help-ui-HelpView Form Text[style~='SWT.READ_ONLY'] {
    background-color: #2F2F2F;
    color: #CCCCCC;
}
.MPartStack.active #org-eclipse-help-ui-HelpView Form,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Sash,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Label,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Section,
.MPartStack.active #org-eclipse-help-ui-HelpView Form FormText,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Hyperlink,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Button,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Group,
.MPartStack.active #org-eclipse-help-ui-HelpView Form LayoutComposite,
.MPartStack.active #org-eclipse-help-ui-HelpView Form ScrolledPageBook,
.MPartStack.active #org-eclipse-help-ui-HelpView Form Text[style~='SWT.READ_ONLY'] {
    background-color: #262626;
    color: #BBBBBB;
}
.MPart Form Section Tree,
.MPart LayoutComposite > * > LayoutComposite > Section > LayoutComposite > Tree,
.MPartStack.active .MPart Form Section Tree,
.MPartStack.active .MPart LayoutComposite > * > LayoutComposite > Section > LayoutComposite > Tree {
    background-color: #ffffff;
    color: #DDDDDD;
}
.MPart Form DatePicker > ImageHyperlink,
.MPart Form ScheduleDatePicker > ImageHyperlink {
    background-color: #3f4447;
    color: #BBBBBB;
}
.MPartStack.active .MPart Form DatePicker > ImageHyperlink,
.MPartStack.active .MPart Form ScheduleDatePicker > ImageHyperlink {
    background-color: #313538;
    color: #AAAAAA;
}
.MPart PageBook > Form > LayoutComposite {
    background-color: #2F2F2F;
    color: #CCC;
}
.MPartStack.active .MPart PageBook > Form > LayoutComposite {
    background-color: #262626;
    color: #BBBBBB;
}
.MPart Form FormHeading LayoutComposite,
.MPart Form FormHeading ImageHyperlink {
    background-color: #505f70;
    color: #9ac9d8;
}
.MPartStack.active .MPart Form FormHeading LayoutComposite,
.MPartStack.active .MPart Form FormHeading ImageHyperlink {
    background-color: #415062;
    color: #9ac9d8;
}

/* On the windows dark theme, the default is having the scrollbar themed
 * Note that the user may also set -Dswt.enable.themedScrollBar=false to force
 * it to false regardless of the CSS value.
 */
StyledText {
	swt-scrollbar-themed: true;

	swt-scrollbar-background-color: #383838;
	swt-scrollbar-foreground-color: #494949;
	swt-scrollbar-width: 4px;
	swt-scrollbar-border-radius: 4px;
	swt-scrollbar-mouse-near-scroll-width: 15px;
}

Composite StyledText{
	background-color: #f7eeeb;
    color: '#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START';

}

/*Added class*/
.MPart FigureCanvas,
.MPartStack.active .MPart FigureCanvas{
    background-color: #f0f0f0;
    color: #999999;
}

#org-eclipse-ui-console-ConsoleView .MPart StyledText
{
    background-color: #f0efef;
    color: #CCCCCC;
}

Composite#org-eclipse-ui-main-toolbar {
  /* actual values */
  background-color: #315575;
  }
ToolBar#hydrograph-ui-graph-toolbar1 {
  /* actual values */
  background-color: #315575;	/* declared in CSS: rgb(81, 86, 88) */
 }
Composite#SearchField {
  /* actual values */
  background-color: #315575;	/* declared in CSS: rgb(81, 86, 88) */
 }
Composite#PerspectiveSwitcher {
  /* actual values */
  background-color: #315575;	/* declared in CSS: rgb(81, 86, 88) rgb(81, 86, 88) 100.0% */
  color: #ebe8e4;	/* declared in CSS: rgb(235, 232, 228) */
  /* declared in CSS rules */
  eclipse-perspective-keyline-color: rgb(88, 88, 88);
}
ToolBar#hydrograph-ui-graph-toolbar2 {
  /* actual values */
   background-color: #315575;
}

ToolBar#hydrograph-ui-project-structure-console-HydrographConsole {
  /* actual values */
  background-color: #4081bd;	/* declared in CSS: rgb(223, 234, 235) */

}

ColorDefinition#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_START {	/*CHECKED*/
	color: #4081bd;
}
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_END {	/*CHECKED*/
	color: #4081bd;  /*	Rust*/
}
CTabFolder#org-eclipse-gef-ui-palette_viewMStack{color:#ffffff;}
CTabFolder#PartStack {color:#ffffff;}

/*Tabs on Canvas*/
ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_BG_START {  /*CHECKED*/
    color: #4081bd;
    category: '#org-eclipse-ui-presentation-default';
    label: 'Active, selected part background begin';
}

ColorDefinition#org-eclipse-ui-workbench-INACTIVE_TAB_BG_END {	/*CHECKED*/
    color: #0e4c7d;
    category: '#org-eclipse-ui-presentation-default';
    label: 'Active, selected part background end';
}
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_BG_START {  /*CHECKED*/
    color: #4081bd;
    category: '#org-eclipse-ui-presentation-default';
    label: 'Active, selected part background begin';
}

ColorDefinition#org-eclipse-ui-workbench-ACTIVE_TAB_BG_END {	/*CHECKED*/
    color: #0e4c7d;
    category: '#org-eclipse-ui-presentation-default';
    label: 'Active, selected part background end';
}
/* CTabFolder */
ColorDefinition#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_START {	/*CHECKED*/
	color: #4081bd;	/*RED*/
}

ColorDefinition#org-eclipse-ui-workbench-ACTIVE_UNSELECTED_TABS_COLOR_END {		/*CHECKED*/
	color: #4081bd; /*Taupe*/
}
#org-eclipse-ui-ProgressBar > Canvas {color:#000000;}

.MToolControl.TrimStack {
	frame-image:  url(./win7TSFrame.png);
	handle-image:  url(./win7Handle.png);
}

#org-eclipse-ui-editorss {
	swt-tab-height: 8px;
	padding: 0px 5px 7px;
}

Composite#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START{
background-color: #f7eeeb;
}
/*CANVAS*/
Composite FigureCanvas{						/*CHECKED*/
	background-color: #f7eeeb;
    color: white;
}
/*CONSOLE*/									/*CHECKED*/
Composite StyledText{
	background-color:#	;
    color: #333333;

}
/*Composite{
	background-color: #f7eeeb;
    color: white;
}

/* ###################### Top Toolbar ########################## */

ColorDefinition#org-eclipse-ui-workbench-ACTIVE_NOFOCUS_TAB_BG_START {background-color: #f7eeeb;}
Tree {
  /* actual values */
  background-color: #f7eeeb;	/* declared in CSS: rgb(47, 47, 47) */
  background-image: none;
  color: #000000;	/* declared in CSS: rgb(204, 204, 204) */
}
ColorDefinition#hydrograph-ui-project-structure-console-HydrographConsole {
    background-color: #4081bd;	/* declared in CSS: rgb(223, 234, 235) */
  }

/*Console window toolbar*/
.MPartStack.active ToolBar#hydrograph-ui-project-structure-console-HydrographConsole{background-color: #4081bd;}
.MPartStack ToolBar#hydrograph-ui-project-structure-console-HydrographConsole{background-color: #4081bd; }
.MPartStack Composite > ToolBar [style~='SWT.DROP_DOWN'] {background-color: #ffffff;}

/*Project Navigator tab*/
ToolBar#hydrograph-ui-project-structure-navigator {
  background-color: #4081bd;	/* declared in CSS: rgb(223, 234, 235) */
}
.MPartStack.active ToolBar#hydrograph-ui-project-structure-navigator {background-color: #4081bd;}

/*Console text background*/
.View {
    background-color: #f0efef;
    color: #F5F5F5;
}

/*Tab Hover color*/
CTabFolder {
    swt-unselected-hot-tab-color-background: #4081bd; /* Bug 465711 */
}
StatusLine > CLable{color:#000000;}

/*Tabs under popup*/
ScrolledComposite  {background-color:#90a4ae;}
Composite > CTabFolder CTabItem{background-color:#4081bd;}
Composite > CTabFolder CTabItem:selected{background-color:#0e4c7d;}
Composite > CTabFolder CTabItem.active{background-color:#4081bd;}
Composite > CTabFolder{
  swt-tab-height: 23;
  font-size: 9;
  font-style: normal;
  font-weight: normal;
  swt-background-mode: none;
 /* swt-maximize-visible: true;
  swt-maximized: false;
  swt-minimize-visible: true;
  swt-minimized: false; */
  swt-mru-visible: true;	/* declared in CSS: true */
  swt-simple: true;
  swt-single: false;
  swt-tab-height: 23;	/* declared in CSS: 23 */
  swt-tab-position: top;
  swt-unselected-close-visible: true;
  swt-unselected-image-visible: true;
  text-transform: none;
  visibility: visible;
padding: 0.0px 2.0px 3.0px;
  swt-corner-radius: 16.0px;
  swt-unselected-hot-tab-color-background: rgb(84, 110, 122);
  swt-unselected-tabs-color: #org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_START #org-eclipse-ui-workbench-INACTIVE_UNSELECTED_TABS_COLOR_END 100.0% 100.0%;
}
Composite#HydroGroupBorder {
  /* actual values */
  background-color: #cccccc;
  background-image: none;
  color: #000000;
  font-family: "Segoe UI";
  font-size: 9;
  font-style: normal;
  font-weight: normal;
  swt-background-mode: none;
  text-transform: none;
  visibility: visible;
width:1px;
}

/*Table*/
Table, #HydroGroupClientArea > Composite Table {
    background-color: #cfd8dc;
	swt-selection-background-color: #4081bd;
	swt-selection-foreground-color: #ffffff;
    color: #333333;
	swt-hot-border-color: #545454;
}


text:
package com.crushead.list;

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

public class Content {

	/**guarda las entradas de la lista.*/
	public static ArrayList<ListEntry> LIST = new ArrayList<ListEntry>();

	/**asigna el identificador a cada entrada de la lista*/
	public static Map<String, ListEntry> LIST_HASHMAP = new HashMap<String, ListEntry>();

	/** crear estáticamente estructura list */
	static {
		addEntry(new ListEntry(com.crushead.utils.Constant.ANIMALES, "Animales", ""));
		addEntry(new ListEntry(com.crushead.utils.Constant.FRUTAS, "Frutas", ""));
		addEntry(new ListEntry(com.crushead.utils.Constant.FIGURAS, "Figuras Geométricas", ""));
		addEntry(new ListEntry(com.crushead.utils.Constant.ARTICULOS, "Cosas del Hogar", ""));
	}

	/** Añade una entrada a la lista
	 * @param entrada Elemento que añadimos a la lista
	 */
	private static void addEntry(ListEntry entrada) {
		LIST.add(entrada);
		LIST_HASHMAP.put(entrada.id, entrada);
	}

	/**
	 * Representa una entrada del contenido de la lista
	 */
	public static class ListEntry {
		/** var */
		public String id;
		public String title;
		public String subtitle;

		/** Constructor*/
		public ListEntry (String id, String title, String subtitle) {
			this.id = id;
		    this.title = title;
		    this.subtitle = subtitle;
		}
	}
}//end Class


text:
[TOC]

## Policy

A Policy is the base-class for all agents in AgentFlow. Its primary method is:

```python
def step(self, timestep: dm_env.TimeStep) -> np.ndarray:
  ...
```

All other methods on `Policy` are for book-keeping and visualization.

## Option

An `Option` is a `Policy` which can also:

*   Decide if it's eligible to stop (`pterm`)
*   Consume a runtime-argument (E.g. a pose to reach towards)
*   Produce a result (`OptionResult`)

These enable it to be used within an AgentFlow graph by other `MetaOptions`,
which all know about the basic life-cycle semantics of options. E.g. `af.While`
will repeat a given option until the condition is `False`, or the option's
`pterm` samples to `True`.

*What are `runtime-args` and why do we need them?*

In the original options literature, an `Option` is an atomic, temporally
extended action. I.e. it's not-parameterized. A higher-level agent can invoke an
option, but it can't tell it what to do. In the robotics use-case that's often
not general enough, so we designed in the ability for an `Option` to be
parameterized by (i.e. conditioned-on) an arbitrary additional variable. Args
should therefore be thought of as a communication mechanism for agentflow nodes.

**Protocol:** Args are similar to information in the observation (and are
actually passed via timestep.observation), but instead of being generated by the
environment, it comes from a higher-level `Option` or `SubTask`.

If an `Option` wants to receive args it defines an `arg_spec` with the
appropriate spec. This signifies that at runtime it will expect an observation
with this shape under the (auto-generated) `arg_key` for the option. It is the
parent node's responsibility to check for arg_specs on it's children and
provide them where required.

Beyond this basic API, AgentFlow doesn't enforce how args are used. An `Option`
can choose to use the arg only during `on_selected`, or it can condition on it
every step. It is the user's responsibility to ensure the parent passes args
when necessary (the easiest thing is to stick to the API and pass it every step
if `arg_spec` is defined).

**Example:** A concrete example is cartesian reaching: if you want to define an
af node that reaches, but have the target be passed in at runtime by a
higher-level (possibly learned) source, you'd define the appropriate `arg_spec`
on this option to signify that it accepts 6D vectors.

## SubTask

`SubTask` is the AgentFlow mechanism for training an option policy *in-situ*,
i.e. in the context of a higher-level graph. A `SubTask` and `Policy` are
composed via `SubTaskOption` into an option that can be used like a regular
Option in an AgentFlow graph (see below).

The `SubTask` defines everything that an option needs to run, except the policy
itself. This decoupling of option-methods from policy-methods allows a subtask
to train an arbitrary RL agent, which doesn't have to know it's actually living
in an AgentFlow graph. From the agent's perspective, it just wakes up in a
particular state and runs an episode until seeing a LAST timestep signifying the
end of episode.

**Specs.** Like a regular RL-task, `SubTask` must also define observation and
action specs that define the task for the agent that it runs. The `arg_spec` on
the SubTask is different: this is equivalent to `Option.arg_spec`, and
signifies how the resulting `SubTaskOption` can be controlled **by the parent**.

If the child `Policy` is actually an `Option` (which is a perfectly valid thing
to do), then it's the SubTask job to pack an arg in the timestep corresponding
to `option.arg_spec`.

Yes this can be confusing, but it is the price of allowing deep hierarchy and
parameterized options. The simple rule is: SubTasks *tell* action and
observation spaces to their children, *ask* arg spaces from their children, and
*tell* arg spaces to their parent.

**Timestep transformation.** Rather than having to generate observations from
scratch, a `SubTask` receives the timestep from the parent (or base
environment), and modifies it via `parent_to_agent_timestep` to suit the needs
of the child `Policy` it is training.

After stepping the policy with this timestep, it post-processes the policy's
action with `agent_to_parent_action` to comply with the action_spec of the
context in which the `SubTask` is defined.

A SubTask can be learned or engineered, or a mixture of both. E.g. in the
[DPGfD](https://sites.google.com/corp/view/dpgfd-insertion/home) paper we used a
SubTask that had a learned CNN-based reward classifier, injected bottle-neck
activations from this model for visual features (both via
`TimestepPreprocessors`), and a hand-defined cartesian-velocity action space.

**Action Spaces**. A `SubTask` also allows the action space of the sub-task to
be different than the action space of the parent task. This is achieved by
mapping the action an agent returns to it to an action that the larger task
(environment) can consume.

In AgentFlow the role of action-mapping in a SubTask is handled by an
`ActionSpace`. This class has a `project` method which works as follows:

`parent_action = space.project(child_action)`.

## SubTaskOption

A `SubTaskOption` is an `Option` which composes a `SubTask` and a `Policy`. It
simulataneously defines the life-cycle methods to run in an AgentFlow graph, as
well as an RL-environment for the Policy it contains. See above for details.
User's shouldn't have to make new SubTaskOptions, only SubTasks and Policies to
solve those subtasks.

## MetaOption

A MetaOption is an option that contains other options, AgentFlow comes with

*   `Sequence`: Runs a list of options one after the other, each option is run
    until it signals termination from `pterm`.

## Options Core Library

### Basic Options

*   `FixedOp`: Returns a fixed action for N steps.
*   `ConcurrentOption`: Steps N `Options` in sequence at each step. I.e. each
    option is given the same step the `ConcurrentOption` is given, this is the
    sense in which they are run concurrently.
*   `LambdaOption`: An option that is parameterizable by functions, these
    functions can run when the option is selected, stepped or terminates. The
    return value of the function can be sent to other options and the action
    this option returns comes from another option it delegates to.
*   `SubTaskOption`: Combines a `SubTask` and a policy to make an `Option`, see
    the section on [SubTask](#subtask) for more information.
*   `DelegateOption`: A implementation base class that delegates its method
    implementations to another `Option` instance.
*   `PadOption`: A delegating option that applies an `ActionSpace` to the action
    of the delegate option. This can be used to project the actions of two
    options into the same action space before merging the actions together.
*   `RandomOption`: Emits uniform-random actions.

### Control-Flow Options

*   `Cond`: A conditional. This uses a function to decide which of two options
    to select, this choice can happen on option selection or at every step.
*   `Repeat`: Repeats another option a given number of times.
*   `While`: Repeats another option while a user-supplied function returns True.

### Action Spaces

An action space is the semantics attached to the dimensions of actions.
AgentFlow was developed in the context of robotics use cases, in which it's
common to have multiple actions spaces, such as cartesian and joint action
spaces.

Action spaces can also be used to decompose parts of an environments action
dimensions into parts which individual options can deal with separately.

*   `CastActionSpace`: Used to change numpy array dtype.
*   `FixedActionSpace`: Creates a reduced-dimensionality action space, by
    yielding a constant value for some dimensions of the larger action space.
*   `prefix_slicer`: An action space that consists of some dimensions of another
    action space, according to their names.
*   `SequentialActionSpace`: An action space that consists of a sequence of
    other action spaces, this allows the composition of action spaces.
*   `ShrinkToFitActionSpace`: Scales action values towards zero until they fit
    in a given action specification. This assumes the action spec's min <= 0 <=
    max
*   `IdentityActionSpace`: Performs no modification to actions it is given.


text:
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
<body class="max-width mx-auto px3 ltr">
  <div class="content index py4">

    {{ partial "header.html" . }}

    {{ block "main" . }}
    {{ end }}

    {{ partial "footer.html" . }}

  </div>
  {{ if .Site.GoogleAnalytics }}
    {{ if .Site.Params.googleAnalyticsAsync }}
      {{ template "_internal/google_analytics_async.html" . }}
    {{ else }}
      {{ template "_internal/google_analytics.html" . }}
    {{ end }}
  {{ end }}
</body>

<link rel="stylesheet" href={{ "lib/font-awesome/css/all.min.css" | relURL }}>
<script src={{ "lib/jquery/jquery.min.js" | relURL }}></script>
<script src={{ "js/main.js" | relURL }}></script>
</html>


text:
namespace ServiceStack
{
    namespace OrmLite
    {
        // Generated from `ServiceStack.OrmLite.SqlServer2008Dialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServer2008Dialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServer2008OrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        // Generated from `ServiceStack.OrmLite.SqlServer2012Dialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServer2012Dialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServer2012OrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        // Generated from `ServiceStack.OrmLite.SqlServer2014Dialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServer2014Dialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServer2014OrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        // Generated from `ServiceStack.OrmLite.SqlServer2016Dialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServer2016Dialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServer2016OrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        // Generated from `ServiceStack.OrmLite.SqlServer2017Dialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServer2017Dialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServer2017OrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        // Generated from `ServiceStack.OrmLite.SqlServer2019Dialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServer2019Dialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServer2019OrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        // Generated from `ServiceStack.OrmLite.SqlServerDialect` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
        public static class SqlServerDialect
        {
            public static ServiceStack.OrmLite.SqlServer.SqlServerOrmLiteDialectProvider Instance { get => throw null; }
            public static ServiceStack.OrmLite.IOrmLiteDialectProvider Provider { get => throw null; }
        }

        namespace SqlServer
        {
            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2008OrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2008OrmLiteDialectProvider : ServiceStack.OrmLite.SqlServer.SqlServerOrmLiteDialectProvider
            {
                public static ServiceStack.OrmLite.SqlServer.SqlServer2008OrmLiteDialectProvider Instance;
                public override string SqlConcat(System.Collections.Generic.IEnumerable<object> args) => throw null;
                public SqlServer2008OrmLiteDialectProvider() => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2012OrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2012OrmLiteDialectProvider : ServiceStack.OrmLite.SqlServer.SqlServerOrmLiteDialectProvider
            {
                public override void AppendFieldCondition(System.Text.StringBuilder sqlFilter, ServiceStack.OrmLite.FieldDefinition fieldDef, System.Data.IDbCommand cmd) => throw null;
                public override void AppendNullFieldCondition(System.Text.StringBuilder sqlFilter, ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override bool DoesSequenceExist(System.Data.IDbCommand dbCmd, string sequenceName) => throw null;
                public override System.Threading.Tasks.Task<bool> DoesSequenceExistAsync(System.Data.IDbCommand dbCmd, string sequenceName, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                protected override string GetAutoIncrementDefinition(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string GetColumnDefinition(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public static ServiceStack.OrmLite.SqlServer.SqlServer2012OrmLiteDialectProvider Instance;
                public override System.Collections.Generic.List<string> SequenceList(System.Type tableType) => throw null;
                protected override bool ShouldSkipInsert(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public SqlServer2012OrmLiteDialectProvider() => throw null;
                protected override bool SupportsSequences(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string ToCreateSequenceStatement(System.Type tableType, string sequenceName) => throw null;
                public override System.Collections.Generic.List<string> ToCreateSequenceStatements(System.Type tableType) => throw null;
                public override string ToCreateTableStatement(System.Type tableType) => throw null;
                public override string ToSelectStatement(ServiceStack.OrmLite.QueryType queryType, ServiceStack.OrmLite.ModelDefinition modelDef, string selectExpression, string bodyExpression, string orderByExpression = default(string), int? offset = default(int?), int? rows = default(int?), System.Collections.Generic.ISet<string> tags = default(System.Collections.Generic.ISet<string>)) => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2014OrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2014OrmLiteDialectProvider : ServiceStack.OrmLite.SqlServer.SqlServer2012OrmLiteDialectProvider
            {
                public override string GetColumnDefinition(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public static ServiceStack.OrmLite.SqlServer.SqlServer2014OrmLiteDialectProvider Instance;
                public SqlServer2014OrmLiteDialectProvider() => throw null;
                public override string ToCreateTableStatement(System.Type tableType) => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2016Expression<>` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2016Expression<T> : ServiceStack.OrmLite.SqlServer.SqlServerExpression<T>
            {
                public SqlServer2016Expression(ServiceStack.OrmLite.IOrmLiteDialectProvider dialectProvider) : base(default(ServiceStack.OrmLite.IOrmLiteDialectProvider)) => throw null;
                protected override object VisitSqlMethodCall(System.Linq.Expressions.MethodCallExpression m) => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2016OrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2016OrmLiteDialectProvider : ServiceStack.OrmLite.SqlServer.SqlServer2014OrmLiteDialectProvider
            {
                public static ServiceStack.OrmLite.SqlServer.SqlServer2016OrmLiteDialectProvider Instance;
                public override ServiceStack.OrmLite.SqlExpression<T> SqlExpression<T>() => throw null;
                public SqlServer2016OrmLiteDialectProvider() => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2017OrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2017OrmLiteDialectProvider : ServiceStack.OrmLite.SqlServer.SqlServer2016OrmLiteDialectProvider
            {
                public static ServiceStack.OrmLite.SqlServer.SqlServer2017OrmLiteDialectProvider Instance;
                public SqlServer2017OrmLiteDialectProvider() => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServer2019OrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServer2019OrmLiteDialectProvider : ServiceStack.OrmLite.SqlServer.SqlServer2017OrmLiteDialectProvider
            {
                public static ServiceStack.OrmLite.SqlServer.SqlServer2019OrmLiteDialectProvider Instance;
                public SqlServer2019OrmLiteDialectProvider() => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServerExpression<>` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServerExpression<T> : ServiceStack.OrmLite.SqlExpression<T>
            {
                protected override void ConvertToPlaceholderAndParameter(ref object right) => throw null;
                public override string GetSubstringSql(object quotedColumn, int startIndex, int? length = default(int?)) => throw null;
                public override void PrepareUpdateStatement(System.Data.IDbCommand dbCmd, T item, bool excludeDefaults = default(bool)) => throw null;
                public SqlServerExpression(ServiceStack.OrmLite.IOrmLiteDialectProvider dialectProvider) : base(default(ServiceStack.OrmLite.IOrmLiteDialectProvider)) => throw null;
                public override string ToDeleteRowStatement() => throw null;
                protected override ServiceStack.OrmLite.PartialSqlString ToLengthPartialString(object arg) => throw null;
                protected override void VisitFilter(string operand, object originalLeft, object originalRight, ref object left, ref object right) => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServerOrmLiteDialectProvider` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServerOrmLiteDialectProvider : ServiceStack.OrmLite.OrmLiteDialectProviderBase<ServiceStack.OrmLite.SqlServer.SqlServerOrmLiteDialectProvider>
            {
                public override System.Data.IDbConnection CreateConnection(string connectionString, System.Collections.Generic.Dictionary<string, string> options) => throw null;
                public override System.Data.IDbDataParameter CreateParam() => throw null;
                public override void DisableForeignKeysCheck(System.Data.IDbCommand cmd) => throw null;
                public override System.Threading.Tasks.Task DisableForeignKeysCheckAsync(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override void DisableIdentityInsert<T>(System.Data.IDbCommand cmd) => throw null;
                public override System.Threading.Tasks.Task DisableIdentityInsertAsync<T>(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override bool DoesColumnExist(System.Data.IDbConnection db, string columnName, string tableName, string schema = default(string)) => throw null;
                public override System.Threading.Tasks.Task<bool> DoesColumnExistAsync(System.Data.IDbConnection db, string columnName, string tableName, string schema = default(string), System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override bool DoesSchemaExist(System.Data.IDbCommand dbCmd, string schemaName) => throw null;
                public override System.Threading.Tasks.Task<bool> DoesSchemaExistAsync(System.Data.IDbCommand dbCmd, string schemaName, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override bool DoesTableExist(System.Data.IDbCommand dbCmd, string tableName, string schema = default(string)) => throw null;
                public override System.Threading.Tasks.Task<bool> DoesTableExistAsync(System.Data.IDbCommand dbCmd, string tableName, string schema = default(string), System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override void EnableForeignKeysCheck(System.Data.IDbCommand cmd) => throw null;
                public override System.Threading.Tasks.Task EnableForeignKeysCheckAsync(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override void EnableIdentityInsert<T>(System.Data.IDbCommand cmd) => throw null;
                public override System.Threading.Tasks.Task EnableIdentityInsertAsync<T>(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override System.Threading.Tasks.Task<int> ExecuteNonQueryAsync(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override System.Threading.Tasks.Task<System.Data.IDataReader> ExecuteReaderAsync(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override System.Threading.Tasks.Task<object> ExecuteScalarAsync(System.Data.IDbCommand cmd, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override string GetAutoIdDefaultValue(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                protected virtual string GetAutoIncrementDefinition(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string GetColumnDefinition(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string GetDropForeignKeyConstraints(ServiceStack.OrmLite.ModelDefinition modelDef) => throw null;
                public override string GetForeignKeyOnDeleteClause(ServiceStack.OrmLite.ForeignKeyConstraint foreignKey) => throw null;
                public override string GetForeignKeyOnUpdateClause(ServiceStack.OrmLite.ForeignKeyConstraint foreignKey) => throw null;
                public override string GetLoadChildrenSubSelect<From>(ServiceStack.OrmLite.SqlExpression<From> expr) => throw null;
                public override string GetQuotedValue(string paramValue) => throw null;
                public override bool HasInsertReturnValues(ServiceStack.OrmLite.ModelDefinition modelDef) => throw null;
                public override void InitConnection(System.Data.IDbConnection dbConn) => throw null;
                public static ServiceStack.OrmLite.SqlServer.SqlServerOrmLiteDialectProvider Instance;
                public override System.Threading.Tasks.Task OpenAsync(System.Data.IDbConnection db, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override void PrepareInsertRowStatement<T>(System.Data.IDbCommand dbCmd, System.Collections.Generic.Dictionary<string, object> args) => throw null;
                public override void PrepareParameterizedInsertStatement<T>(System.Data.IDbCommand cmd, System.Collections.Generic.ICollection<string> insertFields = default(System.Collections.Generic.ICollection<string>), System.Func<ServiceStack.OrmLite.FieldDefinition, bool> shouldInclude = default(System.Func<ServiceStack.OrmLite.FieldDefinition, bool>)) => throw null;
                public override System.Threading.Tasks.Task<bool> ReadAsync(System.Data.IDataReader reader, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override System.Threading.Tasks.Task<Return> ReaderEach<Return>(System.Data.IDataReader reader, System.Action fn, Return source, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override System.Threading.Tasks.Task<System.Collections.Generic.List<T>> ReaderEach<T>(System.Data.IDataReader reader, System.Func<T> fn, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                public override System.Threading.Tasks.Task<T> ReaderRead<T>(System.Data.IDataReader reader, System.Func<T> fn, System.Threading.CancellationToken token = default(System.Threading.CancellationToken)) => throw null;
                protected string Sequence(string schema, string sequence) => throw null;
                protected virtual bool ShouldReturnOnInsert(ServiceStack.OrmLite.ModelDefinition modelDef, ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                protected override bool ShouldSkipInsert(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string SqlBool(bool value) => throw null;
                public override string SqlCast(object fieldOrValue, string castAs) => throw null;
                public override string SqlCurrency(string fieldOrValue, string currencySymbol) => throw null;
                public override ServiceStack.OrmLite.SqlExpression<T> SqlExpression<T>() => throw null;
                public override string SqlLimit(int? offset = default(int?), int? rows = default(int?)) => throw null;
                public override string SqlRandom { get => throw null; }
                public SqlServerOrmLiteDialectProvider() => throw null;
                protected static string SqlTop(string sql, int take, string selectType = default(string)) => throw null;
                protected virtual bool SupportsSequences(ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string ToAddColumnStatement(System.Type modelType, ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string ToAlterColumnStatement(System.Type modelType, ServiceStack.OrmLite.FieldDefinition fieldDef) => throw null;
                public override string ToChangeColumnNameStatement(System.Type modelType, ServiceStack.OrmLite.FieldDefinition fieldDef, string oldColumnName) => throw null;
                public override string ToCreateSchemaStatement(string schemaName) => throw null;
                public override string ToInsertRowStatement(System.Data.IDbCommand cmd, object objWithProperties, System.Collections.Generic.ICollection<string> insertFields = default(System.Collections.Generic.ICollection<string>)) => throw null;
                public override string ToSelectStatement(ServiceStack.OrmLite.QueryType queryType, ServiceStack.OrmLite.ModelDefinition modelDef, string selectExpression, string bodyExpression, string orderByExpression = default(string), int? offset = default(int?), int? rows = default(int?), System.Collections.Generic.ISet<string> tags = default(System.Collections.Generic.ISet<string>)) => throw null;
                public override string ToTableNamesStatement(string schema) => throw null;
                public override string ToTableNamesWithRowCountsStatement(bool live, string schema) => throw null;
                protected System.Data.SqlClient.SqlDataReader Unwrap(System.Data.IDataReader reader) => throw null;
                protected System.Data.SqlClient.SqlCommand Unwrap(System.Data.IDbCommand cmd) => throw null;
                protected System.Data.SqlClient.SqlConnection Unwrap(System.Data.IDbConnection db) => throw null;
                public static string UseAliasesOrStripTablePrefixes(string selectExpression) => throw null;
            }

            // Generated from `ServiceStack.OrmLite.SqlServer.SqlServerTableHint` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
            public class SqlServerTableHint
            {
                public static ServiceStack.OrmLite.JoinFormatDelegate NoLock;
                public static ServiceStack.OrmLite.JoinFormatDelegate ReadCommitted;
                public static ServiceStack.OrmLite.JoinFormatDelegate ReadPast;
                public static ServiceStack.OrmLite.JoinFormatDelegate ReadUncommitted;
                public static ServiceStack.OrmLite.JoinFormatDelegate RepeatableRead;
                public static ServiceStack.OrmLite.JoinFormatDelegate Serializable;
                public SqlServerTableHint() => throw null;
            }

            namespace Converters
            {
                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlJsonAttribute` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlJsonAttribute : System.Attribute
                {
                    public SqlJsonAttribute() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerBoolConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerBoolConverter : ServiceStack.OrmLite.Converters.BoolConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public override System.Data.DbType DbType { get => throw null; }
                    public override object FromDbValue(System.Type fieldType, object value) => throw null;
                    public SqlServerBoolConverter() => throw null;
                    public override object ToDbValue(System.Type fieldType, object value) => throw null;
                    public override string ToQuotedString(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerByteArrayConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerByteArrayConverter : ServiceStack.OrmLite.Converters.ByteArrayConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public SqlServerByteArrayConverter() => throw null;
                    public override string ToQuotedString(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerDateTime2Converter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerDateTime2Converter : ServiceStack.OrmLite.SqlServer.Converters.SqlServerDateTimeConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public override System.Data.DbType DbType { get => throw null; }
                    public override object FromDbValue(System.Type fieldType, object value) => throw null;
                    public SqlServerDateTime2Converter() => throw null;
                    public override string ToQuotedString(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerDateTimeConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerDateTimeConverter : ServiceStack.OrmLite.Converters.DateTimeConverter
                {
                    public override object FromDbValue(System.Type fieldType, object value) => throw null;
                    public SqlServerDateTimeConverter() => throw null;
                    public override string ToQuotedString(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerDecimalConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerDecimalConverter : ServiceStack.OrmLite.Converters.DecimalConverter
                {
                    public SqlServerDecimalConverter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerDoubleConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerDoubleConverter : ServiceStack.OrmLite.Converters.DoubleConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public SqlServerDoubleConverter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerFloatConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerFloatConverter : ServiceStack.OrmLite.Converters.FloatConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public SqlServerFloatConverter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerGuidConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerGuidConverter : ServiceStack.OrmLite.Converters.GuidConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public SqlServerGuidConverter() => throw null;
                    public override string ToQuotedString(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerJsonStringConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerJsonStringConverter : ServiceStack.OrmLite.SqlServer.Converters.SqlServerStringConverter
                {
                    public override object FromDbValue(System.Type fieldType, object value) => throw null;
                    public SqlServerJsonStringConverter() => throw null;
                    public override object ToDbValue(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerRowVersionConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerRowVersionConverter : ServiceStack.OrmLite.Converters.RowVersionConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public SqlServerRowVersionConverter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerSByteConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerSByteConverter : ServiceStack.OrmLite.Converters.SByteConverter
                {
                    public override System.Data.DbType DbType { get => throw null; }
                    public SqlServerSByteConverter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerStringConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerStringConverter : ServiceStack.OrmLite.Converters.StringConverter
                {
                    public override string GetColumnDefinition(int? stringLength) => throw null;
                    public override void InitDbParam(System.Data.IDbDataParameter p, System.Type fieldType) => throw null;
                    public override string MaxColumnDefinition { get => throw null; }
                    public override int MaxVarCharLength { get => throw null; }
                    public SqlServerStringConverter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerTimeConverter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerTimeConverter : ServiceStack.OrmLite.OrmLiteConverter
                {
                    public override string ColumnDefinition { get => throw null; }
                    public override System.Data.DbType DbType { get => throw null; }
                    public int? Precision { get => throw null; set => throw null; }
                    public SqlServerTimeConverter() => throw null;
                    public override object ToDbValue(System.Type fieldType, object value) => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerUInt16Converter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerUInt16Converter : ServiceStack.OrmLite.Converters.UInt16Converter
                {
                    public override System.Data.DbType DbType { get => throw null; }
                    public SqlServerUInt16Converter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerUInt32Converter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerUInt32Converter : ServiceStack.OrmLite.Converters.UInt32Converter
                {
                    public override System.Data.DbType DbType { get => throw null; }
                    public SqlServerUInt32Converter() => throw null;
                }

                // Generated from `ServiceStack.OrmLite.SqlServer.Converters.SqlServerUInt64Converter` in `ServiceStack.OrmLite.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null`
                public class SqlServerUInt64Converter : ServiceStack.OrmLite.Converters.UInt64Converter
                {
                    public override System.Data.DbType DbType { get => throw null; }
                    public SqlServerUInt64Converter() => throw null;
                }

            }
        }
    }
}