text:
<!DOCTYPE html>

    <title>Preface | The Autobiography of an Ex-Colored Man | James Weldon Johnson | Lit2Go ETC</title>
    <link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8">
    <link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/printless.css" type="text/css" media="print" title="no title" charset="utf-8">

          Lit2Go

<form action="http://etc.usf.edu/lit2go/search/"><input type="text" name="q" placeholder="Search" value=""></form>

Authors

Books

Genres

Collections

Readability

      The Autobiography of an Ex-Colored Man

      by James Weldon Johnson

      Preface

        Additional Information

            Year Published:
            1912

            Language:
            English

            Country of Origin:
            United States of America

            Source:
            Johnson, J.W. (1912)  The Autobiography of an Ex-Colored Man  Boston, Massachusetts: Sherman, French, and Co.

            Readability:

                Flesch–Kincaid Level:
                9.0

            Word Count:
            343

            Genre:
            Realism

            Keywords:
            20th century literature, african american literature, american literature

            ✎ Cite This

  Share
  |

Downloads

          Audio

          Passage PDF

Student Activity

            APA

            MLA

            Chicago

            Johnson, J. (1912). Preface. The Autobiography of an Ex-Colored Man (Lit2Go Edition). Retrieved February 15, 2016, from http://etc.usf.edu/lit2go/64/the-autobiography-of-an-ex-colored-man/1143/preface/

            Johnson, James Weldon. "Preface." The Autobiography of an Ex-Colored Man. Lit2Go Edition. 1912. Web. <http://etc.usf.edu/lit2go/64/the-autobiography-of-an-ex-colored-man/1143/preface/>. February 15, 2016.

            James Weldon Johnson, "Preface," The Autobiography of an Ex-Colored Man, Lit2Go Edition, (1912), accessed February 15, 2016, http://etc.usf.edu/lit2go/64/the-autobiography-of-an-ex-colored-man/1143/preface/.

Next

                  <audio controls style="width:99%;">
            <source src="http://etc.usf.edu/lit2go/audio/mp3/the-autobiography-of-an-ex-colored-man-001-preface.1143.mp3" type="audio/mpeg" />
                          <source src="http://etc.usf.edu/lit2go/audio/ogg/the-autobiography-of-an-ex-colored-man-001-preface.1143.ogg" type="audio/ogg" />
                        The embedded audio player requires a modern internet browser. You should visit Browse Happy and update your internet browser today!
          </audio>

	This vivid and startlingly new picture of conditions brought about by the race question in the United States makes no special plea for the Negro, but shows in a dispassionate, though sympathetic, manner conditions as they actually exist between the whites and blacks to-day. Special pleas have already been made for and against the Negro in hundreds of books, but in these books either his virtues or his vices have been exaggerated. This is because writers, in nearly every instance, have treated the colored American as a whole; each has taken some one group of the race to prove his case. Not before has a composite and proportionate presentation of the entire race, embracing all of its various groups and elements, showing their relations with each other and to the whites, been made.

	It is very likely that the Negroes of the United States have a fairly correct idea of what the white people of the country think of them, for that opinion has for a long time been and is still being constantly stated; but they are themselves more or less a sphinx to the whites. It is curiously interesting and even vitally important to know what are the thoughts of ten millions of them concerning the people among whom they live. In these pages it is as though a veil had been drawn aside: the reader is given a view of the inner life of the Negro in America, is initiated into the “free-masonry,” as it were, of the race.

	These pages also reveal the unsuspected fact that prejudice against the Negro is exerting a pressure, which, in New York and other large cities where the opportunity is open, is actually and constantly forcing an unascertainable number of fair-complexioned colored people over into the white race.

	In this book the reader is given a glimpse behind the scenes of this race-drama which is being here enacted,—he is taken upon an elevation where he can catch a bird’s-eye view of the conflict which is being waged.

Next

            This collection of children's literature is a part of the Educational Technology Clearinghouse and is funded by various grants.

            Copyright © 2006—2016 by the Florida Center for Instructional Technology, College of Education, University of South Florida.

License

Credits

FAQ

Giving

This document was downloaded from Lit2Go, a free online collection of stories and poems in Mp3 (audiobook) format published by the Florida Center for Instructional Technology. For more information, including classroom activities, readability data, and original sources, please visit http://etc.usf.edu/lit2go/64/the-autobiography-of-an-ex-colored-man/1143/preface/.

Lit2Go: The Autobiography of an Ex-Colored Man

Preface


text:
let number = 123456.789;
let expected = "123 456,79 Ft";
assertEquals(expected,
    (new Intl.NumberFormat('hu', { style: 'currency', currency: 'HUF'}).format(number)));
assertEquals(expected,
    (new Intl.NumberFormat('hu-HU', { style: 'currency', currency: 'HUF' }).format(number)));

redpajama_set_name: RedPajamaGithub


text:
using System;
using System.Linq.Expressions;
using NRules.Rete;
using NRules.RuleModel;
using NRules.Utilities;
using Tuple = NRules.Rete.Tuple;

namespace NRules
{
    internal interface IRuleAction
    {
        void Invoke(IExecutionContext executionContext, IContext actionContext, Tuple tuple, FactIndexMap tupleFactMap);
    }

    internal class RuleAction : IRuleAction
    {
        private readonly LambdaExpression _expression;
        private readonly FactIndexMap _actionFactMap;
        private readonly FastDelegate<Action<object[]>> _compiledAction;

        public RuleAction(LambdaExpression expression, FactIndexMap actionFactMap)
        {
            _expression = expression;
            _actionFactMap = actionFactMap;
            _compiledAction = FastDelegate.Create<Action<object[]>>(expression);
        }

        public void Invoke(IExecutionContext context, IContext actionContext, Tuple tuple, FactIndexMap tupleFactMap)
        {
            var args = new object[_compiledAction.ParameterCount];
            args[0] = actionContext;
            int index = tuple.Count - 1;
            foreach (var fact in tuple.Facts)
            {
                var mappedIndex = _actionFactMap.Map(tupleFactMap.Map(index));
                FactIndexMap.SetElementAt(ref args, mappedIndex, 1, fact.Object);
                index--;
            }

            try
            {
                _compiledAction.Delegate.Invoke(args);
            }
            catch (Exception e)
            {
                bool isHandled;
                context.EventAggregator.RaiseActionFailed(context.Session, e, _expression, tuple, out isHandled);
                if (!isHandled)
                {
                    throw new RuleActionEvaluationException("Failed to evaluate rule action", _expression.ToString(), e);
                }
            }
        }
    }
}


text:
namespace uut
{
	enum class InputControlType
	{
		Button,
		RelativeAxis,
		AbsoluteAxis,
		Vector2,
	};

	class InputControlData
	{
	public:
		InputControlData() {}

		InputControlData(const char* name, InputControlType type)
			: _name(name), _type(type)
		{}

	protected:
		HashString _name;
		InputControlType _type;
	};

	class InputControlState
	{
	public:
	};

	//////////////////////////////////////////////////////////////////////////
	enum class InputDeviceType
	{
		Mouse,
		Keyboard,
	};

	class InputDevice : public Object
	{
		UUT_OBJECT(uut, InputDevice, Object)
	public:
		InputDevice(const HashString& name)
			: _name(name)
		{}

	protected:
		intptr_t _idetifier;
		HashString _name;
		List<InputControlData> _controls;
	};

	//////////////////////////////////////////////////////////////////////////
	class NewInputSystem : public Module
	{
		UUT_MODULE(uut, NewInputSystem, Module)
	public:

		SPtr<InputDevice> FindDevice(const Type* type)
		{
			if (type == nullptr)
				return nullptr;

			for (auto& it : _devices)
			{
				if (it->GetType()->IsDerived(type))
					return it;
			}

			return nullptr;
		}

		template<class C>
		SPtr<C> FindDevice() { return DynamicCast<C>(FindDevice(C::GetTypeStatic())); }

	protected:
		List<SPtr<InputDevice>> _devices;
	};

	//////////////////////////////////////////////////////////////////////////
	class Keyboard : public InputDevice
	{
		UUT_OBJECT(uut, Keyboard, InputDevice)
	public:
		Keyboard() : Super("Keyboard")
		{
			_controls.SetReserve(Enum<Keycode>::Count());
			for (auto& code : Enum<Keycode>::GetValues())
			{
				auto name = Enum<Keycode>::ToString(code);
				_controls.Add(InputControlData(name, InputControlType::Button));
			}
		}

		static SPtr<Keyboard> Current() { return NewInputSystem::Instance()->FindDevice<Keyboard>(); }
	};

	//////////////////////////////////////////////////////////////////////////
	class Pointer : public InputDevice
	{
		UUT_OBJECT(uut, Pointer, InputDevice)
	public:
		Pointer(const HashString& name)
			: Super(name)
		{
		}
	};

	class Mouse : public Pointer
	{
		UUT_OBJECT(uut, Mouse, Pointer)
	public:
		Mouse() : Super("Mouse")
		{
			_controls.Add(InputControlData("Left Button", InputControlType::Button));
			_controls.Add(InputControlData("Right Button", InputControlType::Button));
			_controls.Add(InputControlData("Middle Button", InputControlType::Button));

			_controls.Add(InputControlData("Position", InputControlType::Vector2));
			_controls.Add(InputControlData("Position X", InputControlType::AbsoluteAxis));
			_controls.Add(InputControlData("Position Y", InputControlType::AbsoluteAxis));

			_controls.Add(InputControlData("Delta", InputControlType::Vector2));
			_controls.Add(InputControlData("Delta X", InputControlType::RelativeAxis));
			_controls.Add(InputControlData("Delta Y", InputControlType::RelativeAxis));

			_controls.Add(InputControlData("Wheel", InputControlType::RelativeAxis));
		}

		static SPtr<Mouse> Current() { return NewInputSystem::Instance()->FindDevice<Mouse>(); }
	};
}


text:
'use strict';
require('babel/register');
var argv = require('yargs').argv;
var coverage = require('./protractor/coverage');
var browserExtension = require('./protractor/browserExtension');
var byExtension = require('./protractor/byExtension');
var constants = require('./gulp_tasks/common/constants')();
var helper = require('./gulp_tasks/common/helper');
var destScreenShots = './reports/screenshots';
var target = argv.target;
var targetSuffix = require('gulp-mux').targets.targetToSuffix(target);
var coveragePath = 'coverage/e2e/' + argv.target;
coverage.cleanFolder(coveragePath);
var isMobile = helper.isMobile({
    clientFolder: constants.clientFolder,
    targetSuffix: targetSuffix
});
var isCI = process.env.CI === 'true';
var timeout = 400000;
var config = {
    //seleniumAddress: 'http://localhost:4445/wd/hub',
    //seleniumServerJar: './node_modules/gulp-protractor/node_modules/protractor/selenium/selenium-server-standalone-2.43.1.jar',
    //specs: ['test/e2e/**/*.js'],
    framework: 'jasmine2',
    capabilities: {
        browserName: 'chrome',
        chromeOption: {
            args: ['--disable - extensions ']
        },
        version: '',
        platform: 'ANY',
        name: 'App Tests',
        'phantomjs.binary.path': require('phantomjs').path,
        'phantomjs.ghostdriver.cli.args': ['--loglevel=VERBOSE']
    },

    baseUrl: 'http://localhost:' + constants.e2e.port,
    jasmineNodeOpts: {
        showColors: true,
        silent: true,
        includeStackTrace: true,
        defaultTimeoutInterval: timeout,
        print: function() {}
    },
    onPrepare: function() {
        browserExtension.extendsBrowser(browser, {
            destScreenShots: destScreenShots
        });

        byExtension.extendsBy(by);

        browser.manage().timeouts().setScriptTimeout(timeout);

        if (isMobile) {
            browser.driver.manage().window().setSize(550, 900);
        } else {
            browser.maximizeWindow();
        }

        require('jasmine-reporters');
        var SpecReporter = require('jasmine-spec-reporter');
        var HtmlReporter = require('protractor-jasmine2-screenshot-reporter');
        jasmine.getEnv().addReporter(new SpecReporter({
            displaySpecDuration: true,
            displayStacktrace: true
        }));
        jasmine.getEnv().addReporter(new HtmlReporter({
            dest: destScreenShots,
            filename: 'index.html'
        }));
    }

};
if (isCI) {
    config.sauceUser = process.env.SAUCE_USERNAME;
    config.sauceKey = process.env.SAUCE_ACCESS_KEY;
    config.capabilities['tunnel-identifier'] = process.env.TRAVIS_JOB_NUMBER;
    config.capabilities.build = process.env.TRAVIS_BUILD_NUMBER;
    config.avoidProxy = true;

} else {
    config.directConnect = true;
}

if (argv.coverage === true || argv.coverage === 'true') {
    config.plugins = config.plugins || [];
    config.plugins.push({
        package: 'protractor-istanbul-plugin',
        outputPath: coveragePath
    });
    if (config.onComplete) {
        throw new Error('onComplete already exists and cannot be overriden');
    }
    config.onComplete = function() {
        coverage.generateCoverageReports(coveragePath);
    };

}

exports.config = config;


text:
<?php
namespace Tworzenieweb\FitnessBundle\Repository;

use Doctrine\ORM\EntityRepository;

class NewsRepository extends EntityRepository
{
    public function findAllOrderedByDate()
    {
        return $this->getEntityManager()
            ->createQuery('SELECT n FROM TworzeniewebFitnessBundle:News n ORDER BY n.created DESC')
            ->getResult();
    }
}


text:
<?php
namespace App\Http\Controllers\Api;

use \App\Http\Controllers\AppController;
use Illuminate\Http\Request;

class ProfileController extends AppController
{
    /**
     * Display the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function show()
    {
        // $businessId = session('myBusinessId');

        try {
            \DB::beginTransaction();

            $data = \App\Models\User::find(\Auth::id());

            if ($data) {
                $this->setResponseVar('response.resource', \DBHelper::toResource($data));
            } else {
                $this->setResponseMessage(trans('messages.not_found'), 404);
            }

            \DB::commit();
        } catch (Exception $e) {
            \DB::rollback();

            $this->setResponseMessage($e->getMessage(), 400);
        }

        return response()->json($this->getResponseData(), $this->getResponseCode());
    }

    public function showAvatar()
    {
        $path = storage_path() . '/app/avatars/bfd0987903fe1d3cb8aea6d6bb2ec151.jpeg';

        if ($data = \App\Models\User::find(\Auth::id())) {

            if ($data->avatar) {
                $path = storage_path() . '/app/' . $data->avatar;

                if(!\File::exists($path)) {
                    $path = storage_path() . '/app/avatars/bfd0987903fe1d3cb8aea6d6bb2ec151.jpeg';
                }
            }
        }

        $file = \File::get($path);
        $type = \File::mimeType($path);

        $response = \Response::make($file, 200);
        $response->header("Content-Type", $type);

        return $response;
    }

    public function update()
    {
        // $businessId = session('myBusinessId');

        $data = new \App\Models\User;

        // setup validator
        $rules    = [];
        $messages = [];
        $input    = request()->all();

        // rules
        $rules['field'] = 'required';

        // validate
        $validator = \Validator::make($input, $rules, $messages);
        $fails = $validator->fails();

        if (!$fails) {
            try {
                \DB::beginTransaction();

                // ----@ set data here

                $this->bindInput($data, $input);
                $data->save();

                // set data to response
                $this->setResponseVar('response.resource', \DBHelper::toResource($data));

                // show success message
                $this->setResponseMessage(trans('messages.scope.created'));

                \DB::commit();
            } catch (Exception $e) {
                \DB::rollback();
                $fails = true;
            }
        } else {
            // add response errors
            $this->setResponseError($validator->errors());
        }

        // show error on savings message
        if ($fails) {
            $this->setResponseMessage(trans('messages.error-on-save'), 400);
        }

        return response()->json($this->getResponseData(), $this->getResponseCode());
    }

    public function password(Request $request)
    {
        $data = \App\Models\User::find(\Auth::id());

        // setup validator
        $rules    = [];
        $messages = [];
        $input    = request()->all();

        // rules
        $rules['password'] = 'required';

        // validate
        $validator = \Validator::make($input, $rules, $messages);
        $fails = $validator->fails();

        if (!$fails) {
            try {
                \DB::beginTransaction();

                // ----@ set data here
                $data->password = \Hash::make(array_get($input, 'password'));
                $data->save();

                // set data to response
                $this->setResponseVar('response.resource', \DBHelper::toResource($data));

                // show success message
                $this->setResponseMessage(trans('messages.scope.created'));

                \DB::commit();
            } catch (Exception $e) {
                \DB::rollback();
                $fails = true;
            }
        } else {
            // add response errors
            $this->setResponseError($validator->errors());
        }

        // show error on savings message
        if ($fails) {
            $this->setResponseMessage(trans('messages.error-on-save'), 400);
        }

        return response()->json($this->getResponseData(), $this->getResponseCode());
    }

    public function avatar()
    {
        $data = \App\Models\User::find(\Auth::id());

        // setup validator
        $rules    = [
            'avatar' => 'sometimes|file|image'
        ];
        $messages = [];
        $input    = request()->all();

        // validate
        $validator = \Validator::make($input, $rules, $messages);
        $fails = $validator->fails();

        if (!$fails) {
            try {
                \DB::beginTransaction();

                $path = '';
                if (request()->file('avatar')) {
                    $path = request()->file('avatar')->store('avatars');
                }
                $data->avatar = $path;

                $data->save();

                // set data to response
                $this->setResponseVar('response.resource', $data->toResource());

                // show success message
                $this->setResponseMessage(trans('messages.scope.created'));

                \DB::commit();
            } catch (Exception $e) {
                \DB::rollback();
                $fails = true;
            }
        } else {
            // add response errors
            $this->setResponseError($validator->errors());
        }

        // show error on savings message
        if ($fails) {
            $this->setResponseMessage(trans('messages.error-on-save'), 400);
        }

        return response()->json($this->getResponseData(), $this->getResponseCode());
    }

    // public function showIns()
    // {
    //     // $activity = \App\Models\User::find(\Auth::user_id());

    //     // \Log::debug($id);

    //     // $institution = \App\Models\Institution
    //     //                 ::where('id', '=', \Auth::id())
    //     //                 ->where('id', '=', $id)
    //     //                 ->first();

    //     return view('showIns', ['institution' => $institution]);

    // }

    private function bindInput($data, $input)
    {
        $data->avatar = array_get($input, 'avatar');
    }
}


text:
package org.onosproject.config;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Represents a set of addresses bound to a port.
 */
public class AddressEntry {
    private String dpid;
    private long portNumber;
    private List<String> ipAddresses;
    private String macAddress;

    public String getDpid() {
        return dpid;
    }

    @JsonProperty("dpid")
    public void setDpid(String strDpid) {
        this.dpid = strDpid;
    }

    public long getPortNumber() {
        return portNumber;
    }

    @JsonProperty("port")
    public void setPortNumber(long portNumber) {
        this.portNumber = portNumber;
    }

    public List<String> getIpAddresses() {
        return ipAddresses;
    }

    @JsonProperty("ips")
    public void setIpAddresses(List<String> strIps) {
        this.ipAddresses = strIps;
    }

    public String getMacAddress() {
        return macAddress;
    }

    @JsonProperty("mac")
    public void setMacAddress(String macAddress) {
        this.macAddress = macAddress;
    }
}


text:
/*global maya:true */

maya.PluginManager.add('link', function(editor) {
	function createLinkList(callback) {
		return function() {
			var linkList = editor.settings.link_list;

			if (typeof linkList == "string") {
				maya.util.XHR.send({
					url: linkList,
					success: function(text) {
						callback(maya.util.JSON.parse(text));
					}
				});
			} else if (typeof linkList == "function") {
				linkList(callback);
			} else {
				callback(linkList);
			}
		};
	}

	function buildListItems(inputList, itemCallback, startItems) {
		function appendItems(values, output) {
			output = output || [];

			maya.each(values, function(item) {
				var menuItem = {text: item.text || item.title};

				if (item.menu) {
					menuItem.menu = appendItems(item.menu);
				} else {
					menuItem.value = item.value;

					if (itemCallback) {
						itemCallback(menuItem);
					}
				}

				output.push(menuItem);
			});

			return output;
		}

		return appendItems(inputList, startItems || []);
	}

	function showDialog(linkList) {
		var data = {}, selection = editor.selection, dom = editor.dom, selectedElm, anchorElm, initialText;
		var win, onlyText, textListCtrl, linkListCtrl, relListCtrl, targetListCtrl, classListCtrl, linkTitleCtrl, value;

		function linkListChangeHandler(e) {
			var textCtrl = win.find('#text');

			if (!textCtrl.value() || (e.lastControl && textCtrl.value() == e.lastControl.text())) {
				textCtrl.value(e.control.text());
			}

			win.find('#href').value(e.control.value());
		}

		function buildAnchorListControl(url) {
			var anchorList = [];

			maya.each(editor.dom.select('a:not([href])'), function(anchor) {
				var id = anchor.name || anchor.id;

				if (id) {
					anchorList.push({
						text: id,
						value: '#' + id,
						selected: url.indexOf('#' + id) != -1
					});
				}
			});

			if (anchorList.length) {
				anchorList.unshift({text: 'None', value: ''});

				return {
					name: 'anchor',
					type: 'listbox',
					label: 'Anchors',
					values: anchorList,
					onselect: linkListChangeHandler
				};
			}
		}

		function updateText() {
			if (!initialText && data.text.length === 0 && onlyText) {
				this.parent().parent().find('#text')[0].value(this.value());
			}
		}

		function urlChange(e) {
			var meta = e.meta || {};

			if (linkListCtrl) {
				linkListCtrl.value(editor.convertURL(this.value(), 'href'));
			}

			maya.each(e.meta, function(value, key) {
				win.find('#' + key).value(value);
			});

			if (!meta.text) {
				updateText.call(this);
			}
		}

		function isOnlyTextSelected(anchorElm) {
			var html = selection.getContent();

			// Partial html and not a fully selected anchor element
			if (/</.test(html) && (!/^<a [^>]+>[^<]+<\/a>$/.test(html) || html.indexOf('href=') == -1)) {
				return false;
			}

			if (anchorElm) {
				var nodes = anchorElm.childNodes, i;

				if (nodes.length === 0) {
					return false;
				}

				for (i = nodes.length - 1; i >= 0; i--) {
					if (nodes[i].nodeType != 3) {
						return false;
					}
				}
			}

			return true;
		}

		selectedElm = selection.getNode();
		anchorElm = dom.getParent(selectedElm, 'a[href]');
		onlyText = isOnlyTextSelected();

		data.text = initialText = anchorElm ? (anchorElm.innerText || anchorElm.textContent) : selection.getContent({format: 'text'});
		data.href = anchorElm ? dom.getAttrib(anchorElm, 'href') : '';

		if (anchorElm) {
			data.target = dom.getAttrib(anchorElm, 'target');
		} else if (editor.settings.default_link_target) {
			data.target = editor.settings.default_link_target;
		}

		if ((value = dom.getAttrib(anchorElm, 'rel'))) {
			data.rel = value;
		}

		if ((value = dom.getAttrib(anchorElm, 'class'))) {
			data['class'] = value;
		}

		if ((value = dom.getAttrib(anchorElm, 'title'))) {
			data.title = value;
		}

		if (onlyText) {
			textListCtrl = {
				name: 'text',
				type: 'textbox',
				size: 40,
				label: 'Text to display',
				onchange: function() {
					data.text = this.value();
				}
			};
		}

		if (linkList) {
			linkListCtrl = {
				type: 'listbox',
				label: 'Link list',
				values: buildListItems(
					linkList,
					function(item) {
						item.value = editor.convertURL(item.value || item.url, 'href');
					},
					[{text: 'None', value: ''}]
				),
				onselect: linkListChangeHandler,
				value: editor.convertURL(data.href, 'href'),
				onPostRender: function() {
					linkListCtrl = this;
				}
			};
		}

		if (editor.settings.target_list !== false) {
			if (!editor.settings.target_list) {
				editor.settings.target_list = [
					{text: 'None', value: ''},
					{text: 'New window', value: '_blank'}
				];
			}

			targetListCtrl = {
				name: 'target',
				type: 'listbox',
				label: 'Target',
				values: buildListItems(editor.settings.target_list)
			};
		}

		if (editor.settings.rel_list) {
			relListCtrl = {
				name: 'rel',
				type: 'listbox',
				label: 'Rel',
				values: buildListItems(editor.settings.rel_list)
			};
		}

		if (editor.settings.link_class_list) {
			classListCtrl = {
				name: 'class',
				type: 'listbox',
				label: 'Class',
				values: buildListItems(
					editor.settings.link_class_list,
					function(item) {
						if (item.value) {
							item.textStyle = function() {
								return editor.formatter.getCssText({inline: 'a', classes: [item.value]});
							};
						}
					}
				)
			};
		}

		if (editor.settings.link_title !== false) {
			linkTitleCtrl = {
				name: 'title',
				type: 'textbox',
				label: 'Title',
				value: data.title
			};
		}

		win = editor.windowManager.open({
			title: 'Insert link',
			data: data,
			body: [
				{
					name: 'href',
					type: 'filepicker',
					filetype: 'file',
					size: 40,
					autofocus: true,
					label: 'Url',
					onchange: urlChange,
					onkeyup: updateText
				},
				textListCtrl,
				linkTitleCtrl,
				buildAnchorListControl(data.href),
				linkListCtrl,
				relListCtrl,
				targetListCtrl,
				classListCtrl
			],
			onSubmit: function(e) {
				/*eslint dot-notation: 0*/
				var href;

				data = maya.extend(data, e.data);
				href = data.href;

				// Delay confirm since onSubmit will move focus
				function delayedConfirm(message, callback) {
					var rng = editor.selection.getRng();

					window.setTimeout(function() {
						editor.windowManager.confirm(message, function(state) {
							editor.selection.setRng(rng);
							callback(state);
						});
					}, 0);
				}

				function insertLink() {
					var linkAttrs = {
						href: href,
						target: data.target ? data.target : null,
						rel: data.rel ? data.rel : null,
						"class": data["class"] ? data["class"] : null,
						title: data.title ? data.title : null
					};

					if (anchorElm) {
						editor.focus();

						if (onlyText && data.text != initialText) {
							if ("innerText" in anchorElm) {
								anchorElm.innerText = data.text;
							} else {
								anchorElm.textContent = data.text;
							}
						}

						dom.setAttribs(anchorElm, linkAttrs);

						selection.select(anchorElm);
						editor.undoManager.add();
					} else {
						if (onlyText) {
							editor.insertContent(dom.createHTML('a', linkAttrs, dom.encode(data.text)));
						} else {
							editor.execCommand('mceInsertLink', false, linkAttrs);
						}
					}
				}

				if (!href) {
					editor.execCommand('unlink');
					return;
				}

				// Is email and not //user@domain.com
				if (href.indexOf('@') > 0 && href.indexOf('//') == -1 && href.indexOf('mailto:') == -1) {
					delayedConfirm(
						'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?',
						function(state) {
							if (state) {
								href = 'mailto:' + href;
							}

							insertLink();
						}
					);

					return;
				}

				// Is not protocol prefixed
				if ((editor.settings.link_assume_external_targets && !/^\w+:/i.test(href)) ||
					(!editor.settings.link_assume_external_targets && /^\s*www\./i.test(href))) {
					delayedConfirm(
						'The URL you entered seems to be an external link. Do you want to add the required http:// prefix?',
						function(state) {
							if (state) {
								href = 'http://' + href;
							}

							insertLink();
						}
					);

					return;
				}

				insertLink();
			}
		});
	}

	editor.addButton('link', {
		icon: 'link',
		tooltip: 'Insert/edit link',
		shortcut: 'Meta+K',
		onclick: createLinkList(showDialog),
		stateSelector: 'a[href]'
	});

	editor.addButton('unlink', {
		icon: 'unlink',
		tooltip: 'Remove link',
		cmd: 'unlink',
		stateSelector: 'a[href]'
	});

	editor.addShortcut('Meta+K', '', createLinkList(showDialog));
	editor.addCommand('mceLink', createLinkList(showDialog));

	this.showDialog = showDialog;

	editor.addMenuItem('link', {
		icon: 'link',
		text: 'Insert/edit link',
		shortcut: 'Meta+K',
		onclick: createLinkList(showDialog),
		stateSelector: 'a[href]',
		context: 'insert',
		prependToContext: true
	});
});


text:
FactoryBot.define do
  factory :meal_type, class: "Meals::Type" do
    sequence(:name) { |n| "Type #{n}" }
    category { %w[Meat Veg].sample }
    community { Defaults.community }
  end
end


text:
package lib

import (
	"encoding/json"
	"fmt"
	"log"
	"net/http"
	"os"
	"strings"
	"time"

	"github.com/mgutz/ansi"
)

type Response struct {
	Data struct {
		Children []struct {
			Sub *Submission `json:"data"`
		} `json:"children"`
	} `json:"data"`
}

var (
	AllowedDomains = [...]string{"youtube.com", "youtu.be", "m.youtube.com"}
	info           *log.Logger
	Magenta        = ansi.ColorFunc("magenta+")
)

func init() {
	info = log.New(os.Stdout, Magenta("[Reddit]: "), log.Ldate|log.Ltime)
}

const (
	BASE = "https://www.reddit.com"
)

type Submission struct {
	Author       string  `json:"author"`
	Title        string  `json:"title"`
	URL          string  `json:"url"`
	Domain       string  `json:"domain"`
	Subreddit    string  `json:"subreddit"`
	SubredditID  string  `json:"subreddit_id"`
	FullID       string  `json:"name"`
	ID           string  `json:"id"`
	Permalink    string  `json:"permalink"`
	ThumbnailURL string  `json:"thumbnail"`
	DateCreated  float32 `json:"created_utc"`
	NumComments  int     `json:"num_comments"`
	Score        int     `json:"score"`
	Ups          int     `json:"ups"`
	Downs        int     `json:"downs"`
	IsSelf       bool    `json:"is_self"`
	IsSaved      bool    `json:"saved"`
}

type Options map[string]string
type ID string

type RecurringReddit struct {
	SubReddit string
	Domain    string
	Query     string
	Interval  time.Duration
	Before    string
	db        *Database
}

func NewReddit(subreddit string, domain string, query string, dur time.Duration, d *Database) *RecurringReddit {
	return &RecurringReddit{
		SubReddit: subreddit,
		Domain:    domain,
		Query:     query,
		Interval:  dur,
		Before:    "",
	}
}

func (r *RecurringReddit) GetSubReddit(opt Options) ([]*Submission, error) {
	// handle timeout
	url := r.BuildURL(opt)
	res, err := http.Get(url)
	if err != nil {
		return nil, err
	}
	defer res.Body.Close()

	response := new(Response)
	err = json.NewDecoder(res.Body).Decode(response)

	if err != nil {
		return nil, err
	}

	submissions := make([]*Submission, len(response.Data.Children))
	for i, child := range response.Data.Children {
		submissions[i] = child.Sub
	}
	if len(submissions) > 0 {
		r.Before = submissions[0].ID
	}
	return submissions, nil
}

func (r *RecurringReddit) BuildURL(opt Options) string {
	var url string
	if opt == nil {
		opt = Options{
			"limit": "100",
		}
	}
	url = fmt.Sprintf("%s/r/%s/%s.json", BASE, r.SubReddit, r.Domain)
	opt["before"] = "t3_" + r.Before
	if r.Query != "" {
		url = fmt.Sprintf("%s?%s", url, r.Query)
	}

	var options string
	for k, v := range opt {
		options = strings.Join([]string{fmt.Sprintf("%s=%s", k, v), options}, "&")
	}
	options = strings.TrimRight(options, "&")
	url = url + "&" + options

	return url
}

func FilterLinksByAllowedDomain(subs []*Submission) []*Submission {
	// Limit to 50 - grow if required
	filteredLinks := []*Submission{}
	for _, sub := range subs {
		if sub.ValidDomain() {
			filteredLinks = append(filteredLinks, sub)
		}
	}
	return filteredLinks
}

func (s *Submission) ValidDomain() bool {
	valid := false
	if s == nil {
		return valid
	}

	for _, domain := range AllowedDomains {
		if s.Domain == domain {
			valid = true
			break
		}
	}
	return valid
}

func (r *RecurringReddit) fetch(c chan *Submission) error {
	submissions, err := r.GetSubReddit(nil)
	if err != nil {
		return err
	}

	filteredSubs := FilterLinksByAllowedDomain(submissions)
	_, err = r.db.InsertNewSubmissions(filteredSubs)
	if err != nil {
		return err
	}
	if len(submissions) > 0 {
		log.Printf("Filtered submissions from %d to %d", len(submissions), len(filteredSubs))
	}

	for _, sub := range filteredSubs {
		c <- sub
	}
	return nil
}

func (r *RecurringReddit) ContinuousPoll(c chan *Submission) {
	ticker := time.NewTicker(r.Interval)
	go func() {
		for {
			select {
			case <-ticker.C:
				r.fetch(c)
			}
		}
	}()
}


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

An Empty Document with Sections

An empty document within a sub-section

First Section

I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text. I am an empty document. containing very long text.
I am an empty document. containing very long text. I am an empty document.
containing very long text.I am an empty document. containing very long text.

Second Section

Placing some sample text on page's second section.


text:
ActiveRecord::Schema.define(version: 20170822015616) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "posts", force: :cascade do |t|
    t.string "title"
    t.text "img_url"
    t.text "web_url"
    t.integer "category"
  end

end


text:
'use strict';

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }

var FluxStore = require('./FluxStore');

var abstractMethod = require('./abstractMethod');
var invariant = require('fbjs/lib/invariant');

var FluxReduceStore = (function (_FluxStore) {
  _inherits(FluxReduceStore, _FluxStore);

  function FluxReduceStore(dispatcher) {
    _classCallCheck(this, FluxReduceStore);

    _FluxStore.call(this, dispatcher);
    this._state = this.getInitialState();
  }

  /**
   * Getter that exposes the entire state of this store. If your state is not
   * immutable you should override this and not expose _state directly.
   */

  FluxReduceStore.prototype.getState = function getState() {
    return this._state;
  };

  /**
   * Constructs the initial state for this store. This is called once during
   * construction of the store.
   */

  FluxReduceStore.prototype.getInitialState = function getInitialState() {
    return abstractMethod('FluxReduceStore', 'getInitialState');
  };

  /**
   * Used to reduce a stream of actions coming from the dispatcher into a
   * single state object
   */

  FluxReduceStore.prototype.reduce = function reduce(state, action) {
    return abstractMethod('FluxReduceStore', 'reduce');
  };

  /**
   * Checks if two versions of state are the same. You do not need to override
   * this if your state is immutable.
   */

  FluxReduceStore.prototype.areEqual = function areEqual(one, two) {
    return one === two;
  };

  /**
   * Use reduce and track _state instead of using __onDispatch
   */

  FluxReduceStore.prototype.__invokeOnDispatch = function __invokeOnDispatch(action) {
    this.__changed = false;

    // reduce the stream of incoming actions to state, update when necessary
    var startingState = this._state;
    var endingState = this.reduce(startingState, action);

    // This means your ending state should never be undefined
    !(endingState !== undefined) ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s returned undefined from reduce(...), did you forget to return ' + 'state in the default case? (use null if this was intentional)', this.constructor.name) : invariant(false) : undefined;

    if (!this.areEqual(startingState, endingState)) {
      this._state = endingState;

      // `__emitChange()` sets `this.__changed` to true and then the actual
      // change will be fired from the emitter at the end of the dispatch, this
      // is required in order to support methods like `hasChanged()`
      this.__emitChange();
    }

    if (this.__changed) {
      this.__emitter.emit(this.__changeEvent);
    }
  };

  return FluxReduceStore;
})(FluxStore);

module.exports = FluxReduceStore;


text:
date: '2010-09-03 20:36:03'
layout: post
slug: my-left-shoulder
status: private
title: "My left shoulder"
categories:
- photos
- health
- life
---

My left shoulder was x-rayed on Tuesday. Everything is mostly OK. Just have to take it easy for awhile.

![My left shoulder x-ray](/assets/images/2010/09/my-left-shoulder.jpg)


text:
\hypertarget{classowncloudsharp_1_1_types_1_1_app_info}{}\section{owncloudsharp.\+Types.\+App\+Info Class Reference}
\label{classowncloudsharp_1_1_types_1_1_app_info}\index{owncloudsharp.\+Types.\+App\+Info@{owncloudsharp.\+Types.\+App\+Info}}

own\+Cloud App information.

\subsection*{Properties}
\begin{DoxyCompactItemize}
\item
string \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_ac12addd408514cce9faac8898bb70b70}{Id}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the identifier. \end{DoxyCompactList}\item
string \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a602c67891b544018cb2357ea16e55071}{Name}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the name. \end{DoxyCompactList}\item
string \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a3fe8c924b76d206ea155ff7df8afa08b}{Description}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the description. \end{DoxyCompactList}\item
string \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_ac7d38d4752320cee01dbae72f27dcc0c}{Licence}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the licence. \end{DoxyCompactList}\item
string \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a479f84fd808ac1189895a7168d09aae2}{Author}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the author. \end{DoxyCompactList}\item
string \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a4c2f82a1c6fdb0dba49508f8e78b0e66}{Require\+Min}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the require minimum. \end{DoxyCompactList}\item
bool \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a8021265fafbd3d4b628a8f0cc517e50a}{Shipped}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets a value indicating whether this \hyperlink{classowncloudsharp_1_1_types_1_1_app_info}{owncloudsharp.\+Types.\+App\+Info} is shipped. \end{DoxyCompactList}\item
bool \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a9094adc94004a3c884d0baede297ddef}{Standalone}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets a value indicating whether this \hyperlink{classowncloudsharp_1_1_types_1_1_app_info}{owncloudsharp.\+Types.\+App\+Info} is standalone. \end{DoxyCompactList}\item
bool \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a21fbeb14bcd6b6783ef68231f9230f42}{Default\+Enable}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets a value indicating whether this \hyperlink{classowncloudsharp_1_1_types_1_1_app_info}{owncloudsharp.\+Types.\+App\+Info} default enable. \end{DoxyCompactList}\item
List$<$ string $>$ \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a25a28396809e364a14eec89e477f1320}{Types}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the types. \end{DoxyCompactList}\item
Dictionary$<$ string, string $>$ \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a906b8dbb9f8441c356ba849098b225d5}{Remote}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the remote. \end{DoxyCompactList}\item
Dictionary$<$ string, string $>$ \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_ae9ef7fbc3cdcf9f49cd7372d13249225}{Documentation}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the documentation. \end{DoxyCompactList}\item
Dictionary$<$ string, string $>$ \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_ad3b2d2f748b0752b632d9034b19e4503}{Info}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the info. \end{DoxyCompactList}\item
Dictionary$<$ string, string $>$ \hyperlink{classowncloudsharp_1_1_types_1_1_app_info_a0b6d2de723405638ef59f17621b5f687}{Public}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\begin{DoxyCompactList}\small\item\em Gets or sets the public. \end{DoxyCompactList}\end{DoxyCompactItemize}

\subsection{Detailed Description}
own\+Cloud App information.

\subsection{Property Documentation}
\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a479f84fd808ac1189895a7168d09aae2}\label{classowncloudsharp_1_1_types_1_1_app_info_a479f84fd808ac1189895a7168d09aae2}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Author@{Author}}
\index{Author@{Author}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Author}{Author}}
{\footnotesize\ttfamily string owncloudsharp.\+Types.\+App\+Info.\+Author\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the author.

The author.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a21fbeb14bcd6b6783ef68231f9230f42}\label{classowncloudsharp_1_1_types_1_1_app_info_a21fbeb14bcd6b6783ef68231f9230f42}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Default\+Enable@{Default\+Enable}}
\index{Default\+Enable@{Default\+Enable}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Default\+Enable}{DefaultEnable}}
{\footnotesize\ttfamily bool owncloudsharp.\+Types.\+App\+Info.\+Default\+Enable\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets a value indicating whether this \hyperlink{classowncloudsharp_1_1_types_1_1_app_info}{owncloudsharp.\+Types.\+App\+Info} default enable.

{\ttfamily true} if default enable; otherwise, {\ttfamily false}.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a3fe8c924b76d206ea155ff7df8afa08b}\label{classowncloudsharp_1_1_types_1_1_app_info_a3fe8c924b76d206ea155ff7df8afa08b}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Description@{Description}}
\index{Description@{Description}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Description}{Description}}
{\footnotesize\ttfamily string owncloudsharp.\+Types.\+App\+Info.\+Description\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the description.

The description.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_ae9ef7fbc3cdcf9f49cd7372d13249225}\label{classowncloudsharp_1_1_types_1_1_app_info_ae9ef7fbc3cdcf9f49cd7372d13249225}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Documentation@{Documentation}}
\index{Documentation@{Documentation}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Documentation}{Documentation}}
{\footnotesize\ttfamily Dictionary$<$string, string$>$ owncloudsharp.\+Types.\+App\+Info.\+Documentation\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the documentation.

The documentation.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_ac12addd408514cce9faac8898bb70b70}\label{classowncloudsharp_1_1_types_1_1_app_info_ac12addd408514cce9faac8898bb70b70}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Id@{Id}}
\index{Id@{Id}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Id}{Id}}
{\footnotesize\ttfamily string owncloudsharp.\+Types.\+App\+Info.\+Id\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the identifier.

The identifier.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_ad3b2d2f748b0752b632d9034b19e4503}\label{classowncloudsharp_1_1_types_1_1_app_info_ad3b2d2f748b0752b632d9034b19e4503}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Info@{Info}}
\index{Info@{Info}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Info}{Info}}
{\footnotesize\ttfamily Dictionary$<$string, string$>$ owncloudsharp.\+Types.\+App\+Info.\+Info\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the info.

The info.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_ac7d38d4752320cee01dbae72f27dcc0c}\label{classowncloudsharp_1_1_types_1_1_app_info_ac7d38d4752320cee01dbae72f27dcc0c}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Licence@{Licence}}
\index{Licence@{Licence}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Licence}{Licence}}
{\footnotesize\ttfamily string owncloudsharp.\+Types.\+App\+Info.\+Licence\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the licence.

The licence.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a602c67891b544018cb2357ea16e55071}\label{classowncloudsharp_1_1_types_1_1_app_info_a602c67891b544018cb2357ea16e55071}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Name@{Name}}
\index{Name@{Name}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Name}{Name}}
{\footnotesize\ttfamily string owncloudsharp.\+Types.\+App\+Info.\+Name\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the name.

The name.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a0b6d2de723405638ef59f17621b5f687}\label{classowncloudsharp_1_1_types_1_1_app_info_a0b6d2de723405638ef59f17621b5f687}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Public@{Public}}
\index{Public@{Public}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Public}{Public}}
{\footnotesize\ttfamily Dictionary$<$string, string$>$ owncloudsharp.\+Types.\+App\+Info.\+Public\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the public.

The public.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a906b8dbb9f8441c356ba849098b225d5}\label{classowncloudsharp_1_1_types_1_1_app_info_a906b8dbb9f8441c356ba849098b225d5}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Remote@{Remote}}
\index{Remote@{Remote}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Remote}{Remote}}
{\footnotesize\ttfamily Dictionary$<$string, string$>$ owncloudsharp.\+Types.\+App\+Info.\+Remote\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the remote.

The remote.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a4c2f82a1c6fdb0dba49508f8e78b0e66}\label{classowncloudsharp_1_1_types_1_1_app_info_a4c2f82a1c6fdb0dba49508f8e78b0e66}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Require\+Min@{Require\+Min}}
\index{Require\+Min@{Require\+Min}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Require\+Min}{RequireMin}}
{\footnotesize\ttfamily string owncloudsharp.\+Types.\+App\+Info.\+Require\+Min\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the require minimum.

The require minimum.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a8021265fafbd3d4b628a8f0cc517e50a}\label{classowncloudsharp_1_1_types_1_1_app_info_a8021265fafbd3d4b628a8f0cc517e50a}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Shipped@{Shipped}}
\index{Shipped@{Shipped}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Shipped}{Shipped}}
{\footnotesize\ttfamily bool owncloudsharp.\+Types.\+App\+Info.\+Shipped\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets a value indicating whether this \hyperlink{classowncloudsharp_1_1_types_1_1_app_info}{owncloudsharp.\+Types.\+App\+Info} is shipped.

{\ttfamily true} if shipped; otherwise, {\ttfamily false}.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a9094adc94004a3c884d0baede297ddef}\label{classowncloudsharp_1_1_types_1_1_app_info_a9094adc94004a3c884d0baede297ddef}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Standalone@{Standalone}}
\index{Standalone@{Standalone}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Standalone}{Standalone}}
{\footnotesize\ttfamily bool owncloudsharp.\+Types.\+App\+Info.\+Standalone\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets a value indicating whether this \hyperlink{classowncloudsharp_1_1_types_1_1_app_info}{owncloudsharp.\+Types.\+App\+Info} is standalone.

{\ttfamily true} if standalone; otherwise, {\ttfamily false}.\mbox{\Hypertarget{classowncloudsharp_1_1_types_1_1_app_info_a25a28396809e364a14eec89e477f1320}\label{classowncloudsharp_1_1_types_1_1_app_info_a25a28396809e364a14eec89e477f1320}}
\index{owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}!Types@{Types}}
\index{Types@{Types}!owncloudsharp\+::\+Types\+::\+App\+Info@{owncloudsharp\+::\+Types\+::\+App\+Info}}
\subsubsection{\texorpdfstring{Types}{Types}}
{\footnotesize\ttfamily List$<$string$>$ owncloudsharp.\+Types.\+App\+Info.\+Types\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}

Gets or sets the types.

The types.

The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item
F\+:/\+Dev/\+Repos/owncloud-\/sharp-\/devel/owncloud-\/sharp/\+Types/App\+Info.\+cs\end{DoxyCompactItemize}


text:
namespace perftools {
namespace gputools {

// SharedMemoryConfig enum describes potential widths of shared memory banks for
// a device or kernel.
enum class SharedMemoryConfig {
  kDefault,    // Use the device default configuration.
  kFourByte,   // Sets shared memory banks to be four bytes wide.
  kEightByte,  // Sets shared memory banks to be eight bytes wide.
};

}  // namespace gputools
}  // namespace perftools

#endif  // TENSORFLOW_STREAM_EXECUTOR_SHARED_MEMORY_CONFIG_H_


text:
package com.yandex.money.api.methods.params;

import java.util.Collections;
import java.util.Map;

/**
 * @author Anton Ermak (ermak@yamoney.ru).
 */
public abstract class PaymentParams {

    public final String patternId;
    public final Map<String, String> paymentParams;

    PaymentParams(String patternId, Map<String, String> paymentParams) {
        this.patternId = patternId;
        this.paymentParams = paymentParams;
    }

    public String getPatternId() {
        return patternId;
    }

    public Map<String, String> makeParams() {
        return Collections.unmodifiableMap(paymentParams);
    }
}


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.wpi.first.wpilibj.templates.commands;

/**
 *
 * @author Alibero
 */
public class HoldShooter extends CommandBase {

    double holdVel = 0.4;
    int accuracy = 3;
    int pos;

    public HoldShooter(int position) {
        // Use requires() here to declare subsystem dependencies
        // eg. requires(chassis);
        requires(shooter);
        pos = position;
    }

    // Called just before this Command runs the first time
    protected void initialize() {
    }

    // Called repeatedly when this Command is scheduled to run
    protected void execute() {
        if (shooter.left.getD() - accuracy > pos) {
            shooter.set(-holdVel);
        } else if (shooter.left.getD() + accuracy < pos) {
            shooter.set(holdVel);
        } else {
            shooter.set(0.0);
        }
    }

    // Make this return true when this Command no longer needs to run execute()
    protected boolean isFinished() {
        return false;
    }

    // Called once after isFinished returns true
    protected void end() {
    }

    // Called when another command which requires one or more of the same
    // subsystems is scheduled to run
    protected void interrupted() {
    }
}


text:
using System.Collections.Generic;
using System.Web.Mvc;
using Thinktecture.AuthorizationServer.Interfaces;
using Thinktecture.AuthorizationServer.Models;
using Thinktecture.AuthorizationServer.WebHost.Areas.InitialConfiguration.Models;

namespace Thinktecture.AuthorizationServer.WebHost.Areas.InitialConfiguration.Controllers
{
    [AllowAnonymous]
    public class HomeController : Controller
    {
        IAuthorizationServerAdministration authorizationServerAdministration;
        public HomeController(IAuthorizationServerAdministration authorizationServerAdministration)
        {
            this.authorizationServerAdministration = authorizationServerAdministration;
        }

        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (authorizationServerAdministration.GlobalConfiguration != null)
            {
                filterContext.Result = new RedirectResult("~");
            }
        }

        public ActionResult Index()
        {
            if (authorizationServerAdministration.GlobalConfiguration != null)
            {
                return Redirect("~/");
            }
            return View("Index");
        }

        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Index(InitialConfigurationModel model)
        {
            if (authorizationServerAdministration.GlobalConfiguration != null)
            {
                return Redirect("~/");
            }

            if (ModelState.IsValid)
            {
                var global = new GlobalConfiguration()
                {
                    AuthorizationServerName = model.Name,
                    Issuer = model.Issuer,
                    Administrators = new List<AuthorizationServerAdministrator>
                    {
                        new AuthorizationServerAdministrator{NameID = model.Admin}
                    }
                };
                authorizationServerAdministration.GlobalConfiguration = global;
                authorizationServerAdministration.SaveChanges();

                if (model.Test == "test")
                {
                    TestData.Populate();
                }

                return View("Success");
            }

            return View("Index");
        }
    }
}


text:
[![Version](http://img.shields.io/npm/v/aframe-animation-timeline-component.svg?style=flat-square)](https://npmjs.org/package/aframe-animation-timeline-component)
[![License](http://img.shields.io/npm/l/aframe-animation-timeline-component.svg?style=flat-square)](https://npmjs.org/package/aframe-animation-timeline-component)

[animation]: https://github.com/supermedium/superframe/tree/master/components/animation

A timeline component for A-Frame to use with the [animation
component][animation] for declaratively defining and orchestrating timelines of
animations. The animation timeline component depends on the animation
component. Make sure to include that.

[View Demo](https://supermedium.com/superframe/components/animation-timeline/)

![GIF](https://user-images.githubusercontent.com/674727/34067163-d0b3af9c-e1d2-11e7-9b3a-c9c207001e6c.gif)

Latest version requires A-Frame v0.8.0.

### Example

```html
<a-scene animation-timeline__1="timeline: #myTimeline; loop: true">
  <a-assets timeout="10000">
    <a-asset-item src="https://cdn.aframe.io/fonts/Roboto-msdf.json"></a-asset-item>

    <a-timeline id="myTimeline">
      <a-timeline-animation select="#text1" name="togglevisible"></a-timeline-animation>
      <a-timeline-animation select="#text1" name="fadein"></a-timeline-animation>
      <a-timeline-animation select="#text1" name="fadeout"></a-timeline-animation>
      <a-timeline-animation select="#text1" name="togglevisibleoff"></a-timeline-animation>

      <a-timeline-group>
        <a-timeline-animation select="a-entity[mixin~=box]" name="fadein"></a-timeline-animation>
        <a-timeline-animation select="a-entity[mixin~=box]" name="scale"></a-timeline-animation>
        <a-timeline-animation select="a-entity[mixin~=box]" name="color"></a-timeline-animation>
      </a-timeline-group>

      <a-timeline-group>
        <a-timeline-animation select="#text2" name="togglevisible"></a-timeline-animation>
        <a-timeline-animation select="#text2" name="fadein"></a-timeline-animation>
        <a-timeline-animation select="#text2" name="textcolor"></a-timeline-animation>
      </a-timeline-group>

      <a-timeline-animation select="#text2" name="fadeout"></a-timeline-animation>
      <a-timeline-animation select="#text2" name="togglevisibleoff"></a-timeline-animation>

      <a-timeline-animation select="#text3" name="togglevisible"></a-timeline-animation>
      <a-timeline-group>
        <a-timeline-animation select="a-entity[mixin~=box]" name="color"></a-timeline-animation>
        <a-timeline-animation select="a-entity[mixin~=box]" name="rotate"></a-timeline-animation>
        <a-timeline-animation select="a-entity[mixin~=box]" name="position"></a-timeline-animation>
        <a-timeline-animation select="#text3" name="fadein"></a-timeline-animation>
        <a-timeline-animation select="#text3" name="positionin"></a-timeline-animation>
      </a-timeline-group>

      <a-timeline-animation select="#text3" name="positionout"></a-timeline-animation>
      <a-timeline-animation select="#text3" name="togglevisibleoff"></a-timeline-animation>

      <a-timeline-animation select="#text4" name="togglevisible"></a-timeline-animation>

      <a-timeline-group>
        <a-timeline-animation select="#sky" name="color"></a-timeline-animation>
        <a-timeline-animation select="#text4" name="fadein"></a-timeline-animation>
      </a-timeline-group>

      <a-timeline-animation select="#text4" name="fadeout" offset="500"></a-timeline-animation>
    </a-timeline>

    <a-mixin id="box"
      geometry="primitive: box"
      material="color: #AAA; opacity: 0"
      animation__fadein="property: material.opacity; dur: 2000; from: 0; to: 1; autoplay: false"
      animation__scale="property: scale; to: 2 20 2; dur: 2000; easing: easeInOutElastic; autoplay: false"
      animation__position="property: position; to: 0 30 -3; dur: 2000; autoplay: false"
      animation__color="property: material.color; from: #AAA; to: #222; dur: 2500; autoplay: false"
      animation__rotate="property: rotation; to: 0 360; dur: 1000; easing: easeInQuad; autoplay: false"
      scale="0.0001 0.0001 0.0001"
    ></a-mixin>

    <a-mixin id="text"
      text="align: center; color: #333; width: 6; opacity: 0"
      animation__fadein="property: text.opacity; from: 0; to: 1; dur: 3000; easing: linear; autoplay: false"
      animation__fadeout="property: text.opacity; from: 1; to: 0; dur: 3000; easing: linear; autoplay: false"
      animation__togglevisible="property: visible; from: false; to: true; dur: 1; autoplay: false"
      animation__togglevisibleoff="property: visible; from: true; to: false; dur: 1; autoplay: false"
      position="0 2 -3"
      visible="false"></a-mixin>
  </a-assets>

  <a-entity id="text1" mixin="text" text="value: Is this real life?"></a-entity>
  <a-entity id="text2" mixin="text" text="value: Is this just fantasy?; opacity: 0"
            animation__textcolor="property: text.color; from: #FAFAFA; to: #8C200E; dur: 2500; autoplay: false"></a-entity>
  <a-entity id="text3" mixin="text" text="value: Caught in a landslide." position="0 -10 0"
            animation__positionin="property: position; to: 0 2 -3; dur: 2500; autoplay: false"
            animation__positionout="property: position; from: 0 2 -3; to: -10 2 -3; dur: 3500; autoplay: false"></a-entity>
  <a-entity id="text4" mixin="text" text="value: No escape from reality."></a-entity>

  <a-entity position="0 -0.5 -10">
    <a-entity id="box1" mixin="box" position="-4 0 0"></a-entity>
    <a-entity mixin="box"></a-entity>
    <a-entity mixin="box" position="4 0 0"></a-entity>
  </a-entity>

  <a-sky id="sky" color="#FAFAFA" animation__color="property: material.color; from: #FAFAFA; to: #111; dur: 2000; autoplay: false"></a-sky>
</a-scene>
```

### API

#### Elements

The timeline component provides `<a-timeline>`, `<a-timeline-group>`, and
`<a-timeline-animation>` to declaratively define the animation timeline.

**`<a-timeline id>`**

Container element. Note `<a-timeline>` is just a data container. It is not an
entity, primitive, nor does it do anything on its own. It's meant to be selected
like `<a-entity animation-timeline="timeline: #myTimeline">`. Animation and
animation groups under `<a-timeline>` play sequentially in order, one after
another once the previous animation or animation group is finished..

| Attribute | Description                                                                        |
|-----------|------------------------------------------------------------------------------------|
| id        | Should be specified in order to select it from the `animation-timeline` component. |

**`<a-timeline-animation select name offset>`**

`<a-timeline-animation>` is used to add animations to the timeline via
reference, either directly under `<a-timeline>` or under `<a-timeline-group>`.

Note that `<a-timeline-animation>` does **not** define the actual animation
parameters. Animations are defined using the `animation` component on the
entity or entities. `<a-timeline-animation>` merely points to them and adds
their animation configurations to the timeline object.

Make sure **`autoplay: false`** is set on all timelined animations, and I recommend
specifying `from` on each on of those animations. The timeline will not attempt
to grab from values dynamically.

| Attribute | Description                                                                                |
|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| select    | Selector to entity or entities to animate (e.g., `.boxes` or `#sphere`).                                                                                |
| name      | ID of the animation component instance defined on the entity or entities. If the entity has an animation component `animation__fadein="property: material.opacity` then we would set `name="fadein"`. |
| offset    | Optional additional time offset in milliseconds to wait for the previous animation in the timeline to finish.                                                                                |

**`<a-timeline-group [offset]>`**

`<a-timeline-group>` groups together `<a-timeline-animation>`s that we want to
start at the same time. Only once every animation in the group finishes will
the timeline move onto the next animation or animation group.

| Attribute | Description                                                                                |
|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| offset    | Optional additional time offset in milliseconds to wait for the previous animation in the timeline to finish.                                                                                |

#### Properties

Pairing with the `<a-timeline>` container is the `animation-timeline`
component. It doesn't really matter which entity (or on `<a-scene>`) the
`animation-timeline` component is set on since it doesn't operate on any single
entity.

| Property    | Description                                                                                | Default Value |
| --------    | -----------                                                                                | ------------- |
| timeline    | Selector to `<a-timeline>` element.                                                                                | ''            |
| direction   | Direction of animation (`normal`, `reverse`, `alternate`).                                                                      | normal        |
| loop        | Number of times to loop. Set `true` to loop infinitely.                                                                         | 0             |
| startEvents | Comma-separated list of events to wait that will trigger the timeline animation. If not specified, the animation will autoplay. | ''            |

#### Events

| Event                     | Description                                                                                |
|---------------------------|------------------------------------------------------------------------------------------------------------------------------|
| animationtimelinecomplete | Emitted when animation timeline is complete. Event detail contains animation `name` (`__<ID>`). Not emitted if `loop: true`. |

### Installation

#### Browser

Install and use by directly including the [browser files](dist):

```html
<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
  <script src="https://unpkg.com/aframe-animation-component@^4.1.1/dist/aframe-animation-timeline-component.min.js"></script>
  <script src="https://unpkg.com/aframe-animation-timeline-component@2.0.0/dist/aframe-animation-timeline-component.min.js"></script>
</head>

<body>
  <a-scene animation-timeline__1="timeline: #myTimeline">
    <a-assets>
      <a-timeline id="myTimeline">
        <a-timeline-animation select="#welcomeText" name="fadein"></a-timeline-animation>
        <a-timeline-animation select="#welcomeText" name="fadeout" offset="500"></a-timeline-animation>

        <a-timeline-group>
          <a-timeline-animation select=".box" name="scale"></a-timeline-animation>
          <a-timeline-animation select=".sphere" name="rotate"></a-timeline-animation>
        </a-timeline-group>
      </a-timeline>

      <a-mixin id="boxScale" animation__scale="property: scale; to: 1.2 1.2 1.2; loop: true; direction: alternate; startEvents: null"></a-mixin>
      <a-mixin id="sphereRotate" animation__scale="property: rotation; to: 360 360 360; loop: true; startEvents: null"></a-mixin>
    </a-assets>

    <a-entity id="welcomeText"
              animation__fadein="property: text.opacity; from: 0; to: 1; startEvents: null"
              animation__fadeout="property: text.opacity; from: 1; to 0; startEvents: null"
              text="opacity: 0; value: Welcome to the dankest timeline."
              position="0 0 -3"></a-entity>

    <a-box class="box" mixin="boxScale" color="red" position="-2 0 0"></a-box>
    <a-box class="box" mixin="boxScale" color="red"></a-box>
    <a-box class="box" miixn="boxScale" color="red" position="2 0 0"></a-box>

    <a-sphere class="sphere" mixin="sphereScale" color="blue" opacity="0.5" position="-2 0 0"></a-sphere>
    <a-sphere class="sphere" mixin="sphereScale" color="blue" opacity="0.5"></a-sphere>
    <a-sphere class="sphere" miixn="sphereScale" color="blue" opacity="0.5" position="2 0 0"></a-sphere>
  </a-scene>
</body>
```

#### npm

Install via npm:

```bash
npm install aframe-animation-component
npm install aframe-animation-timeline-component
```

Then require and use.

```js
require('aframe');
require('aframe-animation-component');
require('aframe-animation-timeline-component');
```


text:
<?php

declare(strict_types=1);

namespace StructType;

use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetNonIndexableItemStatisticsResponseMessageType
 * StructType
 * Meta information extracted from the WSDL
 * - documentation: Response message type for the GetNonIndexableItemStatistics web method.
 * @package Ews
 * @subpackage Structs
 * @author WsdlToPhp <contact@wsdltophp.com>
 */
class EwsGetNonIndexableItemStatisticsResponseMessageType extends EwsResponseMessageType
{
    /**
     * The NonIndexableItemStatistics
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\EwsArrayOfNonIndexableItemStatisticsType|null
     */
    protected ?\ArrayType\EwsArrayOfNonIndexableItemStatisticsType $NonIndexableItemStatistics = null;
    /**
     * Constructor method for GetNonIndexableItemStatisticsResponseMessageType
     * @uses EwsGetNonIndexableItemStatisticsResponseMessageType::setNonIndexableItemStatistics()
     * @param \ArrayType\EwsArrayOfNonIndexableItemStatisticsType $nonIndexableItemStatistics
     */
    public function __construct(?\ArrayType\EwsArrayOfNonIndexableItemStatisticsType $nonIndexableItemStatistics = null)
    {
        $this
            ->setNonIndexableItemStatistics($nonIndexableItemStatistics);
    }
    /**
     * Get NonIndexableItemStatistics value
     * @return \ArrayType\EwsArrayOfNonIndexableItemStatisticsType|null
     */
    public function getNonIndexableItemStatistics(): ?\ArrayType\EwsArrayOfNonIndexableItemStatisticsType
    {
        return $this->NonIndexableItemStatistics;
    }
    /**
     * Set NonIndexableItemStatistics value
     * @param \ArrayType\EwsArrayOfNonIndexableItemStatisticsType $nonIndexableItemStatistics
     * @return \StructType\EwsGetNonIndexableItemStatisticsResponseMessageType
     */
    public function setNonIndexableItemStatistics(?\ArrayType\EwsArrayOfNonIndexableItemStatisticsType $nonIndexableItemStatistics = null): self
    {
        $this->NonIndexableItemStatistics = $nonIndexableItemStatistics;

        return $this;
    }
}


text:
extern crate isolation;
extern crate getopts;

use std::process;
use isolation::isolation::{compute, serialize};
use std::env;
use std::fs::File;
use std::io::{BufReader, BufWriter, Write, Read, stdout, stdin, stderr};
use getopts::Options;

static USAGE: &'static str = "Usage: isol [options] <SOURCE> <<TARGET>>";

fn main() {
    let mut opts = Options::new();
    opts.optflag("a", "all", "include the nodes of the largest component (prints all nodes of the graph)");
    opts.optflag("h", "help", "show this help");
    let argv: Vec<String> = env::args().collect();
    let matches = match opts.parse(&argv[1..]) {
        Ok(m) => { m },
        Err(f) => { panic!(f.to_string()) }
    };

    if matches.opt_present("h") {
        println!("{}", opts.usage(USAGE));
        process::exit(1);
    }

    let print_biggest = matches.opt_present("a");
    let args = matches.free;

    let (input, output): (Box<Read>, Box<Write>) = match args.len() {
        2 => {
            let i = File::open(&args[0]).unwrap();
            let f = File::create(&args[1]).unwrap();
            (Box::new(i), Box::new(f))
        },
        1 => {
            let i = File::open(&args[0]).unwrap();
            (Box::new(i), Box::new(stdout()))
        },
        0 => {
            (Box::new(stdin()), Box::new(stdout()))
        },
        _ => {
            writeln!(&mut stderr(), "error: too many arguments provided").unwrap();
            println!("{}", opts.usage(USAGE));
            process::exit(1);
        }
    };

    let mut source = BufReader::new(input);
    let mut target = BufWriter::new(output);
    compute(&mut source, |comp, i| {
        if !print_biggest && i == 0 {
            return;
        }
        serialize(comp, &mut target, b'\n');
    });
}


text:
using Newtonsoft.Json;

namespace EmmaSharp.Models.Members
{
    public class MemberMailings
    {
    }
}


text:
const path = require('path')
const vueConfig = require('./vue-loader.config')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')

const isProd = process.env.NODE_ENV === 'production'

module.exports = {
	devtool: isProd
		? false
		: '#cheap-module-eval-source-map',
	entry: {
		app: './src/entry-client.js',
		vendor: [
			'es6-promise/auto',
			'firebase/app',
			'firebase/database',
			'vue',
			'vue-router',
			'vuex',
			'vuex-router-sync'
		]
	},
	output: {
		path: path.resolve(__dirname, '../dist'),
		publicPath: '/dist/',
		filename: '[name].[chunkhash].js'
	},
	resolve: {
		alias: {
			'public': path.resolve(__dirname, '../public')
		}
	},
	module: {
		noParse: /es6-promise\.js$/, // avoid webpack shimming process
		rules: [
			{
				test: /\.vue$/,
				loader: 'vue-loader',
				options: {
					vueConfig,
					loaders: {
						'scss': 'vue-style-loader!css-loader!sass-loader',
						'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
					}
				}
			},
			{
				test: /\.js$/,
				loader: 'buble-loader',
				exclude: /node_modules/,
				options: {
					objectAssign: 'Object.assign'
				}
			},
			{
				test: /\.(png|jpg|gif|svg)$/,
				loader: 'url-loader',
				options: {
					limit: 10000,
					name: '[name].[ext]?[hash]'
				}
			}
		]
	},
	performance: {
		maxEntrypointSize: 300000,
		hints: isProd ? 'warning' : false
	},
	plugins: isProd ? [] : [
		new FriendlyErrorsPlugin()
	]
}


text:
package org.spongepowered.api.net;

/**
 * An exception that is thrown when a channel registration fails.
 *
 *
Examples may include: Attempting to register an already registered channel.

 */
public class ChannelRegistrationException extends RuntimeException {

    private static final long serialVersionUID = 7258019249864102811L;

    /**
     * Constructs a new {@link ChannelRegistrationException}.
     */
    public ChannelRegistrationException() {
        super();
    }

    /**
     * Constructs a new {@link ChannelRegistrationException} with a message.
     *
     * @param message The message to include in the stacktrace
     */
    public ChannelRegistrationException(String message) {
        super(message);
    }

    /**
     * Constructs a new {@link ChannelRegistrationException} with the specified message and
     * cause.
     *
     * @param message The exception message
     * @param cause The cause of this exception
     */
    public ChannelRegistrationException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs a new {@link ChannelRegistrationException} with the specified cause and a
     * null message.
     *
     * @param cause The cause of this exception
     */
    public ChannelRegistrationException(Throwable cause) {
        super(cause);
    }
}


text:
package expression

import (
	"math"
	"math/rand"
	"strconv"
	"testing"
	"time"

	"github.com/pingcap/tidb/parser/ast"
	"github.com/pingcap/tidb/parser/mysql"
	"github.com/pingcap/tidb/types"
	"github.com/pingcap/tidb/util/chunk"
	"github.com/pingcap/tidb/util/mock"
	"github.com/stretchr/testify/require"
)

var vecBuiltinCastCases = map[string][]vecExprBenchCase{
	ast.Cast: {
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETJson}, geners: []dataGenerator{newDecimalJSONGener(0)}},
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETString}, geners: []dataGenerator{newDecimalStringGener()}},
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETReal}},
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETDuration}},
		{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETInt}},
		{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETReal}},
		{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETDecimal}},
		{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETJson}, geners: []dataGenerator{&constJSONGener{strconv.Itoa(rand.Int())}}},
		{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETDatetime}},
		{retEvalType: types.ETInt, childrenTypes: []types.EvalType{types.ETDuration}},
		{
			retEvalType:   types.ETInt,
			childrenTypes: []types.EvalType{types.ETString},
			geners:        []dataGenerator{&numStrGener{*newRangeInt64Gener(math.MinInt64+1, 0)}},
		},
		{
			retEvalType:   types.ETInt,
			childrenTypes: []types.EvalType{types.ETString},
			geners:        []dataGenerator{&numStrGener{*newRangeInt64Gener(0, math.MaxInt64)}},
		},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETInt}},
		{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETInt}, geners: []dataGenerator{newRandDurInt()}},
		{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETReal}, geners: []dataGenerator{newRandDurReal()}},
		{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDecimal}, geners: []dataGenerator{newRandDurDecimal()}},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETReal}},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETJson}, geners: []dataGenerator{newDecimalJSONGener(0)}},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETDecimal}},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETString}, geners: []dataGenerator{newRealStringGener()}},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETDatetime}},
		{retEvalType: types.ETReal, childrenTypes: []types.EvalType{types.ETDuration}, geners: []dataGenerator{newRangeDurationGener(0.5)}},
		{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDatetime},
			geners: []dataGenerator{&dateTimeGenerWithFsp{
				defaultGener: *newDefaultGener(0.2, types.ETDatetime),
				fsp:          1,
			}},
		},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETInt}},
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETDatetime}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETString}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETDuration}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETDatetime}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETTimestamp}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETReal}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETJson}},
		{retEvalType: types.ETString, childrenTypes: []types.EvalType{types.ETDecimal}},
		{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETJson}, geners: []dataGenerator{&randJSONDuration{}}},
		{retEvalType: types.ETDuration, childrenTypes: []types.EvalType{types.ETDuration}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETInt}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETReal}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETDuration}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETDatetime}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETJson}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETString}, geners: []dataGenerator{newJSONStringGener()}},
		{retEvalType: types.ETJson, childrenTypes: []types.EvalType{types.ETDecimal}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETJson}, geners: []dataGenerator{&datetimeJSONGener{}}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETReal}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETDecimal}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETInt}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETString},
			geners: []dataGenerator{
				&dateTimeStrGener{randGen: newDefaultRandGen()},
				&dateStrGener{randGen: newDefaultRandGen()},
				&timeStrGener{randGen: newDefaultRandGen()},
			}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETDuration}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETDatetime}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETTimestamp}},
		{retEvalType: types.ETDatetime, childrenTypes: []types.EvalType{types.ETJson},
			geners: []dataGenerator{
				newJSONTimeGener(),
			}},
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETDecimal}},
		{retEvalType: types.ETDecimal, childrenTypes: []types.EvalType{types.ETInt}},
	},
}

type dateTimeGenerWithFsp struct {
	defaultGener
	fsp int
}

func (g *dateTimeGenerWithFsp) gen() interface{} {
	result := g.defaultGener.gen()
	if t, ok := result.(types.Time); ok {
		t.SetFsp(g.fsp)
		return t
	}
	return result
}

type randJSONDuration struct{}

func (g *randJSONDuration) gen() interface{} {
	d := types.Duration{
		Duration: time.Duration(rand.Intn(12))*time.Hour + time.Duration(rand.Intn(60))*time.Minute + time.Duration(rand.Intn(60))*time.Second + time.Duration(rand.Intn(1000))*time.Millisecond,
		Fsp:      3}
	return types.CreateBinaryJSON(d)
}

type datetimeJSONGener struct{}

func (g *datetimeJSONGener) gen() interface{} {
	year := rand.Intn(2200)
	month := rand.Intn(10) + 1
	day := rand.Intn(20) + 1
	hour := rand.Intn(12)
	minute := rand.Intn(60)
	second := rand.Intn(60)
	microsecond := rand.Intn(1000000)
	d := types.NewTime(
		types.FromDate(year, month, day, hour, minute, second, microsecond),
		0,
		3,
	)
	return types.CreateBinaryJSON(d)
}

func TestVectorizedBuiltinCastEvalOneVec(t *testing.T) {
	testVectorizedEvalOneVec(t, vecBuiltinCastCases)
}

func TestVectorizedBuiltinCastFunc(t *testing.T) {
	testVectorizedBuiltinFunc(t, vecBuiltinCastCases)
}

func TestVectorizedCastRealAsTime(t *testing.T) {
	col := &Column{RetType: types.NewFieldType(mysql.TypeDouble), Index: 0}
	baseFunc, err := newBaseBuiltinFunc(mock.NewContext(), "", []Expression{col}, types.NewFieldType(mysql.TypeDatetime))
	if err != nil {
		panic(err)
	}
	cast := &builtinCastRealAsTimeSig{baseFunc}

	inputChunk, expect := genCastRealAsTime()
	inputs := []*chunk.Chunk{
		inputChunk,
	}

	for _, input := range inputs {
		result := chunk.NewColumn(types.NewFieldType(mysql.TypeDatetime), input.NumRows())
		require.NoError(t, cast.vecEvalTime(input, result))
		for i := 0; i < input.NumRows(); i++ {
			res, isNull, err := cast.evalTime(input.GetRow(i))
			require.NoError(t, err)
			if expect[i] == nil {
				require.True(t, result.IsNull(i))
				require.True(t, isNull)
				continue
			}
			require.Equal(t, result.GetTime(i), *expect[i])
			require.Equal(t, res, *expect[i])
		}
	}
}

func getTime(year int, month int, day int, hour int, minute int, second int) *types.Time {
	retTime := types.NewTime(types.FromDate(year, month, day, hour, minute, second, 0), mysql.TypeDatetime, types.DefaultFsp)
	return &retTime
}

func genCastRealAsTime() (*chunk.Chunk, []*types.Time) {
	input := chunk.NewChunkWithCapacity([]*types.FieldType{types.NewFieldType(mysql.TypeDouble)}, 20)
	expect := make([]*types.Time, 0, 20)

	// valid
	input.AppendFloat64(0, 0)
	input.AppendFloat64(0, 101.1)
	input.AppendFloat64(0, 111.1)
	input.AppendFloat64(0, 1122.1)
	input.AppendFloat64(0, 31212.111)
	input.AppendFloat64(0, 121212.1111)
	input.AppendFloat64(0, 1121212.111111)
	input.AppendFloat64(0, 11121212.111111)
	input.AppendFloat64(0, 99991111.1111111)
	input.AppendFloat64(0, 201212121212.1111111)
	input.AppendFloat64(0, 20121212121212.1111111)
	// invalid
	input.AppendFloat64(0, 1.1)
	input.AppendFloat64(0, 48.1)
	input.AppendFloat64(0, 100.1)
	input.AppendFloat64(0, 1301.11)
	input.AppendFloat64(0, 1131.111)
	input.AppendFloat64(0, 100001111.111)
	input.AppendFloat64(0, 20121212121260.1111111)
	input.AppendFloat64(0, 20121212126012.1111111)
	input.AppendFloat64(0, 20121212241212.1111111)

	expect = append(expect, getTime(0, 0, 0, 0, 0, 0))
	expect = append(expect, getTime(2000, 1, 1, 0, 0, 0))
	expect = append(expect, getTime(2000, 1, 11, 0, 0, 0))
	expect = append(expect, getTime(2000, 11, 22, 0, 0, 0))
	expect = append(expect, getTime(2003, 12, 12, 0, 0, 0))
	expect = append(expect, getTime(2012, 12, 12, 0, 0, 0))
	expect = append(expect, getTime(112, 12, 12, 0, 0, 0))
	expect = append(expect, getTime(1112, 12, 12, 0, 0, 0))
	expect = append(expect, getTime(9999, 11, 11, 0, 0, 0))
	expect = append(expect, getTime(2020, 12, 12, 12, 12, 12))
	expect = append(expect, getTime(2012, 12, 12, 12, 12, 12))
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)
	expect = append(expect, nil)

	return input, expect
}

// for issue https://github.com/pingcap/tidb/issues/16825
func TestVectorizedCastStringAsDecimalWithUnsignedFlagInUnion(t *testing.T) {
	col := &Column{RetType: types.NewFieldType(mysql.TypeString), Index: 0}
	baseFunc, err := newBaseBuiltinFunc(mock.NewContext(), "", []Expression{col}, types.NewFieldType(mysql.TypeNewDecimal))
	if err != nil {
		panic(err)
	}
	// set `inUnion` to `true`
	baseCast := newBaseBuiltinCastFunc(baseFunc, true)
	// set the `UnsignedFlag` bit
	baseCast.tp.AddFlag(mysql.UnsignedFlag)
	cast := &builtinCastStringAsDecimalSig{baseCast}

	inputs := []*chunk.Chunk{
		genCastStringAsDecimal(false),
		genCastStringAsDecimal(true),
	}

	for _, input := range inputs {
		result := chunk.NewColumn(types.NewFieldType(mysql.TypeNewDecimal), input.NumRows())
		require.NoError(t, cast.vecEvalDecimal(input, result))
		for i := 0; i < input.NumRows(); i++ {
			res, isNull, err := cast.evalDecimal(input.GetRow(i))
			require.False(t, isNull)
			require.NoError(t, err)
			require.Zero(t, result.GetDecimal(i).Compare(res))
		}
	}
}

func genCastStringAsDecimal(isNegative bool) *chunk.Chunk {
	var sign float64
	if isNegative {
		sign = -1
	} else {
		sign = 1
	}

	input := chunk.NewChunkWithCapacity([]*types.FieldType{types.NewFieldType(mysql.TypeString)}, 1024)
	for i := 0; i < 1024; i++ {
		d := new(types.MyDecimal)
		f := sign * rand.Float64() * 100000
		if err := d.FromFloat64(f); err != nil {
			panic(err)
		}
		input.AppendString(0, d.String())
	}

	return input
}

func BenchmarkVectorizedBuiltinCastEvalOneVec(b *testing.B) {
	benchmarkVectorizedEvalOneVec(b, vecBuiltinCastCases)
}

func BenchmarkVectorizedBuiltinCastFunc(b *testing.B) {
	benchmarkVectorizedBuiltinFunc(b, vecBuiltinCastCases)
}