text:
using System;
using System.Reflection;
using IBatisNet.Common.Test.Domain;
using IBatisNet.Common.Utilities.Objects;
using IBatisNet.Common.Utilities.Objects.Members;
using NUnit.Framework;

namespace IBatisNet.Common.Test.NUnit.CommonTests.Utilities
{
    [TestFixture]
    public class PropertyAccessorPerformance
    {
        #region SetUp & TearDown

        /// <summary>
        /// SetUp
        /// </summary>
        [SetUp]
        public void SetUp()
        {
        }

        /// <summary>
        /// TearDown
        /// </summary>
        [TearDown]
        public void Dispose()
        {
        }

        #endregion

        /// <summary>
        /// Test integer property access performance
        /// </summary>
        [Test]
        public void TestGetIntegerPerformance()
        {
            const int TEST_ITERATIONS = 1000000;
        	Property prop = new Property();
            int test = -1;
            Timer timer = new Timer();

            #region Direct access (fastest)
        	GC.Collect();
            GC.WaitForPendingFinalizers();

            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                test = -1;
                test = prop.Int;
                Assert.AreEqual(int.MinValue, test);
            }
            timer.Stop();
            double directAccessDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            #endregion

            #region IL Property accessor
            GC.Collect();
            GC.WaitForPendingFinalizers();

            IGetAccessorFactory factory = new GetAccessorFactory(true);
            IGetAccessor propertyAccessor = factory.CreateGetAccessor(typeof(Property), "Int");
            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                test = -1;
                test = (int)propertyAccessor.Get(prop);
                Assert.AreEqual(int.MinValue, test);
            }
            timer.Stop();
            double propertyAccessorDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double propertyAccessorRatio = propertyAccessorDuration / directAccessDuration;
            #endregion

            #region IBatisNet.Common.Utilities.Object.ReflectionInfo
            GC.Collect();
            GC.WaitForPendingFinalizers();

        	ReflectionInfo reflectionInfo = ReflectionInfo.GetInstance(prop.GetType());
            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                test = -1;
            	PropertyInfo propertyInfo = (PropertyInfo)reflectionInfo.GetGetter("Int");
                test = (int)propertyInfo.GetValue(prop, null);
                Assert.AreEqual(int.MinValue, test);
            }
            timer.Stop();
            double reflectionInfoDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double reflectionInfoRatio = (float)reflectionInfoDuration / directAccessDuration;
            #endregion

            #region Reflection
            GC.Collect();
            GC.WaitForPendingFinalizers();

            Type type = prop.GetType();
            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                test = -1;
                PropertyInfo propertyInfo = type.GetProperty("Int", BindingFlags.Public | BindingFlags.SetProperty | BindingFlags.Instance);
                test = (int)propertyInfo.GetValue(prop, null);
                Assert.AreEqual(int.MinValue, test);
            }
            timer.Stop();
            double reflectionDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double reflectionRatio = reflectionDuration / directAccessDuration;
            #endregion

            #region ReflectionInvokeMember (slowest)
            GC.Collect();
            GC.WaitForPendingFinalizers();

            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                test = -1;
                test = (int)type.InvokeMember("Int",
                    BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Instance,
                    null, prop, null);
                Assert.AreEqual(int.MinValue, test);
            }
            timer.Stop();
            double reflectionInvokeMemberDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double reflectionInvokeMemberRatio = reflectionInvokeMemberDuration / directAccessDuration;
            #endregion

            // Print results
            Console.WriteLine("{0} property gets on integer...", TEST_ITERATIONS);
            Console.WriteLine("Direct access: \t\t{0} ", directAccessDuration.ToString("F3"));
            Console.WriteLine("IMemberAccessor: \t\t{0} Ratio: {1}", propertyAccessorDuration.ToString("F3"), propertyAccessorRatio.ToString("F3"));
            Console.WriteLine("IBatisNet ReflectionInfo: \t{0} Ratio: {1}", reflectionInfoDuration.ToString("F3"), reflectionInfoRatio.ToString("F3"));
            Console.WriteLine("ReflectionInvokeMember: \t{0} Ratio: {1}", reflectionInvokeMemberDuration.ToString("F3"), reflectionInvokeMemberRatio.ToString("F3"));
            Console.WriteLine("Reflection: \t\t\t{0} Ratio: {1}", reflectionDuration.ToString("F3"), reflectionRatio.ToString("F3"));
        }

        /// <summary>
        /// Test the performance of getting an integer property.
        /// </summary>
        [Test]
        public void TestSetIntegerPerformance()
        {
            const int TEST_ITERATIONS = 1000000;
            Property prop = new Property();
            int value = 123;
            Timer timer = new Timer();

            #region Direct access (fastest)
            GC.Collect();
            GC.WaitForPendingFinalizers();

            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                prop.Int = value;
            }
            timer.Stop();
            double directAccessDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            #endregion

            #region Property accessor
            GC.Collect();
            GC.WaitForPendingFinalizers();

            ISetAccessorFactory factory = new SetAccessorFactory(true);
            ISetAccessor propertyAccessor = factory.CreateSetAccessor(typeof(Property), "Int");
            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                propertyAccessor.Set(prop, value);
            }
            timer.Stop();
            double propertyAccessorDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double propertyAccessorRatio = propertyAccessorDuration / directAccessDuration;
            #endregion

            #region IBatisNet.Common.Utilities.Object.ReflectionInfo
            GC.Collect();
            GC.WaitForPendingFinalizers();

            Type type = prop.GetType();
            ReflectionInfo reflectionInfo = ReflectionInfo.GetInstance(type);
            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                PropertyInfo propertyInfo = (PropertyInfo)reflectionInfo.GetSetter("Int");
                propertyInfo.SetValue(prop, value, null);
            }
            timer.Stop();
            double reflectionInfoDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double reflectionInfoRatio = reflectionInfoDuration / directAccessDuration;
            #endregion

            #region Reflection
            GC.Collect();
            GC.WaitForPendingFinalizers();

            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                PropertyInfo propertyInfo = type.GetProperty("Int", BindingFlags.Public | BindingFlags.SetProperty | BindingFlags.Instance);
                propertyInfo.SetValue(prop, value, null);
            }
            timer.Stop();
            double reflectionDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double reflectionRatio = reflectionDuration / directAccessDuration;
            #endregion

            #region ReflectionInvokeMember (slowest)
            GC.Collect();
            GC.WaitForPendingFinalizers();

            timer.Start();
            for (int i = 0; i < TEST_ITERATIONS; i++)
            {
                type.InvokeMember("Int",
                    BindingFlags.Public | BindingFlags.SetProperty | BindingFlags.Instance,
                    null, prop, new object[] { value });
            }
            timer.Stop();
            double reflectionInvokeMemberDuration = 1000000 * (timer.Duration / (double)TEST_ITERATIONS);
            double reflectionInvokeMemberRatio = reflectionInvokeMemberDuration / directAccessDuration;
            #endregion

            // Print results
            Console.WriteLine("{0} property sets on integer...", TEST_ITERATIONS);
            Console.WriteLine("Direct access: \t\t{0} ", directAccessDuration.ToString("F3"));
            Console.WriteLine("IMemberAccessor: \t\t{0} Ratio: {1}", propertyAccessorDuration.ToString("F3"), propertyAccessorRatio.ToString("F3"));
            Console.WriteLine("IBatisNet ReflectionInfo: \t{0} Ratio: {1}", reflectionInfoDuration.ToString("F3"), reflectionInfoRatio.ToString("F3"));
            Console.WriteLine("ReflectionInvokeMember: \t{0} Ratio: {1}", reflectionInvokeMemberDuration.ToString("F3"), reflectionInvokeMemberRatio.ToString("F3"));
            Console.WriteLine("Reflection: \t\t\t{0} Ratio: {1}", reflectionDuration.ToString("F3"), reflectionRatio.ToString("F3"));
        }
    }
}


text:
<?
if(!$page){ header("Location: ".$acp_cesta."login.php"); }

echo ftp_edit_obsah("/cstrike/addons/amxmodx/configs/say_commands.ini");

?>

redpajama_set_name: RedPajamaGithub


text:
/**
 * Stream representation to include the process (override of the gulp protractor plugin)
 *
 * @author Julien Roche
 * @version 0.4.0
 * @since 0.0.1
 */

'use strict';

// Imports
const es = require('event-stream');
const path = require('path');
const log = require('fancy-log');
const PluginError = require('plugin-error');

// Constants
const PLUGIN_NAME = require('./constants.json').PLUGIN_NAME;

module.exports = function (options, webDriverUrl, autoStartServer, webDriver) {
    let files = [];
    let args = options.args ? options.args.slice(0) : [];
    let verbose = options.verbose !== false;

    if (options.debug) {
        args.push('debug');
    }

    return es.through(
        function (file) {
            files.push(file.path);
        },
        function () {
            // Attach Files, if any
            if (files.length) {
                args.push('--specs');
                args.push(files.join(','));
            }

            // Pass in the config file
            let configFilePath = path.resolve(path.join(process.cwd(), options.configFile));
            log(PLUGIN_NAME + ' - We have the config file to the following path: ' + configFilePath);
            args.unshift(configFilePath);

            function finalize(ctx, code) {
                if (code) {
                    ctx.emit('error', new PluginError(PLUGIN_NAME, 'protractor exited with code ' + code));
                } else {
                    ctx.emit('end');
                }
            }

            // Start the Web Driver server
            try {
                if (autoStartServer) {
                    let stopServer;
                    let callback = () => {
                        log(PLUGIN_NAME + ' - We will run the Protractor engine');

                        webDriver
                            .runProtractorAndWait(args, (code) => {
                                log(PLUGIN_NAME + ' - We will stop the Protractor engine');

                                if (this) {
                                    try {
                                        stopServer();
                                        finalize(this, code);
                                    } catch (err) {
                                        this.emit('error', new PluginError(PLUGIN_NAME, err));
                                    }
                                }
                            });
                    };
                    // Start the update (maybe), run the server, run protractor and stop the server
                    if (options.webDriverUpdate && options.webDriverUpdate.skip) {
                        stopServer = webDriver.webDriverStandaloneStart(callback, verbose, options.webDriverStart);
                    } else {
                        webDriver
                            .webDriverUpdateAndStart(callback, verbose, options.webDriverUpdate, options.webDriverStart)
                            .then(function (stopServerHandler) {
                                stopServer = stopServerHandler;
                            });
                    }
                } else {
                    // Just run protractor
                    webDriver.runProtractorAndWait(args, (code) => {
                        if (this) finalize(this, code);
                    });
                }

            } catch (err) {
                this.emit('error', new PluginError(PLUGIN_NAME, err));
            }
        });
};


text:
using NadekoBot.Common;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

namespace NadekoBot.Modules.Games.Common.Nunchi
{
    public class Nunchi : IDisposable
    {
        public enum Phase
        {
            Joining,
            Playing,
            WaitingForNextRound,
            Ended,
        }

        public int CurrentNumber { get; private set; } = new NadekoRandom().Next(0, 100);
        public Phase CurrentPhase { get; private set; } = Phase.Joining;

        public event Func<Nunchi, Task> OnGameStarted;
        public event Func<Nunchi, int, Task> OnRoundStarted;
        public event Func<Nunchi, Task> OnUserGuessed;
        public event Func<Nunchi, (ulong Id, string Name)?, Task> OnRoundEnded; // tuple of the user who failed
        public event Func<Nunchi, string, Task> OnGameEnded; // name of the user who won

        private readonly SemaphoreSlim _locker = new SemaphoreSlim(1, 1);

        private HashSet<(ulong Id, string Name)> _participants = new HashSet<(ulong Id, string Name)>();
        private HashSet<(ulong Id, string Name)> _passed = new HashSet<(ulong Id, string Name)>();

        public ImmutableArray<(ulong Id, string Name)> Participants => _participants.ToImmutableArray();
        public int ParticipantCount => _participants.Count;

        private const int _killTimeout = 20 * 1000;
        private const int _nextRoundTimeout = 5 * 1000;
        private Timer _killTimer;

        public Nunchi(ulong creatorId, string creatorName)
        {
            _participants.Add((creatorId, creatorName));
        }

        public async Task<bool> Join(ulong userId, string userName)
        {
            await _locker.WaitAsync().ConfigureAwait(false);
            try
            {
                if (CurrentPhase != Phase.Joining)
                    return false;

                return _participants.Add((userId, userName));
            }
            finally { _locker.Release(); }
        }

        public async Task<bool> Initialize()
        {
            CurrentPhase = Phase.Joining;
            await Task.Delay(30000).ConfigureAwait(false);
            await _locker.WaitAsync().ConfigureAwait(false);
            try
            {
                if (_participants.Count < 3)
                {
                    CurrentPhase = Phase.Ended;
                    return false;
                }

                _killTimer = new Timer(async state =>
                {
                    await _locker.WaitAsync().ConfigureAwait(false);
                    try
                    {
                        if (CurrentPhase != Phase.Playing)
                            return;

                        //if some players took too long to type a number, boot them all out and start a new round
                        _participants = new HashSet<(ulong, string)>(_passed);
                        EndRound();
                    }
                    finally { _locker.Release(); }
                }, null, _killTimeout, _killTimeout);

                CurrentPhase = Phase.Playing;
                var _ = OnGameStarted?.Invoke(this);
                var __ = OnRoundStarted?.Invoke(this, CurrentNumber);
                return true;
            }
            finally { _locker.Release(); }
        }

        public async Task Input(ulong userId, string userName, int input)
        {
            await _locker.WaitAsync().ConfigureAwait(false);
            try
            {
                if (CurrentPhase != Phase.Playing)
                    return;

                var userTuple = (Id: userId, Name: userName);

                // if the user is not a member of the race,
                // or he already successfully typed the number
                // ignore the input
                if (!_participants.Contains(userTuple) || !_passed.Add(userTuple))
                    return;

                //if the number is correct
                if (CurrentNumber == input - 1)
                {
                    //increment current number
                    ++CurrentNumber;
                    if (_passed.Count == _participants.Count - 1)
                    {
                        // if only n players are left, and n - 1 type the correct number, round is over

                        // if only 2 players are left, game is over
                        if (_participants.Count == 2)
                        {
                            _killTimer.Change(Timeout.Infinite, Timeout.Infinite);
                            CurrentPhase = Phase.Ended;
                            var _ = OnGameEnded?.Invoke(this, userTuple.Name);
                        }
                        else // else just start the new round without the user who was the last
                        {
                            var failure = _participants.Except(_passed).First();
                            EndRound(failure);
                        }
                    }
                    var __ = OnUserGuessed?.Invoke(this);
                }
                else
                {
                    //if the user failed

                    EndRound(userTuple);
                }
            }
            finally { _locker.Release(); }
        }

        private void EndRound((ulong, string)? failure = null)
        {
            _killTimer.Change(_killTimeout, _killTimeout);
            CurrentNumber = new NadekoRandom().Next(0, 100); // reset the counter
            _passed.Clear(); // reset all users who passed (new round starts)
            if(failure != null)
                _participants.Remove(failure.Value); // remove the dude who failed from the list of players

            var __ = OnRoundEnded?.Invoke(this, failure);
            if (_participants.Count <= 1) // means we have a winner or everyone was booted out
            {
                _killTimer.Change(Timeout.Infinite, Timeout.Infinite);
                CurrentPhase = Phase.Ended;
                var _ = OnGameEnded?.Invoke(this, _participants.Count > 0 ? _participants.First().Name : null);
                return;
            }
            CurrentPhase = Phase.WaitingForNextRound;
            var throwawayDelay = Task.Run(async () =>
            {
                await Task.Delay(_nextRoundTimeout).ConfigureAwait(false);
                CurrentPhase = Phase.Playing;
                var ___ = OnRoundStarted?.Invoke(this, CurrentNumber);
            });

        }

        public void Dispose()
        {
            OnGameEnded = null;
            OnGameStarted = null;
            OnRoundEnded = null;
            OnRoundStarted = null;
            OnUserGuessed = null;
        }
    }
}


text:
package org.labkey.wnprc_ehr.dataentry.ProtocolDataEntry;

import org.labkey.api.ehr.EHRService;
import org.labkey.api.ehr.dataentry.AbstractDataEntryForm;
import org.labkey.api.ehr.dataentry.DataEntryFormContext;
import org.labkey.api.ehr.dataentry.FormSection;
import org.labkey.api.ehr.dataentry.SimpleFormSection;
import org.labkey.api.module.Module;
import org.labkey.api.view.template.ClientDependency;
import org.labkey.wnprc_ehr.WNPRCConstants;
import org.labkey.wnprc_ehr.WNPRC_EHRModule;
//import org.labkey.wnprc_ehr.dataentry.generics.sections.SimpleFormSection;

import java.util.Arrays;
import java.util.function.Supplier;

/**
 * Created by fdnicolalde on 7/25/16.
 */
public class ProtocolForm extends AbstractDataEntryForm
{
    public static final String NAME = "protocol";

    public ProtocolForm(DataEntryFormContext ctx, Module owner)
    {
        super(ctx, owner, NAME, "New Enter/Manage Protocols", WNPRCConstants.DataEntrySections.COLONY_RECORDS, Arrays.asList());
        updateProtocol protocolSection = new updateProtocol();
        this.addSection(protocolSection);

        for(Supplier<ClientDependency> dependency : WNPRC_EHRModule.getDataEntryClientDependencies()) {
            this.addClientDependency(dependency);
        }
        for (FormSection s: getFormSections()){
            s.addConfigSource("Default");
        }

        this.addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/model/sources/Default.js"));

    }

    public static class updateProtocol extends SimpleFormSection
    {

        public updateProtocol()
        {
            super("ehr", "protocol", "Enter Protocol Information", "ehr-protocoleditorgridpanel", EHRService.FORM_SECTION_LOCATION.Body);
            this.addConfigSource("Default");
            addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/ext4/components/plugins/ProtocolRowEditor.js"));
            addClientDependency(ClientDependency.supplierFromPath("wnprc_ehr/ext4/panel/ProtocolEditorGridPanel.js"));
            _allowRowEditing = true;

            /*fieldNamesAtStartInOrder = Arrays.asList(
                    "protocol",
                    "title",
                    "inves"

            );*/
        }

    }

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
	<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
	<VerticalScroll>useIfNecessary</VerticalScroll>
	<CommandSet>
		<ExcludedCommand>Copy</ExcludedCommand>
		<ExcludedCommand>Delete</ExcludedCommand>
	</CommandSet>
	<AutoCommandBar name="ФормаКоманднаяПанель" id="-1"/>
	<ChildItems>
		<InputField name="КаталогОбменаИнформацией" id="55">
			<DataPath>Запись.КаталогОбменаИнформацией</DataPath>
			<ContextMenu name="КаталогОбменаИнформациейКонтекстноеМеню" id="56"/>
			<ExtendedTooltip name="КаталогОбменаИнформациейРасширеннаяПодсказка" id="57"/>
		</InputField>
		<Button name="ОткрытьОбщиеНастройкиТранспорта" id="48">
			<Type>Hyperlink</Type>
			<CommandName>Form.Command.ОткрытьОбщиеНастройкиТранспорта</CommandName>
			<ExtendedTooltip name="ОткрытьОбщиеНастройкиТранспортаExtendedTooltip" id="54"/>
		</Button>
	</ChildItems>
	<Attributes>
		<Attribute name="Запись" id="1">
			<Type>
				<v8:Type>cfg:InformationRegisterRecordManager.НастройкиТранспортаОбменаОбластиДанных</v8:Type>
			</Type>
			<MainAttribute>true</MainAttribute>
			<SavedData>true</SavedData>
		</Attribute>
	</Attributes>
	<Commands>
		<Command name="ОткрытьОбщиеНастройкиТранспорта" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Общие настройки транспорта</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Открыть общие настройки транспорта</v8:content>
				</v8:item>
			</ToolTip>
			<Action>ОткрытьОбщиеНастройкиТранспорта</Action>
		</Command>
	</Commands>
</Form>


text:
package org.sunflow.core.primitive;

import org.sunflow.SunflowAPI;
import org.sunflow.core.Instance;
import org.sunflow.core.IntersectionState;
import org.sunflow.core.ParameterList;
import org.sunflow.core.PrimitiveList;
import org.sunflow.core.Ray;
import org.sunflow.core.ShadingState;
import org.sunflow.math.BoundingBox;
import org.sunflow.math.Matrix4;
import org.sunflow.math.OrthoNormalBasis;
import org.sunflow.math.Point3;
import org.sunflow.math.Solvers;
import org.sunflow.math.Vector3;

public class BanchoffSurface implements PrimitiveList {
    public boolean update(ParameterList pl, SunflowAPI api) {
        return true;
    }

    public BoundingBox getWorldBounds(Matrix4 o2w) {
        BoundingBox bounds = new BoundingBox(1.5f);
        if (o2w != null)
            bounds = o2w.transform(bounds);
        return bounds;
    }

    public float getPrimitiveBound(int primID, int i) {
        return (i & 1) == 0 ? -1.5f : 1.5f;
    }

    public int getNumPrimitives() {
        return 1;
    }

    public void prepareShadingState(ShadingState state) {
        state.init();
        state.getRay().getPoint(state.getPoint());
        Instance parent = state.getInstance();
        Point3 n = state.transformWorldToObject(state.getPoint());
        state.getNormal().set(n.x * (2 * n.x * n.x - 1), n.y * (2 * n.y * n.y - 1), n.z * (2 * n.z * n.z - 1));
        state.getNormal().normalize();
        state.setShader(parent.getShader(0));
        state.setModifier(parent.getModifier(0));
        // into world space
        Vector3 worldNormal = state.transformNormalObjectToWorld(state.getNormal());
        state.getNormal().set(worldNormal);
        state.getNormal().normalize();
        state.getGeoNormal().set(state.getNormal());
        // create basis in world space
        state.setBasis(OrthoNormalBasis.makeFromW(state.getNormal()));
    }

    public void intersectPrimitive(Ray r, int primID, IntersectionState state) {
        // intersect in local space
        float rd2x = r.dx * r.dx;
        float rd2y = r.dy * r.dy;
        float rd2z = r.dz * r.dz;
        float ro2x = r.ox * r.ox;
        float ro2y = r.oy * r.oy;
        float ro2z = r.oz * r.oz;
        // setup the quartic coefficients
        // some common terms could probably be shared across these
        double A = (rd2y * rd2y + rd2z * rd2z + rd2x * rd2x);
        double B = 4 * (r.oy * rd2y * r.dy + r.oz * r.dz * rd2z + r.ox * r.dx * rd2x);
        double C = (-rd2x - rd2y - rd2z + 6 * (ro2y * rd2y + ro2z * rd2z + ro2x * rd2x));
        double D = 2 * (2 * ro2z * r.oz * r.dz - r.oz * r.dz + 2 * ro2x * r.ox * r.dx + 2 * ro2y * r.oy * r.dy - r.ox * r.dx - r.oy * r.dy);
        double E = 3.0f / 8.0f + (-ro2z + ro2z * ro2z - ro2y + ro2y * ro2y - ro2x + ro2x * ro2x);
        // solve equation
        double[] t = Solvers.solveQuartic(A, B, C, D, E);
        if (t != null) {
            // early rejection
            if (t[0] >= r.getMax() || t[t.length - 1] <= r.getMin())
                return;
            // find first intersection in front of the ray
            for (int i = 0; i < t.length; i++) {
                if (t[i] > r.getMin()) {
                    r.setMax((float) t[i]);
                    state.setIntersection(0);
                    return;
                }
            }
        }
    }

    public PrimitiveList getBakingPrimitives() {
        return null;
    }
}


text:
package net.runelite.client.plugins.grounditems;

import java.util.Arrays;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;

public class WildcardMatchLoaderTest
{
	@Test
	public void testLoad()
	{
		WildcardMatchLoader loader = new WildcardMatchLoader(Arrays.asList("rune*", "Abyssal whip"));
		assertTrue(loader.load("rune pouch"));
		assertTrue(loader.load("Rune pouch"));
		assertFalse(loader.load("Adamant dagger"));
		assertTrue(loader.load("Runeite Ore"));
		assertTrue(loader.load("Abyssal whip"));
		assertFalse(loader.load("Abyssal dagger"));
	}
}


text:
PREBUMP=
  666 git fetch --tags origin master
  666 git pull origin master

PREVERSION=
  philea -s "666 go vet %s" "666 go-fmt-fail %s"
  666 go run main.go -version
  666 go test emd/* -v
  666 go test utils/* -v
  666 go test provider/std/* -v
  666 changelog finalize --version !newversion!
  666 commit -q -m "changelog: !newversion!" -f change.log
  666 changelog md -o CHANGELOG.md --guess
  666 commit -q -m "changelog: !newversion!" -f CHANGELOG.md
  666 go install --ldflags "-X main.VERSION=!newversion!"
  666 emd gen -out README.md
  666 commit -q -m "README: !newversion!" -f README.md

POSTVERSION=
  666 git push
  666 git push --tags
  666 gh-api-cli create-release -n release -o mh-cbon --guess \
   --ver !newversion! -c "changelog ghrelease --version !newversion!" \
  --draft !isprerelease!


text:
title:  Misjonsfortelling
date:  04/06/2021
---

#### Bønn om en mann

_Esther Garcia (35), Mexico_

Da Esther var tolv, begynte hun å be samme bønnen hver kveld: "Finn en god mann til meg." Esthers far drakk, han truet mor og Esther med kniv, og iblant kastet han den etter dem. Men han bommet alltid. Ester ba som best hun kunne: "Gi meg en god mann, en lykkelig familie og et barn." Etter universitetet fikk hun jobb på et apotek. Der møtte hun Luis, som var sjefen hennes. Han ba henne med til Adventistkirken.

Ester trivdes. Folk var vennlige, og hun følte en ny fred. Plutselig hørte hun en stemme: "Dette er stedet for deg. Her skal du være." Esther så på Luis. "Sa du noe?" spurte hun. "Nei, jeg sitter her helt stille," svarte han. Da hun gikk etter gudstjenesten, hørte hun stemmen igjen: "Dette er stedet for deg. Du hører til her." Hun forsto ikke hvor ordene kom fra, men hun følte fred.

Neste sabbat fortalte Esther Luis at hun gjerne ville ha bibelstudier. Dagen etter kom Luis' søster og hennes mann hjem til Ester, og hun lærte om skapelsen og budene. Nå begynte hun å studere Bibelen på egen hånd.

En søndag kom far full hjem mens Esther og adventistparet var midt i et bibelstudium. Far så dem og gikk rett inn på kjøkkenet der han laget et fryktelig leven før han kom og sa hun skulle komme inn til ham.

"Ta med deg vennene dine og forlat huset," snerret han. "Ellers dreper jeg deg."

Esther sperret opp øynene. Dette var ikke hennes far. Hun hadde aldri sett ham slik. Hun prøvde å roe ham ned, men ingenting nyttet. Esther ba vennene sine om å gå. Inne på rommet sitt satte hun seg og gråt: "Kjære Gud, du må hjelpe meg. Jeg vil ikke leve slik."

Hun følte fred og gikk inn til far på stuen. Han lo høyt. Det hørtes ikke som ham. Hun løp inn på rommet sitt og ba igjen. "Hva skal jeg gjøre, Gud?" Hun merket svaret med én gang. Hun bestemte seg for å overgi seg til Jesus og ta dåp."

Det var for åtte år siden. I dag er Esther menighetssekretær og ungdomsleder i Adventistkirken Amatitan i Villahermosa i Mexico. Hun er også gift med Luis, og de venter sitt første barn. "Jeg ba om en god mann, et lykkelig hjem og et barn," sa hun "Gud har hørt meg."

Takk for offeret i 2018 da Southeast Hospital i Villahermosa i Mexico fikk hjelp til å åpne en ny avdeling.

Se Esther på YouTube: bit.ly/Esther-Garcia.


text:
package com.facebook.buck.parser;

import com.facebook.buck.core.cell.Cell;
import com.facebook.buck.core.cell.CellPathResolver;
import com.facebook.buck.core.exceptions.HumanReadableException;
import com.facebook.buck.core.model.BuildTarget;
import com.facebook.buck.core.model.RuleType;
import com.facebook.buck.core.model.platform.ConstraintResolver;
import com.facebook.buck.core.model.platform.Platform;
import com.facebook.buck.core.model.targetgraph.TargetNode;
import com.facebook.buck.core.parser.buildtargetparser.UnconfiguredBuildTargetFactory;
import com.facebook.buck.core.select.SelectableConfigurationContext;
import com.facebook.buck.core.select.SelectorList;
import com.facebook.buck.core.select.SelectorListResolver;
import com.facebook.buck.core.select.impl.SelectorFactory;
import com.facebook.buck.core.select.impl.SelectorListFactory;
import com.facebook.buck.event.BuckEventBus;
import com.facebook.buck.io.filesystem.ProjectFilesystem;
import com.facebook.buck.parser.TargetSpecResolver.TargetNodeFilterForSpecResolver;
import com.facebook.buck.parser.TargetSpecResolver.TargetNodeProviderForSpecResolver;
import com.facebook.buck.parser.api.BuildFileManifest;
import com.facebook.buck.parser.exceptions.BuildFileParseException;
import com.facebook.buck.parser.syntax.ListWithSelects;
import com.facebook.buck.rules.coercer.BuildTargetTypeCoercer;
import com.facebook.buck.rules.coercer.CoerceFailedException;
import com.facebook.buck.rules.coercer.JsonTypeConcatenatingCoercerFactory;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
import java.io.IOException;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.function.Supplier;
import javax.annotation.Nullable;

/**
 * An implementation of {@link Parser} that supports attributes with configurable values (i.e.
 * defined using {@code select} keyword).
 *
 * <p>This implementation also supports notion of configuration rules which are used to resolve
 * conditions in {@code select} statements.
 */
class ParserWithConfigurableAttributes extends AbstractParser {

  private final UnconfiguredBuildTargetFactory unconfiguredBuildTargetFactory;
  private final TargetSpecResolver targetSpecResolver;

  ParserWithConfigurableAttributes(
      DaemonicParserState daemonicParserState,
      PerBuildStateFactory perBuildStateFactory,
      TargetSpecResolver targetSpecResolver,
      BuckEventBus eventBus,
      UnconfiguredBuildTargetFactory unconfiguredBuildTargetFactory,
      Supplier<ImmutableList<String>> targetPlatforms) {
    super(daemonicParserState, perBuildStateFactory, eventBus, targetPlatforms);
    this.targetSpecResolver = targetSpecResolver;
    this.unconfiguredBuildTargetFactory = unconfiguredBuildTargetFactory;
  }

  /**
   * This implementation collects raw attributes of a target node and resolves configurable
   * attributes.
   */
  @Override
  @Nullable
  public SortedMap<String, Object> getTargetNodeRawAttributes(
      PerBuildState state, Cell cell, TargetNode<?> targetNode) throws BuildFileParseException {
    BuildTarget buildTarget = targetNode.getBuildTarget();
    Cell owningCell = cell.getCell(buildTarget);
    BuildFileManifest buildFileManifest =
        getTargetNodeRawAttributes(state, owningCell, cell.getAbsolutePathToBuildFile(buildTarget));
    return getTargetFromManifest(state, cell, targetNode, buildFileManifest);
  }

  @Override
  public ListenableFuture<SortedMap<String, Object>> getTargetNodeRawAttributesJob(
      PerBuildState state, Cell cell, TargetNode<?> targetNode) throws BuildFileParseException {
    Cell owningCell = cell.getCell(targetNode.getBuildTarget());
    ListenableFuture<BuildFileManifest> buildFileManifestFuture =
        state.getBuildFileManifestJob(
            owningCell, cell.getAbsolutePathToBuildFile(targetNode.getBuildTarget()));
    return Futures.transform(
        buildFileManifestFuture,
        buildFileManifest -> getTargetFromManifest(state, cell, targetNode, buildFileManifest),
        MoreExecutors.directExecutor());
  }

  @Nullable
  private SortedMap<String, Object> getTargetFromManifest(
      PerBuildState state,
      Cell cell,
      TargetNode<?> targetNode,
      BuildFileManifest buildFileManifest) {
    BuildTarget buildTarget = targetNode.getBuildTarget();
    String shortName = buildTarget.getShortName();

    if (!buildFileManifest.getTargets().containsKey(shortName)) {
      return null;
    }

    Map<String, Object> attributes = buildFileManifest.getTargets().get(shortName);

    SortedMap<String, Object> convertedAttributes =
        copyWithResolvingConfigurableAttributes(state, cell, buildTarget, attributes);

    convertedAttributes.put(
        InternalTargetAttributeNames.DIRECT_DEPENDENCIES,
        targetNode
            .getParseDeps()
            .stream()
            .map(Object::toString)
            .collect(ImmutableList.toImmutableList()));
    return convertedAttributes;
  }

  private SortedMap<String, Object> copyWithResolvingConfigurableAttributes(
      PerBuildState state, Cell cell, BuildTarget buildTarget, Map<String, Object> attributes) {
    PerBuildStateWithConfigurableAttributes stateWithConfigurableAttributes =
        (PerBuildStateWithConfigurableAttributes) state;

    SelectableConfigurationContext configurationContext =
        DefaultSelectableConfigurationContext.of(
            cell.getBuckConfig(),
            stateWithConfigurableAttributes.getConstraintResolver(),
            stateWithConfigurableAttributes.getTargetPlatform().get());

    SelectorListFactory selectorListFactory =
        new SelectorListFactory(
            new SelectorFactory(
                new BuildTargetTypeCoercer(unconfiguredBuildTargetFactory)::coerce));

    SortedMap<String, Object> convertedAttributes = new TreeMap<>();

    for (Map.Entry<String, Object> attribute : attributes.entrySet()) {
      String attributeName = attribute.getKey();
      try {
        convertedAttributes.put(
            attributeName,
            resolveConfigurableAttributes(
                stateWithConfigurableAttributes.getSelectorListResolver(),
                configurationContext,
                cell.getCellPathResolver(),
                cell.getFilesystem(),
                buildTarget,
                selectorListFactory,
                attributeName,
                attribute.getValue()));
      } catch (CoerceFailedException e) {
        throw new HumanReadableException(e, "%s: %s", buildTarget, e.getMessage());
      }
    }

    return convertedAttributes;
  }

  @Nullable
  private Object resolveConfigurableAttributes(
      SelectorListResolver selectorListResolver,
      SelectableConfigurationContext configurationContext,
      CellPathResolver cellPathResolver,
      ProjectFilesystem projectFilesystem,
      BuildTarget buildTarget,
      SelectorListFactory selectorListFactory,
      String attributeName,
      Object jsonObject)
      throws CoerceFailedException {
    if (!(jsonObject instanceof ListWithSelects)) {
      return jsonObject;
    }

    ListWithSelects list = (ListWithSelects) jsonObject;

    SelectorList<Object> selectorList =
        selectorListFactory.create(
            cellPathResolver,
            projectFilesystem,
            buildTarget.getBasePath(),
            list.getElements(),
            JsonTypeConcatenatingCoercerFactory.createForType(list.getType()));

    return selectorListResolver.resolveList(
        configurationContext, buildTarget, attributeName, selectorList);
  }

  @Override
  public ImmutableList<ImmutableSet<BuildTarget>> resolveTargetSpecs(
      ParsingContext parsingContext, Iterable<? extends TargetNodeSpec> specs)
      throws BuildFileParseException, InterruptedException, IOException {

    try (PerBuildStateWithConfigurableAttributes state =
        (PerBuildStateWithConfigurableAttributes)
            perBuildStateFactory.create(parsingContext, permState, targetPlatforms.get())) {
      TargetNodeFilterForSpecResolver<TargetNode<?>> targetNodeFilter =
          (spec, nodes) -> spec.filter(nodes);
      if (parsingContext.excludeUnsupportedTargets()) {
        Platform targetPlatform = state.getTargetPlatform().get();
        ConstraintResolver constraintResolver = state.getConstraintResolver();
        targetNodeFilter =
            new TargetNodeFilterForSpecResolverWithNodeFiltering<>(
                targetNodeFilter,
                node ->
                    TargetCompatibilityChecker.targetNodeArgMatchesPlatform(
                        constraintResolver, node.getConstructorArg(), targetPlatform));
      }

      TargetNodeProviderForSpecResolver<TargetNode<?>> targetNodeProvider =
          DefaultParser.createTargetNodeProviderForSpecResolver(state);
      return targetSpecResolver.resolveTargetSpecs(
          parsingContext.getCell(),
          specs,
          (buildTarget, targetNode, targetType) ->
              DefaultParser.applyDefaultFlavors(
                  buildTarget, targetNode, targetType, parsingContext.getApplyDefaultFlavorsMode()),
          targetNodeProvider,
          targetNodeFilter);
    }
  }

  @Override
  protected ImmutableSet<BuildTarget> collectBuildTargetsFromTargetNodeSpecs(
      ParsingContext parsingContext,
      PerBuildState state,
      Iterable<? extends TargetNodeSpec> targetNodeSpecs,
      boolean excludeConfigurationTargets)
      throws IOException, InterruptedException {
    PerBuildStateWithConfigurableAttributes stateWithConfigurableAttributes =
        (PerBuildStateWithConfigurableAttributes) state;

    TargetNodeProviderForSpecResolver<TargetNode<?>> targetNodeProvider =
        DefaultParser.createTargetNodeProviderForSpecResolver(state);

    TargetNodeFilterForSpecResolver<TargetNode<?>> targetNodeFilter =
        (spec, nodes) -> spec.filter(nodes);

    if (excludeConfigurationTargets) {
      targetNodeFilter =
          new TargetNodeFilterForSpecResolverWithNodeFiltering<>(
              targetNodeFilter, ParserWithConfigurableAttributes::filterOutNonBuildTargets);
    }

    if (parsingContext.excludeUnsupportedTargets()) {
      Platform targetPlatform = stateWithConfigurableAttributes.getTargetPlatform().get();
      ConstraintResolver constraintResolver =
          stateWithConfigurableAttributes.getConstraintResolver();
      targetNodeFilter =
          new TargetNodeFilterForSpecResolverWithNodeFiltering<>(
              targetNodeFilter,
              node ->
                  TargetCompatibilityChecker.targetNodeArgMatchesPlatform(
                      constraintResolver, node.getConstructorArg(), targetPlatform));
    }

    return ImmutableSet.copyOf(
        Iterables.concat(
            targetSpecResolver.resolveTargetSpecs(
                parsingContext.getCell(),
                targetNodeSpecs,
                (buildTarget, targetNode, targetType) ->
                    DefaultParser.applyDefaultFlavors(
                        buildTarget,
                        targetNode,
                        targetType,
                        parsingContext.getApplyDefaultFlavorsMode()),
                targetNodeProvider,
                targetNodeFilter)));
  }

  private static boolean filterOutNonBuildTargets(TargetNode<?> node) {
    return node.getRuleType().getKind() == RuleType.Kind.BUILD;
  }
}


text:
<?php
namespace User;
// Add these import statements:
use User\Model\User;
use User\Model\UserTable;
use Zend\Db\ResultSet\ResultSet;
use Zend\Db\TableGateway\TableGateway;

class Module
{
    public function getAutoloaderConfig()
    {
        return array(
            'Zend\Loader\ClassMapAutoloader' => array(
                __DIR__ . '/autoload_classmap.php',
            ),
            'Zend\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ),
            ),
        );
    }

    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getServiceConfig()
    {
        return array(
            'factories' => array(
                'User\Model\UserTable' =>  function($sm) {
                    $tableGateway = $sm->get('UserTableGateway');
                    $table = new UserTable($tableGateway);
                    return $table;
                },
                'UserTableGateway' => function ($sm) {
                    $dbAdapter = $sm->get('Zend\Db\Adapter\Adapter');
                    $resultSetPrototype = new ResultSet();
                    $resultSetPrototype->setArrayObjectPrototype(new User());
                    return new TableGateway('user', $dbAdapter, null, $resultSetPrototype);
                },
            ),
        );
    }
}


text:
package io.github.benas.randombeans.annotation;

/**
 * Argument of a {@link Randomizer}.
 *
 * @author Dovid Kopel (https://github.com/dovidkopel)
 */
public @interface RandomizerArgument {

    /**
     * The value of the argument.
     * @return value of the argument
     */
    String value() default "";

    /**
     * The type of the argument.
     * @return type of the argument
     */
    Class<?> type() default Object.class;
}


text:
//
// Created by raver119 on 08.10.2017.
//
#include "../scalar_bool.h"

#include <execution/Threads.h>
#include <helpers/LoopKind.h>
#include <system/op_boilerplate.h>
#include <types/types.h>

#include "../legacy_ops.h"

using namespace simdOps;

namespace functions {
namespace scalar {

template <typename X, typename Z>
template <typename OpType>
void ScalarBoolTransform<X, Z>::transform(const void *vx, const sd::LongType *xShapeInfo, void *vextraParams, void *vz,
                                          const sd::LongType *zShapeInfo, const void *vscalars, int *dimension,
                                          int dimensionLength, const sd::LongType *xTadShapeInfo,
                                          const sd::LongType *xTadOffsets, const sd::LongType *zTadShapeInfo,
                                          const sd::LongType *zTadOffsets, const uint64_t start, const uint64_t stop) {
  auto x = reinterpret_cast<const X *>(vx);
  auto z = reinterpret_cast<Z *>(vz);
  auto scalars = reinterpret_cast<const X *>(vscalars);
  auto extraParams = reinterpret_cast<X *>(vextraParams);

  if (zTadShapeInfo == nullptr) {
    zTadShapeInfo = xTadShapeInfo;
    zTadOffsets = xTadOffsets;
  }

  // tad preparation
  const int xTadEws = shape::elementWiseStride(xTadShapeInfo);
  const int zTadEws = shape::elementWiseStride(zTadShapeInfo);
  const int tadLength = shape::tadLength(xShapeInfo, dimension, dimensionLength);
  const int numTads = shape::length(xShapeInfo) / tadLength;

  sd::LoopKind::Kind kindOfLoop = sd::LoopKind::deduceKindOfLoopXZ(xTadShapeInfo, zTadShapeInfo);

  if (kindOfLoop != sd::LoopKind::EWS1 && kindOfLoop != sd::LoopKind::EWSNONZERO) {
    printf("ScalarBoolTransform<X, Z>::transform: super-bad loop visited. Shouldn't ever happen\n");
    return;
  }

  int num_threads = sd::math::sd_min<int>(numTads, sd::Environment::getInstance().maxThreads());

  if (kindOfLoop == sd::LoopKind::EWS1) {
    for (auto r = start; r < stop; r++) {
      auto oZ = z + zTadOffsets[r];
      auto oX = x + xTadOffsets[r];

      PRAGMA_OMP_SIMD
      for (int f = 0; f < tadLength; f++) oZ[f] = OpType::op(oX[f], scalars[r], extraParams);
    };
  } else {
    for (auto r = start; r < stop; r++) {
      auto oZ = z + zTadOffsets[r];
      auto oX = x + xTadOffsets[r];

      PRAGMA_OMP_SIMD
      for (int f = 0; f < tadLength; f++) oZ[f * zTadEws] = OpType::op(oX[f * xTadEws], scalars[r], extraParams);
    };
  }
}

template <typename X, typename Y>
void ScalarBoolTransform<X, Y>::transform(int opNum, const void *x, const sd::LongType *xShapeInfo, void *extraParams,
                                          void *z, const sd::LongType *zShapeInfo, const void *scalars, int *dimension,
                                          int dimensionLength, const sd::LongType *xTadShapeInfo,
                                          const sd::LongType *xTadOffsets, const sd::LongType *zTadShapeInfo,
                                          const sd::LongType *zTadOffsets, const uint64_t start, const uint64_t stop) {
  DISPATCH_BY_OPNUM_TT(transform,
                       PARAMS(x, xShapeInfo, extraParams, z, zShapeInfo, scalars, dimension, dimensionLength,
                              xTadShapeInfo, xTadOffsets, zTadShapeInfo, zTadOffsets, start, stop),
                       SCALAR_BOOL_OPS);
}

template <typename X, typename Y>
void ScalarBoolTransform<X, Y>::transform(const int opNum, const void *x, sd::LongType xEws, void *z, sd::LongType zEws,
                                          const void *scalar, void *extraParams, const uint64_t n, const uint64_t start,
                                          const uint64_t stop) {
  DISPATCH_BY_OPNUM_TT(transform, PARAMS(x, xEws, z, zEws, scalar, extraParams, n, start, stop), SCALAR_BOOL_OPS);
}

template <typename X, typename Y>
void ScalarBoolTransform<X, Y>::transform(const int opNum, const void *x, const sd::LongType *xShapeInfo, void *z,
                                          const sd::LongType *zShapeInfo, const void *scalar, void *extraParams,
                                          const uint64_t start, const uint64_t stop) {
  DISPATCH_BY_OPNUM_TT(transform, PARAMS(x, xShapeInfo, z, zShapeInfo, scalar, extraParams, start, stop),
                       SCALAR_BOOL_OPS);
}

template <typename X, typename Z>
template <typename OpType>
void ScalarBoolTransform<X, Z>::transform(const void *vx, const sd::LongType *xShapeInfo, void *vz,
                                          const sd::LongType *zShapeInfo, const void *vscalar, void *vextraParams,
                                          const uint64_t start, const uint64_t stop) {
  auto x = reinterpret_cast<const X *>(vx);
  auto z = reinterpret_cast<Z *>(vz);
  auto scalar = reinterpret_cast<const X *>(vscalar)[0];
  auto extraParams = reinterpret_cast<X *>(vextraParams);

  auto xEws = shape::elementWiseStride(xShapeInfo);
  auto zEws = shape::elementWiseStride(zShapeInfo);
  auto len = shape::length(xShapeInfo);

  sd::LoopKind::Kind kindOfLoop = sd::LoopKind::deduceKindOfLoopXZ(xShapeInfo, zShapeInfo);

  if (kindOfLoop == sd::LoopKind::EWS1 || kindOfLoop == sd::LoopKind::EWSNONZERO) {
    transform<OpType>(x, xEws, z, zEws, vscalar, extraParams, len, start, stop);
    return;
  }

  sd::Unsigned xShapeInfoCast[SD_MAX_RANK];
  const bool canCastX = sd::DataTypeUtils::castShapeInfo<sd::Unsigned>(xShapeInfo, xShapeInfoCast);

  if (shape::haveSameShapeAndStrides(xShapeInfo, zShapeInfo)) {
    PRAGMA_OMP_SIMD
    for (auto i = start; i < stop; i++) {
      auto offset = shape::indexOffset(i, xShapeInfo, xShapeInfoCast, canCastX);
      z[offset] = OpType::op(x[offset], scalar, extraParams);
    };
  } else {
    sd::Unsigned zShapeInfoCast[SD_MAX_RANK];
    const bool canCastZ = sd::DataTypeUtils::castShapeInfo<sd::Unsigned>(zShapeInfo, zShapeInfoCast);

    PRAGMA_OMP_SIMD
    for (auto i = start; i < stop; i++) {
      auto xOffset = shape::indexOffset(i, xShapeInfo, xShapeInfoCast, canCastX);
      auto zOffset = shape::indexOffset(i, zShapeInfo, zShapeInfoCast, canCastZ);
      z[zOffset] = OpType::op(x[xOffset], scalar, extraParams);
    };
  }
}

template <typename X, typename Z>
template <typename OpType>
void ScalarBoolTransform<X, Z>::transform(const void *vx, sd::LongType xEws, void *vz, sd::LongType zEws,
                                          const void *vscalar, void *vextraParams, const uint64_t len,
                                          const uint64_t start, const uint64_t stop) {
  auto x = reinterpret_cast<const X *>(vx);
  auto z = reinterpret_cast<Z *>(vz);
  auto scalar = reinterpret_cast<const X *>(vscalar)[0];
  auto extraParams = reinterpret_cast<X *>(vextraParams);

  if (xEws == 1 && zEws == 1) {
    PRAGMA_OMP_SIMD
    for (auto i = start; i < stop; i++) z[i] = OpType::op(x[i], scalar, extraParams);
  } else {
    PRAGMA_OMP_SIMD
    for (auto i = start; i < stop; i++) z[i * zEws] = OpType::op(x[i * xEws], scalar, extraParams);
  }
}

BUILD_DOUBLE_TEMPLATE(template class ScalarBoolTransform, , SD_COMMON_TYPES, SD_BOOL_TYPES);

}  // namespace scalar
}  // namespace functions


text:
<?php

namespace Omnipay\Alipay;

use Omnipay\Alipay\Message\PurchaseResponse;
use Omnipay\Tests\GatewayTestCase;

class DualGatewayTest extends GatewayTestCase
{

    /**
     * @var DualGatewayTest $gateway
     */
    protected $gateway;

    protected $options;

    public function setUp()
    {
        parent::setUp();
        $this->gateway = new DualGateway($this->getHttpClient(), $this->getHttpRequest());
        $this->gateway->setPartner('20880127040');
        $this->gateway->setKey('sc1n78r0faswga7jjrpf6o');
        $this->gateway->setSellerEmail('example@qq.com');
        $this->gateway->setNotifyUrl('https://www.example.com/notify');
        $this->gateway->setReturnUrl('https://www.example.com/return');
        $this->gateway->setLogisticsInfo(8, SecuredGateway::LOGISTIC_TYPE_EMS,
            SecuredGateway::LOGISTIC_PAYMENT_BUYER_PAY);
        $this->gateway->setReceiveInfo('sqiu', 'shanghai', '201306', '15201234567', '15201234567');
        $this->options = array(
            'out_trade_no' => '2014010122390001',
            'subject'      => 'test',
            'price'        => '0.01',
            'quantity'     => '2',
        );
    }

    public function testPurchase()
    {
        /**
         * @var PurchaseResponse $response
         */
        $response = $this->gateway->purchase($this->options)->send();
        $this->assertFalse($response->isSuccessful());
        $this->assertTrue($response->isRedirect());
        $this->assertNotEmpty($response->getRedirectUrl());
        $redirectData = $response->getRedirectData();
        //var_dump($redirectData);
        $redirectUrl = $response->getRedirectUrl();
        //die($redirectUrl);
        $this->assertSame('https://www.example.com/return', $redirectData['return_url']);
    }
}


text:
/** Automatically generated file. DO NOT MODIFY */
package com.cheerdev.contactstest;

public final class BuildConfig {
    public final static boolean DEBUG = true;
}


text:
Public Class AvianFarmDetail
    Dim FarmDbService As AvianFarmDetail_DB

    Public Sub New()

        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        FarmDbService = New AvianFarmDetail_DB
        DbService = FarmDbService

    End Sub
    Protected Overrides Sub DefineBinding()
        Core.LookupBinder.BindTextEdit(txtBuildingsQty, baseDataSet, "Farm.intBuidings")
        txtBirdsPerBuilding.DataBindings.Add("EditValue", baseDataSet, "Farm.intBirdsPerBuilding")

    End Sub
End Class


text:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="latest_ob.xsl" type="text/xsl"?>
<current_observation version="1.0"
	 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 xsi:noNamespaceSchemaLocation="http://www.weather.gov/view/current_observation.xsd">
	<credit>NOAA's National Weather Service</credit>
	<credit_URL>http://weather.gov/</credit_URL>
	<image>
		<url>http://weather.gov/images/xml_logo.gif</url>
		<title>NOAA's National Weather Service</title>
		<link>http://weather.gov</link>
	</image>
	<suggested_pickup>15 minutes after the hour</suggested_pickup>
	<suggested_pickup_period>60</suggested_pickup_period>
	<location>Benton Harbor, Southwest Michigan Regional Airport, MI</location>
	<station_id>KBEH</station_id>
	<latitude>42.12861</latitude>
	<longitude>-86.42833</longitude>
	<observation_time>Last Updated on Jan 4 2016, 9:53 pm EST</observation_time>
        <observation_time_rfc822>Mon, 04 Jan 2016 21:53:00 -0500</observation_time_rfc822>
	<weather>Fair</weather>
	<temperature_string>14.0 F (-10.0 C)</temperature_string>
	<temp_f>14.0</temp_f>
	<temp_c>-10.0</temp_c>
	<relative_humidity>80</relative_humidity>
	<wind_string>East at 3.5 MPH (3 KT)</wind_string>
	<wind_dir>East</wind_dir>
	<wind_degrees>90</wind_degrees>
	<wind_mph>3.5</wind_mph>
	<wind_kt>3</wind_kt>
	<pressure_string>1036.0 mb</pressure_string>
	<pressure_mb>1036.0</pressure_mb>
	<pressure_in>30.56</pressure_in>
	<dewpoint_string>9.0 F (-12.8 C)</dewpoint_string>
	<dewpoint_f>9.0</dewpoint_f>
	<dewpoint_c>-12.8</dewpoint_c>
	<visibility_mi>10.00</visibility_mi>
 	<icon_url_base>http://forecast.weather.gov/images/wtf/small/</icon_url_base>
	<two_day_history_url>http://www.weather.gov/data/obhistory/KBEH.html</two_day_history_url>
	<icon_url_name>nskc.png</icon_url_name>
	<ob_url>http://www.weather.gov/data/METAR/KBEH.1.txt</ob_url>
	<disclaimer_url>http://weather.gov/disclaimer.html</disclaimer_url>
	<copyright_url>http://weather.gov/disclaimer.html</copyright_url>
	<privacy_policy_url>http://weather.gov/notice.html</privacy_policy_url>
</current_observation>


text:
/// <reference path="../../scripts/typings/processing.d.ts" />
define(["require", "exports"], function (require, exports) {
    /* tslint:disable: no-unused-variable */
    /* tslint:disable: comment-format */
    var Mover = (function () {
        function Mover($p) {
            this.$p = $p;
            this.location = new PVector(this.$p.width / 2, this.$p.height / 2);
            this.velocity = new PVector(0, 0);
            this.topspeed = 6;
            this.t = new PVector(100, 1000);
        }
        Mover.prototype.update = function () {
            this.acceleration = new PVector(this.$p.map(this.$p.noise(this.t.x), 0, 1, -10, 10), this.$p.map(this.$p.noise(this.t.y), 0, 1, -10, 10));
            this.velocity.add(this.acceleration);
            this.velocity.limit(this.topspeed);
            this.location.add(this.velocity);
            this.t.add(0.01, 0.01);
        };
        Mover.prototype.display = function () {
            this.$p.stroke(0);
            this.$p.strokeWeight(2);
            this.$p.fill(127);
            this.$p.ellipse(this.location.x, this.location.y, 48, 48);
        };
        Mover.prototype.checkEdges = function () {
            if (this.location.x > this.$p.width) {
                this.location.x = 0;
            }
            else if (this.location.x < 0) {
                this.location.x = this.$p.width;
            }
            if (this.location.y > this.$p.height) {
                this.location.y = 0;
            }
            else if (this.location.y < 0) {
                this.location.y = this.$p.height;
            }
        };
        return Mover;
    })();
    return Mover;
});
//# sourceMappingURL=Mover.js.map


text:
package OpenCOM.Visualisation;

/**
 * Event message stating that a receptacle has been exposed
 *
 * @author Barry Porter
 * @version 1.3.3
 */
public class ReceptacleExposedMessage extends VisMessage implements java.io.Serializable{

    static final long serialVersionUID = 2734773588862542179L;

    /**
     * Component Name
     */
    public String componentName;

    /**
     * Receptacle Type
     */
    public String receptacleName;

    /**
     * Component the receptacle resides within
     */
    public String inFramework;

}


text:
<!doctype html>

<title>CodeMirror: PHP mode</title>
<meta charset="utf-8"/>
<link rel=stylesheet href="../../doc/docs.css">

<link rel="stylesheet" href="../../lib/codemirror.css">

Home

Manual

Code

Language modes

PHP

PHP mode

<form><textarea id="code" name="code">
<?php
$a = array('a' => 1, 'b' => 2, 3 => 'c');

echo "$a[a] ${a[3] /* } comment */} {$a[b]} \$a[a]";

function hello($who) {
	return "Hello $who!";
}
?>

The program says <?= hello("World") ?>.

</textarea></form>

Simple HTML/PHP mode based on
    the C-like mode. Depends on XML,
    JavaScript, CSS, HTMLMixed, and C-like modes.

MIME types defined: application/x-httpd-php (HTML with PHP code), text/x-php (plain, non-wrapped PHP code).


text:
#pragma once

#include "il2cpp-config.h"

#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif

#include <stdint.h>

// UnityEngine.CharacterController
struct CharacterController_t1618060635;
// UnityEngine.Collider
struct Collider_t2939674232;

#include "mscorlib_System_Object4170816371.h"
#include "UnityEngine_UnityEngine_Vector34282066566.h"

#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif

// UnityEngine.ControllerColliderHit
struct  ControllerColliderHit_t2416790841  : public Il2CppObject
{
public:
	// UnityEngine.CharacterController UnityEngine.ControllerColliderHit::m_Controller
	CharacterController_t1618060635 * ___m_Controller_0;
	// UnityEngine.Collider UnityEngine.ControllerColliderHit::m_Collider
	Collider_t2939674232 * ___m_Collider_1;
	// UnityEngine.Vector3 UnityEngine.ControllerColliderHit::m_Point
	Vector3_t4282066566  ___m_Point_2;
	// UnityEngine.Vector3 UnityEngine.ControllerColliderHit::m_Normal
	Vector3_t4282066566  ___m_Normal_3;
	// UnityEngine.Vector3 UnityEngine.ControllerColliderHit::m_MoveDirection
	Vector3_t4282066566  ___m_MoveDirection_4;
	// System.Single UnityEngine.ControllerColliderHit::m_MoveLength
	float ___m_MoveLength_5;
	// System.Int32 UnityEngine.ControllerColliderHit::m_Push
	int32_t ___m_Push_6;

public:
	inline static int32_t get_offset_of_m_Controller_0() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_Controller_0)); }
	inline CharacterController_t1618060635 * get_m_Controller_0() const { return ___m_Controller_0; }
	inline CharacterController_t1618060635 ** get_address_of_m_Controller_0() { return &___m_Controller_0; }
	inline void set_m_Controller_0(CharacterController_t1618060635 * value)
	{
		___m_Controller_0 = value;
		Il2CppCodeGenWriteBarrier(&___m_Controller_0, value);
	}

	inline static int32_t get_offset_of_m_Collider_1() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_Collider_1)); }
	inline Collider_t2939674232 * get_m_Collider_1() const { return ___m_Collider_1; }
	inline Collider_t2939674232 ** get_address_of_m_Collider_1() { return &___m_Collider_1; }
	inline void set_m_Collider_1(Collider_t2939674232 * value)
	{
		___m_Collider_1 = value;
		Il2CppCodeGenWriteBarrier(&___m_Collider_1, value);
	}

	inline static int32_t get_offset_of_m_Point_2() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_Point_2)); }
	inline Vector3_t4282066566  get_m_Point_2() const { return ___m_Point_2; }
	inline Vector3_t4282066566 * get_address_of_m_Point_2() { return &___m_Point_2; }
	inline void set_m_Point_2(Vector3_t4282066566  value)
	{
		___m_Point_2 = value;
	}

	inline static int32_t get_offset_of_m_Normal_3() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_Normal_3)); }
	inline Vector3_t4282066566  get_m_Normal_3() const { return ___m_Normal_3; }
	inline Vector3_t4282066566 * get_address_of_m_Normal_3() { return &___m_Normal_3; }
	inline void set_m_Normal_3(Vector3_t4282066566  value)
	{
		___m_Normal_3 = value;
	}

	inline static int32_t get_offset_of_m_MoveDirection_4() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_MoveDirection_4)); }
	inline Vector3_t4282066566  get_m_MoveDirection_4() const { return ___m_MoveDirection_4; }
	inline Vector3_t4282066566 * get_address_of_m_MoveDirection_4() { return &___m_MoveDirection_4; }
	inline void set_m_MoveDirection_4(Vector3_t4282066566  value)
	{
		___m_MoveDirection_4 = value;
	}

	inline static int32_t get_offset_of_m_MoveLength_5() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_MoveLength_5)); }
	inline float get_m_MoveLength_5() const { return ___m_MoveLength_5; }
	inline float* get_address_of_m_MoveLength_5() { return &___m_MoveLength_5; }
	inline void set_m_MoveLength_5(float value)
	{
		___m_MoveLength_5 = value;
	}

	inline static int32_t get_offset_of_m_Push_6() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t2416790841, ___m_Push_6)); }
	inline int32_t get_m_Push_6() const { return ___m_Push_6; }
	inline int32_t* get_address_of_m_Push_6() { return &___m_Push_6; }
	inline void set_m_Push_6(int32_t value)
	{
		___m_Push_6 = value;
	}
};

#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for marshalling of: UnityEngine.ControllerColliderHit
struct ControllerColliderHit_t2416790841_marshaled_pinvoke
{
	CharacterController_t1618060635 * ___m_Controller_0;
	Collider_t2939674232 * ___m_Collider_1;
	Vector3_t4282066566_marshaled_pinvoke ___m_Point_2;
	Vector3_t4282066566_marshaled_pinvoke ___m_Normal_3;
	Vector3_t4282066566_marshaled_pinvoke ___m_MoveDirection_4;
	float ___m_MoveLength_5;
	int32_t ___m_Push_6;
};
// Native definition for marshalling of: UnityEngine.ControllerColliderHit
struct ControllerColliderHit_t2416790841_marshaled_com
{
	CharacterController_t1618060635 * ___m_Controller_0;
	Collider_t2939674232 * ___m_Collider_1;
	Vector3_t4282066566_marshaled_com ___m_Point_2;
	Vector3_t4282066566_marshaled_com ___m_Normal_3;
	Vector3_t4282066566_marshaled_com ___m_MoveDirection_4;
	float ___m_MoveLength_5;
	int32_t ___m_Push_6;
};


text:
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.aad.msal4j;

import java.net.URL;

/**
 * Interface to be implemented to override system browser initialization logic. Otherwise,
 * PublicClientApplication defaults to using default system browser
 */
public interface OpenBrowserAction {

    /**
     * Override for providing custom browser initialization logic. Method that is called by MSAL
     * when doing {@link IPublicClientApplication#acquireToken(InteractiveRequestParameters)}. If
     * not overridden, MSAL will attempt to open URL in default system browser.
     *
     * @param url URL to the /authorize endpoint which should opened up in a browser so the user can
     *            provide their credentials and consent to scopes.
     */
    void openBrowser(URL url);
}


text:
struct	cords_contract
{
	char *	id;
	char *	name;
	char *	node;
	char *	provider;
	char *	profile;
	char *	reference;
	char *	hostname;
	char *	rootpass;
	char *	workload;
	char *	price;
	char *	access;
	char *	common;
	char *	session;
	char *	scope;
	char *	type;
	char *	service;
	char *	firewall;
	char *	placement;
	char *	parentservice;
	char *	agreement;
	int	flags;
	int	startduration;
	int	stopduration;
	int	saveduration;
	int	instructions;
	int	commons;
	int	when;
	int	state;
};

#endif


text:
$Settings = @{

    Dependency = @('Coveralls','Pester','PsScriptAnalyzer','PSCodeHealth')
    CoverallsKey = $env:Coveralls_Key
    Branch = $env:APPVEYOR_REPO_BRANCH
    TestUploadUrl = "https://ci.appveyor.com/api/testresults/nunit/$($env:APPVEYOR_JOB_ID)"
    Version = $env:APPVEYOR_BUILD_VERSION
    ManifestPath = '{0}\{1}\{1}.psd1' -f $PSScriptRoot, $env:APPVEYOR_PROJECT_NAME
    VersionRegex = "ModuleVersion\s=\s'(?<ModuleVersion>\S+)'" -as [regex]

    UnitTestParams = @{
        Script = '.\Tests\Unit'
        CodeCoverage = '.\PSGithubSearch\PSGithubSearch.psm1'
        OutputFile = "$PSScriptRoot\BuildOutput\UnitTestsResult.xml"
        PassThru = $True
    }

    CodeHealthParams = @{
        Path = '.\PSGithubSearch\'
    }

    QualityGateParams = @{
        CustomSettingsPath = '.\ProjectRules.json'
        SettingsGroup = 'OverallMetrics'
        MetricName = @('LinesOfCodeAverage',
            'TestCoverage',
            'ScriptAnalyzerFindingsTotal'
            'ComplexityAverage'
        )
    }

    GitHubKey = $env:GitHub_Key
    Email = 'MathieuBuisson@users.noreply.github.com'
    Name = 'Mathieu Buisson'
    BuildOutput = "$PSScriptRoot\BuildOutput"
    SourceFolder = "$PSScriptRoot\$($env:APPVEYOR_PROJECT_NAME)"
    OutputModulePath = "$PSScriptRoot\BuildOutput\$($env:APPVEYOR_PROJECT_NAME)"
}


text:
require "socket"

# Config
port = 2000

# Reactor class
class Reactor
  def initialize(socket)
    @server_socket = socket
    @sockets = [socket]

    # Set up the event handlers map
    @event_handlers = {
      :accept_event => {},
      :read_event => {},
      :close_event => {}
    }
  end

  # Registers a handler for an event for a given socket
  def register_for_event(handler, socket, event)
    @event_handlers[event][socket] = handler

    @sockets ||= [socket]
  end

  # Unregisters a handler from events
  def unregister(handler, socket)
    @event_handlers[:read_event].delete(socket)
    @event_handlers[:close_event].delete(socket)
    @sockets.delete(socket)
  end

  def handle_events
    # Wait for the socket event
    r = IO.select(@sockets)[0]

    # Determine the event type and handle it
    r.each do |socket|

      # Perform demultiplexing and dispatch of the event
      event_type = determine_event_type(socket)

      # Determine the handler and handle the event
      handler = @event_handlers[event_type][socket]
      handler.handle_event(event_type)
    end
  end

  def determine_event_type(socket)
    if socket == @server_socket
      :accept_event
    elsif socket.eof?
      :close_event
    else
      :read_event
    end
  end
end

# Accepts connections
class ConnectionAcceptor
  def initialize(socket, reactor)
    @socket = socket
    @reactor = reactor

    reactor.register_for_event(self, socket, :accept_event)
  end

  def handle_event(type)
    raise "ConnectionAcceptor: Can't handle #{type}" if type != :accept_event

    client_socket = @socket.accept
    EchoHandler.new(client_socket, @reactor)
  end
end

# Service handler which performs a simple echo upon each line
class EchoHandler
  def initialize(socket, reactor)
    @socket = socket
    @reactor = reactor

    reactor.register_for_event(self, socket, :read_event)
    reactor.register_for_event(self, socket, :close_event)
  end

  def handle_event(type)
    if type == :read_event
      input = @socket.gets
      @socket.puts "Echo: #{input}"
    elsif type == :close_event
      @reactor.unregister(self, @socket)
      @socket.close
    else
      raise "ConnectionAcceptor: Can't handle #{type}"
    end
  end
end

# Server with a loop
class EchoServer
  def initialize(port)
    @server_socket = TCPServer.new port

    p "Starting Echo TCP server at localhost:#{port}"
  end

  def start
    # Initialize the reactor
    reactor = Reactor.new @server_socket
    ConnectionAcceptor.new(@server_socket, reactor)
    loop { reactor.handle_events }
  end
end

# --- Start of the script ---

echo_server = EchoServer.new port
echo_server.start


text:
package OptimizationTests.ClassHierarchyAnalysis.Test_06_devirt;

public class B extends A {
    public int m() {
        System.out.println("m() from class B");
        return 1234;
    }
}


text:
<?php
include("header.php");
?>

Londres - Información hotel

                            Hilton London Heathrow Airport es el único hotel con acceso directo al aeropuerto de Heathrow Terminal 4 a través de una pasarela cubierta y está a poca distancia del servicio gratuito de tren Heathrow Connect, que conecta la T4 con todos los demás terminales. ¿Necesita un paseo desde el hotel a la Terminal 5? Nuestro servicio de hotel Hoppa funciona todos los días. En el hotel encontrará todo, desde fantásticos establecimientos de comida a los negocios de primera clase, instalaciones deportivas y de ocio - todo lo necesario para una buena estancia.

                        Bueno saber:

De particular en Hilton.com de forma gratuita conexión Wi-Fi estándar. Hilton Honors miembros. Prima de WiFi tiene una cuota.

Directamente relacionado con el aeropuerto de Heathrow Terminal 4 a través de una pasarela cubierta.

El libre juego de la Terminal 4 a las terminales 2,3 y 5 en el Heathrow Connect.

centro de negocios, salón ejecutivo, y 15 salas de reuniones renovados con capacidad para 300 personas.

Gimnasio, centro de bienestar, piscina cubierta, sauna y baño de vapor.

El servicio del hotel Hoppa funciona todos los días entre el hotel y la terminal 5 de 04,48 hasta 23,18.

Londres - Turismo

                            Londres es la capital de Inglaterra y del Reino Unido, y la mayor ciudad y área urbana de Gran Bretaña. Situada a orillas del río Támesis.
                            Londres es una ciudad global, uno de los centros neurálgicos en el ámbito de las artes, el comercio, la educación, el entretenimiento, la moda, las finanzas, los medios de comunicación, la investigación, el turismo o el transporte.

                            Londres es también una capital cultural mundial,la ciudad más visitada considerando el número de visitas internacionales y tiene el mayor sistema aeroportuario del mundo según el tráfico de pasajeros. Londres cuenta con cuatro enclaves declarados Patrimonio de la Humanidad: la Torre de Londres, el Real Jardín Botánico de Kew, el sitio formado por el Palacio, la Abadía de Westminster, la Iglesia de Santa Margarita y Greenwich (donde se encuentra el Real Observatorio que marca el meridiano de Greenwich y el tiempo medio).26 Otros lugares famosos de la ciudad son el Palacio de Buckingham, el London Eye, Piccadilly Circus, la Catedral de San Pablo, el Puente de la Torre o Trafalgar Square.

Westminster Palace

El palacio de Westminster, también conocido como The Parliament ('el Parlamento'), alberga las dos cámaras del Parlamento del Reino Unido. El palacio, que es uno de los cuatro lugares Patrimonio de la Humanidad de la ciudad de Londres. Se encuentra situado en la orilla norte del río Támesis, en la ciudad de Westminster, cerca de otros edificios gubernamentales en Whitehall.

London Eye

El London Eye ('Ojo de Londres'), también conocido como Millennium Wheel ('Noria del milenio'), es una noria-mirador de 135 m situada sobre el extremo occidental de los Jubilee Gardens, en el South Bank del Támesis, distrito londinense de Lambeth, entre los puentes de Westminster y Hungerford. La noria está junto al County Hall y frente a las oficinas del Ministerio de Defensa.

Shard

                                        The Shard es un rascacielos construido en el distrito de Southwark en Londres, Reino Unido. Es el rascacielos más alto de la Unión Europea y hasta noviembre de 2012 fue el más alto de Europa. Está ubicado en el mismo lugar donde se encontraban los edificios Southwark Towers, que fueron demolidos en 2006.

Green park

                                        Green Park (oficialmente The Green Park) es uno de los Parques Reales de Londres. Tiene una superficie de 19 hectáreas, y se encuentra entre Hyde Park y St. James's Park. Los tres, junto con Kensington Gardens y los jardines de Buckingham Palace, forman un espacio abierto casi continuo que va desde Whitehall y la estación Victoria hasta Kensington y Notting Hill.

<?php
include("footer.html");
?>


text:
These are the base dotfiles that I start with when I set up a
new environment. For more specific local needs I use the `.local`
files described in the [`Local Settings`](#local-settings) section.

## Setup

To setup the dotfiles just run the appropriate snippet in the
terminal:

(:warning: **DO NOT** run the setup snippet if you don't fully
understand [what it does](dotfiles). Seriously, **DON'T**!)

| OS | Snippet |
|:---:|:---|
| OS X | `bash -c "$(curl -LsS https://raw.github.com/khornberg/dotfiles/work/dotfiles)"` |
| Ubuntu | `bash -c "$(wget -qO - https://raw.github.com/khornberg/dotfiles/work/dotfiles)"` |

That's it! :sparkles:

The setup process will:

* Download the dotfiles on your computer (by default it will suggest
  `~/projects/dotfiles`)
* Create some additional [directories](os/create_directories.sh)
* [Symlink](os/create_symbolic_links.sh) the
  [git](git),
  [shell](shell), and
  [vim](vim) files
* Install applications / command-line tools for
  [OS X](os/os_x/installs/main.sh) /
  [Ubuntu](os/ubuntu/installs/main.sh)
* Set custom
  [OS X](os/os_x/preferences/main.sh) /
  [Ubuntu](os/ubuntu/preferences/main.sh) preferences
* Install [vim plugins](vim/vim/plugins)

Setup process in action

## Screenshots

##### Git

Output for Git status

Output for Git log

##### tmux

##### vim

## Customize

### Local Settings

The dotfiles can be easily extended to suit additional local
requirements by using the following files:

#### `~/.bash.local`

If the `~/.bash.local` file exists, it will be automatically sourced
after all the other [bash related files](shell), thus, allowing its
content to add to or overwrite the existing aliases, settings, PATH,
etc.

Here is a very simple example of a `~/.bash.local` file:

```bash

#!/bin/bash

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Set local aliases

alias starwars="telnet towel.blinkenlights.nl"

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Set PATH additions

PATH="/usr/local/bin:$PATH"
PATH="$PATH:$HOME/projects/dotfiles/bin"

export PATH

```

#### `~/.gitconfig.local`

If the `~/.gitconfig.local` file exists, it will be automatically
included after the configurations from `~/.gitconfig`, thus, allowing
its content to overwrite or add to the existing `git` configurations.

__Note:__ Use `~/.gitconfig.local` to store sensitive information such
as the `git` user credentials, e.g.:

```bash
[user]
    name = Cătălin Mariș
    email = alrra@example.com
```

#### `~/.vimrc.local`

If the `~/.vimrc.local` file exists, it will be automatically sourced
after `~/.vimrc`, thus, allowing its content to add or overwrite the
settings from `~/.vimrc`.

#### `~/.gvimrc.local`

Same as `~/.vimrc.local` but for `~/.gvimrc`.

### Forks

If you decide to fork this project, don't forget to substitute my
username with your own in the [setup snippets](#setup) and [in the
`dotfiles` script](https://github.com/alrra/dotfiles/blob/5b524ba9ca07b66db1955d18a2fb66bf4b48f677/dotfiles#L3).

## Update

To update the dotfiles you can either run the [`dotfiles`
script](dotfiles) or, if you want to just update one particular part,
run the appropriate [`os` script](os).

## Acknowledgements

Inspiration and code was taken from many sources, including:

* [Cătălin Mariș](https://github.com/alrra)
  [dotfiles](https://github.com/alrra/dotfiles)
* [Mathias Bynens'](https://github.com/mathiasbynens)
  [dotfiles](https://github.com/mathiasbynens/dotfiles)
* [Nicolas Gallagher's](https://github.com/necolas)
  [dotfiles](https://github.com/necolas/dotfiles)

## License

The code is available under the [MIT license](LICENSE.txt).


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

  create_table "runlogs", force: true do |t|
    t.datetime "start_time"
    t.float    "distance"
    t.integer  "duration"
    t.float    "pace"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

end


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Mycotaxon 59: 349 (1996)

#### Original name
Pseudocercospora millingtoniae Raghu Ram & Mallaiah

### Remarks
null


text: export { MusicAdd20 as default } from "../../";


text:
package com.hotels.corc;

import java.util.ArrayList;
import java.util.List;

import org.apache.hadoop.hive.serde2.typeinfo.StructTypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfo;
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;

/**
 * Convenience builder.
 */
public class StructTypeInfoBuilder {

  private final List<String> names = new ArrayList<>();
  private final List<TypeInfo> typeInfos = new ArrayList<>();

  public StructTypeInfoBuilder add(String name, TypeInfo typeInfo) {
    if (name == null || name.trim().length() == 0) {
      throw new IllegalArgumentException("name must not be null or empty");
    }
    for (String existingName : names) {
      if (existingName.equalsIgnoreCase(name)) {
        throw new IllegalArgumentException("duplicate name: " + name);
      }
    }
    if (typeInfo == null) {
      throw new IllegalArgumentException("typeInfo must not be null");
    }
    names.add(name);
    typeInfos.add(typeInfo);
    return this;
  }

  public StructTypeInfo build() {
    return (StructTypeInfo) TypeInfoFactory.getStructTypeInfo(names, typeInfos);
  }

}


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Fl. aegypt. -arab. 137. 1775

#### Original name
null

### Remarks
null